diff --git a/dsql-app/.local_dist/BUILD_ID b/dsql-app/.local_dist/BUILD_ID new file mode 100644 index 0000000..f025b46 --- /dev/null +++ b/dsql-app/.local_dist/BUILD_ID @@ -0,0 +1 @@ +kQVuAw7zEt13uMrV3DVu8 \ No newline at end of file diff --git a/dsql-app/.local_dist/build-manifest.json b/dsql-app/.local_dist/build-manifest.json new file mode 100644 index 0000000..0da6061 --- /dev/null +++ b/dsql-app/.local_dist/build-manifest.json @@ -0,0 +1,659 @@ +{ + "polyfillFiles": [ + "static/chunks/polyfills-42372ed130431b0a.js" + ], + "devFiles": [], + "ampDevFiles": [], + "lowPriorityFiles": [ + "static/kQVuAw7zEt13uMrV3DVu8/_buildManifest.js", + "static/kQVuAw7zEt13uMrV3DVu8/_ssgManifest.js" + ], + "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/6e1653434a830c3f.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-16431e3472e19630.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-16431e3472e19630.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-16431e3472e19630.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-16431e3472e19630.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-16431e3472e19630.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-16431e3472e19630.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-16431e3472e19630.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-16431e3472e19630.js", + "static/chunks/304-44c7b2ac8964083c.js", + "static/chunks/5414-7768ca31c29a305e.js", + "static/chunks/5160-1efe1d072c9abed0.js", + "static/chunks/3293-7a4e9f4883c0d05d.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-16431e3472e19630.js", + "static/chunks/304-44c7b2ac8964083c.js", + "static/chunks/5414-7768ca31c29a305e.js", + "static/chunks/6836-dd09a62c09c3ff54.js", + "static/chunks/5160-1efe1d072c9abed0.js", + "static/chunks/3293-7a4e9f4883c0d05d.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/schema-c82f423959504ecb.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-16431e3472e19630.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-16431e3472e19630.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-16431e3472e19630.js", + "static/chunks/304-44c7b2ac8964083c.js", + "static/chunks/5414-7768ca31c29a305e.js", + "static/chunks/6836-dd09a62c09c3ff54.js", + "static/chunks/5160-1efe1d072c9abed0.js", + "static/chunks/6156-c0700a2f6f1bd267.js", + "static/chunks/2163-f48cfe454167b0f1.js", + "static/chunks/6460-d667ba27d72094f8.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]-d9e494a838ba75d5.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-16431e3472e19630.js", + "static/chunks/304-44c7b2ac8964083c.js", + "static/chunks/5414-7768ca31c29a305e.js", + "static/chunks/6836-dd09a62c09c3ff54.js", + "static/chunks/5160-1efe1d072c9abed0.js", + "static/chunks/6156-c0700a2f6f1bd267.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table-b417a5b3091f1023.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-16431e3472e19630.js", + "static/chunks/304-44c7b2ac8964083c.js", + "static/chunks/5414-7768ca31c29a305e.js", + "static/chunks/6836-dd09a62c09c3ff54.js", + "static/chunks/2163-f48cfe454167b0f1.js", + "static/chunks/6460-d667ba27d72094f8.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-e05ec33798659654.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-16431e3472e19630.js", + "static/chunks/304-44c7b2ac8964083c.js", + "static/chunks/5414-7768ca31c29a305e.js", + "static/chunks/6836-dd09a62c09c3ff54.js", + "static/chunks/2163-f48cfe454167b0f1.js", + "static/chunks/6460-d667ba27d72094f8.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-291e6d1d11967b9c.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-16431e3472e19630.js", + "static/chunks/304-44c7b2ac8964083c.js", + "static/chunks/6836-dd09a62c09c3ff54.js", + "static/chunks/2163-f48cfe454167b0f1.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry-f88864e80f4da790.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-16431e3472e19630.js", + "static/chunks/304-44c7b2ac8964083c.js", + "static/chunks/5414-7768ca31c29a305e.js", + "static/chunks/6836-dd09a62c09c3ff54.js", + "static/chunks/5160-1efe1d072c9abed0.js", + "static/chunks/6156-c0700a2f6f1bd267.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields-475695cb5696bcc3.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-16431e3472e19630.js", + "static/chunks/304-44c7b2ac8964083c.js", + "static/chunks/5414-7768ca31c29a305e.js", + "static/chunks/5160-1efe1d072c9abed0.js", + "static/chunks/6156-c0700a2f6f1bd267.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/tables/add-table-3d47573073c23cb1.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-16431e3472e19630.js", + "static/chunks/304-44c7b2ac8964083c.js", + "static/chunks/6836-dd09a62c09c3ff54.js", + "static/chunks/6946-2c3ce8dcf1028efd.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-16431e3472e19630.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-16431e3472e19630.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-16431e3472e19630.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-8cbde90aa6b62c0e.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-16431e3472e19630.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-16431e3472e19630.js", + "static/chunks/5414-7768ca31c29a305e.js", + "static/chunks/5160-1efe1d072c9abed0.js", + "static/chunks/3293-7a4e9f4883c0d05d.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-16431e3472e19630.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-16431e3472e19630.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-16431e3472e19630.js", + "static/chunks/pages/admin/[user_id]/schema-d42153b702c7ff97.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-16431e3472e19630.js", + "static/chunks/5414-7768ca31c29a305e.js", + "static/chunks/5160-1efe1d072c9abed0.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-16431e3472e19630.js", + "static/chunks/6946-2c3ce8dcf1028efd.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-16431e3472e19630.js", + "static/chunks/pages/admin/[user_id]/users/add-user-003ea117741448da.js" + ], + "/admin/[user_id]/users/databases": [ + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/9799-16431e3472e19630.js", + "static/chunks/6946-2c3ce8dcf1028efd.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-16431e3472e19630.js", + "static/chunks/6946-2c3ce8dcf1028efd.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-16431e3472e19630.js", + "static/chunks/5580-b9a6e4d2e2b38b6e.js", + "static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-5ca3917ded98d30c.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-a60477ecac7d84f9.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" + ], + "/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-e593d9c240f25546.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-e593d9c240f25546.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-e593d9c240f25546.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]-d81189b8f14033f8.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": [] +} \ No newline at end of file diff --git a/dsql-app/.local_dist/cache/config.json b/dsql-app/.local_dist/cache/config.json new file mode 100644 index 0000000..3035e2e --- /dev/null +++ b/dsql-app/.local_dist/cache/config.json @@ -0,0 +1,7 @@ +{ + "telemetry": { + "notifiedAt": "1733687553266", + "anonymousId": "fed7b37454f8db5b63d7b8256fd09ec9f3bfd677503681a71bc644542179128b", + "salt": "5fc11c95e2b3a15a804fba15b96b54c1" + } +} \ 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 new file mode 100644 index 0000000..53b80ff Binary files /dev/null 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 new file mode 100644 index 0000000..5317fa0 Binary files /dev/null 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..06d49ca 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 new file mode 100644 index 0000000..bd8ea9d Binary files /dev/null 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 new file mode 100644 index 0000000..744a11d Binary files /dev/null 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/export-marker.json b/dsql-app/.local_dist/export-marker.json new file mode 100644 index 0000000..07328d6 --- /dev/null +++ b/dsql-app/.local_dist/export-marker.json @@ -0,0 +1 @@ +{"version":1,"hasExportPathMap":false,"exportTrailingSlash":false,"isNextImageImported":false} \ No newline at end of file diff --git a/dsql-app/.local_dist/images-manifest.json b/dsql-app/.local_dist/images-manifest.json new file mode 100644 index 0000000..71515d6 --- /dev/null +++ b/dsql-app/.local_dist/images-manifest.json @@ -0,0 +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","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..64c2e8a --- /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/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/package.json","../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/next/dist/compiled/babel-packages/packages-bundle.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/caniuse-lite/package.json","../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/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 new file mode 100644 index 0000000..93bf866 --- /dev/null +++ b/dsql-app/.local_dist/next-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/server/next-server.js","../node_modules/next/package.json","../node_modules/next/dist/server/base-server.js","../node_modules/next/dist/server/node-environment.js","../node_modules/next/dist/server/require-hook.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/format-dynamic-import-path.js","../node_modules/next/dist/lib/interop-default.js","../node_modules/next/dist/server/route-kind.js","../node_modules/next/dist/lib/generate-interception-routes-rewrites.js","../node_modules/next/dist/server/serve-static.js","../node_modules/next/dist/lib/format-server-error.js","../node_modules/next/dist/server/image-optimizer.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/revalidate.js","../node_modules/next/dist/server/lib/etag.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/lib/metadata/is-metadata-route.js","../node_modules/next/dist/shared/lib/is-plain-object.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/match-remote-pattern.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/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/pages/module.compiled.js","../node_modules/next/dist/server/route-modules/app-page/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/batcher.js","../node_modules/next/dist/lib/scheduler.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/remove-path-prefix.js","../node_modules/next/dist/shared/lib/router/utils/path-has-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/httpget.js","../node_modules/next/dist/experimental/testmode/fetch.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/send/package.json","../node_modules/next/dist/compiled/is-animated/package.json","../node_modules/next/dist/compiled/content-disposition/package.json","../node_modules/next/dist/compiled/image-size/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/context.js","../node_modules/next/dist/server/web/sandbox/sandbox.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/send/index.js","../node_modules/next/dist/compiled/is-animated/index.js","../node_modules/next/dist/compiled/content-disposition/index.js","../node_modules/next/dist/compiled/image-size/index.js","../node_modules/next/dist/shared/lib/side-effect.js","../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../node_modules/next/dist/shared/lib/head-manager-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/jsonwebtoken/package.json","../node_modules/next/dist/compiled/@hapi/accept/index.js","../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/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/compiled/picomatch/package.json","../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/libvips-cpp.so.42","../node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js","../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/pages-turbo.runtime.prod.js","../node_modules/next/dist/client/components/react-dev-overlay/server/middleware.js","../node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js","../node_modules/next/dist/compiled/next-server/app-page-turbo-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/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/pages/module.js","../node_modules/next/dist/server/route-modules/app-page/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/is-dynamic.js","../node_modules/next/dist/shared/lib/router/utils/sorted-routes.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/composite.js","../node_modules/sharp/lib/resize.js","../node_modules/sharp/lib/operation.js","../node_modules/sharp/lib/channel.js","../node_modules/sharp/lib/colour.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.production.min.js","../node_modules/scheduler/cjs/scheduler.development.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/route-modules/route-module.js","../node_modules/next/dist/server/app-render/app-render.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/pages/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/contexts/entrypoints.js","../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/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/router-context.shared-runtime.js","../node_modules/next/dist/shared/lib/loadable-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/coerce.js","../node_modules/sharp/node_modules/semver/functions/gte.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/client/components/react-dev-overlay/internal/helpers/get-source-map-url.js","../node_modules/next/dist/compiled/strip-ansi/package.json","../node_modules/next/dist/compiled/react-is/package.json","../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/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/nanoid/package.json","../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/server/app-render/types.js","../node_modules/next/dist/client/components/is-next-router-error.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/app-router-announcer.js","../node_modules/next/dist/client/components/redirect-boundary.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/compiled/data-uri-to-buffer/package.json","../node_modules/next/dist/compiled/shell-quote/package.json","../node_modules/next/dist/shared/lib/router/utils/as-path-to-search-params.js","../node_modules/next/dist/compiled/stacktrace-parser/package.json","../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/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/next/dist/client/components/router-reducer/router-reducer.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/functions/parse.js","../node_modules/sharp/node_modules/semver/functions/compare.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/superstruct/package.json","../node_modules/next/dist/compiled/string-hash/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/compiled/react-is/cjs/react-is.production.js","../node_modules/next/dist/compiled/react-is/cjs/react-is.development.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/superstruct/index.cjs","../node_modules/next/dist/compiled/string-hash/index.js","../node_modules/color-convert/conversions.js","../node_modules/color-convert/route.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/parse-options.js","../node_modules/sharp/node_modules/semver/internal/lrucache.js","../node_modules/sharp/node_modules/semver/classes/comparator.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/apply-flight-data.js","../node_modules/next/dist/client/components/router-reducer/fetch-server-response.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/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/client/components/react-dev-overlay/app/ReactDevOverlay.js","../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/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/runtime-error-handler.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/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/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/next/dist/compiled/babel-packages/packages-bundle.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/ppr-navigations.js","../node_modules/next/dist/client/components/router-reducer/apply-router-state-patch-to-tree.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/handle-segment-mismatch.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/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/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/container/StaticIndicator.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/styles/Base.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/console-error.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/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/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/neq.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/caniuse-lite/package.json","../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/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/@swc/helpers/_/_class_private_field_loose_base/package.json","../node_modules/@swc/helpers/_/_class_private_field_loose_key/package.json","../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/Terminal/styles.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/styles.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/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/DialogContent.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/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/package.json b/dsql-app/.local_dist/package.json new file mode 100644 index 0000000..7156107 --- /dev/null +++ b/dsql-app/.local_dist/package.json @@ -0,0 +1 @@ +{"type": "commonjs"} \ No newline at end of file diff --git a/dsql-app/.local_dist/prerender-manifest.json b/dsql-app/.local_dist/prerender-manifest.json new file mode 100644 index 0000000..0577e6f --- /dev/null +++ b/dsql-app/.local_dist/prerender-manifest.json @@ -0,0 +1 @@ +{"version":4,"routes":{"/docs/gui-reference/getting-started":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/kQVuAw7zEt13uMrV3DVu8/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/kQVuAw7zEt13uMrV3DVu8/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/kQVuAw7zEt13uMrV3DVu8/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/kQVuAw7zEt13uMrV3DVu8/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/kQVuAw7zEt13uMrV3DVu8/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/kQVuAw7zEt13uMrV3DVu8/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"]},"/docs/quick-start":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/kQVuAw7zEt13uMrV3DVu8/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/kQVuAw7zEt13uMrV3DVu8/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/kQVuAw7zEt13uMrV3DVu8/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/kQVuAw7zEt13uMrV3DVu8/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/kQVuAw7zEt13uMrV3DVu8/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"]}},"dynamicRoutes":{"/docs/[page]/[sub-page]":{"routeRegex":"^/docs/([^/]+?)/([^/]+?)(?:/)?$","dataRoute":"/_next/data/kQVuAw7zEt13uMrV3DVu8/docs/[page]/[sub-page].json","fallback":false,"dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/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]":{"routeRegex":"^/docs/([^/]+?)(?:/)?$","dataRoute":"/_next/data/kQVuAw7zEt13uMrV3DVu8/docs/[page].json","fallback":false,"dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/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":"c91e08acddfd3ac55ffd432b6f42f37b","previewModeSigningKey":"a4806fdfd511673b3816ad9e8baa1583da07c3ac9f6ee4ef0eaf399d8bbb58cb","previewModeEncryptionKey":"227ab798fc60df4c16433f703e8a2390bea1e4c7b726432b825881e12db46f4e"}} \ No newline at end of file diff --git a/dsql-app/.local_dist/react-loadable-manifest.json b/dsql-app/.local_dist/react-loadable-manifest.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/dsql-app/.local_dist/react-loadable-manifest.json @@ -0,0 +1 @@ +{} \ 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 new file mode 100644 index 0000000..c49a3f3 --- /dev/null +++ b/dsql-app/.local_dist/required-server-files.json @@ -0,0 +1 @@ +{"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 new file mode 100644 index 0000000..e2259f8 --- /dev/null +++ b/dsql-app/.local_dist/routes-manifest.json @@ -0,0 +1 @@ +{"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":"/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/kQVuAw7zEt13uMrV3DVu8/admin.json$"},{"page":"/admin/[user_id]","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/api-keys","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/api\\-keys\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/(?[^/]+?)/api\\-keys\\.json$"},{"page":"/admin/[user_id]/connect","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/connect\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/(?[^/]+?)/connect\\.json$"},{"page":"/admin/[user_id]/databases","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/databases\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/(?[^/]+?)/databases\\.json$"},{"page":"/admin/[user_id]/databases/add-database","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/databases/add\\-database\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/(?[^/]+?)/databases/add\\-database\\.json$"},{"page":"/admin/[user_id]/databases/[single]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/databases/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/(?[^/]+?)/databases/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/databases/[single]/connect","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/databases/([^/]+?)/connect\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/(?[^/]+?)/databases/(?[^/]+?)/connect\\.json$"},{"page":"/admin/[user_id]/databases/[single]/edit-database","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/databases/([^/]+?)/edit\\-database\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/(?[^/]+?)/databases/(?[^/]+?)/edit\\-database\\.json$"},{"page":"/admin/[user_id]/databases/[single]/schema","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/databases/([^/]+?)/schema\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/(?[^/]+?)/databases/(?[^/]+?)/schema\\.json$"},{"page":"/admin/[user_id]/databases/[single]/shell","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/databases/([^/]+?)/shell\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/(?[^/]+?)/databases/(?[^/]+?)/shell\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/databases/([^/]+?)/tables\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/(?[^/]+?)/databases/(?[^/]+?)/tables\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/add-table","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/databases/([^/]+?)/tables/add\\-table\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/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/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/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/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/edit\\-table\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/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/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/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/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries/add\\-entry\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/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/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/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/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/fields\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/fields\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/databases/([^/]+?)/users\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/(?[^/]+?)/databases/(?[^/]+?)/users\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users/add-social-logins","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/databases/([^/]+?)/users/add\\-social\\-logins\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/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/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/databases/([^/]+?)/users/add\\-user\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/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/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/databases/([^/]+?)/users/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/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/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/databases/([^/]+?)/users/([^/]+?)/change\\-password\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/(?[^/]+?)/databases/(?[^/]+?)/users/(?[^/]+?)/change\\-password\\.json$"},{"page":"/admin/[user_id]/media","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/media\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/(?[^/]+?)/media\\.json$"},{"page":"/admin/[user_id]/media/[...folder]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPfolder":"nxtPfolder"},"dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/media/(.+?)\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/(?[^/]+?)/media/(?.+?)\\.json$"},{"page":"/admin/[user_id]/schema","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/schema\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/(?[^/]+?)/schema\\.json$"},{"page":"/admin/[user_id]/settings","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/settings\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/(?[^/]+?)/settings\\.json$"},{"page":"/admin/[user_id]/users","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/users\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/(?[^/]+?)/users\\.json$"},{"page":"/admin/[user_id]/users/add-user","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/users/add\\-user\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/(?[^/]+?)/users/add\\-user\\.json$"},{"page":"/admin/[user_id]/users/databases","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/users/databases\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/(?[^/]+?)/users/databases\\.json$"},{"page":"/admin/[user_id]/users/databases/[database]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPdatabase":"nxtPdatabase"},"dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/users/databases/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/(?[^/]+?)/users/databases/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/users/databases/[database]/[user]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPdatabase":"nxtPdatabase","nxtPuser":"nxtPuser"},"dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/([^/]+?)/users/databases/([^/]+?)/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/admin/(?[^/]+?)/users/databases/(?[^/]+?)/(?[^/]+?)\\.json$"},{"page":"/create-account","dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/create-account.json$"},{"page":"/docs","dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/docs.json$"},{"page":"/docs/[page]","routeKeys":{"nxtPpage":"nxtPpage"},"dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/docs/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/docs/(?[^/]+?)\\.json$"},{"page":"/docs/[page]/[sub-page]","routeKeys":{"nxtPpage":"nxtPpage","nxtPsubpage":"nxtPsub-page"},"dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/docs/([^/]+?)/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/docs/(?[^/]+?)/(?[^/]+?)\\.json$"},{"page":"/email-verification","dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/email-verification.json$"},{"page":"/login","dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/login.json$"},{"page":"/logout","dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/logout.json$"},{"page":"/reset-password","dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/reset-password.json$"},{"page":"/send-password-reset-link","dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/send-password-reset-link.json$"},{"page":"/su","dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/su.json$"},{"page":"/su/backups","dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/su/backups.json$"},{"page":"/su/console","dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/su/console.json$"},{"page":"/su/docs","dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/su/docs.json$"},{"page":"/su/docs/create-page","dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/su/docs/create-page.json$"},{"page":"/su/docs/edit-page","dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/su/docs/edit-page.json$"},{"page":"/su/docs/pages","dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/su/docs/pages.json$"},{"page":"/su/docs/pages/[id]","routeKeys":{"nxtPid":"nxtPid"},"dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/su/docs/pages/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/su/docs/pages/(?[^/]+?)\\.json$"},{"page":"/su/envar","dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/su/envar.json$"},{"page":"/su/error-logs","dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/su/error-logs.json$"},{"page":"/su/load-balancing","dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/su/load-balancing.json$"},{"page":"/su/login","dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/su/login.json$"},{"page":"/su/servers","dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/su/servers.json$"},{"page":"/su/users","dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/su/users.json$"},{"page":"/su/users/new","dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/su/users/new.json$"},{"page":"/su/users/[single]","routeKeys":{"nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/su/users/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/su/users/(?[^/]+?)\\.json$"},{"page":"/unsubscribe","dataRouteRegex":"^/_next/data/kQVuAw7zEt13uMrV3DVu8/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/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/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/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/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/2451.js b/dsql-app/.local_dist/server/chunks/2451.js new file mode 100644 index 0000000..6d0fdf4 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/2451.js @@ -0,0 +1,25 @@ +"use strict";exports.id=2451,exports.ids=[2451],exports.modules={48225:(e,a,t)=>{let l=t(29021),{IncomingMessage:r}=t(81630);e.exports=async function({user:e,message:a,component:t,noMail:r,req:i}){let n=new Date,d=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],a=i.headers["x-real-ip"],t=i.headers["cf-connecting-ip"],l=Array.isArray(e)?e[0]:e?.split(",")[0],r=t||l||a||i.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}`),i?.url&&(r+=` +URL: ${i.url}`),i?.body&&(r+=` +Request Body: ${JSON.stringify(i.body,null,4)}`),d&&(r+=` +IP: ${d}`),r+=` +Date: ${n.toDateString()} +========================================`,l.existsSync("./.tmp/error.log")||l.writeFileSync("./.tmp/error.log","","utf-8");let s=l.readFileSync("./.tmp/error.log","utf-8");l.writeFileSync("./.tmp/error.log",r),l.appendFileSync("./.tmp/error.log",` + + + + +${s}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,a,t)=>{let{scryptSync:l,createDecipheriv:r}=t(55511),{Buffer:i}=t(79428);e.exports=({encryptedString:e,encryptionKey:a,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=a||process.env.DSQL_ENCRYPTION_PASSWORD,d=t||process.env.DSQL_ENCRYPTION_SALT,s=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!d?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let o=r("aes-192-cbc",l(n,d,s),i.alloc(16,0));try{let a=o.update(e,"hex","utf8");return a+=o.final("utf8")}catch(a){return console.log("Error in decrypting =>",a.message),e}}},19261:(e,a,t)=>{let l=t(33873),r=t(29021);t(60818).config({path:"./../.env"});let i=t(3444),n=t(38864),d=t(12452),s=t(35031),o=t(16926),u=t(27836),E=process.argv.find(e=>"--exec"===e);async function c({userId:e,targetDatabase:a,dbSchemaData:t}){let E=e?l.join(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`/user-${e}/main.json`):l.resolve(__dirname,"../../jsonData/dbSchemas/main.json"),N=t||u.parse(r.readFileSync(E,"utf8"));if(!N){console.log("Schema Not Found!");return}for(let t=0;te.tableName===t)[0]){let a=u.filter(e=>e.tableNameOld&&e.tableNameOld===t);a&&a[0]?(console.log("Renaming Table"),await n({queryString:`RENAME TABLE \`${a[0].tableNameOld}\` TO \`${a[0].tableName}\``,database:r})):(console.log(`Dropping Table from ${r}`),await n({queryString:`DROP TABLE \`${t}\``,database:r}),await o({query:"DELETE FROM user_database_tables WHERE user_id = ? AND db_slug = ? AND table_slug = ?",values:[e,f,t],database:"datasquirel"}))}}let _=e?await n({database:"datasquirel",queryString:"SELECT * FROM user_databases WHERE db_full_name = ?",queryValuesArray:[r]}):void 0,S=_?.[0];for(let a=0;a0){if(await s({dbFullName:r,tableName:i,tableNameFull:t.tableFullName,tableInfoArray:o,userId:e,dbSchema:N,tableIndexes:E,tableIndex:a,childDb:l.childDatabase||void 0,recordedDbEntry:S,tableSchema:t}),t.childrenTables&&t.childrenTables[0])for(let a=0;ae.Key_name===d)[0])throw Error("This Index Does not Exist")}catch(e){await n({queryString:`CREATE${a?.match(/fullText/i)?" FULLTEXT":""} INDEX \`${d}\` ON ${i}(${l?.map(e=>e.value).map(e=>`\`${e}\``).join(",")}) COMMENT 'schema_index'`,database:r})}}}if(T?.[0])for(let a=0;a{let l=t(38864),r=t(74941),i=t(57897),n=t(16926);e.exports=async function({dbFullName:e,tableName:a,tableInfoArray:t,dbSchema:d,clone:s,tableSchema:o,recordedDbEntry:u}){let E=i({tableInfoArray:t}),c=[];c.push(`CREATE TABLE IF NOT EXISTS \`${a}\` (`);try{if(!u)throw Error("Recorded Db entry not found!");let e=await l({database:"datasquirel",queryString:"SELECT * FROM user_database_tables WHERE db_id = ? AND table_slug = ?",queryValuesArray:[u.id,o?.tableName]}),a=e?.[0];a?.id||await n({query:"INSERT INTO user_database_tables SET ?",values:{user_id:u.user_id,db_id:u.id,db_slug:u.db_slug,table_name:o?.tableFullName,table_slug:o?.tableName,child_table:o?.childTable?"1":null,child_table_parent_database:o?.childTableDbFullName||null,child_table_parent_table:o?.childTableName||null,date_created:Date(),date_created_code:Date.now(),date_updated:Date(),date_updated_code:Date.now()},database:"datasquirel"})}catch(e){}let N=!1,f=[];for(let e=0;e{let l=e.fieldName,r=e.foreignKey?.destinationTableName,i=e.foreignKey?.destinationTableColumnName,n=e.foreignKey?.cascadeDelete,d=e.foreignKey?.cascadeUpdate,s=e.foreignKey?.foreignKeyName,o=a===f.length-1?"":",";c.push(` CONSTRAINT \`${s}\` FOREIGN KEY (\`${l}\`) REFERENCES \`${r}\`(${i})${n?" ON DELETE CASCADE":""}${d?" ON UPDATE CASCADE":""}${o}`)}),c.push(") ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;");let T=c.join("\n");return await l({queryString:T,database:e})}},16926:(e,a,t)=>{let l=t(29021),r=t(33873),i=t(9973),n=t(21580),d=i({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:n()}});e.exports=async function({query:e,values:a,database:t}){let s;t&&(d=i({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:t,charset:"utf8mb4",ssl:n()}}));try{s=e&&a?await d.query(e,a):await d.query(e),await d.end()}catch(e){if(process.env.FIRST_RUN)return null;console.log("ERROR in dbHandler =>",e.message),console.log(e),console.log(d.config()),l.appendFileSync(r.resolve(__dirname,"../.tmp/dbErrorLogs.txt"),JSON.stringify(e,null,4)+"\n"+Date()+"\n\n\n","utf8"),s=null}return s?JSON.parse(JSON.stringify(s)):null}},74941:e=>{e.exports=function({columnData:e,primaryKeySet:a}){let{fieldName:t,dataType:l,nullValue:r,primaryKey:i,autoIncrement:n,defaultValue:d,defaultValueLiteral:s,foreignKey:o,updatedField:u,onUpdate:E,onUpdateLiteral:c,onDelete:N,onDeleteLiteral:f,defaultField:T,encrypted:b,json:m,newTempField:_,notNullValue:S,originName:A,plainText:p,pattern:y,patternFlags:g,richText:R}=e,h="";return h+=`\`${t}\` ${l}`,r?h+=" DEFAULT NULL":s?h+=` DEFAULT ${s}`:d?String(d).match(/uuid\(\)/i)?h+=" DEFAULT UUID()":h+=` DEFAULT '${d}'`:S&&(h+=" NOT NULL"),c&&(h+=` ON UPDATE ${c}`),i&&!a&&(h+=" PRIMARY KEY",a=!0),n&&(h+=" AUTO_INCREMENT",a=!0),{fieldEntryText:h,newPrimaryKeySet:a||!1}}},3444:(e,a,t)=>{let l=t(16926);e.exports=async function(e){let a;try{a=await l({query:e})}catch(e){console.log("ERROR in noDatabaseDbHandler =>",e.message)}return a||null}},57897:(e,a,t)=>{e.exports=function({tableInfoArray:e}){let a=t(95610),l=e.filter(e=>e.primaryKey);return a.forEach(a=>{let t=e.filter(e=>e.fieldName===a.fieldName);t&&t[0]||("id"!==a.fieldName||l[0]?e.push(a):e.unshift(a))}),e}},35031:(e,a,t)=>{let l=t(29021),r=t(38864),i=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/,n=t(74941),d=t(16926);e.exports=async function({dbFullName:e,tableName:a,tableInfoArray:t,userId:s,dbSchema:o,tableIndexes:u,tableSchema:E,clone:c,childDb:N,tableIndex:f,tableNameFull:T,recordedDbEntry:b}){let m=[],_=t;try{let t=[];if(t.push(`ALTER TABLE \`${a}\``),N)try{if(!b)throw Error("Recorded Db entry not found!");let e=await r({database:"datasquirel",queryString:"SELECT * FROM user_database_tables WHERE db_id = ? AND table_slug = ?",queryValuesArray:[b.id,a]}),t=e?.[0];t?.id||await d({query:"INSERT INTO user_database_tables SET ?",values:{user_id:b.user_id,db_id:b.id,db_slug:b.db_slug,table_name:T,table_slug:a,child_table:E?.childTable?"1":null,child_table_parent_database:E?.childTableDbFullName||null,child_table_parent_table:E.childTableName||null,date_created:Date(),date_created_code:Date.now(),date_updated:Date(),date_updated_code:Date.now()},database:"datasquirel"})}catch(e){}let f=await r({queryString:`SHOW INDEXES FROM \`${a}\``,database:e}),S=await r({queryString:`SHOW COLUMNS FROM \`${a}\``,database:e}),A=[];for(let t=0;te.fieldName===n||e.originName===n);if(d&&d[0]){if(d[0].updatedField&&d[0].fieldName){A.push(d[0].fieldName),await r({queryString:`ALTER TABLE ${a} RENAME COLUMN \`${d[0].originName}\` TO \`${d[0].fieldName}\``,database:e}),console.log(`Column Renamed from "${d[0].originName}" to "${d[0].fieldName}"`);try{let t=o.findIndex(a=>a.dbFullName===e),r=o[t].tables.findIndex(e=>e.tableName===a),i=o[t].tables[r].fields.findIndex(e=>e.fieldName===d[0].fieldName);delete o[t].tables[r].fields[i].originName,delete o[t].tables[r].fields[i].updatedField,_=o[t].tables[r].fields,l.writeFileSync(`${String(process.env.DSQL_USER_DB_SCHEMA_PATH)}/user-${s}/main.json`,JSON.stringify(o),"utf8")}catch(e){console.log("Update table error =>",e.message)}}continue}await r({queryString:`ALTER TABLE ${a} DROP COLUMN \`${n}\``,database:e})}for(let t=0;te.alias===l);if(!e?.[0])throw Error(`This Index(${l}) Has been Deleted!`)}catch(t){await r({queryString:`ALTER TABLE ${a} DROP INDEX \`${l}\``,database:e})}}if(u&&u[0])for(let t=0;te.Key_name===d)[0])throw Error("This Index Does not Exist")}catch(t){await r({queryString:`CREATE${l?.match(/fullText/i)?" FULLTEXT":""} INDEX \`${d}\` ON ${a}(${n?.map(e=>e.value).map(e=>`\`${e}\``).join(",")}) COMMENT 'schema_index'`,database:e})}}let p=await r({queryString:`SELECT CONSTRAINT_NAME FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE CONSTRAINT_SCHEMA = '${e}' AND TABLE_NAME='${a}' AND CONSTRAINT_TYPE='FOREIGN KEY'`,database:e});if(p)for(let t=0;t{if(e.Field===E)return i=a,!0}):null,{fieldEntryText:D}=n({columnData:d});if(h&&h[0]?.Field){let{Field:e,Type:a,Null:t,Key:r,Default:n,Extra:d}=h[0],c=l1)return await r({queryString:y,database:e});return"No Changes Made to Table"}catch(e){return console.log('Error in "updateTable" shell function =>',e.message),"Error in Updating Table"}}},38864:(e,a,t)=>{t(29021);let l=t(16926);e.exports=async function({queryString:e,queryValuesArray:a,database:t,tableSchema:r}){let i;try{i=e&&a&&Array.isArray(a)&&a[0]?await l({query:e,values:a,database:t}):await l({query:e,database:t})}catch(e){console.log("Shell Vardb Error =>",e.message)}return i}},27836:e=>{e.exports={parse:function(e,a){if(e){if("object"==typeof e)return e;if("string"==typeof e)try{return JSON.parse(e,a)}catch(e){return}}},stringify:function(e,a,t){try{return JSON.stringify(e,a,t)}catch(e){return}}}},95610: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"}]')}}; \ 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..cd897c5 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/2996.js @@ -0,0 +1 @@ +"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),n=t(32415),r=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(r.AddDatabaseContext);if(!a)return(0,s.jsx)(i().Fragment,{});let[u,m]=i().useState(null),[g,p]=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:[g&&(0,s.jsx)(n.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:p,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:()=>p});var l=t(8732),i=t(82015),n=t.n(i),r=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:n}){a(!0);let r={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)r.db_image=t;else if("object"==typeof t){let e=await (0,c.A)("/api/addUserMedia",{method:"post",body:{media:[t],folder:r.db_slug.replace(/_/g,"-"),type:"image"}},!0);r.db_image=e?.mediaData[0]?.media_thumbnail_url?e.mediaData[0].media_thumbnail_url:"/images/database-placeholder.png"}}i?.duplicate&&(r.duplicate=i.duplicate,r.keepUpdated=!!s&&s,r.keepDataUpdated=!!l&&l),(0,c.A)("/api/createUserDatabase",{method:"post",body:r},!0).then(e=>{e.success?(0,o.A)().then(()=>{window.location.pathname=`/admin/${n?.id}/databases/${r.db_slug}`}):setTimeout(()=>{a(!1)},1e3)})}var g=t(58403);function p({user:e,dbImage:a,setDbImage:t,database:i,setLoading:c,query:o}){async function p(a){return i?.db_slug===a?null:await (0,r.A)({tableName:"user_databases",columnName:"db_slug",value:a,userId:e.id})}let[h,b]=n().useState(null),[x,f]=n().useState(!1),[_,w]=n().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(()=>{p(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(()=>{p(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)(n().Fragment,{children:(0,l.jsxs)("div",{className:"card col items-start",children:[(0,l.jsx)(g.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),n=t(79100),r=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,r.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,n.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 n=t(55158),r=t(32415);function d({setDbImage:e}){let[a,t]=i().useState(!0),[l,d]=i().useState(null);return(0,s.jsxs)(n.Ay,{title:"user-media-popup",children:[a&&(0,s.jsx)(r.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,n.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)},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:n,dbId:r}){return await (0,s.A)(`/api/checkDuplicateData?tableName=${e}&type=${a}&value=${t}${l?"&dbFullName="+l:""}${n?"&userId="+n:""}${r?"&dbId="+r:""}`)}},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(/\..*/,""),n=document.createElement("canvas"),r=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;n.width=o.naturalWidth{e.src=t}),e(t)}}),s=await new Promise((e,a)=>{n.toBlob(a=>{e(a?.size)},r,.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}},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),n=t(95222),r=t(20048),d=t.n(r),c=t(41658),o=t.n(c),u=t(46437),m=t(58548),g=t(55312);function p(e){let{query:a,duplicateDb:t,user:l}=i().useContext(f),n=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:n})]}),(0,s.jsx)(m.A,{user:l})]}),(0,s.jsx)(g.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 r=(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)(n.A,{head:r,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)(p,{}),(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/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/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/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/4050.js b/dsql-app/.local_dist/server/chunks/4050.js new file mode 100644 index 0000000..c987ceb --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/4050.js @@ -0,0 +1 @@ +"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 s=r(72583),n=r(16570);r(33364);let a=r(33364);r(27825);let o=r(51348),c=r(21339),i=r(20503),l=r(44900);async function u({dbContext:e,paradigm:t,dbFullName:r,tableName:u,data:d,tableSchema:p,duplicateColumnName:_,duplicateColumnValue:S,update:D,encryptionKey:f,encryptionSalt:g,useLocal:h}){let E=!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),y=h?l:E?o:c;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,_&&"string"==typeof _){let s=E?await y(`SELECT * FROM \`${u}\` WHERE \`${_}\`=?`,[S]):await y({paradigm:"Read Only",database:r,queryString:`SELECT * FROM \`${u}\` WHERE \`${_}\`=?`,queryValues:[S]});if(s?.[0]&&!D)return null;if(s&&s[0]&&D)return await a({dbContext:e,paradigm:t,dbFullName:r,tableName:u,data:d,tableSchema:p,encryptionKey:f,encryptionSalt:g,identifierColumnName:_,identifierValue:S||""})}let m=Object.keys(d),L=[],O=[];for(let e=0;ee.fieldName==t):null,o=a&&a[0]?a[0]:null;if(null==r||void 0==r||o?.dataType?.match(/int$/i)&&"string"==typeof r&&!r?.match(/./))continue;o?.encrypted&&(r=i({data:r,encryptionKey:f,encryptionSalt:g}),console.log("DSQL: Encrypted value =>",r)),o?.richText&&(r=s(r,n)),o?.pattern&&!new RegExp(o.pattern,o.patternFlags||"").test(r)&&(console.log("DSQL: Pattern not matched =>",r),r=""),L.push("`"+t+"`"),"object"==typeof r&&(r=JSON.stringify(r)),"number"==typeof r?O.push(String(r)):O.push(r)}catch(e){console.log("DSQL: Error in parsing data keys =>",e.message);continue}d?.date_created||(L.push("`date_created`"),O.push(Date())),d?.date_created_code||(L.push("`date_created_code`"),O.push(Date.now())),d?.date_updated||(L.push("`date_updated`"),O.push(Date())),d?.date_updated_code||(L.push("`date_updated_code`"),O.push(Date.now()));let A=`INSERT INTO \`${u}\` (${L.join(",")}) VALUES (${O.map(()=>"?").join(",")})`;return E?await y(A,O):await y({paradigm:t,database:r,queryString:A,queryValues:O})}e.exports=u},33364:(e,t,r)=>{let s=r(72583),n=r(16570),a=r(51348),o=r(21339),c=r(20503),i=r(44900);async function l({dbContext:e,paradigm:t,dbFullName:r,tableName:l,data:u,tableSchema:d,identifierColumnName:p,identifierValue:_,encryptionKey:S,encryptionSalt:D,useLocal:f}){if(!u||!Object.keys(u).length)return null;let g=!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),h=f?i:g?a:o,E=Object.keys(u),y=[],m=[];for(let e=0;ee.fieldName===t):null,o=a&&a[0]?a[0]:null;if(null==r||void 0==r)continue;o?.richText&&(r=s(r,n)),o?.encrypted&&(r=c({data:r,encryptionKey:S,encryptionSalt:D})),"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"}}),y.push(`\`${t}\`=?`),"number"==typeof r?m.push(String(r)):m.push(r)}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 L=`UPDATE ${l} SET ${y.join(",")} WHERE \`${p}\`=?`;return m.push(_),g?await h(L,m):await h({paradigm:t,database:r,queryString:L,queryValues:m})}e.exports=l},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"]}}},20503:(e,t,r)=>{let{scryptSync:s,createCipheriv:n}=r(55511),{Buffer:a}=r(79428);e.exports=({data:e,encryptionKey:t,encryptionSalt:r})=>{if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let o=t||process.env.DSQL_ENCRYPTION_PASSWORD,c=r||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!c?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=n("aes-192-cbc",s(o,c,i),a.alloc(16,0));try{let t=l.update(e,"utf8","hex");return t+=l.final("hex")}catch(t){return console.log("Error in encrypting =>",t.message),e}}},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:c}){try{return new Promise((i,l)=>{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:r,queryValuesGenerated:c,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: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()}}),c&&Array.isArray(c)&&c[0]?o.query(r,c).then(d).catch(p):o.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}}}},44900:(e,t,r)=>{let s=r(9973),n=r(21580);async function a(...e){let t=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()},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=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)}}; \ 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..5a57193 --- /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"},...s.props}),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/4385.js b/dsql-app/.local_dist/server/chunks/4385.js new file mode 100644 index 0000000..19d19af --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/4385.js @@ -0,0 +1,16 @@ +"use strict";exports.id=4385,exports.ids=[4385],exports.modules={14385:(e,a,t)=>{let s=t(29021),r=t(59474),i=t(33873),l=t(5194),n=t(57638),o=t(20503),d=t(47670),u=t(86041);e.exports=async function({database:e,social_id:a,email:t,social_platform:c,payload:_,invitation:m,supEmail:p,additionalFields:g,useLocal:E}){try{let S=[a.toString(),c],f=await n({database:e||"datasquirel",queryString:"SELECT * FROM users WHERE social_id = ? AND social_login='1' AND social_platform = ? ",queryValuesArray:S,useLocal:E});if(f&&f[0])return await u({user:f[0],social_platform:c,invitation:m,database:e,additionalFields:g,useLocal:E});let y=t||p||null;if(!y)return{success:!1,payload:null,msg:"No Email Present"};let b=`SELECT * FROM users WHERE email='${y}'`,D=await n({database:e||"datasquirel",queryString:b,useLocal:E});if(D&&D[0])return{success:!1,payload:null,msg:"This Email is already taken"};let h=[y,c,a],R=await n({database:e||"datasquirel",queryString:"SELECT * FROM users WHERE email=? AND social_login='1' AND social_platform=? AND social_id=?",queryValuesArray:h,useLocal:E});if(R&&R[0])return await u({user:_,social_platform:c,invitation:m,database:e,additionalFields:g,useLocal:E});let A=o({data:a.toString()}),v={social_login:"1",verification_status:p?"0":"1",password:A};Object.keys(_).forEach(e=>{v[e]=_[e]});let L=await d({dbContext:e?"Dsql User":void 0,paradigm:e?"Full Access":void 0,dbFullName:e||"datasquirel",tableName:"users",duplicateColumnName:"email",duplicateColumnValue:y,data:{...v,email:y},useLocal:E});if(!L?.insertId)return console.log("Social User Failed to insert in 'handleSocialDb.js' backend function =>",L),{success:!1,payload:null,msg:"Social User Failed to insert in 'handleSocialDb.js' backend function"};{e||await l({userId:L.insertId,useLocal:E});let a=`SELECT * FROM users WHERE id='${L.insertId}'`,t=await n({database:e||"datasquirel",queryString:a,useLocal:E});if(!t||!t[0])return{success:!1,payload:null,msg:"User Insertion Failed!"};if(p&&e?.match(/^datasquirel$/)){let e=o({data:JSON.stringify({id:L.insertId,email:p,dateCode:Date.now()})});r({to:p,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 d=process.env.DSQL_STATIC_SERVER_DIR;if(!d)return console.log("Static File ENV not Found!"),{success:!1,payload:null,msg:"Static File ENV not Found!"};if(!e||e?.match(/^datasquirel$/)){let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${L.insertId}`,a=i.join(d,`images/user-images/user-${L.insertId}`);s.mkdirSync(e),s.mkdirSync(a),s.writeFileSync(`${e}/main.json`,JSON.stringify([]),"utf8")}return await u({user:t[0],social_platform:c,invitation:m,database:e,additionalFields:g,useLocal:E})}}catch(e){return console.log("ERROR in 'handleSocialDb.js' backend function =>",e.message),{success:!1,payload:null,msg:e.message}}}},86041:(e,a,t)=>{let s=t(44767),{ServerResponse:r}=t(81630),i=t(57638);async function l({user:e,social_platform:a,invitation:t,database:r,additionalFields:l,useLocal:n}){let o=[e.email,e.social_id,a],d=await i({database:r||"datasquirel",queryString:"SELECT * FROM users WHERE email=? AND social_id=? AND social_platform=?",queryValuesArray:o,useLocal:n});if(!d?.[0])return{success:!1,payload:null};let u=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),c={id:d[0].id,first_name:d[0].first_name,last_name:d[0].last_name,username:d[0].username,user_type:d[0].user_type,email:d[0].email,social_id:d[0].social_id,image:d[0].image,image_thumbnail:d[0].image_thumbnail,verification_status:d[0].verification_status,social_login:d[0].social_login,social_platform:d[0].social_platform,csrf_k:u,logged_in_status:!0,date:Date.now()};return l?.[0]&&l.forEach(e=>{c[e]=d[0][e]}),t&&(!r||r?.match(/^datasquirel$/))&&s({query:t,user:c,useLocal:n}),{success:!0,payload:c,csrf:u}}t(20503),t(31341),e.exports=l},44767:(e,a,t)=>{let s=t(48225),r=t(51348),i=t(47670),l=t(44900);e.exports=async function({query:e,user:a,useLocal:t}){try{let s=t?l:r,{invite:n,database_access:o,priviledge:d,email:u}=e,c=[n,u],_=await s("SELECT date_created_code FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",c);if(!_||!_[0])throw Error("No Invitation Found");let m=[n],p=await s("SELECT first_name,last_name,email FROM users WHERE id=?",m);if(p?.[0]){let e=await s("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[n,a.id,u]);if(e?.[0])console.log("User already added");else{i({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:n,invited_user_id:a.id,database_access:o,first_name:a.first_name,last_name:a.last_name,phone:a.phone,email:a.email,username:a.username,user_type:"admin",user_priviledge:d,image:a.image,image_thumbnail:a.image_thumbnail},useLocal:t});let e=await s("SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[n,u]);if(await s("DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[n,a.id]),e&&e[0]){let s=e[0].db_tables_data.split("|");for(let e=0;e{let s=t(47795),r=t(51348),i=t(45356),l=t(47670),n=t(20503),o=t(44900);e.exports=async function({userId:e,useLocal:a}){try{let t=process.env.DSQL_DB_HOST||"127.0.0.1",d=`dsql_user_${e}`,u=s.generate({length:16,numbers:!0,symbols:!0,uppercase:!0,exclude:"*#.'`\""}),c=n({data:u}),_=`CREATE USER IF NOT EXISTS '${d}'@'127.0.0.1' IDENTIFIED BY '${u}'`;a?await o(_):await i(_);let m="UPDATE users SET mariadb_user = ?, mariadb_host = '127.0.0.1', mariadb_pass = ? WHERE id = ?",p=[d,c,e];a?await o(m,p):await r(m,p),await l({tableName:"mariadb_users",data:{user_id:e,username:d,host:t,password:c,primary:"1",grants:'[{"database":"*","table":"*","privileges":["ALL"]}]'},dbContext:"Master",useLocal:a}),console.log(`User ${e} SQL credentials successfully added.`)}catch(e){console.log("Error in adding SQL user in 'addMariadbUser' function =>",e.message)}}},31341:e=>{e.exports=function(e){let a=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",r=a;e?.userId&&(r+=`user_${e.userId}_`),e?.database&&(r+=`${e.database}_`),r+=t;let i=a;return e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),{keyCookieName:r,csrfCookieName:i+=s}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},59474:(e,a,t)=>{let s=t(29021),r=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:a,text:t,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 d=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=a,s.text=t,s.html=d,n=await r.sendMail(s)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return n}},6061:(e,a,t)=>{let s=t(72835),r=t(30003);e.exports=async function({unparsedResults:e,tableSchema:a}){let t=[];try{for(let i=0;i",a.message),e}}},48225:(e,a,t)=>{let s=t(29021),{IncomingMessage:r}=t(81630);e.exports=async function({user:e,message:a,component:t,noMail:r,req:i}){let l=new Date,n=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],a=i.headers["x-real-ip"],t=i.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],r=t||s||a||i.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}`),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)}}},57638:(e,a,t)=>{t(29021);let s=t(6061),r=t(48225),i=t(51348),l=t(21339),n=t(44900);e.exports=async function({queryString:e,queryValuesArray:a,database:t,tableSchema:o,useLocal:d}){let u;let c=!!t?.match(/^datasquirel$/),_=d?n:c?i:l;try{u=e&&a&&Array.isArray(a)&&a[0]?c?await _(e,a):await _({paradigm:"Full Access",database:t,queryString:e,queryValues:a}):c?await _(e):await _({paradigm:"Full Access",database:t,queryString:e})}catch(e){r({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&o)try{let e=u;return await s({unparsedResults:e,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),r({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,a,t)=>{let{scryptSync:s,createDecipheriv:r}=t(55511),{Buffer:i}=t(79428);e.exports=({encryptedString:e,encryptionKey:a,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let l=a||process.env.DSQL_ENCRYPTION_PASSWORD,n=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!l?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!n?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=r("aes-192-cbc",s(l,n,o),i.alloc(16,0));try{let a=d.update(e,"hex","utf8");return a+=d.final("utf8")}catch(a){return console.log("Error in decrypting =>",a.message),e}}},45356:(e,a,t)=>{let s=t(9973),r=t(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((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}}}}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/45.js b/dsql-app/.local_dist/server/chunks/45.js new file mode 100644 index 0000000..ef37a1f --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/45.js @@ -0,0 +1 @@ +"use strict";exports.id=45,exports.ids=[45],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 d=s(64535),m=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),[x,g]=n().useState(!1);return(0,t.jsxs)("div",{className:"relative w-full max-w-2xl flex-col items-start",children:[x&&(0,t.jsx)(m.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:g}),(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:g,user:e,image:s,query:a})},children:[u&&(0,t.jsx)(d.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"})]})})]})]})}}}; \ 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 new file mode 100644 index 0000000..9204f18 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/5264.js @@ -0,0 +1,16 @@ +"use strict";exports.id=5264,exports.ids=[5264],exports.modules={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}}})},6420:(e,r,s)=>{s(81630);let t=s(51348),n=s(72835),a=s(29021),o=s(31341);async function i(e,r,s,i){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let E=JSON.parse(u);if(!E.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${E.csrf_k}`)))return null;let S=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!S)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!a.existsSync(`${S}/${E.csrf_k}`))return null;if(0==E.verification_status&&!s){let e=await t(`SELECT verification_status FROM users WHERE id='${E.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return E?.date&&Date.now()-E.date>6048e5?null:E}e.exports=i},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=s;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=t}}},48225:(e,r,s)=>{let t=s(29021),{IncomingMessage:n}=s(81630);e.exports=async function({user:e,message:r,component:s,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"],s=a.headers["cf-connecting-ip"],t=Array.isArray(e)?e[0]:e?.split(",")[0],n=s||t||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${s}`;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()} +========================================`,t.existsSync("./.tmp/error.log")||t.writeFileSync("./.tmp/error.log","","utf-8");let l=t.readFileSync("./.tmp/error.log","utf-8");t.writeFileSync("./.tmp/error.log",n),t.appendFileSync("./.tmp/error.log",` + + + + +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,s)=>{let{scryptSync:t,createDecipheriv:n}=s(55511),{Buffer:a}=s(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:s})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=s||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",t(o,i,l),a.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},20503:(e,r,s)=>{let{scryptSync:t,createCipheriv:n}=s(55511),{Buffer:a}=s(79428);e.exports=({data:e,encryptionKey:r,encryptionSalt:s})=>{if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=s||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=n("aes-192-cbc",t(o,i,l),a.alloc(16,0));try{let r=c.update(e,"utf8","hex");return r+=c.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},31819:(e,r,s)=>{let t=s(3444);async function n({username:e,host:r,grants:s,userId:n}){let a=!1;if(console.log("Handling Grants for User =>",e,r),!e)return console.log("No username provided."),a;if(!r)return console.log(`No Host provided. \x1b[35m\`--host\`\x1b[0m flag is required`),a;if(!s)return console.log("No grants Array provided."),a;try{let o=await t(`SELECT * FROM mysql.user WHERE User = '${e}' AND Host = '${r}'`);if(o?.[0]?.User){let a=await t(`SHOW GRANTS FOR '${e}'@'${r}'`);for(let e=0;e",e.message)}return a}e.exports=n},46889:(e,r,s)=>{let t=s(33873);s(60818).config({path:t.resolve(__dirname,"../../../.env")});let n=s(47795),a=s(3444),o=s(16926),i=s(31819),l=s(20503),c=s(72835),u=process.env.DSQL_DB_HOST||"127.0.0.1";async function E({userId:e,mariadbUserHost:r,mariadbUser:s,sqlUserID:t}){let E=await o({query:"SELECT * FROM users"});E?.[0]||process.exit();for(let S=0;S",e.message)}}process.exit()}e.exports=E},16926:(e,r,s)=>{let t=s(29021),n=s(33873),a=s(9973),o=s(21580),i=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:o()}});e.exports=async function({query:e,values:r,database:s}){let l;s&&(i=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:s,charset:"utf8mb4",ssl:o()}}));try{l=e&&r?await i.query(e,r):await i.query(e),await i.end()}catch(e){if(process.env.FIRST_RUN)return null;console.log("ERROR in dbHandler =>",e.message),console.log(e),console.log(i.config()),t.appendFileSync(n.resolve(__dirname,"../.tmp/dbErrorLogs.txt"),JSON.stringify(e,null,4)+"\n"+Date()+"\n\n\n","utf8"),l=null}return l?JSON.parse(JSON.stringify(l)):null}},3444:(e,r,s)=>{let t=s(16926);e.exports=async function(e){let r;try{r=await t({query:e})}catch(e){console.log("ERROR in noDatabaseDbHandler =>",e.message)}return r||null}},51348:(e,r,s)=>{let t=s(9973),n=s(21580),a=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 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,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)}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/5421.js b/dsql-app/.local_dist/server/chunks/5421.js new file mode 100644 index 0000000..1856129 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/5421.js @@ -0,0 +1,2 @@ +"use strict";exports.id=5421,exports.ids=[5421],exports.modules={77802:(e,a,t)=>{t.d(a,{A:()=>F});var l=t(8732),s=t(82015),i=t.n(s);function d({tableFields:e,setTableFields:a,setRefresh:t,setPageRefresh:l,refreshFieldsListRef:s}){let i=e.findIndex(e=>"date_created"===e.fieldName);e.splice(i,0,{newTempField:!0}),a(e),s?.current&&s.current(e=>e+1)}t(80255);var r=t(39897),n=t(32415),o=t(64030),c=t(27825),m=t.n(c);function u({tableFields:e,setTableFields:a,refreshFieldsListRef:t,order:l,field:s,e:i}){let d=m().cloneDeep(e),r=d.findIndex(e=>e.fieldName===s.fieldName);if(r<0)return;let n=d[r];if("up"===l&&r&&r<=1){console.log("Min Reached =>",r);return}if("down"===l&&r&&r>=d.length-7){console.log("Max Reached =>",r);return}try{let e;let a=i.target.closest(".table-field-wrapper"),t=a.previousElementSibling,s=a.nextElementSibling,d=window.DSQL.Flip,r=d.getState(a);"up"===l?(e=d.getState(t),a.parentNode?.insertBefore(a,t)):s?.nextElementSibling&&(e=d.getState(s),a.parentNode?.insertBefore(a,s.nextElementSibling)),d.from(r,{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}d.splice(r,1),"up"===l?d.splice(r-1,0,n):d.splice(r+1,0,n),setTimeout(()=>{a([...d]),t.current&&t.current(e=>e+1)},500)}var p=t(64417),x=t(12097),h=t(63715);function f({field:e,setTargetField:a,fieldIndex:t,tableFields:s,setTableFields:d,refreshFieldsListRef:r,database:n,currentTable:c,user:m,isDelegated:u,setLoading:p}){let[f,g]=i().useState(e),[w,y]=i().useState(!1);return(0,l.jsxs)("div",{className:"flex-col w-full table-field-wrapper"+(w?" shadow-2xl shadow-slate-700/40 relative z-50":""),children:[(0,l.jsxs)("div",{className:"card no-hover items-center w-full py-4"+(w?" 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:a=>{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=>{w?y(!1):y(!0)},style:{color:"var(--slate-500)"},children:"Add Foreign Key"})})]}),w&&!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:d,database:n,currentTable:c,user:m,setActiveEdit:y,activeClonedTable:!0})})]})}var g=t(65388),w=t(84896);function y({fieldIndex:e,setTableFields:a,database:s,user:d,isNewField:r,setLiteralValue:n,tempFieldData:o,setTempFieldData:c,dataTypeValue:m,setDataTypeValue:u,dataType:p,setDataType:x,dataTypeDesc:h,setDataTypeDesc:f}){let y=t(94327);i().useRef();let b=!!p.match(/uuid/i);return(0,l.jsxs)(i().Fragment,{children:[r&&(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 a=e.target,t=a.value.toLowerCase().replace(/ /g,"_");a.value=t},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 a=e.target;x(a.value),a.childNodes.forEach(e=>{e.value===a.value&&f(e.dataset.desc),e.value===a.value&&e.dataset.literal&&n(e.dataset.literal)})},children:y.map((e,a)=>e.name.match(/VARCHAR/)?(0,l.jsx)("option",{value:e.name,"data-desc":e.description,children:e.title+"("+(m||200)+")"},a+1):(0,l.jsx)("option",{value:e.name,"data-desc":e.description,"data-literal":e.valueLiteral||void 0,children:e.title},a+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)(w.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:d,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:t=>{a(a=>a.filter((a,t)=>t!=e))},children:"Cancel"})]})]})}function b({fieldIndex:e,tableFields:a,setTableFields:s,refreshFieldsListRef:d,database:r,currentTable:n,user:o}){t(94327);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({}),w=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:w,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:a=>{a.preventDefault();let t=f.foreignKey;t&&!t.destinationTableName&&delete f.foreignKey;let l=a.target,i=l.new_field_name.value,r=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:r?.match(/VARCHAR/)?`${r}(${u})`:r};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:a,refreshFieldsListRef:t,payload:l}){a(a=>(a.splice(e,1,l),a)),t?.current&&t.current(e=>e+1)}({fieldIndex:e,setTableFields:s,refreshFieldsListRef:d,payload:g})},children:(0,l.jsx)(y,{database:r,fieldIndex:e,isNewField:!0,literalValue:b,refreshFieldsListRef:d,setLiteralValue:v,setTableFields:s,user:o,currentTable:n,tableFields:a,tempFieldData:f,setTempFieldData:g,dataTypeValue:u,setDataTypeValue:p,dataType:c,setDataType:m,dataTypeDesc:x,setDataTypeDesc:h})})})}var v=t(62506),j=t(58526);function N({field:e,setTargetField:a,fieldIndex:t,tableFields:s,setTableFields:d,refreshFieldsListRef:r,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:w,remote_connected:y}=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)&&!w&&!y&&(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"}),!w&&!y&&(0,l.jsx)("div",{className:"button outlined py-1 text-xs gray",onClick:a=>{window.confirm(`Delete "${e.fieldName}"?`)&&d(e=>e.filter((e,a)=>a!=t))},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:a=>{u({tableFields:s,setTableFields:d,refreshFieldsListRef:r,order:"up",field:e,e:a})},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:a=>{u({tableFields:s,setTableFields:d,refreshFieldsListRef:r,order:"down",field:e,e:a})},children:(0,l.jsx)(j.A,{size:20})})]})]})})]}),_&&(0,l.jsx)("div",{className:"w-full",children:(0,l.jsx)(p.A,{fieldIndex:t,tableFields:s,setTableFields:d,refreshFieldsListRef:r,targetField:e,setActiveEdit:T,database:n,currentTable:c,user:x})})]})}var _=t(63014);let T=1;function F({user:e,tableFields:a,setTableFields:t,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 w=h?.delegated,y=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,[A,C]=i().useState(0);o.current=C;let[S,k]=i().useState(!1),[D,$]=i().useState(u||!1);return w&&!y?(0,l.jsx)(l.Fragment,{}):(0,l.jsxs)("section",{className:"paper green",children:[S&&(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:a=>{let t=(0,_.A)({paradigm:"JavaScript",table:x,query:g,user:e});t&&navigator.clipboard.writeText(t).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:a=>{let t=(0,_.A)({paradigm:"TypeScript",table:x,query:g,user:e});t&&navigator.clipboard.writeText(t).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:a&&a[0]&&a.map((i,d)=>(T++,(0,l.jsx)(f,{field:i,fieldIndex:d,setTargetField:s,setTableFields:t,refreshFieldsListRef:o,tableFields:a,database:p,setLoading:k,currentTable:x,user:e,isDelegated:w},T)))}),u&&(0,l.jsx)(r.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:[(!w||w&&y)&&!j&&!F&&(0,l.jsxs)("div",{className:"button secondary outlined",onClick:e=>{D&&$(!1),d({setTableFields:t,tableFields:a,setRefresh:C,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:a=>{if(!x)return;let t=(0,_.A)({paradigm:"JavaScript",table:x,query:g,user:e});t&&navigator.clipboard.writeText(t).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:a=>{if(!x)return;let t=(0,_.A)({paradigm:"TypeScript",table:x,query:g,user:e});t&&navigator.clipboard.writeText(t).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:[a&&a[0]&&a.map((i,d)=>(T++,i.newTempField)?(0,l.jsx)(b,{fieldIndex:d,tableFields:a,setTableFields:t,refreshFieldsListRef:o,database:p,currentTable:x,user:e},T):(0,l.jsx)(N,{field:i,fieldIndex:d,setTargetField:s,setTableFields:t,refreshFieldsListRef:o,tableFields:a,database:p,currentTable:x,confirmedDelegetedUser:h,user:e},T)),(!w||w&&y)&&!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),d({setTableFields:t,tableFields:a,setRefresh:C,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=>{window.confirm("Update Table Fields?")&&(k(!0),m&&m(k))},children:"Update Table Fields"})]})]}),u&&(0,l.jsx)(r.A,{collapse:D,setCollapse:$})]})]})}},63014:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(64030);function s({paradigm:e,table:a,query:t,user:s}){let i="";try{let s=`DSQL_${t.single}_${t.single_table}`.toUpperCase(),r=a.fields;function d(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}`),r.forEach(e=>{let a=e.nullValue?"?":e.fieldName?.match(l.A)?"?":"";n.push(` ${e.fieldName}${a}: ${d(e.dataType||"")};`),o.push(` * @property {${d(e.dataType||"")}${a}} ${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,a,t)=>{t.d(a,{A:()=>s});var l=t(8732);function s({collapse:e,setCollapse:a}){return(0,l.jsxs)("div",{className:"collapse-block"+(e?" -mt-16 -mb-6 pt-10":" mt-0 mb-0 p-0"),onClick:t=>{e?a(!1):a(!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")})]})}t(82015)},64030:(e,a,t)=>{t.d(a,{A:()=>l});let l=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},93342:(e,a,t)=>{t.d(a,{A:()=>d});let l=t(22373),s=t(29021),i=t(33873);function d({userId:e}){try{let a=i.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 l({component:"grabUserSchemaData",message:e.message}),null}}}}; \ 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..e63d15e --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/5674.js @@ -0,0 +1,16 @@ +"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,l)=>{let a=`${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:a,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,a)})]},l)})}(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),l=s(9973),a=s(31976),o=l({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:a()}});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),{IncomingMessage:n}=s(81630);e.exports=async function({user:e,message:t,component:s,noMail:n,req:l}){let a=new Date,o=(()=>{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],n=s||r||t||l.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +Error Message: ${t} +Component: ${s}`;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}`),l?.url&&(n+=` +URL: ${l.url}`),l?.body&&(n+=` +Request Body: ${JSON.stringify(l.body,null,4)}`),o&&(n+=` +IP: ${o}`),n+=` +Date: ${a.toDateString()} +========================================`,r.existsSync("./.tmp/error.log")||r.writeFileSync("./.tmp/error.log","","utf-8");let i=r.readFileSync("./.tmp/error.log","utf-8");r.writeFileSync("./.tmp/error.log",n),r.appendFileSync("./.tmp/error.log",` + + + + +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},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:()=>l});var r=s(8732);s(82015);var n=s(20883);function l(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/615.js b/dsql-app/.local_dist/server/chunks/615.js new file mode 100644 index 0000000..62ab9d2 --- /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,t)=>{let{IncomingMessage:l}=t(81630),a=t(77463),r=t(6505);e.exports=async function(e){let{keyCookieName:s,csrfCookieName:t}=r(),l=`${s}_su`;if(!e.cookies?.[l])return console.log("No auth key cookie found"),null;let n=a({encryptedString:e.cookies[l]});if(!n)return console.log("No user payload found"),null;let i=JSON.parse(n);return i.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):i.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):i}},64987:(e,s,t)=>{t.d(s,{A:()=>y});var l=t(8732),a=t(82015),r=t.n(a),n=t(27912),i=t.n(n),o=t(93353),c=t(20427),d=t(25294),x=t(34479),u=t(2459),h=t(67105),m=t(26628),p=t(80006),g=t(62011);function j(e){let[s,t]=r().useState(!0);return(0,l.jsxs)("aside",{className:"aside"+(s?" mobile-collapsed":" mobile-expanded"),style:{maxWidth:s?"250px":"300px",zIndex:800},children:[(0,l.jsx)(o.A,{adminAside:!0,collapseAsideMobile:s,setCollapseAsideMobile:t}),(0,l.jsx)("hr",{className:"opacity-0 mt-4"}),(0,l.jsxs)("div",{className:"main-links"+(s?" hidden lg:flex":" "),children:[(0,l.jsxs)("a",{href:"/su","data-currentlink":"/su","data-strictlink":"true",children:[(0,l.jsx)(c.A,{size:20}),(0,l.jsx)("span",{children:"Dashboard"})]}),(0,l.jsxs)("a",{href:"/su/users","data-currentlink":"/su/users",children:[(0,l.jsx)(d.A,{size:20}),(0,l.jsx)("span",{children:"Users"})]}),(0,l.jsxs)("a",{href:"/su/error-logs","data-currentlink":"/su/error-logs",children:[(0,l.jsx)(x.A,{size:20}),(0,l.jsx)("span",{children:"Error Logs"})]}),(0,l.jsxs)("a",{href:"/su/servers","data-currentlink":"/su/servers",children:[(0,l.jsx)(u.A,{size:20}),(0,l.jsx)("span",{children:"Servers"})]}),(0,l.jsxs)("a",{href:"/su/load-balancing","data-currentlink":"/su/load-balancing",children:[(0,l.jsx)(h.A,{size:20}),(0,l.jsx)("span",{children:"Load Balancing"})]}),!1,(0,l.jsxs)("a",{href:"/su/backups","data-currentlink":"/su/backups",children:[(0,l.jsx)(m.A,{size:20}),(0,l.jsx)("span",{children:"Backups"})]}),(0,l.jsxs)("a",{href:"/su/console","data-currentlink":"/su/console",children:[(0,l.jsx)(p.A,{size:20}),(0,l.jsx)("span",{children:"Console"})]}),(0,l.jsxs)("a",{href:"/su/envar","data-currentlink":"/su/envar",children:[(0,l.jsx)(g.A,{size:20}),(0,l.jsx)("span",{children:"Env"})]})]})]})}var f=t(34254),b=t(58526);function v({user:e,extraHeaderContent:s}){let[t,a]=r().useState(e||null);return(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");s?.classList.toggle("hidden")},style:{border:"none"},children:(0,l.jsx)("span",{className:"font-semibold text-4xl",children:"✕"})})]}),(0,l.jsx)("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-2 flex-col-reverse xl:flex-row gap-y-6 w-full xl:w-auto py-2",children:(0,l.jsxs)("div",{className:"ml-auto dropdown-wrapper",children:[(0,l.jsx)("div",{className:"bg-white rounded-full overflow-hidden",style:{width:"36px",height:"36px"},children:(0,l.jsx)("img",{src:"/images/user-preset-thumbnail.png",alt:"User Image",width:35,className:"w-full h-full object-cover"})}),(0,l.jsx)("span",{children:(0,l.jsx)("b",{children:"Super User"})}),(0,l.jsx)(b.A,{size:20}),(0,l.jsx)("div",{className:"dropdown",children:(0,l.jsx)("a",{href:"/su/logout",children:"Logout"})})]})})})]}),(0,l.jsx)("div",{className:"ml-2",children:(0,l.jsx)(f.A,{})}),(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");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"})]})]})})}function y({children:e,head:s,user:t}){return(0,l.jsxs)(r().Fragment,{children:[(0,l.jsxs)(i(),{children:[(0,l.jsx)("link",{rel:"stylesheet",href:"/styles/admin.css"}),s]}),(0,l.jsxs)("div",{className:"admin w-full flex items-start gap-0",children:[(0,l.jsx)(j,{}),(0,l.jsxs)("main",{className:"relative",children:[(0,l.jsx)(v,{user:t}),(0,l.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,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.jsxs)("a",{href:"/",className:"flex items-center gap-2",children:[(0,l.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Datasquirel Logo",width:30}),(0,l.jsx)("span",{className:"text-lg font-bold",children:"Datasquirel"})]}),(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"})]})})]})]})]})}t(54896)},6505:e=>{e.exports=function(e){let s=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",l=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=s;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=t;let r=s;return e?.userId&&(r+=`user_${e.userId}_`),e?.database&&(r+=`${e.database}_`),{keyCookieName:a,csrfCookieName:r+=l}}},77463:(e,s,t)=>{let{scryptSync:l,createDecipheriv:a}=t(55511),{Buffer:r}=t(79428);e.exports=({encryptedString:e,encryptionKey:s,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=s||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=a("aes-192-cbc",l(n,i,o),r.alloc(16,0));try{let s=c.update(e,"hex","utf8");return s+=c.final("utf8")}catch(s){return console.log("Error in decrypting =>",s.message),e}}},49407:(e,s,t)=>{t.r(s),t.d(s,{default:()=>r});var l=t(8732);t(82015);var a=t(20883);function r(e){return(0,l.jsxs)(a.Html,{lang:"en",children:[(0,l.jsxs)(a.Head,{children:[(0,l.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,l.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,l.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,l.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,l.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,l.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,l.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,l.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,l.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,l.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,l.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,l.jsx)("meta",{property:"og:type",content:"website"}),(0,l.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,l.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,l.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,l.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,l.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,l.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,l.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,l.jsxs)("body",{children:[(0,l.jsx)(a.Main,{}),(0,l.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/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/7070.js b/dsql-app/.local_dist/server/chunks/7070.js new file mode 100644 index 0000000..144b8e0 --- /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:()=>i});var a=t(8732),r=t(82015),n=t.n(r);function i({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[r,i]=n().useState(s||null);return r&&r[1]?(0,a.jsx)("div",{className:"text-sm mt-2 flex-wrap",children:r.map((e,s,t)=>s===r.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)(n().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)(n().Fragment,{})}},36605:(e,s,t)=>{t.d(s,{A:()=>x});var a=t(8732),r=t(82015),n=t.n(r);t(63715);var i=t(86152),l=t(32415),c=t(26406),o=t(66916),d=t(66918);function x(e){let[s,t]=n().useState(!0),[r,x]=n().useState(0),[m,h]=n().useState(0);return s?(0,a.jsx)("div",{className:"button ghost small-text",style:{height:"30px"},children:(0,a.jsx)(l.A,{width:"15px",position:"relative"})}):(0,a.jsx)(n().Fragment,{children:r?(0,a.jsxs)("div",{className:"button ghost small-text normal-weight p-0",style:{height:"30px",padding:0},onClick:e=>{t(!0),(0,i.A)().then(()=>{h(e=>e+1),t(!1)})},children:[s&&(0,a.jsx)(l.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:r&&r.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),r=t(77463),n=t(29021),i=t(6505);async function l(e,s,t,l){let{keyCookieName:c,csrfCookieName:o}=i();if(!e.cookies?.[c]?.match(/./))return null;let d=r({encryptedString:e.cookies[c]});if(!d)return null;let x=JSON.parse(d);if(!x.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${x.csrf_k}`)))return null;let m=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!m)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${m}/${x.csrf_k}`))return null;if(0==x.verification_status&&!t){let e=await a(`SELECT verification_status FROM users WHERE id='${x.id}'`);e&&e[0]&&1==e[0].verification_status&&s.setHeader("Set-Cookie",["user_refresh=1"])}return x?.date&&Date.now()-x.date>6048e5?null:x}e.exports=l},86152:(e,s,t)=>{t.d(s,{A:()=>r});var a=t(63715);async function r(){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:()=>N});var a=t(8732),r=t(82015),n=t.n(r),i=t(27912),l=t.n(i);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]=n().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)(n().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,r]=n().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 N({children:e,head:s,user:t,productionEnvironment:r,extraHeaderContent:i,aceEditor:o}){return i||(i=(0,a.jsx)(S.A,{})),(0,a.jsxs)(n().Fragment,{children:[(0,a.jsxs)(l(),{children:[s,(0,a.jsxs)(n().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:i}),(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),t(28133)},6505:e=>{e.exports=function(e){let s=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",r=s;e?.userId&&(r+=`user_${e.userId}_`),e?.database&&(r+=`${e.database}_`),r+=t;let n=s;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:r,csrfCookieName:n+=a}}},77463:(e,s,t)=>{let{scryptSync:a,createDecipheriv:r}=t(55511),{Buffer:n}=t(79428);e.exports=({encryptedString:e,encryptionKey:s,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=s||process.env.DSQL_ENCRYPTION_PASSWORD,l=t||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let o=r("aes-192-cbc",a(i,l,c),n.alloc(16,0));try{let s=o.update(e,"hex","utf8");return s+=o.final("utf8")}catch(s){return console.log("Error in decrypting =>",s.message),e}}},67216:(e,s,t)=>{let a=t(9973),r=t(31976),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:r()}});async function i(...e){try{let s=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},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:()=>n});var a=t(8732);t(82015);var r=t(20883);function n(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,{})]})]})}}}; \ 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/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{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{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{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{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/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/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/8370.js b/dsql-app/.local_dist/server/chunks/8370.js new file mode 100644 index 0000000..8279385 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/8370.js @@ -0,0 +1,16 @@ +"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:()=>h});var r=t(8732),l=t(82015),n=t.n(l),o=t(58548),d=t(46437),i=t(63715),c=t(32415),u=t(77826),m=t(87730),p=e([m]);function h(e){let{singleUser:a,database:t,user:s}=n().useContext(m.SingleDbUserContext),l=Object.keys(a).filter(e=>!e.match(/^id$|^date_|^user_id$|^social_|^disk_usage|user_type/)),[p,h]=n().useState(!1),[g,_]=n().useState(a.image);return(0,r.jsxs)(n().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)(d.A,{}),g&&(0,r.jsx)("img",{src:g,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=>{h(!0),window.confirm("Delete this user?")&&(0,i.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)(o.A,{user:s})]}),(0,r.jsxs)("section",{className:"paper",children:[p&&(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(),h(!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 n={dbFullName:t.db_full_name,payload:{...l,id:a.id}};(0,i.A)("/api/updateDbUser",{method:"post",body:n},!0).then(e=>{g?.imageBase64?(g.imageName=`${t.db_slug}-user-${a.id}`,g.mimeType="jpeg",delete g.imageBase64Full,(0,i.A)("/api/addUserMedia",{method:"post",body:{media:[g],folder:t.db_slug.replace(/_/g,"-"),type:"image"}},!0).then(e=>{e&&e.mediaData&&e.mediaData[0]?.media_url?(0,i.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(()=>{h(!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)(u.A,{userImage:g,setUserImage:_,className:"w-full"})]}),(0,r.jsx)("button",{children:"Update User"})]})})]})]})}m=(p.then?(await p)():p)[0],s()}catch(e){s(e)}})},31651:(e,a,t)=>{t(81630);let s=t(77463);e.exports=async function({request:e,databaseSlug:a,user:t,query:r}){try{let l=t.id,n=null;if(!r?.delegated)return{dbUserId:l};let o=r.dbUserId,d=`${process.env.DSQL_USER_DB_PREFIX}${o}_${a}`,i=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${d}`;try{if(!e.cookies?.[i])throw Error("Cookie not present");let t=s({encryptedString:e.cookies[i]});if(!t)throw Error("Invalid Token");if((n=JSON.parse(t)).databaseSlug===a)return{dbUserId:l=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: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(77463),r=t(68743);e.exports=async function({unparsedResults:e,tableSchema:a}){let t=[];try{for(let l=0;l",a.message),e}}},22373:(e,a,t)=>{let s=t(29021),{IncomingMessage:r}=t(81630);e.exports=async function({user:e,message:a,component:t,noMail:r,req:l}){let n=new Date,o=(()=>{if(!l)return null;try{let e=l.headers["x-forwarded-for"],a=l.headers["x-real-ip"],t=l.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],r=t||s||a||l.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}`),l?.url&&(r+=` +URL: ${l.url}`),l?.body&&(r+=` +Request Body: ${JSON.stringify(l.body,null,4)}`),o&&(r+=` +IP: ${o}`),r+=` +Date: ${n.toDateString()} +========================================`,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",r),s.appendFileSync("./.tmp/error.log",` + + + + +${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},90378:(e,a,t)=>{t(29021);let s=t(89545),r=t(22373),l=t(67216),n=t(1231),o=t(88896);e.exports=async function({queryString:e,queryValuesArray:a,database:t,tableSchema:d,useLocal:i}){let c;let u=!!t?.match(/^datasquirel$/),m=i?o:u?l:n;try{c=e&&a&&Array.isArray(a)&&a[0]?u?await m(e,a):await m({paradigm:"Full Access",database:t,queryString:e,queryValues:a}):u?await m(e):await m({paradigm:"Full Access",database:t,queryString:e})}catch(e){r({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&d)try{let e=c;return await s({unparsedResults:e,tableSchema:d})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),r({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},1231:(e,a,t)=>{let s=t(29021);t(33873);let r=t(9973),l=t(31976),n=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:o}){try{return new Promise((d,i)=>{let c=!!e?.match(/full.access|^fa$/i);try{function u(e){n.end(),d(JSON.parse(JSON.stringify(e)))}function m(e){n.end(),d({error:e.message,queryStringGenerated:t,queryValuesGenerated:o,sql:e.sql})}n=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()}}),o&&Array.isArray(o)&&o[0]?n.query(t,o).then(u).catch(m):n.query(t).then(u).catch(m)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),d({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},88896:(e,a,t)=>{let s=t(9973),r=t(31976);async function l(...e){let 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:r()},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 t=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}e.exports=l},87730:(e,a,t)=>{t.a(e,async(e,s)=>{try{t.r(a),t.d(a,{SingleDbUserContext:()=>D,default:()=>x,getServerSideProps:()=>y});var r=t(8732),l=t(82015),n=t.n(l),o=t(95222),d=t(20048),i=t.n(d),c=t(64098),u=t(31651),m=t.n(u),p=t(95248),h=t(67216),g=t.n(h),_=t(90378),b=t.n(_),f=e([c,p]);[c,p]=f.then?(await f)():f;let S=t(29021),D=n().createContext({});function x({user:e,database:a,table:t,dbSchemaData:s,singleUser:l,query:n,confirmedDelegetedUser:d}){let i=`${l.first_name} ${l.last_name} Users | Datasquirel"`,u=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:i}),(0,r.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,r.jsx)(o.A,{head:u,user:e,extraHeaderContent:(0,r.jsx)(c.A,{database:a,query:n,confirmedDelegetedUser:d,user:e}),children:(0,r.jsx)(D.Provider,{value:{user:e,database:a,table:t,dbSchemaData:s,singleUser:l,query:n,confirmedDelegetedUser:d},children:(0,r.jsx)(p.A,{})})})}async function y({req:e,res:a,query:t}){let s=await i()(e,a);if(!s?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let r=await m()({request:e,user:s,databaseSlug:t.single,query:t});if(!r)return{redirect:{destination:"/admin",permanent:!1}};let{dbUserId:l,rootUserId:n}=r,o=await g()(`SELECT * FROM user_databases WHERE user_id='${l}' AND db_slug='${t.single}'`);if(!o||!o[0])return console.log("Database Not Found"),{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}};let d=JSON.parse(S.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${l}/main.json`,"utf-8")),c=(d.filter(e=>e.dbFullName===o[0].db_full_name)[0]?.tables).filter(e=>"users"===e.tableName)[0],u=await b()({database:o[0].db_full_name,queryString:`SELECT * FROM users WHERE id='${t.user}'`,tableSchema:c});return u?.[0]?{props:{user:s,database:o?.[0]||null,table:c||{},dbSchemaData:d,singleUser:u?.[0]||null,query:t,confirmedDelegetedUser:r}}:{redirect:{destination:`/admin/${s?.id}/databases/${o[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/8540.js b/dsql-app/.local_dist/server/chunks/8540.js new file mode 100644 index 0000000..3d56b40 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/8540.js @@ -0,0 +1,16 @@ +"use strict";exports.id=8540,exports.ids=[8540],exports.modules={77619:(e,t,r)=>{let a=r(29021),l=r(72835);e.exports=({key:e,database:t,table:r,user_id:n})=>{if(!e||!n)return null;try{let s=process.env.DSQL_API_KEYS_PATH;if(!s)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let i=l({encryptedString:e}),o=JSON.parse(i||""),u=a.existsSync(`${s}/${o.sign}`);if(String(o.user_id)!==String(n)||!u)return null;if(!o.target_database)return o;if(!t&&o.target_database)return null;let c=o.target_database?.split(",").includes(String(t));if(c&&!o.target_table)return o;if(c&&!r&&o.target_table)return null;if(o.target_table?.split(",").includes(String(r)))return o;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),null}}},64122:(e,t,r)=>{let a=r(51348),l=r(21339),n=r(44900);async function s({dbContext:e,paradigm:t,dbFullName:r,tableName:s,identifierColumnName:i,identifierValue:o,useLocal:u}){try{let c=!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),d=u?n:c?a:l,p=`DELETE FROM ${s} WHERE \`${i}\`=?`;return c?await d(p,[o]):await d({paradigm:t,queryString:p,database:r,queryValues:[o]})}catch(e){return null}}e.exports=s},8238:(e,t,r)=>{r(29021);let a=r(44900),l=r(94709),n=r(96064),s=r(48225),i=r(47670),o=r(33364),u=r(64122),c=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");_=p.tables.filter(t=>t?.tableName===e)[0]}catch(e){}try{if("string"==typeof t){let s=d(t);if(r&&s.match(/^alter|^delete|information_schema|databases|^create/i))throw Error("Wrong Input!");if(f){console.log("Using Local ...");let e=await a(s,m);y=_?c({unparsedResults:e,tableSchema:_}):e}else y=r?await n({queryString:s,queryValuesArray:m?.map(e=>String(e)),database:e,tableSchema:_}):await l({queryString:s,queryValuesArray:m?.map(e=>String(e)),database:e,tableSchema:_})}else if("object"==typeof t){let{data:r,action:a,table:l,identifierColumnName:n,identifierValue:s,update:c,duplicateColumnName:d,duplicateColumnValue:p}=t;switch(a.toLowerCase()){case"insert":y=await i({dbContext:f?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:l,data:r,update:c,duplicateColumnName:d,duplicateColumnValue:p,tableSchema:_}),y?.insertId||(b=Error("Couldn't insert data"));break;case"update":y=await o({dbContext:f?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:l,data:r,identifierColumnName:n,identifierValue:s,tableSchema:_});break;case"delete":y=await u({dbContext:f?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:l,identifierColumnName:n,identifierValue:s,tableSchema:_});break;default:y=null}}}catch(e){s({component:"functions/backend/runQuery",message:e.message}),y=null,e=e.message}return{result:y,error:b}}e.exports=p},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),l=r(6061),n=r(48225);e.exports=async function({queryString:e,database:t,tableSchema:r,queryValuesArray:s,local:i}){let o;try{o=await a({paradigm:"Full Access",database:t,queryString:e,queryValues:s})}catch(e){return n({component:"fullAccessDbHandler",message:e.message}),e.message}if(o&&r){let e=o;return await l({unparsedResults:e,tableSchema:r})}return o||null}},6061:(e,t,r)=>{let a=r(72835),l=r(30003);e.exports=async function({unparsedResults:e,tableSchema:t}){let r=[];try{for(let n=0;n",t.message),e}}},48225:(e,t,r)=>{let a=r(29021),{IncomingMessage:l}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:l,req:n}){let s=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"],a=Array.isArray(e)?e[0]:e?.split(",")[0],l=r||a||t||n.socket.remoteAddress;if(!l)return null;return String(l)}catch(e){return null}})();try{let l=`🚀 SERVER ERROR =========================== +Error Message: ${t} +Component: ${r}`;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}`),n?.url&&(l+=` +URL: ${n.url}`),n?.body&&(l+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),i&&(l+=` +IP: ${i}`),l+=` +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",l),a.appendFileSync("./.tmp/error.log",` + + + + +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},96064:(e,t,r)=>{r(29021);let a=r(48225),l=r(6061),n=r(21339);e.exports=async function({queryString:e,database:t,queryValuesArray:r,tableSchema:s}){let i;try{i=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(!i)return null;{let e=i;return await l({unparsedResults:e,tableSchema:s})}}},72835:(e,t,r)=>{let{scryptSync:a,createDecipheriv:l}=r(55511),{Buffer:n}=r(79428);e.exports=({encryptedString:e,encryptionKey:t,encryptionSalt:r})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=t||process.env.DSQL_ENCRYPTION_PASSWORD,i=r||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=l("aes-192-cbc",a(s,i,o),n.alloc(16,0));try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},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/8613.js b/dsql-app/.local_dist/server/chunks/8613.js new file mode 100644 index 0000000..e7a4930 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/8613.js @@ -0,0 +1,16 @@ +"use strict";exports.id=8613,exports.ids=[8613],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(94327),v=n().useRef(o().cloneDeep(e)),y=n().useRef(),[N,j]=n().useState(e),[b,w]=n().useState(e?.fieldName),[T,_]=n().useState(h),[V,S]=n().useState(f),[F,I]=n().useState("Varchar is simply letters and numbers within the range 0 - 255"),[C,A]=n().useState(e?.richText&&!e?.encrypted?"Yes":"No"),k=!!T?.match(/uuid/i);return(0,l.jsx)("div",{className:"w-full -mt-3 bg-white dark:bg-slate-800 flex-wrap",ref:y,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]=N,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,"_"),j(e=>(e.fieldName=t.value,e.updatedField=!0,e.originName||(e.originName=b),e))},required:!0,defaultValue:b})]}),(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&&I(e.dataset.desc),e.value===a.value&&e.dataset.literal?(N.defaultValueLiteral=e.dataset.literal,N.nullValue=!1):delete N.defaultValueLiteral}),e.dataType=a.value+(a.value.match(/VARCHAR/)?`(${V||200})`:"")},defaultValue:T||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))}),T?.match(/VARCHAR/)&&(0,l.jsx)("input",{type:"number",defaultValue:V||200,className:"px-2",style:{maxWidth:"60px"},max:255,min:5,onChange:t=>{S(t.target.value),e.dataType=T+`(${t.target.value})`}})]})]}),T?.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:N?.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:N?.dataType?.match(/text$/i)?"pointer-events-none opacity-50":"",placeholder:"Default Value",defaultValue:N?.defaultValue?N.defaultValue:N?.nullValue?"NULL":"",onInput:e=>{let t=e.target;N.dataType?.match(/text$/i)||j(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:j,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,y]=n().useState(!1),N=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:()=>{y(!0)},children:"More"}),(0,l.jsx)(h.A,{open:v,onClose:()=>{N.current&&(e=p().cloneDeep(N.current)),y(!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:()=>{y(!1)},children:"Done"})]})})]})}},12097:(e,t,a)=>{a.d(t,{A:()=>o});var l=a(8732),s=a(82015),n=a.n(s),i=a(63715),r=a(32415),d=a(58403);function o({targetField:e,setFieldData:t,tableFields:a,setTableFields:s,database:o,currentTable:u,user:c,setActiveEdit:m,activeClonedTable:x}){let[p,h]=n().useState(!!e?.foreignKey),[f,g]=n().useState(null),[v,y]=n().useState(null),[N,j]=n().useState(null),[b,w]=n().useState(null),[T,_]=n().useState(!1),[V,S]=n().useState("boolean"!=typeof e.foreignKey?.cascadeDelete||e.foreignKey.cascadeDelete),[F,I]=n().useState("boolean"==typeof e.foreignKey?.cascadeUpdate&&e.foreignKey.cascadeUpdate);return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full mt-2 relative",style:{minWidth:"70px"},children:[T&&(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)?(h(!0),t&&t(e=>(e.foreignKey={foreignKeyName:void 0,destinationTableName:void 0,destinationTableColumnName:void 0,cascadeDelete:!0},e))):(h(!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"})]}),p&&f&&(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=f.filter(t=>t.tableName===e.target.value)[0];y(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--"}),f.map((e,t)=>(0,l.jsx)("option",{value:e.tableName,children:e.tableFullName},t+1))]})}),v&&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(w(a),e.target.value?.match(/--/)){t&&t(e=>{let t=e.foreignKey;return t&&(t.destinationTableColumnName=void 0),e});return}let l=`dsql_${o.user_id}_${o.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:c}})}},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))]}),x&&b&&(0,l.jsx)("button",{className:"secondary w-full",onClick:e=>{_(!0),(0,i.A)("/api/updateClonedTableForeignKeys",{method:"post",body:{tableData:u,database:o.db_full_name,dbSlug:o.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(()=>{m&&m(!1)},1e3)})},children:"Add Foreign Key"}),(0,l.jsx)(d.A,{checkBoxValues:[{title:"Cascade Delete",default:V,name:"cascade-delete",onChangeHandler:e=>{S(e.target.checked)}},{title:"Cascade Update",name:"cascade-update",default:F,onChangeHandler:e=>{I(e.target.checked)}}],smallText:!0})]}),x&&(0,l.jsx)("button",{className:"light-gray w-full",onClick:t=>{delete e.foreignKey,m&&m(!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)},58403:(e,t,a)=>{a.d(t,{A:()=>s});var l=a(8732);function s({name:e,checkBoxValues:t,setAlert:a,labelColor:s,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:t.map((t,n)=>{let{payload:d,title:o,onChangeHandler:u,fixed:c,jsx:m}=t,x=t.name?`${e}-${t.name}`:d?e+"-"+d:e;return(0,l.jsxs)("div",{className:"flex items-center"+(t.default&&c?" pointer-events-none":"")+(r?" gap-1 ":" gap-2 ")+(t?.className?t.className:""),children:[(0,l.jsx)("input",{className:"m-0"+(r?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!t.default,name:x,id:x,onChange:e=>{a&&a(null),u&&u(e,t)},value:d,style:{minWidth:"20px"},...t.props}),m||(0,l.jsx)("label",{htmlFor:x,className:"m-0 "+(s||"text-slate-800 dark:text-white/80")+(i||r?" text-base":" text-lg"),children:o})]},n+1)})})}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)},22373:(e,t,a)=>{let l=a(29021),{IncomingMessage:s}=a(81630);e.exports=async function({user:e,message:t,component:a,noMail:s,req:n}){let i=new Date,r=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],t=n.headers["x-real-ip"],a=n.headers["cf-connecting-ip"],l=Array.isArray(e)?e[0]:e?.split(",")[0],s=a||l||t||n.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}`),n?.url&&(s+=` +URL: ${n.url}`),n?.body&&(s+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),r&&(s+=` +IP: ${r}`),s+=` +Date: ${i.toDateString()} +========================================`,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}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},94327: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/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="{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;ne[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;io.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:"";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{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 en.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 //(..|...|..)(..)/`);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..0c27c04 --- /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(94327),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(94327);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(81897),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(22373),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/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/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/9732.js b/dsql-app/.local_dist/server/chunks/9732.js new file mode 100644 index 0000000..d0e7307 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/9732.js @@ -0,0 +1 @@ +"use strict";exports.id=9732,exports.ids=[9732],exports.modules={81897:(e,t,a)=>{a.d(t,{A:()=>_});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 u({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 m({editor:e}){navigator.clipboard.writeText(e?.getContent()||"").then(()=>{alert("Html Copied to Clipboard!")})}var p=a(58150);function f({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)(p.A,{})})]})}function x({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)(f,{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)(u,{editor:e,rootElement:t}))}function y({fieldObject:e,dataTypeSchema:t,richTextEditors:a,entry:r,currentRichTextEditorForms:o,entryPage:c,formButtonId:u}){let[p,f]=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:[!p&&(0,l.jsx)(d.A,{}),p&&(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.",()=>{x({editor:e})}),e.addShortcut("meta+shift+d","Embed Code.",()=>{h({editor:e})}),e.addShortcut("meta+shift+c","Copy Code.",()=>{m({editor:e})}),e.ui.registry.addButton("editCode",{icon:"edit-block",onAction:t=>x({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=>m({editor:e}),tooltip:"Copy HTML"})}({editor:e,formButtonId:u})}}})})]})]})}a(90317),a(63715),a(51859),a(84759);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)(S,{height:r,jsonEditorRef:n})]})})}catch(e){return(0,l.jsx)(s().Fragment,{children:(0,l.jsx)("span",{children:"Editor Load Error"})})}}function S({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 _({fieldObject:e,dataTypeSchema:t,richTextEditors:a,jsonTextEditors:r,entry:d,currentRichTextEditorForms:n,confirmedDelegetedUser:o,query:c,entryPage:u,formButtonId:m}){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 p=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:u,formButtonId:m})});let f=e.json||e.yaml||e.html||e.css||e.javascript||e.shell;return e.dataType?.match(/text$/i)&&f&&!e.plainText&&!e.fieldName?.match(/^pass|^key$/i)&&!e.encrypted||e.encrypted&&f?(0,l.jsx)(j,{fieldObject:e,dataTypeSchema:t,entry:d,entryPage:u,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"})]}),p]})}},84759:(e,t,a)=>{a.d(t,{A:()=>l});function l({editorHTMLElementRef:e,fieldObject:t,setRefresh:a,language:l="javascript",entry:r,jsonTextEditors:s,editorRef:d,readOnly:i,initialContent:n,options:o}){try{if(!ace?.edit||!e.current){console.log("Ace Editor not found!"),setTimeout(()=>{a?.(e=>e+1)},1e3);return}let c=ace.edit(e.current);c.setOptions({mode:"ace/mode/"+l,value:n||(t?.defaultValue?t.defaultValue:t?.fieldName&&r?.[t.fieldName]?(()=>{if("json"!==l)return r[t.fieldName];try{return JSON.stringify(JSON.parse(r[t.fieldName]),null,4)}catch(e){return r[t.fieldName]}})():""),placeholder:"json"==l?"{}":"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,readOnly:i,...o}),d&&t?.fieldName&&(s?.current.push({fieldName:t.fieldName,ref:d}),d.current=c);try{ace.require("ace/ext/beautify").beautify(c.session)}catch(e){}}catch(e){console.log("JSON Editor ERROR =>",e.message)}}},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(77463);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({encryptedString: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(77463),r=a(68743);e.exports=async function({unparsedResults:e,tableSchema:t}){let a=[];try{for(let s=0;s",t.message),e}}},90378:(e,t,a)=>{a(29021);let l=a(89545),r=a(22373),s=a(67216),d=a(1231),i=a(88896);e.exports=async function({queryString:e,queryValuesArray:t,database:a,tableSchema:n,useLocal:o}){let c;let u=!!a?.match(/^datasquirel$/),m=o?i:u?s:d;try{c=e&&t&&Array.isArray(t)&&t[0]?u?await m(e,t):await m({paradigm:"Full Access",database:a,queryString:e,queryValues:t}):u?await m(e):await m({paradigm:"Full Access",database:a,queryString:e})}catch(e){r({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&n)try{let e=c;return await l({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(c)return c;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 u(e){d.end(),n(JSON.parse(JSON.stringify(e)))}function m(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(u).catch(m):d.query(a).then(u).catch(m)}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}}}},88896:(e,t,a)=>{let l=a(9973),r=a(31976);async function s(...e){let t=l({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:r()},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 a=await t.query(...e);return await t.end(),JSON.parse(JSON.stringify(a))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}e.exports=s}}; \ 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{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{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{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/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 new file mode 100644 index 0000000..312a875 --- /dev/null +++ b/dsql-app/.local_dist/server/middleware-build-manifest.js @@ -0,0 +1 @@ +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/6e1653434a830c3f.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-16431e3472e19630.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-16431e3472e19630.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-16431e3472e19630.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-16431e3472e19630.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-16431e3472e19630.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-16431e3472e19630.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-16431e3472e19630.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-16431e3472e19630.js","static/chunks/304-44c7b2ac8964083c.js","static/chunks/5414-7768ca31c29a305e.js","static/chunks/5160-1efe1d072c9abed0.js","static/chunks/3293-7a4e9f4883c0d05d.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-16431e3472e19630.js","static/chunks/304-44c7b2ac8964083c.js","static/chunks/5414-7768ca31c29a305e.js","static/chunks/6836-dd09a62c09c3ff54.js","static/chunks/5160-1efe1d072c9abed0.js","static/chunks/3293-7a4e9f4883c0d05d.js","static/chunks/pages/admin/[user_id]/databases/[single]/schema-c82f423959504ecb.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-16431e3472e19630.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-16431e3472e19630.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-16431e3472e19630.js","static/chunks/304-44c7b2ac8964083c.js","static/chunks/5414-7768ca31c29a305e.js","static/chunks/6836-dd09a62c09c3ff54.js","static/chunks/5160-1efe1d072c9abed0.js","static/chunks/6156-c0700a2f6f1bd267.js","static/chunks/2163-f48cfe454167b0f1.js","static/chunks/6460-d667ba27d72094f8.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]-d9e494a838ba75d5.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-16431e3472e19630.js","static/chunks/304-44c7b2ac8964083c.js","static/chunks/5414-7768ca31c29a305e.js","static/chunks/6836-dd09a62c09c3ff54.js","static/chunks/5160-1efe1d072c9abed0.js","static/chunks/6156-c0700a2f6f1bd267.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table-b417a5b3091f1023.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-16431e3472e19630.js","static/chunks/304-44c7b2ac8964083c.js","static/chunks/5414-7768ca31c29a305e.js","static/chunks/6836-dd09a62c09c3ff54.js","static/chunks/2163-f48cfe454167b0f1.js","static/chunks/6460-d667ba27d72094f8.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-e05ec33798659654.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-16431e3472e19630.js","static/chunks/304-44c7b2ac8964083c.js","static/chunks/5414-7768ca31c29a305e.js","static/chunks/6836-dd09a62c09c3ff54.js","static/chunks/2163-f48cfe454167b0f1.js","static/chunks/6460-d667ba27d72094f8.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-291e6d1d11967b9c.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-16431e3472e19630.js","static/chunks/304-44c7b2ac8964083c.js","static/chunks/6836-dd09a62c09c3ff54.js","static/chunks/2163-f48cfe454167b0f1.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry-f88864e80f4da790.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-16431e3472e19630.js","static/chunks/304-44c7b2ac8964083c.js","static/chunks/5414-7768ca31c29a305e.js","static/chunks/6836-dd09a62c09c3ff54.js","static/chunks/5160-1efe1d072c9abed0.js","static/chunks/6156-c0700a2f6f1bd267.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields-475695cb5696bcc3.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-16431e3472e19630.js","static/chunks/304-44c7b2ac8964083c.js","static/chunks/5414-7768ca31c29a305e.js","static/chunks/5160-1efe1d072c9abed0.js","static/chunks/6156-c0700a2f6f1bd267.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/add-table-3d47573073c23cb1.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-16431e3472e19630.js","static/chunks/304-44c7b2ac8964083c.js","static/chunks/6836-dd09a62c09c3ff54.js","static/chunks/6946-2c3ce8dcf1028efd.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-16431e3472e19630.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-16431e3472e19630.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-16431e3472e19630.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-8cbde90aa6b62c0e.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-16431e3472e19630.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-16431e3472e19630.js","static/chunks/5414-7768ca31c29a305e.js","static/chunks/5160-1efe1d072c9abed0.js","static/chunks/3293-7a4e9f4883c0d05d.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-16431e3472e19630.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-16431e3472e19630.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-16431e3472e19630.js","static/chunks/pages/admin/[user_id]/schema-d42153b702c7ff97.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-16431e3472e19630.js","static/chunks/5414-7768ca31c29a305e.js","static/chunks/5160-1efe1d072c9abed0.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-16431e3472e19630.js","static/chunks/6946-2c3ce8dcf1028efd.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-16431e3472e19630.js","static/chunks/pages/admin/[user_id]/users/add-user-003ea117741448da.js"],"/admin/[user_id]/users/databases":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/9799-16431e3472e19630.js","static/chunks/6946-2c3ce8dcf1028efd.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-16431e3472e19630.js","static/chunks/6946-2c3ce8dcf1028efd.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-16431e3472e19630.js","static/chunks/5580-b9a6e4d2e2b38b6e.js","static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-5ca3917ded98d30c.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-a60477ecac7d84f9.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"],"/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-e593d9c240f25546.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-e593d9c240f25546.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-e593d9c240f25546.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]-d81189b8f14033f8.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 new file mode 100644 index 0000000..33872a3 --- /dev/null +++ b/dsql-app/.local_dist/server/middleware-manifest.json @@ -0,0 +1,6 @@ +{ + "version": 3, + "middleware": {}, + "functions": {}, + "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 new file mode 100644 index 0000000..170749e --- /dev/null +++ b/dsql-app/.local_dist/server/middleware-react-loadable-manifest.js @@ -0,0 +1 @@ +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 new file mode 100644 index 0000000..6392c89 --- /dev/null +++ b/dsql-app/.local_dist/server/pages-manifest.json @@ -0,0 +1 @@ +{"/_document":"pages/_document.js","/_error":"pages/_error.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/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/addUserTable":"pages/api/addUserTable.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/getTablesForUserDatabase":"pages/api/admin/getTablesForUserDatabase.js","/api/admin/getUserData":"pages/api/admin/getUserData.js","/api/admin/grabErrorLogs":"pages/api/admin/grabErrorLogs.js","/api/admin/grabBackups":"pages/api/admin/grabBackups.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":"pages/api/connect.js","/api/connect/verify":"pages/api/connect/verify.js","/api/contact":"pages/api/contact.js","/api/deleteApiKey":"pages/api/deleteApiKey.js","/api/createUserDatabase":"pages/api/createUserDatabase.js","/api/deleteInvitation":"pages/api/deleteInvitation.js","/api/deleteDbUser":"pages/api/deleteDbUser.js","/api/deleteTableEntry":"pages/api/deleteTableEntry.js","/api/deleteMediaFolder":"pages/api/deleteMediaFolder.js","/api/deleteUser":"pages/api/deleteUser.js","/api/deleteUserDatabase":"pages/api/deleteUserDatabase.js","/api/connect/handshake":"pages/api/connect/handshake.js","/api/deleteUserMedia":"pages/api/deleteUserMedia.js","/api/deleteUserTable":"pages/api/deleteUserTable.js","/api/deleteUserUser":"pages/api/deleteUserUser.js","/api/exportDatabase":"pages/api/exportDatabase.js","/api/fetch-entries-basic":"pages/api/fetch-entries-basic.js","/api/downloadDatabaseSchema":"pages/api/downloadDatabaseSchema.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/getUserDatabases":"pages/api/getUserDatabases.js","/api/getUserDatabaseTables":"pages/api/getUserDatabaseTables.js","/api/getUserSchemaData":"pages/api/getUserSchemaData.js","/api/getUserMedia":"pages/api/getUserMedia.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/purgeDb":"pages/api/purgeDb.js","/api/media/getPrivateMedia":"pages/api/media/getPrivateMedia.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/checkSocialId":"pages/api/social-login/utils/checkSocialId.js","/api/social-login/utils/checkEmail":"pages/api/social-login/utils/checkEmail.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/update":"pages/api/sql-users/update.js","/api/sql-users/create":"pages/api/sql-users/create.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/updateClonedTableForeignKeys":"pages/api/updateClonedTableForeignKeys.js","/api/updateDbSchemaDataForUser":"pages/api/updateDbSchemaDataForUser.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]/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]/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]/github-login":"pages/api/user/[user_id]/github-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","/_app":"pages/_app.js","/admin/[user_id]/connect":"pages/admin/[user_id]/connect.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]/edit-database":"pages/admin/[user_id]/databases/[single]/edit-database.js","/admin/[user_id]/databases/[single]/schema":"pages/admin/[user_id]/databases/[single]/schema.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]/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/add-entry":"pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.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":"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]/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/[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/add-database":"pages/admin/[user_id]/databases/add-database.js","/admin/[user_id]/databases/[single]/users":"pages/admin/[user_id]/databases/[single]/users.js","/admin/[user_id]/databases":"pages/admin/[user_id]/databases.js","/admin/[user_id]":"pages/admin/[user_id].js","/admin/[user_id]/schema":"pages/admin/[user_id]/schema.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]/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":"pages/admin/[user_id]/users/databases.js","/admin/[user_id]/users/databases/[database]":"pages/admin/[user_id]/users/databases/[database].js","/admin/[user_id]/users":"pages/admin/[user_id]/users.js","/admin":"pages/admin.js","/api/exportTableData":"pages/api/exportTableData.js","/api/fetch-media":"pages/api/fetch-media.js","/api/addUserMedia":"pages/api/addUserMedia.js","/api/query/[user_id]/add-file":"pages/api/query/[user_id]/add-file.js","/api/query/[user_id]/get-private-file":"pages/api/query/[user_id]/get-private-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","/api/query/[user_id]/delete-file":"pages/api/query/[user_id]/delete-file.js","/blog":"pages/blog.html","/contact":"pages/contact.html","/docs/[page]":"pages/docs/[page].js","/docs/[page]/[sub-page]":"pages/docs/[page]/[sub-page].js","/create-account":"pages/create-account.js","/docs":"pages/docs.js","/":"pages/index.html","/login":"pages/login.js","/privacy":"pages/privacy.html","/email-verification":"pages/email-verification.js","/redirect":"pages/redirect.html","/logout":"pages/logout.js","/su/backups":"pages/su/backups.js","/su/console":"pages/su/console.js","/send-password-reset-link":"pages/send-password-reset-link.js","/reset-password":"pages/reset-password.js","/su/docs/create-page":"pages/su/docs/create-page.js","/su/docs/edit-page":"pages/su/docs/edit-page.js","/su/docs":"pages/su/docs.js","/su/docs/pages/[id]":"pages/su/docs/pages/[id].js","/su/envar":"pages/su/envar.js","/su/docs/pages":"pages/su/docs/pages.js","/su/error-logs":"pages/su/error-logs.js","/su":"pages/su.js","/su/load-balancing":"pages/su/load-balancing.js","/su/servers":"pages/su/servers.js","/su/login":"pages/su/login.js","/su/users":"pages/su/users.js","/su/users/[single]":"pages/su/users/[single].js","/su/users/new":"pages/su/users/new.js","/terms":"pages/terms.html","/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 new file mode 100644 index 0000000..8a06986 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/404.html @@ -0,0 +1 @@ +
\ 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 new file mode 100644 index 0000000..f3e8c38 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/404.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/500.html b/dsql-app/.local_dist/server/pages/500.html new file mode 100644 index 0000000..c8a0c9f --- /dev/null +++ b/dsql-app/.local_dist/server/pages/500.html @@ -0,0 +1 @@ +
\ 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 new file mode 100644 index 0000000..f3e8c38 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/500.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/_app.js b/dsql-app/.local_dist/server/pages/_app.js new file mode 100644 index 0000000..1a36133 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/_app.js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..fe754fe --- /dev/null +++ b/dsql-app/.local_dist/server/pages/_app.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2451.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4312.js","../chunks/4385.js","../chunks/45.js","../chunks/5134.js","../chunks/5212.js","../chunks/5264.js","../chunks/5421.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/7070.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/8540.js","../chunks/8613.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9621.js","../chunks/9732.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 new file mode 100644 index 0000000..46c70d7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/_document.js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..e6d9961 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/_document.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2451.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4312.js","../chunks/4385.js","../chunks/45.js","../chunks/5134.js","../chunks/5212.js","../chunks/5264.js","../chunks/5421.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/7070.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/8540.js","../chunks/8613.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9621.js","../chunks/9732.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 new file mode 100644 index 0000000..b80bb75 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/_error.js @@ -0,0 +1 @@ +"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{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 new file mode 100644 index 0000000..5f21ab1 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/_error.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2451.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4312.js","../chunks/4385.js","../chunks/45.js","../chunks/5134.js","../chunks/5212.js","../chunks/5264.js","../chunks/5421.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/7070.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/8540.js","../chunks/8613.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9621.js","../chunks/9732.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 new file mode 100644 index 0000000..0113c72 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/about.html @@ -0,0 +1 @@ +
\ 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 new file mode 100644 index 0000000..1d1c3f1 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/about.js.nft.json @@ -0,0 +1 @@ +{"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 new file mode 100644 index 0000000..c101692 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin.js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..c403b03 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2451.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4312.js","../chunks/4385.js","../chunks/45.js","../chunks/5134.js","../chunks/5212.js","../chunks/5264.js","../chunks/5421.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/7070.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/8540.js","../chunks/8613.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9621.js","../chunks/9732.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 new file mode 100644 index 0000000..3a6a84d --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id].js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..ef3556f --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id].js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..2ecb58b --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/api-keys.js @@ -0,0 +1 @@ +"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(77463),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{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 new file mode 100644 index 0000000..e98e97e --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/api-keys.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..987ca50 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/connect.js @@ -0,0 +1 @@ +"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(77463),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()({encryptedString:l.mariadb_pass}));let i=await j()("SELECT * FROM mariadb_users WHERE user_id = ?",[r.id]);if(i?.[0])for(let e=0;e{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 new file mode 100644 index 0000000..e98e97e --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/connect.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..8d133a6 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases.js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..e98e97e --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..627b58a --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single].js @@ -0,0 +1,8 @@ +"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:()=>g,routeModule:()=>S,unstable_getServerProps:()=>f,unstable_getServerSideProps:()=>y,unstable_getStaticParams:()=>j,unstable_getStaticPaths:()=>_,unstable_getStaticProps:()=>h});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"),g=(0,l.M)(o,"reportWebVitals"),h=(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),g=t(22603),h=e([n,u]);function _(e){let{database:s,tables:t,setTargetTable:a,confirmedDelegetedUser:i,query:h,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,g.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,g.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:h.delegated,user:_})]}),(0,r.jsx)(u.A,{database:s,tables:t,setTargetTable:a,confirmedDelegetedUser:i,query:h,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]=h.then?(await h)():h,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(77463);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({encryptedString: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),g=t(67216),h=t.n(g),_=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 h()(`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 h()(` + 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 h()(`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 new file mode 100644 index 0000000..bf5335c --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single].js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/7070.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9621.js","../../../../chunks/9732.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 new file mode 100644 index 0000000..2c3f407 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/connect.js @@ -0,0 +1,16 @@ +"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,s)=>{try{r.r(t),r.d(t,{config:()=>x,default:()=>u,getServerSideProps:()=>h,getStaticPaths:()=>m,getStaticProps:()=>p,reportWebVitals:()=>y,routeModule:()=>A,unstable_getServerProps:()=>v,unstable_getServerSideProps:()=>S,unstable_getStaticParams:()=>b,unstable_getStaticPaths:()=>g,unstable_getStaticProps:()=>f});var a=r(63865),l=r(9455),n=r(30671),i=r(49407),o=r(68268),c=r(16905),d=e([c]);c=(d.then?(await d)():d)[0];let u=(0,n.M)(c,"default"),p=(0,n.M)(c,"getStaticProps"),m=(0,n.M)(c,"getStaticPaths"),h=(0,n.M)(c,"getServerSideProps"),x=(0,n.M)(c,"config"),y=(0,n.M)(c,"reportWebVitals"),f=(0,n.M)(c,"unstable_getStaticProps"),g=(0,n.M)(c,"unstable_getStaticPaths"),b=(0,n.M)(c,"unstable_getStaticParams"),v=(0,n.M)(c,"unstable_getServerProps"),S=(0,n.M)(c,"unstable_getServerSideProps"),A=new a.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:i.default},userland:c});s()}catch(e){s(e)}})},85019:(e,t,r)=>{r.d(t,{A:()=>u});var s=r(8732),a=r(82015),l=r.n(a),n=r(13737),i=r(32415),o=r(43656),c=r(63715),d=r(51548);function u({database:e,targetDbSchema:t,user:r}){let[a,d]=l().useState(!1),[u,m]=l().useState(!1),[h,x]=l().useState("pull"),[y,f]=l().useState(null);return a&&y?(0,s.jsx)(p,{payload:y,setConnectPayload:f,setIsValid:d,user:r}):(0,s.jsxs)("form",{onSubmit:r=>{(function({e,setLoading:t,database:r,type:s,targetDbSchema:a,setIsValid:l,setConnectPayload:n}){e.preventDefault();let i=e.target;t(!0);let o={url:i["remote-address"].value,key:i["remote-key"].value,database:r,dbSchema:a,type:s};(0,c.A)("/api/connect/verify",{method:"POST",body:o},!0).then(e=>{e.success?(l(!0),n({...o,remoteDbs:e.payload})):(console.log(e),setTimeout(()=>{t(!1)},2e3))}).finally(()=>{setTimeout(()=>{t(!1)},2e3)})})({e:r,setLoading:m,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,s.jsx)(i.A,{}),h?.match(/pull/)?(0,s.jsx)("div",{className:"info warning",children:"NOTE: This will override your current Database Schema"}):(0,s.jsx)("div",{className:"info green",children:"NOTE: The remote database will be updated with this Database Info"}),(0,s.jsx)("span",{children:"This Feature links this current database to a remote database schema"}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-2 justify-start p-6 bg-slate-100 w-full rounded",children:[(0,s.jsx)("span",{className:"font-bold",children:"Select the connection type"}),(0,s.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,s.jsxs)("div",{children:[h.match(/pull/i)&&(0,s.jsx)("span",{children:"A pull connection imposes the remote database on your current database"}),h.match(/push/i)&&(0,s.jsx)("span",{children:"A push connection imposes your current database to the remote"})]})]}),(0,s.jsx)(n.A,{placeholder:"Eg. https://domain.com",title:"Remote Origin Address",name:"remote-address",required:!0}),(0,s.jsx)(n.A,{placeholder:"Eg. ab81XFogyWe4yc51Agjve52cUQ5XW75m2hLFVzGeoDZT2ob6hC",title:"Remote API key (Full Access)",name:"remote-key",required:!0}),(0,s.jsx)("button",{className:"w-full",children:"Verify Remote"})]})}function p({payload:e,setConnectPayload:t,setIsValid:r,user:a}){let[n,o]=l().useState(!1);if(!e?.remoteDbs?.[0])return(0,s.jsx)("span",{children:"No Databases Available on this Remote server."});let u=e.remoteDbs;if(!u?.[0])return(0,s.jsx)("span",{children:"The only Database Available here is this current Database"});let[p,m]=l().useState(u[0]);return(0,s.jsxs)("form",{onSubmit:t=>{t.preventDefault(),window.confirm("Connect these Databases?")&&(o(!0),(0,c.A)("/api/connect/handshake",{method:"POST",body:{...e,targetDb:p}},!0).then(t=>{t.success?window.location.pathname=`/admin/${a?.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:[n&&(0,s.jsx)(i.A,{}),(0,s.jsxs)("h2",{className:"text-xl font-normal",children:["Select Database from"," ",(0,s.jsx)("b",{className:"text-black dark:text-white",children:e.url})," ","Remote Server"]}),(0,s.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?m(e):alert("Failed to Select Target Database. Please reload the page and try again.")}}}),(0,s.jsxs)("span",{children:["Connection type:"," ",(0,s.jsx)("b",{className:"info inline small "+(e.type?.match(/pull/i)?"warning":"green"),children:e.type})]}),(0,s.jsx)("button",{className:"w-full",children:"Connect Database"}),(0,s.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,s)=>{try{r.d(t,{A:()=>p});var a=r(8732),l=r(82015),n=r.n(l),i=r(46437),o=r(58548);r(63715);var c=r(16905),d=r(85019),u=e([c]);function p(e){let{database:t,user:r,targetDbSchema:s,query:l}=n().useContext(c.DatabaseConnectContext);if(!r)return null;try{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:"",children:[(0,a.jsx)(i.A,{}),(0,a.jsx)("h1",{className:"text-3xl m-0",children:(0,a.jsxs)("span",{children:[t?.db_name," Database Connect"]})})]}),(0,a.jsx)(o.A,{user:r})]}),(0,a.jsx)("div",{className:"paper w-full",children:(0,a.jsxs)("div",{className:"flex max-w-5xl w-full flex-col items-start gap-4",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"Connect External Database Schema"}),(0,a.jsx)(d.A,{database:t,targetDbSchema:s,user:r})]})})]})}catch(e){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:"",children:[(0,a.jsx)(i.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 Connect"})]})]}),(0,a.jsx)(o.A,{user:r})]}),(0,a.jsx)("section",{className:"card",children:(0,a.jsx)("h2",{className:"text-xl m-0",children:"Db connect unavailable at this time."})})]})}}c=(u.then?(await u)():u)[0],s()}catch(e){s(e)}})},43656:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(8732);function a({radioValues:e,name:t,onChangeHandler:r,setAlert:a,flexRow:l,labelColor:n,baseText:i,smallText:o,className:c}){try{return(0,s.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,p=!1===c?c:c||d||null;return(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("input",{className:"m-0"+(i?" w-5 h-5":o?" w-4 h-4":" w-6 h-6"),type:"radio",defaultChecked:!!e.default,name:t,id:t+"_"+p,onChange:t=>{a&&a(null),e.onChangeHandler?e.onChangeHandler(t):r&&r(t)},value:"string"==typeof p?p:void 0}),u||(0,s.jsx)("label",{htmlFor:t+"_"+p,className:"text-lg m-0 "+(n||"text-slate-800")+(i?" text-base":o?" text-sm":" text-lg"),children:d})]},l+1)})})}catch(e){return console.log("ERROR in FormRadio =>",e),(0,s.jsx)("div",{children:"Form Radio Error"})}}r(82015)},51548:(e,t,r)=>{r.d(t,{A:()=>l});var s=r(8732),a=r(58526);function l({selectOptions:e,name:t,onChangeHandler:r,required:l,setAlert:n,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"),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"+(c?" pr-8":""),children:[i&&(0,s.jsxs)("label",{htmlFor:t,children:[i,l?"":" (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:l,onChange:e=>{n&&n(null),e.target.classList.remove("warning"),r&&r(e)},defaultValue:o||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}),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"})}}r(82015)},42178:(e,t,r)=>{var s=r(24994);t.A=void 0;var a=s(r(30887)),l=r(8732);t.A=(0,a.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 s=r(24994);t.A=void 0;var a=s(r(30887)),l=r(8732);t.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")},48987:(e,t,r)=>{var s=r(24994);t.A=void 0;var a=s(r(30887)),l=r(8732);t.A=(0,a.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 s=r(24994);t.A=void 0;var a=s(r(30887)),l=r(8732);t.A=(0,a.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 s=r(24994);t.A=void 0;var a=s(r(30887)),l=r(8732);t.A=(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.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:()=>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"}]])},68743:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},93342:(e,t,r)=>{r.d(t,{A:()=>n});let s=r(22373),a=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(a.readFileSync(t,"utf-8"))}catch(e){return s({component:"grabUserSchemaData",message:e.message}),null}}},89545:(e,t,r)=>{let s=r(77463),a=r(68743);e.exports=async function({unparsedResults:e,tableSchema:t}){let r=[];try{for(let l=0;l",t.message),e}}},22373:(e,t,r)=>{let s=r(29021),{IncomingMessage:a}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:a,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"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=r||s||t||l.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}`),l?.url&&(a+=` +URL: ${l.url}`),l?.body&&(a+=` +Request Body: ${JSON.stringify(l.body,null,4)}`),i&&(a+=` +IP: ${i}`),a+=` +Date: ${n.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",` + + + + +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},90378:(e,t,r)=>{r(29021);let s=r(89545),a=r(22373),l=r(67216),n=r(1231),i=r(88896);e.exports=async function({queryString:e,queryValuesArray:t,database:r,tableSchema:o,useLocal:c}){let d;let u=!!r?.match(/^datasquirel$/),p=c?i:u?l:n;try{d=e&&t&&Array.isArray(t)&&t[0]?u?await p(e,t):await p({paradigm:"Full Access",database:r,queryString:e,queryValues:t}):u?await p(e):await p({paradigm:"Full Access",database:r,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(d&&o)try{let e=d;return await s({unparsedResults:e,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",r,e),a({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(d)return d;else return null}},1231:(e,t,r)=>{let s=r(29021);r(33873);let a=r(9973),l=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:l()}});e.exports=function({paradigm:e,database:t,queryString:r,queryValues:i}){try{return new Promise((o,c)=>{let d=!!e?.match(/full.access|^fa$/i);try{function u(e){n.end(),o(JSON.parse(JSON.stringify(e)))}function p(e){n.end(),o({error:e.message,queryStringGenerated:r,queryValuesGenerated:i,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: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()}}),i&&Array.isArray(i)&&i[0]?n.query(r,i).then(u).catch(p):n.query(r).then(u).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}}}},88896:(e,t,r)=>{let s=r(9973),a=r(31976);async function l(...e){let t=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()},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=l},16905:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.r(t),r.d(t,{DatabaseConnectContext:()=>v,default:()=>g,getServerSideProps:()=>b});var a=r(8732),l=r(82015),n=r.n(l),i=r(95222),o=r(20048),c=r.n(o),d=r(64098),u=r(52497),p=r(93342),m=r(67216),h=r.n(m),x=r(90378),y=r.n(x),f=e([d,u]);[d,u]=f.then?(await f)():f;let v=n().createContext({});function g({user:e,database:t,query:r,targetDbSchema:s}){let l=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"Database Shell | Datasquirel"}),(0,a.jsx)("meta",{name:"description",content:"Database Shell"}),(0,a.jsx)("link",{rel:"stylesheet",href:"/styles/shell-page.css"})]});return(0,a.jsx)(i.A,{head:l,user:e,extraHeaderContent:(0,a.jsx)(d.A,{database:t,query:r,user:e}),aceEditor:!0,children:(0,a.jsx)(v.Provider,{value:{user:e,database:t,targetDbSchema:s,query:r},children:(0,a.jsx)(u.A,{})})})}async function b({req:e,res:t,query:r}){let s=await c()(e,t);if(!s?.logged_in_status||!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let a=await h()(`SELECT * FROM user_databases WHERE user_id='${s.id}' AND db_slug='${r.single}'`);if(!a?.[0])return{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}};if(1==Number(a[0].remote_connected))return{redirect:{destination:`/admin/${s?.id}/databases/${r.single}`,permanent:!1}};await y()({queryString:"SHOW TABLES",database:a[0].db_full_name});let l=(0,p.A)({userId:String(s.id)});if(!l?.[0])return{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}};let n=l.find(e=>e.dbFullName==a[0].db_full_name);return n?{props:{user:s,database:a[0],query:r,targetDbSchema:n}}:{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}}}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")},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),s=t.X(0,[9764,883,8268,7070,5134,3737],()=>r(78725));module.exports=s})(); \ 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 new file mode 100644 index 0000000..ab6af1e --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/connect.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../../chunks/1790.js","../../../../../chunks/2332.js","../../../../../chunks/2414.js","../../../../../chunks/2451.js","../../../../../chunks/2996.js","../../../../../chunks/3247.js","../../../../../chunks/3468.js","../../../../../chunks/3737.js","../../../../../chunks/4050.js","../../../../../chunks/4312.js","../../../../../chunks/4385.js","../../../../../chunks/45.js","../../../../../chunks/5134.js","../../../../../chunks/5212.js","../../../../../chunks/5264.js","../../../../../chunks/5421.js","../../../../../chunks/5674.js","../../../../../chunks/615.js","../../../../../chunks/6154.js","../../../../../chunks/6806.js","../../../../../chunks/7070.js","../../../../../chunks/7488.js","../../../../../chunks/7665.js","../../../../../chunks/7734.js","../../../../../chunks/8153.js","../../../../../chunks/8268.js","../../../../../chunks/8370.js","../../../../../chunks/8540.js","../../../../../chunks/8613.js","../../../../../chunks/883.js","../../../../../chunks/8842.js","../../../../../chunks/9205.js","../../../../../chunks/9621.js","../../../../../chunks/9732.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 new file mode 100644 index 0000000..e7c6bd4 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/edit-database.js @@ -0,0 +1 @@ +"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,8613,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 new file mode 100644 index 0000000..0f8e9d5 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/edit-database.js.nft.json @@ -0,0 +1 @@ +{"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/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-shared/data/dataTypes.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1223.js","../../../../../chunks/1790.js","../../../../../chunks/2332.js","../../../../../chunks/2414.js","../../../../../chunks/2451.js","../../../../../chunks/2996.js","../../../../../chunks/3247.js","../../../../../chunks/3468.js","../../../../../chunks/3737.js","../../../../../chunks/4050.js","../../../../../chunks/4312.js","../../../../../chunks/4385.js","../../../../../chunks/45.js","../../../../../chunks/5134.js","../../../../../chunks/5212.js","../../../../../chunks/5264.js","../../../../../chunks/5421.js","../../../../../chunks/5674.js","../../../../../chunks/615.js","../../../../../chunks/6154.js","../../../../../chunks/6806.js","../../../../../chunks/7070.js","../../../../../chunks/7488.js","../../../../../chunks/7665.js","../../../../../chunks/7734.js","../../../../../chunks/8153.js","../../../../../chunks/8268.js","../../../../../chunks/8370.js","../../../../../chunks/8540.js","../../../../../chunks/8613.js","../../../../../chunks/883.js","../../../../../chunks/8842.js","../../../../../chunks/9205.js","../../../../../chunks/9621.js","../../../../../chunks/9732.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 new file mode 100644 index 0000000..4e764fb --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/schema.js @@ -0,0 +1 @@ +"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:()=>x,getStaticPaths:()=>p,getStaticProps:()=>m,reportWebVitals:()=>g,routeModule:()=>v,unstable_getServerProps:()=>y,unstable_getServerSideProps:()=>S,unstable_getStaticParams:()=>j,unstable_getStaticPaths:()=>f,unstable_getStaticProps:()=>b});var a=s(63865),i=s(9455),n=s(30671),l=s(49407),o=s(68268),c=s(14454),d=e([c]);c=(d.then?(await d)():d)[0];let u=(0,n.M)(c,"default"),m=(0,n.M)(c,"getStaticProps"),p=(0,n.M)(c,"getStaticPaths"),x=(0,n.M)(c,"getServerSideProps"),h=(0,n.M)(c,"config"),g=(0,n.M)(c,"reportWebVitals"),b=(0,n.M)(c,"unstable_getStaticProps"),f=(0,n.M)(c,"unstable_getStaticPaths"),j=(0,n.M)(c,"unstable_getStaticParams"),y=(0,n.M)(c,"unstable_getServerProps"),S=(0,n.M)(c,"unstable_getServerSideProps"),v=new a.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/databases/[single]/schema",pathname:"/admin/[user_id]/databases/[single]/schema",bundlePath:"",filename:""},components:{App:o.default,Document:l.default},userland:c});r()}catch(e){r(e)}})},28545:(e,t,s)=>{s.a(e,async(e,r)=>{try{s.d(t,{A:()=>y});var a=s(8732),i=s(82015),n=s.n(i),l=s(46437),o=s(58548),c=s(14591),d=s(14454);s(58403);var u=s(51548),m=s(61430),p=s(220);s(63715);var x=s(89788),h=s(86571);s(34844);var g=s(59621),b=s(56248),f=s.n(b),j=e([c,d,m,p,x,g]);function y(e){let{database:t,dbSchemaData:s,tables:r,user:i}=n().useContext(d.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]=n().useState(e.tables),[d,p]=n().useState(null),[b,j]=n().useState(e);if(!t)return(0,a.jsx)("span",{children:"No Database Record Found"});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:"",children:[(0,a.jsx)(l.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)(o.A,{user:i})]}),t.active_clone?(0,a.jsx)(h.A,{database:t,user:i}):(0,a.jsx)(a.Fragment,{}),t.remote_connected?(0,a.jsx)(g.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.jsxs)("div",{className:"w-full justify-between",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$/)?p(null):p(e.target.value)}})})]}),(0,a.jsx)(x.A,{content:f().stringify(b,null,4),readOnly:!0,options:{wrap:!0},wrapperProps:{className:"h-[60vh]"}})]})}),(0,a.jsx)(m.A,{})]})}catch(e){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:"",children:[(0,a.jsx)(l.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)(o.A,{user:i})]}),(0,a.jsx)("section",{children:(0,a.jsx)("h2",{className:"text-xl m-0",children:"Error in generating Preview"})})]})}}[c,d,m,p,x,g]=j.then?(await j)():j,r()}catch(e){r(e)}})},220:(e,t,s)=>{s.a(e,async(e,t)=>{try{s(8732),s(82015);var r=s(14454),a=e([r]);r=(a.then?(await a)():a)[0],t()}catch(e){t(e)}})},61430:(e,t,s)=>{s.a(e,async(e,r)=>{try{s.d(t,{A:()=>m});var a=s(8732),i=s(82015),n=s.n(i),l=s(46437),o=s(58548),c=s(14591),d=s(14454);s(58403),s(51548),s(63715);var u=e([c,d]);function m(e){let{database:t,dbSchemaData:s,tables:r,user:i}=n().useContext(d.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)(n().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)(l.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)(o.A,{user:i})]}),(0,a.jsx)("section",{className:"card",children:(0,a.jsx)("h2",{className:"text-xl m-0",children:"Error in generating Tables Table"})})]})}}[c,d]=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:()=>p});var a=s(8732),i=s(82015),n=s.n(i),l=s(74157),o=s(46437),c=s(58548);s(55312);var d=s(14591),u=s(86571),m=e([l,d]);function p(e){let{database:t,user:s}=n().useContext(l.EditDatabaseContext);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:"",children:[(0,a.jsx)(o.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)(d.A,{})]})}[l,d]=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),i=s(82015),n=s.n(i),l=s(32415),o=s(74157),c=s(56987),d=s(12042),u=e([o]);function m(e){let{user:t,dbImage:s,setDbImage:r,database:i}=n().useContext(o.EditDatabaseContext),[u,m]=n().useState(!1);return n().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)(l.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:i,setLoading:m}):(0,a.jsx)("span",{children:"No User and Database Image present"})]}),t&&s&&r?(0,a.jsx)(d.A,{user:t,dbImage:s,setDbImage:r,database:i}):(0,a.jsx)("span",{children:"Database Image could not be rendered"})]})})}o=(u.then?(await u)():u)[0],r()}catch(e){r(e)}})},84759:(e,t,s)=>{s.d(t,{A:()=>r});function r({editorHTMLElementRef:e,fieldObject:t,setRefresh:s,language:r="javascript",entry:a,jsonTextEditors:i,editorRef:n,readOnly:l,initialContent:o,options:c}){try{if(!ace?.edit||!e.current){console.log("Ace Editor not found!"),setTimeout(()=>{s?.(e=>e+1)},1e3);return}let d=ace.edit(e.current);d.setOptions({mode:"ace/mode/"+r,value:o||(t?.defaultValue?t.defaultValue:t?.fieldName&&a?.[t.fieldName]?(()=>{if("json"!==r)return a[t.fieldName];try{return JSON.stringify(JSON.parse(a[t.fieldName]),null,4)}catch(e){return a[t.fieldName]}})():""),placeholder:"json"==r?"{}":"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,readOnly:l,...c}),n&&t?.fieldName&&(i?.current.push({fieldName:t.fieldName,ref:n}),n.current=d);try{ace.require("ace/ext/beautify").beautify(d.session)}catch(e){}}catch(e){console.log("JSON Editor ERROR =>",e.message)}}},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:n,title:l,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"),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:[l&&(0,r.jsxs)("label",{htmlFor:t,children:[l,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=>{n&&n(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}),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.a(e,async(e,r)=>{try{s.d(t,{A:()=>c});var a=s(8732);s(63715);var i=s(82015),n=s.n(i);s(84759);var l=s(75979),o=e([l]);function c({editorRef:e,content:t,readOnly:s,language:r="javascript",options:i,wrapperProps:o}){try{let e=n().useRef(),[t,s]=n().useState(0);return(0,a.jsx)("div",{...o,ref:e,className:(0,l.twMerge)("ace-editor-wrapper w-full h-full minimal-scrollbars all-children",o?.className)})}catch(e){return(0,a.jsx)(n().Fragment,{children:(0,a.jsx)("h2",{className:"text-xl m-0",children:"Editor Error"})})}}l=(o.then?(await o)():o)[0],r()}catch(e){r(e)}})},34844:(e,t,s)=>{s.d(t,{A:()=>c});var r=s(8732),a=s(82015),i=s.n(a),n=s(11790),l=s.n(n),o=s(96089);function c({content:e,language:t,style:s,showCopy:a}){let[n,c]=i().useState(!1),d=()=>{c(!0)},u=(e,t)=>{"clickaway"!==t&&c(!1)},m=(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:u,children:"✖"})}),p={};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,...p}:p,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(()=>{d()})},children:(0,r.jsx)(o.A,{className:"text-white",size:20})}),(0,r.jsx)(l(),{open:n,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]})})]})}},68743:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},93342:(e,t,s)=>{s.d(t,{A:()=>n});let r=s(22373),a=s(29021),i=s(33873);function n({userId:e}){try{let t=i.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:"grabUserSchemaData",message:e.message}),null}}},89545:(e,t,s)=>{let r=s(77463),a=s(68743);e.exports=async function({unparsedResults:e,tableSchema:t}){let s=[];try{for(let i=0;i",t.message),e}}},90378:(e,t,s)=>{s(29021);let r=s(89545),a=s(22373),i=s(67216),n=s(1231),l=s(88896);e.exports=async function({queryString:e,queryValuesArray:t,database:s,tableSchema:o,useLocal:c}){let d;let u=!!s?.match(/^datasquirel$/),m=c?l:u?i:n;try{d=e&&t&&Array.isArray(t)&&t[0]?u?await m(e,t):await m({paradigm:"Full Access",database:s,queryString:e,queryValues:t}):u?await m(e):await m({paradigm:"Full Access",database:s,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(d&&o)try{let e=d;return await r({unparsedResults:e,tableSchema:o})}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),i=s(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:s,queryValues:l}){try{return new Promise((o,c)=>{let d=!!e?.match(/full.access|^fa$/i);try{function u(e){n.end(),o(JSON.parse(JSON.stringify(e)))}function m(e){n.end(),o({error:e.message,queryStringGenerated:s,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: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]?n.query(s,l).then(u).catch(m):n.query(s).then(u).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}}}},88896:(e,t,s)=>{let r=s(9973),a=s(31976);async function i(...e){let t=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()},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 s=await t.query(...e);return await t.end(),JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}e.exports=i},56248:e=>{e.exports={parse:function(e,t){if(e){if("object"==typeof e)return e;if("string"==typeof e)try{return JSON.parse(e,t)}catch(e){return}}},stringify:function(e,t,s){try{return JSON.stringify(e,t,s)}catch(e){return}}}},74157:(e,t,s)=>{s.a(e,async(e,r)=>{try{s.r(t),s.d(t,{EditDatabaseContext:()=>f,default:()=>g,getServerSideProps:()=>b});var a=s(8732),i=s(82015),n=s.n(i),l=s(95222),o=s(20048),c=s.n(o),d=s(42105),u=s(22622),m=s(64098),p=s(67216),x=s.n(p),h=e([u,m]);[u,m]=h.then?(await h)():h;let f=n().createContext({});function g({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"})]}),[i,o]=n().useState(t.db_image);return(0,a.jsx)(l.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:i,setDbImage:o},children:[(0,a.jsx)(u.A,{}),(0,a.jsx)(d.A,{setDbImage:o})]})})}async function b({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 x()(`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),i=s(82015),n=s.n(i),l=s(95222),o=s(20048),c=s.n(o),d=s(64098),u=s(28545),m=s(90378),p=s.n(m),x=s(67216),h=s.n(x),g=s(93342),b=e([d,u]);[d,u]=b.then?(await b)():b;let y=n().createContext({});function f({user:e,database:t,query:s,dbSchemaData:r,tables:i}){let o=(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]=n().useState(t.db_image);return(0,a.jsx)(l.A,{head:o,user:e,extraHeaderContent:(0,a.jsx)(d.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:i},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 i=await p()({queryString:"SHOW TABLES",database:a[0].db_full_name}),n=(0,g.A)({userId:r.id});if(!n)throw Error("User schema data not found!");return{props:{user:r,database:a[0],query:s,dbSchemaData:n||[],tables:i&&i[0]?i.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,8613,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 new file mode 100644 index 0000000..ce0b4cd --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/schema.js.nft.json @@ -0,0 +1 @@ +{"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/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-shared/data/dataTypes.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1223.js","../../../../../chunks/1790.js","../../../../../chunks/2332.js","../../../../../chunks/2414.js","../../../../../chunks/2451.js","../../../../../chunks/2996.js","../../../../../chunks/3247.js","../../../../../chunks/3468.js","../../../../../chunks/3737.js","../../../../../chunks/4050.js","../../../../../chunks/4312.js","../../../../../chunks/4385.js","../../../../../chunks/45.js","../../../../../chunks/5134.js","../../../../../chunks/5212.js","../../../../../chunks/5264.js","../../../../../chunks/5421.js","../../../../../chunks/5674.js","../../../../../chunks/615.js","../../../../../chunks/6154.js","../../../../../chunks/6806.js","../../../../../chunks/7070.js","../../../../../chunks/7488.js","../../../../../chunks/7665.js","../../../../../chunks/7734.js","../../../../../chunks/8153.js","../../../../../chunks/8268.js","../../../../../chunks/8370.js","../../../../../chunks/8540.js","../../../../../chunks/8613.js","../../../../../chunks/883.js","../../../../../chunks/8842.js","../../../../../chunks/9205.js","../../../../../chunks/9621.js","../../../../../chunks/9732.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 new file mode 100644 index 0000000..6ce0f21 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/shell.js @@ -0,0 +1,16 @@ +"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:()=>v,default:()=>d,getServerSideProps:()=>h,getStaticPaths:()=>m,getStaticProps:()=>p,reportWebVitals:()=>f,routeModule:()=>_,unstable_getServerProps:()=>b,unstable_getServerSideProps:()=>S,unstable_getStaticParams:()=>g,unstable_getStaticPaths:()=>x,unstable_getStaticProps:()=>y});var s=r(63865),l=r(9455),n=r(30671),i=r(49407),o=r(68268),u=r(92557),c=e([u]);u=(c.then?(await c)():c)[0];let d=(0,n.M)(u,"default"),p=(0,n.M)(u,"getStaticProps"),m=(0,n.M)(u,"getStaticPaths"),h=(0,n.M)(u,"getServerSideProps"),v=(0,n.M)(u,"config"),f=(0,n.M)(u,"reportWebVitals"),y=(0,n.M)(u,"unstable_getStaticProps"),x=(0,n.M)(u,"unstable_getStaticPaths"),g=(0,n.M)(u,"unstable_getStaticParams"),b=(0,n.M)(u,"unstable_getServerProps"),S=(0,n.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:i.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),n=r.n(l),i=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}=n().useContext(u.DatabaseShellContext);if(!l)return null;try{let e=n().useRef(),r=n().useRef(),[u,m]=n().useState(!1),[h,v]=n().useState(!1),[f,y]=n().useState(0);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:"",children:[(0,s.jsx)(i.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?v(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)(n().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)(i.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),n=r(90627),i=r(34043),o=r.n(i),u=r(7299),c=r.n(u),d=r(61919),p=r.n(d),m=r(34350),h=r.n(m),v=r(71757),f=r.n(v),y=r(79005),x=r.n(y),g=r(45561),b=r.n(g);r(63715);let S=(0,n.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)(f(),{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"})})}}},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)),n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=f(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 n=s?Object.getOwnPropertyDescriptor(e,l):null;n&&(n.get||n.set)?Object.defineProperty(a,l,n):a[l]=e[l]}return a.default=e,r&&r.set(e,a),a}(r(82015));a(r(29825));var i=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 v=["className","component","elevation","square","variant"];function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=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=n.forwardRef(function(e,t){let r=(0,p.useDefaultProps)({props:e,name:"MuiPaper"}),{className:a,component:n="div",elevation:o=1,square:u=!1,variant:c="elevation"}=r,d=(0,s.default)(r,v),m=(0,l.default)({},r,{component:n,elevation:o,square:u,variant:c}),f=y(m);return(0,h.jsx)(x,(0,l.default)({as:n,ownerState:m,className:(0,i.default)(f.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 n.default}});var l=a(r(75075)),n=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 a={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var n=s?Object.getOwnPropertyDescriptor(e,l):null;n&&(n.get||n.set)?Object.defineProperty(a,l,n):a[l]=e[l]}return a.default=e,r&&r.set(e,a),a}(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(n).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(s,e))&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[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 n=(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=n},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$/},93342:(e,t,r)=>{r.d(t,{A:()=>n});let a=r(22373),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:"grabUserSchemaData",message:e.message}),null}}},89545:(e,t,r)=>{let a=r(77463),s=r(68743);e.exports=async function({unparsedResults:e,tableSchema:t}){let r=[];try{for(let l=0;l",t.message),e}}},22373:(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",` + + + + +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},90378:(e,t,r)=>{r(29021);let a=r(89545),s=r(22373),l=r(67216),n=r(1231),i=r(88896);e.exports=async function({queryString:e,queryValuesArray:t,database:r,tableSchema:o,useLocal:u}){let c;let d=!!r?.match(/^datasquirel$/),p=u?i:d?l:n;try{c=e&&t&&Array.isArray(t)&&t[0]?d?await p(e,t):await p({paradigm:"Full Access",database:r,queryString:e,queryValues:t}):d?await p(e):await p({paradigm:"Full Access",database:r,queryString:e})}catch(e){s({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&o)try{let e=c;return await a({unparsedResults:e,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",r,e),s({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},1231:(e,t,r)=>{let a=r(29021);r(33873);let s=r(9973),l=r(31976),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,charset:"utf8mb4",ssl:l()}});e.exports=function({paradigm:e,database:t,queryString:r,queryValues:i}){try{return new Promise((o,u)=>{let c=!!e?.match(/full.access|^fa$/i);try{function d(e){n.end(),o(JSON.parse(JSON.stringify(e)))}function p(e){n.end(),o({error:e.message,queryStringGenerated:r,queryValuesGenerated:i,sql:e.sql})}n=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()}}),i&&Array.isArray(i)&&i[0]?n.query(r,i).then(d).catch(p):n.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}}}},88896:(e,t,r)=>{let a=r(9973),s=r(31976);async function l(...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=l},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),n=r.n(l),i=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),v=r.n(h),f=r(93342),y=e([c,m]);[c,m]=y.then?(await y)():y;let b=n().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]=n().useState(t.db_image);return(0,s.jsx)(i.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 v()(`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}),n=(0,f.A)({userId:a.id});if(!n)throw Error("User schema data not found!");return{props:{user:a,database:s[0],query:r,dbSchemaData:n||[],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 new file mode 100644 index 0000000..ab6af1e --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/shell.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../../chunks/1790.js","../../../../../chunks/2332.js","../../../../../chunks/2414.js","../../../../../chunks/2451.js","../../../../../chunks/2996.js","../../../../../chunks/3247.js","../../../../../chunks/3468.js","../../../../../chunks/3737.js","../../../../../chunks/4050.js","../../../../../chunks/4312.js","../../../../../chunks/4385.js","../../../../../chunks/45.js","../../../../../chunks/5134.js","../../../../../chunks/5212.js","../../../../../chunks/5264.js","../../../../../chunks/5421.js","../../../../../chunks/5674.js","../../../../../chunks/615.js","../../../../../chunks/6154.js","../../../../../chunks/6806.js","../../../../../chunks/7070.js","../../../../../chunks/7488.js","../../../../../chunks/7665.js","../../../../../chunks/7734.js","../../../../../chunks/8153.js","../../../../../chunks/8268.js","../../../../../chunks/8370.js","../../../../../chunks/8540.js","../../../../../chunks/8613.js","../../../../../chunks/883.js","../../../../../chunks/8842.js","../../../../../chunks/9205.js","../../../../../chunks/9621.js","../../../../../chunks/9732.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 new file mode 100644 index 0000000..c208f52 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables.js @@ -0,0 +1,8 @@ +"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(77463);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({encryptedString: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 new file mode 100644 index 0000000..ba9819a --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../../chunks/1790.js","../../../../../chunks/2332.js","../../../../../chunks/2414.js","../../../../../chunks/2451.js","../../../../../chunks/2996.js","../../../../../chunks/3247.js","../../../../../chunks/3468.js","../../../../../chunks/3737.js","../../../../../chunks/4050.js","../../../../../chunks/4312.js","../../../../../chunks/4385.js","../../../../../chunks/45.js","../../../../../chunks/5134.js","../../../../../chunks/5212.js","../../../../../chunks/5264.js","../../../../../chunks/5421.js","../../../../../chunks/5674.js","../../../../../chunks/615.js","../../../../../chunks/6154.js","../../../../../chunks/6806.js","../../../../../chunks/7070.js","../../../../../chunks/7488.js","../../../../../chunks/7665.js","../../../../../chunks/7734.js","../../../../../chunks/8153.js","../../../../../chunks/8268.js","../../../../../chunks/8370.js","../../../../../chunks/8540.js","../../../../../chunks/8613.js","../../../../../chunks/883.js","../../../../../chunks/8842.js","../../../../../chunks/9205.js","../../../../../chunks/9621.js","../../../../../chunks/9732.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 new file mode 100644 index 0000000..de23c8e --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table].js @@ -0,0 +1 @@ +"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(94327),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(22373),s=a.n(l),r=a(67216),i=a.n(r),n=a(31651),d=a.n(n),u=a(93342),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():(console.log("Res",e),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(22373),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?.table)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,8613,5421,9732,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 new file mode 100644 index 0000000..95110da --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table].js.nft.json @@ -0,0 +1 @@ +{"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/@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-shared/data/dataTypes.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1223.js","../../../../../../chunks/1790.js","../../../../../../chunks/2332.js","../../../../../../chunks/2414.js","../../../../../../chunks/2451.js","../../../../../../chunks/2996.js","../../../../../../chunks/3247.js","../../../../../../chunks/3468.js","../../../../../../chunks/3737.js","../../../../../../chunks/4050.js","../../../../../../chunks/4312.js","../../../../../../chunks/4385.js","../../../../../../chunks/45.js","../../../../../../chunks/5134.js","../../../../../../chunks/5212.js","../../../../../../chunks/5264.js","../../../../../../chunks/5421.js","../../../../../../chunks/5674.js","../../../../../../chunks/615.js","../../../../../../chunks/6154.js","../../../../../../chunks/6806.js","../../../../../../chunks/7070.js","../../../../../../chunks/7488.js","../../../../../../chunks/7665.js","../../../../../../chunks/7734.js","../../../../../../chunks/8153.js","../../../../../../chunks/8268.js","../../../../../../chunks/8370.js","../../../../../../chunks/8540.js","../../../../../../chunks/8613.js","../../../../../../chunks/883.js","../../../../../../chunks/8842.js","../../../../../../chunks/9205.js","../../../../../../chunks/9621.js","../../../../../../chunks/9732.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 new file mode 100644 index 0000000..a5a0da0 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js @@ -0,0 +1 @@ +"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(77463);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({encryptedString: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():(console.log("Res",e),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(93342),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,8613,5421],()=>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 new file mode 100644 index 0000000..99c7565 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js.nft.json @@ -0,0 +1 @@ +{"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/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-shared/data/dataTypes.json","../../../../../../../../../package.json","../../../../../../../../package.json","../../../../../../../chunks/1223.js","../../../../../../../chunks/1790.js","../../../../../../../chunks/2332.js","../../../../../../../chunks/2414.js","../../../../../../../chunks/2451.js","../../../../../../../chunks/2996.js","../../../../../../../chunks/3247.js","../../../../../../../chunks/3468.js","../../../../../../../chunks/3737.js","../../../../../../../chunks/4050.js","../../../../../../../chunks/4312.js","../../../../../../../chunks/4385.js","../../../../../../../chunks/45.js","../../../../../../../chunks/5134.js","../../../../../../../chunks/5212.js","../../../../../../../chunks/5264.js","../../../../../../../chunks/5421.js","../../../../../../../chunks/5674.js","../../../../../../../chunks/615.js","../../../../../../../chunks/6154.js","../../../../../../../chunks/6806.js","../../../../../../../chunks/7070.js","../../../../../../../chunks/7488.js","../../../../../../../chunks/7665.js","../../../../../../../chunks/7734.js","../../../../../../../chunks/8153.js","../../../../../../../chunks/8268.js","../../../../../../../chunks/8370.js","../../../../../../../chunks/8540.js","../../../../../../../chunks/8613.js","../../../../../../../chunks/883.js","../../../../../../../chunks/8842.js","../../../../../../../chunks/9205.js","../../../../../../../chunks/9621.js","../../../../../../../chunks/9732.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 new file mode 100644 index 0000000..c32d7bf --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js @@ -0,0 +1,17 @@ +"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)},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$/},22373:(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",` + + + + +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},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")},94327: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,9732,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 new file mode 100644 index 0000000..249aabb --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js.nft.json @@ -0,0 +1 @@ +{"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/@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-shared/data/dataTypes.json","../../../../../../../../../package.json","../../../../../../../../package.json","../../../../../../../chunks/1223.js","../../../../../../../chunks/1790.js","../../../../../../../chunks/2332.js","../../../../../../../chunks/2414.js","../../../../../../../chunks/2451.js","../../../../../../../chunks/2996.js","../../../../../../../chunks/3247.js","../../../../../../../chunks/3468.js","../../../../../../../chunks/3737.js","../../../../../../../chunks/4050.js","../../../../../../../chunks/4312.js","../../../../../../../chunks/4385.js","../../../../../../../chunks/45.js","../../../../../../../chunks/5134.js","../../../../../../../chunks/5212.js","../../../../../../../chunks/5264.js","../../../../../../../chunks/5421.js","../../../../../../../chunks/5674.js","../../../../../../../chunks/615.js","../../../../../../../chunks/6154.js","../../../../../../../chunks/6806.js","../../../../../../../chunks/7070.js","../../../../../../../chunks/7488.js","../../../../../../../chunks/7665.js","../../../../../../../chunks/7734.js","../../../../../../../chunks/8153.js","../../../../../../../chunks/8268.js","../../../../../../../chunks/8370.js","../../../../../../../chunks/8540.js","../../../../../../../chunks/8613.js","../../../../../../../chunks/883.js","../../../../../../../chunks/8842.js","../../../../../../../chunks/9205.js","../../../../../../../chunks/9621.js","../../../../../../../chunks/9732.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 new file mode 100644 index 0000000..c68e910 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js @@ -0,0 +1,17 @@ +"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(94327);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)},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$/},22373:(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",` + + + + +${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},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(22373),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")},94327: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,9732,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 new file mode 100644 index 0000000..435dd40 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js.nft.json @@ -0,0 +1 @@ +{"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/@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-shared/data/dataTypes.json","../../../../../../../../../../package.json","../../../../../../../../../package.json","../../../../../../../../chunks/1223.js","../../../../../../../../chunks/1790.js","../../../../../../../../chunks/2332.js","../../../../../../../../chunks/2414.js","../../../../../../../../chunks/2451.js","../../../../../../../../chunks/2996.js","../../../../../../../../chunks/3247.js","../../../../../../../../chunks/3468.js","../../../../../../../../chunks/3737.js","../../../../../../../../chunks/4050.js","../../../../../../../../chunks/4312.js","../../../../../../../../chunks/4385.js","../../../../../../../../chunks/45.js","../../../../../../../../chunks/5134.js","../../../../../../../../chunks/5212.js","../../../../../../../../chunks/5264.js","../../../../../../../../chunks/5421.js","../../../../../../../../chunks/5674.js","../../../../../../../../chunks/615.js","../../../../../../../../chunks/6154.js","../../../../../../../../chunks/6806.js","../../../../../../../../chunks/7070.js","../../../../../../../../chunks/7488.js","../../../../../../../../chunks/7665.js","../../../../../../../../chunks/7734.js","../../../../../../../../chunks/8153.js","../../../../../../../../chunks/8268.js","../../../../../../../../chunks/8370.js","../../../../../../../../chunks/8540.js","../../../../../../../../chunks/8613.js","../../../../../../../../chunks/883.js","../../../../../../../../chunks/8842.js","../../../../../../../../chunks/9205.js","../../../../../../../../chunks/9621.js","../../../../../../../../chunks/9732.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 new file mode 100644 index 0000000..51eecee --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js @@ -0,0 +1,16 @@ +"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(81897),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(94327);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)}})},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))})}},22373:(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",` + + + + +${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},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(22373),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")},94327: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,9732],()=>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 new file mode 100644 index 0000000..f4032d3 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js.nft.json @@ -0,0 +1 @@ +{"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/@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-shared/data/dataTypes.json","../../../../../../../../../../package.json","../../../../../../../../../package.json","../../../../../../../../chunks/1223.js","../../../../../../../../chunks/1790.js","../../../../../../../../chunks/2332.js","../../../../../../../../chunks/2414.js","../../../../../../../../chunks/2451.js","../../../../../../../../chunks/2996.js","../../../../../../../../chunks/3247.js","../../../../../../../../chunks/3468.js","../../../../../../../../chunks/3737.js","../../../../../../../../chunks/4050.js","../../../../../../../../chunks/4312.js","../../../../../../../../chunks/4385.js","../../../../../../../../chunks/45.js","../../../../../../../../chunks/5134.js","../../../../../../../../chunks/5212.js","../../../../../../../../chunks/5264.js","../../../../../../../../chunks/5421.js","../../../../../../../../chunks/5674.js","../../../../../../../../chunks/615.js","../../../../../../../../chunks/6154.js","../../../../../../../../chunks/6806.js","../../../../../../../../chunks/7070.js","../../../../../../../../chunks/7488.js","../../../../../../../../chunks/7665.js","../../../../../../../../chunks/7734.js","../../../../../../../../chunks/8153.js","../../../../../../../../chunks/8268.js","../../../../../../../../chunks/8370.js","../../../../../../../../chunks/8540.js","../../../../../../../../chunks/8613.js","../../../../../../../../chunks/883.js","../../../../../../../../chunks/8842.js","../../../../../../../../chunks/9205.js","../../../../../../../../chunks/9621.js","../../../../../../../../chunks/9732.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 new file mode 100644 index 0000000..6cbcb89 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=6569,e.ids=[636,6569],e.modules={8409:(e,t,s)=>{s.a(e,async(e,r)=>{try{s.r(t),s.d(t,{config:()=>g,default:()=>c,getServerSideProps:()=>b,getStaticPaths:()=>m,getStaticProps:()=>p,reportWebVitals:()=>x,routeModule:()=>D,unstable_getServerProps:()=>S,unstable_getServerSideProps:()=>y,unstable_getStaticParams:()=>f,unstable_getStaticPaths:()=>_,unstable_getStaticProps:()=>h});var a=s(63865),l=s(9455),i=s(30671),n=s(49407),o=s(68268),u=s(48292),d=e([u]);u=(d.then?(await d)():d)[0];let c=(0,i.M)(u,"default"),p=(0,i.M)(u,"getStaticProps"),m=(0,i.M)(u,"getStaticPaths"),b=(0,i.M)(u,"getServerSideProps"),g=(0,i.M)(u,"config"),x=(0,i.M)(u,"reportWebVitals"),h=(0,i.M)(u,"unstable_getStaticProps"),_=(0,i.M)(u,"unstable_getStaticPaths"),f=(0,i.M)(u,"unstable_getStaticParams"),S=(0,i.M)(u,"unstable_getServerProps"),y=(0,i.M)(u,"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:u});r()}catch(e){r(e)}})},73972:(e,t,s)=>{s.d(t,{A:()=>u});var r=s(8732),a=s(82015),l=s.n(a),i=s(63715);s(58548);var n=s(55158),o=s(32415);function u({targetTable:e,database:t}){let[s,a]=l().useState(!1);return(0,r.jsxs)(n.Ay,{title:"delete-table-confirmation",children:[s&&(0,r.jsx)(o.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,i.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,n.fs)()},children:(0,r.jsx)("span",{children:"Cancel"})})]})]})}},59844:(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(48292),o=s(46437),u=s(58548),d=s(94010),c=s(77802),p=s(86571),m=s(65241),b=s(59621),g=e([n,d,b]);function x(e){let{user:t,database:s,table:r,tableFields:l,setTableFields:g,setTargetField:x,refreshFieldsListRef:h,updateTableAfterFieldsUpdateFunction:_,query:f,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),r?.childTable&&r.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/${s.db_slug}/tables/${r.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:[r.tableFullName,(0,a.jsx)("div",{className:"absolute -top-4 -right-4",children:(0,a.jsx)(d.A,{slugText:r.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/${s.db_slug}/tables/${r.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)(u.A,{confirmedDelegetedUser:f?.delegated,user:t})]}),s.active_clone?(0,a.jsx)(p.A,{database:s,user:t}):(0,a.jsx)(a.Fragment,{}),s.remote_connected?(0,a.jsx)(b.p,{database:s}):(0,a.jsx)(a.Fragment,{}),(0,a.jsx)(m.A,{table:r,database:s,user:t}),(0,a.jsx)(c.A,{user:t,tableFields:l,setTableFields:g,setTargetField:x,refreshFieldsListRef:h,updateTable:!0,updateTableAfterFieldsUpdateFunction:_,database:s,confirmedDelegetedUser:S,query:f,table:r})]})}[n,d,b]=g.then?(await g)():g,r()}catch(e){r(e)}})},65241:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(8732),a=s(82015),l=s.n(a);function i({table:e,database:t,user:s,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,r.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,r.jsx)("a",{href:`/admin/${s?.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,r.jsx)("b",{children:e.childTableName})})," ","in"," ",n?(0,r.jsxs)("span",{children:["this current database(",(0,r.jsx)("b",{children:t.db_name}),")."]}):(0,r.jsxs)(l().Fragment,{children:[(0,r.jsx)("a",{href:`/admin/${s?.id}/databases/${i}`,target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,r.jsx)("b",{children:i})}),(0,r.jsx)("span",{children:"database."})]})," ",t?.active_clone?"":"Only Foreign keys and Entries can be updated."]}):(0,r.jsx)(l().Fragment,{})}},31651:(e,t,s)=>{s(81630);let r=s(77463);e.exports=async function({request:e,databaseSlug:t,user:s,query:a}){try{let l=s.id,i=null;if(!a?.delegated)return{dbUserId:l};let n=a.dbUserId,o=`${process.env.DSQL_USER_DB_PREFIX}${n}_${t}`,u=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${o}`;try{if(!e.cookies?.[u])throw Error("Cookie not present");let s=r({encryptedString:e.cookies[u]});if(!s)throw Error("Invalid Token");if((i=JSON.parse(s)).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,s)=>{s.d(t,{A:()=>p}),s(81630);var r=s(22373),a=s.n(r),l=s(67216),i=s.n(l),n=s(31651),o=s.n(n),u=s(93342),d=s(90378),c=s.n(d);async function p({req:e,user:t,query:s}){try{let r=await o()({request:e,user:t,databaseSlug:s.single,query:s});if(!r)return null;let{dbUserId:a}=r,l=await i()(`SELECT * FROM user_databases WHERE user_id='${a}' AND db_slug='${s.single}'`);if(!l?.[0])return null;let n=(0,u.A)({userId:a});if(!n)throw Error("DB Schema not found!");let d=n.filter(e=>e.dbFullName===l[0].db_full_name)[0]?.tables,p=d?.filter(e=>e.tableName===s.single_table)[0],m=await i()(`SELECT * FROM user_database_tables WHERE user_id='${a}' AND db_id='${l[0].id}' AND table_slug='${s.single_table}'`),b=await c()({database:l[0].db_full_name,queryString:`SELECT * FROM ${p?.tableName} ORDER BY id DESC LIMIT 10`,tableSchema:p}),g=await c()({database:l[0].db_full_name,queryString:`SELECT COUNT(id) AS count FROM ${p?.tableName}`,tableSchema:p});if(r.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:r||null,database:l[0]||null,dbSchemaData:n||null,entries:b||null,entriesCount:g?.[0]?.count||0,query:s,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,s)=>{s.d(t,{A:()=>l});var r=s(27825),a=s(63715);function l({query:e,table:t,database:s,dbSchemaData:l,tableFields:i,tableIndexes:n,setLoading:o}){let u=[...l];try{let l=u.findIndex(e=>e.dbFullName===s.db_full_name),d=u[l].tables.findIndex(e=>e.tableName===t.tableName);if(u[l].tables[d].fields=i?r.cloneDeep(i):[],u[l].tables[d].indexes=n?r.cloneDeep(n):[],u[l].tables[d].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:u,database:s.db_slug,table:t,delegated:e?.delegated}},!0).then(e=>{e?.success?window.location.reload():(console.log("Res",e),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,s)=>{let r=s(77463),a=s(68743);e.exports=async function({unparsedResults:e,tableSchema:t}){let s=[];try{for(let l=0;l",t.message),e}}},90378:(e,t,s)=>{s(29021);let r=s(89545),a=s(22373),l=s(67216),i=s(1231),n=s(88896);e.exports=async function({queryString:e,queryValuesArray:t,database:s,tableSchema:o,useLocal:u}){let d;let c=!!s?.match(/^datasquirel$/),p=u?n:c?l:i;try{d=e&&t&&Array.isArray(t)&&t[0]?c?await p(e,t):await p({paradigm:"Full Access",database:s,queryString:e,queryValues:t}):c?await p(e):await p({paradigm:"Full Access",database:s,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(d&&o)try{let e=d;return await r({unparsedResults:e,tableSchema:o})}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((o,u)=>{let d=!!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:s,queryValuesGenerated:n,sql:e.sql})}i=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: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(c).catch(p):i.query(s).then(c).catch(p)}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}}}},88896:(e,t,s)=>{let r=s(9973),a=s(31976);async function l(...e){let t=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()},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 s=await t.query(...e);return await t.end(),JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}e.exports=l},48292:(e,t,s)=>{s.a(e,async(e,r)=>{try{s.r(t),s.d(t,{TableFieldsContext:()=>S,default:()=>_,getServerSideProps:()=>f});var a=s(8732),l=s(82015),i=s.n(l),n=s(20048),o=s.n(n),u=s(95222),d=s(73972),c=s(64098),p=s(59844),m=s(94933),b=s(22373),g=s.n(b),x=s(92728),h=e([c,p]);[c,p]=h.then?(await h)():h;let S=i().createContext({});function _({user:e,database:t,table:s,dbSchemaData:r,query:l,confirmedDelegetedUser:n}){let o=`${s.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"})]}),[g,x]=i().useState(s.fields),[h,_]=i().useState(null),f=i().useRef();return(0,a.jsx)(u.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:s,dbSchemaData:r,targetField:h,setTargetField:_,refreshFieldsListRef:f,tableFields:g,setTableFields:x,updateTableAfterFieldsUpdateFunction:function(e){(0,m.A)({query:l,table:s,database:t,dbSchemaData:r,tableFields:g,tableIndexes:s.indexes,setLoading:e})},query:l,confirmedDelegetedUser:n},children:[(0,a.jsx)(p.A,{}),(0,a.jsx)(d.A,{database:t})]})})}async function f({req:e,res:t,query:s}){let r=await o()(e,t);if(!r?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};try{let t=await (0,x.A)({req:e,query:s,user:r});if(!t||!t?.table)throw Error("Data Fetching Error!");return{props:{user:r,...t}}}catch(e){return g()({component:"fields-page-component/getServerSideProps/catch-error",message:e.message,user:r}),{props:{user:r,database:null,table:null}}}}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")},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 s=e=>t(t.s=e),r=t.X(0,[9764,883,7734,8268,7070,5134,3737,9621,8613,5421],()=>s(8409));module.exports=r})(); \ 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 new file mode 100644 index 0000000..99c7565 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js.nft.json @@ -0,0 +1 @@ +{"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/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-shared/data/dataTypes.json","../../../../../../../../../package.json","../../../../../../../../package.json","../../../../../../../chunks/1223.js","../../../../../../../chunks/1790.js","../../../../../../../chunks/2332.js","../../../../../../../chunks/2414.js","../../../../../../../chunks/2451.js","../../../../../../../chunks/2996.js","../../../../../../../chunks/3247.js","../../../../../../../chunks/3468.js","../../../../../../../chunks/3737.js","../../../../../../../chunks/4050.js","../../../../../../../chunks/4312.js","../../../../../../../chunks/4385.js","../../../../../../../chunks/45.js","../../../../../../../chunks/5134.js","../../../../../../../chunks/5212.js","../../../../../../../chunks/5264.js","../../../../../../../chunks/5421.js","../../../../../../../chunks/5674.js","../../../../../../../chunks/615.js","../../../../../../../chunks/6154.js","../../../../../../../chunks/6806.js","../../../../../../../chunks/7070.js","../../../../../../../chunks/7488.js","../../../../../../../chunks/7665.js","../../../../../../../chunks/7734.js","../../../../../../../chunks/8153.js","../../../../../../../chunks/8268.js","../../../../../../../chunks/8370.js","../../../../../../../chunks/8540.js","../../../../../../../chunks/8613.js","../../../../../../../chunks/883.js","../../../../../../../chunks/8842.js","../../../../../../../chunks/9205.js","../../../../../../../chunks/9621.js","../../../../../../../chunks/9732.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 new file mode 100644 index 0000000..525a97f --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/add-table.js @@ -0,0 +1 @@ +"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(93342),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(45478),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")},45478: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,8613,5421],()=>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 new file mode 100644 index 0000000..70eb89e --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/add-table.js.nft.json @@ -0,0 +1 @@ +{"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/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-shared/data/dataTypes.json","../../../../../../../../package-shared/data/defaultFields.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1223.js","../../../../../../chunks/1790.js","../../../../../../chunks/2332.js","../../../../../../chunks/2414.js","../../../../../../chunks/2451.js","../../../../../../chunks/2996.js","../../../../../../chunks/3247.js","../../../../../../chunks/3468.js","../../../../../../chunks/3737.js","../../../../../../chunks/4050.js","../../../../../../chunks/4312.js","../../../../../../chunks/4385.js","../../../../../../chunks/45.js","../../../../../../chunks/5134.js","../../../../../../chunks/5212.js","../../../../../../chunks/5264.js","../../../../../../chunks/5421.js","../../../../../../chunks/5674.js","../../../../../../chunks/615.js","../../../../../../chunks/6154.js","../../../../../../chunks/6806.js","../../../../../../chunks/7070.js","../../../../../../chunks/7488.js","../../../../../../chunks/7665.js","../../../../../../chunks/7734.js","../../../../../../chunks/8153.js","../../../../../../chunks/8268.js","../../../../../../chunks/8370.js","../../../../../../chunks/8540.js","../../../../../../chunks/8613.js","../../../../../../chunks/883.js","../../../../../../chunks/8842.js","../../../../../../chunks/9205.js","../../../../../../chunks/9621.js","../../../../../../chunks/9732.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 new file mode 100644 index 0000000..4acca22 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users.js @@ -0,0 +1,16 @@ +"use strict";(()=>{var e={};e.id=9974,e.ids=[636,9974],e.modules={74468:(e,s,r)=>{r.a(e,async(e,t)=>{try{r.r(s),r.d(s,{config:()=>x,default:()=>d,getServerSideProps:()=>g,getStaticPaths:()=>p,getStaticProps:()=>m,reportWebVitals:()=>b,routeModule:()=>v,unstable_getServerProps:()=>f,unstable_getServerSideProps:()=>y,unstable_getStaticParams:()=>_,unstable_getStaticPaths:()=>S,unstable_getStaticProps:()=>h});var a=r(63865),i=r(9455),n=r(30671),l=r(49407),o=r(68268),u=r(53702),c=e([u]);u=(c.then?(await c)():c)[0];let d=(0,n.M)(u,"default"),m=(0,n.M)(u,"getStaticProps"),p=(0,n.M)(u,"getStaticPaths"),g=(0,n.M)(u,"getServerSideProps"),x=(0,n.M)(u,"config"),b=(0,n.M)(u,"reportWebVitals"),h=(0,n.M)(u,"unstable_getStaticProps"),S=(0,n.M)(u,"unstable_getStaticPaths"),_=(0,n.M)(u,"unstable_getStaticParams"),f=(0,n.M)(u,"unstable_getServerProps"),y=(0,n.M)(u,"unstable_getServerSideProps"),v=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});t()}catch(e){t(e)}})},25969:(e,s,r)=>{r.a(e,async(e,t)=>{try{r.d(s,{A:()=>x});var a=r(8732),i=r(82015),n=r.n(i),l=r(53702),o=r(58548),u=r(74504),c=r(86571),d=r(46437),m=r(62506),p=r(59621),g=e([l,p]);function x(e){let{user:s,users:r,table:t,setTargetUser:i,database:g}=n().useContext(l.UsersContext),[x,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)(d.A,{}),(0,a.jsxs)("h1",{className:"text-3xl m-0",children:["Users in ",g.db_name]})]}),t?.tableName&&(0,a.jsxs)(m.A,{children:[(0,a.jsxs)("a",{href:`/admin/${s?.id}/databases/${g.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/${g.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})]}),g.active_clone?(0,a.jsx)(c.A,{database:g,user:s}):(0,a.jsx)(a.Fragment,{}),g.remote_connected?(0,a.jsx)(p.p,{database:g}):(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:r,table:t,database:g})})})]})}[l,p]=g.then?(await g)():g,t()}catch(e){t(e)}})},74504:(e,s,r)=>{r.d(s,{A:()=>o});var t=r(8732),a=r(82015),i=r.n(a);r(21347);var n=r(63715),l=r(32415);function o({user:e,table:s,setTargetUser:r,users:a,database:o}){let{active_clone:u,active_clone_parent_db:c,remote_connected:d}=o,[m,p]=i().useState(!1);return(0,t.jsxs)(i().Fragment,{children:[m&&(0,t.jsx)(l.A,{}),a&&a[0]?(0,t.jsx)(i().Fragment,{children:a.map((s,r)=>(0,t.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,t.jsx)("img",{src:s.image_thumbnail,alt:"",className:"w-10 h-10 rounded-full object-cover bg-slate-200"}),(0,t.jsxs)("div",{className:"flex-col items-start gap-1",children:[(0,t.jsxs)("span",{className:"font-bold",children:[s.first_name," ",s.last_name]}),(0,t.jsx)("span",{className:"text-xs text-slate-500",children:s.date_created?.substring(0,16)})]}),(0,t.jsx)("button",{className:"ml-auto outlined gray pointer-events-none",children:"Edit User"})]},r+1))}):s?.tableName?(0,t.jsx)("section",{className:"paper",children:(0,t.jsx)("span",{children:"No Users Added Yet"})}):(0,t.jsx)("section",{className:"paper",children:(0,t.jsx)("span",{children:"No User Table Present"})}),!s?.tableName&&!c&&!d&&(0,t.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,t.jsx)("span",{className:"symbol",children:"+"}),(0,t.jsx)("span",{children:"Add User Table"})]})]})}},21347:(e,s,r)=>{r.d(s,{A:()=>c});var t=r(8732),a=r(82015),i=r.n(a),n=r(55158),l=r(63715),o=r(32415),u=r(62506);function c({userObject:e,setTargetUser:s,paradigm:r}){let a=r?.match(/invited/)?`${e.inviteeFirstName} ${e.inviteeLastName} (${e.inviteeEmail})`:`${e.first_name} ${e.last_name} (${e.email})`,c=r?.match(/invited/)?`${e.inviteeImage}`:`${e.image_thumbnail}`,[d,m]=i().useState(!1);return(0,t.jsxs)("div",{className:"card no-hover items-center "+(r?.match(/invited/)?" green green-bg":" primary"),children:[d&&(0,t.jsx)(o.A,{}),(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("img",{src:c,className:"w-8 h-8 rounded-full object-cover bg-slate-200",onError:e=>{e.target.src="/images/user-preset-thumbnail.png"}}),(0,t.jsx)("span",{className:"text-sm font-semibold",children:a}),e?.user_priviledge?.match(/./)&&(0,t.jsxs)("span",{className:"text-sm ml-auto text-slate-900/50",children:["Priviledges:"," ",(0,t.jsx)("span",{className:"text-slate-600 font-semibold",children:e.user_priviledge.split("|").join(" | ")})]}),!r?.match(/invited/)&&(0,t.jsx)(i().Fragment,{children:(0,t.jsxs)(u.A,{children:[(0,t.jsx)("button",{className:"outlined text-xs px-3 py-1",onClick:r=>{s(e),setTimeout(()=>{(0,n.PB)("target-user-popup")},200)},children:"Edit User Access"}),(0,t.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,r)=>{r(81630);let t=r(77463);e.exports=async function({request:e,databaseSlug:s,user:r,query:a}){try{let i=r.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 r=t({encryptedString:e.cookies[u]});if(!r)throw Error("Invalid Token");if((n=JSON.parse(r)).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,r)=>{let t=r(77463),a=r(68743);e.exports=async function({unparsedResults:e,tableSchema:s}){let r=[];try{for(let i=0;i",s.message),e}}},22373:(e,s,r)=>{let t=r(29021),{IncomingMessage:a}=r(81630);e.exports=async function({user:e,message:s,component:r,noMail:a,req:i}){let n=new Date,l=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],s=i.headers["x-real-ip"],r=i.headers["cf-connecting-ip"],t=Array.isArray(e)?e[0]:e?.split(",")[0],a=r||t||s||i.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +Error Message: ${s} +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)}`),l&&(a+=` +IP: ${l}`),a+=` +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",a),t.appendFileSync("./.tmp/error.log",` + + + + +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},90378:(e,s,r)=>{r(29021);let t=r(89545),a=r(22373),i=r(67216),n=r(1231),l=r(88896);e.exports=async function({queryString:e,queryValuesArray:s,database:r,tableSchema:o,useLocal:u}){let c;let d=!!r?.match(/^datasquirel$/),m=u?l:d?i:n;try{c=e&&s&&Array.isArray(s)&&s[0]?d?await m(e,s):await m({paradigm:"Full Access",database:r,queryString:e,queryValues:s}):d?await m(e):await m({paradigm:"Full Access",database:r,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&o)try{let e=c;return await t({unparsedResults:e,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",r,e),a({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},1231:(e,s,r)=>{let t=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:s,queryString:r,queryValues:l}){try{return new Promise((o,u)=>{let c=!!e?.match(/full.access|^fa$/i);try{function d(e){n.end(),o(JSON.parse(JSON.stringify(e)))}function m(e){n.end(),o({error:e.message,queryStringGenerated:r,queryValuesGenerated:l,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: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(r,l).then(d).catch(m):n.query(r).then(d).catch(m)}catch(e){t.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),o({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},88896:(e,s,r)=>{let t=r(9973),a=r(31976);async function i(...e){let s=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()},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 s.query(...e);return await s.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}e.exports=i},53702:(e,s,r)=>{r.a(e,async(e,t)=>{try{r.r(s),r.d(s,{UsersContext:()=>D,default:()=>f,getServerSideProps:()=>y});var a=r(8732),i=r(82015),n=r.n(i),l=r(95222),o=r(20048),u=r.n(o),c=r(84312),d=r(90378),m=r.n(d),p=r(25969),g=r(64098),x=r(31651),b=r.n(x),h=r(67216),S=r.n(h),_=e([p,g]);[p,g]=_.then?(await _)():_;let v=r(29021),D=n().createContext({});function f({user:e,database:s,table:r,dbSchemaData:t,users:i,query:o,confirmedDelegetedUser:u}){let d=(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,x]=n().useState(null),[b,h]=n().useState(null);return(0,a.jsx)(l.A,{head:d,user:e,extraHeaderContent:(0,a.jsx)(g.A,{database:s,query:o,confirmedDelegetedUser:u,user:e}),children:(0,a.jsxs)(D.Provider,{value:{user:e,users:i,targetUser:b,setTargetUser:h,database:s,table:r,dbSchemaData:t,query:o,confirmedDelegetedUser:u},children:[(0,a.jsx)(p.A,{}),(0,a.jsx)(c.A,{targetUser:b,user:e,setTargetUser:h})]})})}async function y({req:e,res:s,query:r}){try{let t=await u()(e,s);if(!t?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let a=await b()({request:e,user:t,databaseSlug:r.single,query:r});if(!a)throw Error("No Db Object Found!");let{dbUserId:i,rootUserId:n}=a,l=await S()(`SELECT * FROM user_databases WHERE user_id='${i}' AND db_slug='${r.single}'`);if(!l||!l[0])return{redirect:{destination:`/admin/${t?.id}/databases`,permanent:!1}};let o=JSON.parse(v.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${i}/main.json`,"utf-8")),c=(o.filter(e=>e.dbFullName===l[0].db_full_name)[0]?.tables).filter(e=>"users"===e.tableName)[0],d=await m()({database:l[0].db_full_name,queryString:"SELECT * FROM users LIMIT 20",tableSchema:c});return{props:{user:t,database:l[0],table:c||{},dbSchemaData:o,users:d?.error?[]:d,query:r,confirmedDelegetedUser:a}}}catch(e){return console.log("Db Users Error =>",e.message),{redirect:{destination:"/admin",permanent:!1}}}}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 s=require("../../../../../webpack-runtime.js");s.C(e);var r=e=>s(s.s=e),t=s.X(0,[9764,883,7734,8268,7070,5134,9621,4312],()=>r(74468));module.exports=t})(); \ 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 new file mode 100644 index 0000000..5a44816 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../../chunks/1790.js","../../../../../chunks/2332.js","../../../../../chunks/2414.js","../../../../../chunks/2451.js","../../../../../chunks/2996.js","../../../../../chunks/3247.js","../../../../../chunks/3468.js","../../../../../chunks/3737.js","../../../../../chunks/4050.js","../../../../../chunks/4312.js","../../../../../chunks/4385.js","../../../../../chunks/45.js","../../../../../chunks/5134.js","../../../../../chunks/5212.js","../../../../../chunks/5264.js","../../../../../chunks/5421.js","../../../../../chunks/5674.js","../../../../../chunks/615.js","../../../../../chunks/6154.js","../../../../../chunks/6806.js","../../../../../chunks/7070.js","../../../../../chunks/7488.js","../../../../../chunks/7665.js","../../../../../chunks/7734.js","../../../../../chunks/8153.js","../../../../../chunks/8268.js","../../../../../chunks/8370.js","../../../../../chunks/8540.js","../../../../../chunks/8613.js","../../../../../chunks/883.js","../../../../../chunks/8842.js","../../../../../chunks/9205.js","../../../../../chunks/9621.js","../../../../../chunks/9732.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 new file mode 100644 index 0000000..0b7088f --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user].js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..e92e759 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user].js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../../../chunks/1790.js","../../../../../../chunks/2332.js","../../../../../../chunks/2414.js","../../../../../../chunks/2451.js","../../../../../../chunks/2996.js","../../../../../../chunks/3247.js","../../../../../../chunks/3468.js","../../../../../../chunks/3737.js","../../../../../../chunks/4050.js","../../../../../../chunks/4312.js","../../../../../../chunks/4385.js","../../../../../../chunks/45.js","../../../../../../chunks/5134.js","../../../../../../chunks/5212.js","../../../../../../chunks/5264.js","../../../../../../chunks/5421.js","../../../../../../chunks/5674.js","../../../../../../chunks/615.js","../../../../../../chunks/6154.js","../../../../../../chunks/6806.js","../../../../../../chunks/7070.js","../../../../../../chunks/7488.js","../../../../../../chunks/7665.js","../../../../../../chunks/7734.js","../../../../../../chunks/8153.js","../../../../../../chunks/8268.js","../../../../../../chunks/8370.js","../../../../../../chunks/8540.js","../../../../../../chunks/8613.js","../../../../../../chunks/883.js","../../../../../../chunks/8842.js","../../../../../../chunks/9205.js","../../../../../../chunks/9621.js","../../../../../../chunks/9732.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 new file mode 100644 index 0000000..f893c11 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..af8d87c --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../../../../chunks/1790.js","../../../../../../../chunks/2332.js","../../../../../../../chunks/2414.js","../../../../../../../chunks/2451.js","../../../../../../../chunks/2996.js","../../../../../../../chunks/3247.js","../../../../../../../chunks/3468.js","../../../../../../../chunks/3737.js","../../../../../../../chunks/4050.js","../../../../../../../chunks/4312.js","../../../../../../../chunks/4385.js","../../../../../../../chunks/45.js","../../../../../../../chunks/5134.js","../../../../../../../chunks/5212.js","../../../../../../../chunks/5264.js","../../../../../../../chunks/5421.js","../../../../../../../chunks/5674.js","../../../../../../../chunks/615.js","../../../../../../../chunks/6154.js","../../../../../../../chunks/6806.js","../../../../../../../chunks/7070.js","../../../../../../../chunks/7488.js","../../../../../../../chunks/7665.js","../../../../../../../chunks/7734.js","../../../../../../../chunks/8153.js","../../../../../../../chunks/8268.js","../../../../../../../chunks/8370.js","../../../../../../../chunks/8540.js","../../../../../../../chunks/8613.js","../../../../../../../chunks/883.js","../../../../../../../chunks/8842.js","../../../../../../../chunks/9205.js","../../../../../../../chunks/9621.js","../../../../../../../chunks/9732.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 new file mode 100644 index 0000000..ef18913 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-social-logins.js @@ -0,0 +1 @@ +"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"},...t.props}),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 new file mode 100644 index 0000000..e92e759 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-social-logins.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../../../chunks/1790.js","../../../../../../chunks/2332.js","../../../../../../chunks/2414.js","../../../../../../chunks/2451.js","../../../../../../chunks/2996.js","../../../../../../chunks/3247.js","../../../../../../chunks/3468.js","../../../../../../chunks/3737.js","../../../../../../chunks/4050.js","../../../../../../chunks/4312.js","../../../../../../chunks/4385.js","../../../../../../chunks/45.js","../../../../../../chunks/5134.js","../../../../../../chunks/5212.js","../../../../../../chunks/5264.js","../../../../../../chunks/5421.js","../../../../../../chunks/5674.js","../../../../../../chunks/615.js","../../../../../../chunks/6154.js","../../../../../../chunks/6806.js","../../../../../../chunks/7070.js","../../../../../../chunks/7488.js","../../../../../../chunks/7665.js","../../../../../../chunks/7734.js","../../../../../../chunks/8153.js","../../../../../../chunks/8268.js","../../../../../../chunks/8370.js","../../../../../../chunks/8540.js","../../../../../../chunks/8613.js","../../../../../../chunks/883.js","../../../../../../chunks/8842.js","../../../../../../chunks/9205.js","../../../../../../chunks/9621.js","../../../../../../chunks/9732.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 new file mode 100644 index 0000000..ea42687 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-user.js @@ -0,0 +1,16 @@ +"use strict";(()=>{var e={};e.id=9582,e.ids=[636,9582],e.modules={44219:(e,r,t)=>{t.a(e,async(e,s)=>{try{t.r(r),t.d(r,{config:()=>S,default:()=>c,getServerSideProps:()=>g,getStaticPaths:()=>p,getStaticProps:()=>m,reportWebVitals:()=>_,routeModule:()=>D,unstable_getServerProps:()=>h,unstable_getServerSideProps:()=>y,unstable_getStaticParams:()=>f,unstable_getStaticPaths:()=>x,unstable_getStaticProps:()=>b});var a=t(63865),i=t(9455),o=t(30671),n=t(49407),u=t(68268),l=t(12403),d=e([l]);l=(d.then?(await d)():d)[0];let c=(0,o.M)(l,"default"),m=(0,o.M)(l,"getStaticProps"),p=(0,o.M)(l,"getStaticPaths"),g=(0,o.M)(l,"getServerSideProps"),S=(0,o.M)(l,"config"),_=(0,o.M)(l,"reportWebVitals"),b=(0,o.M)(l,"unstable_getStaticProps"),x=(0,o.M)(l,"unstable_getStaticPaths"),f=(0,o.M)(l,"unstable_getStaticParams"),h=(0,o.M)(l,"unstable_getServerProps"),y=(0,o.M)(l,"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:u.default,Document:n.default},userland:l});s()}catch(e){s(e)}})},16975:(e,r,t)=>{t.a(e,async(e,s)=>{try{t.d(r,{A:()=>g});var a=t(8732),i=t(82015),o=t.n(i),n=t(58548),u=t(46437),l=t(63715),d=t(32415),c=t(84851),m=t(12403),p=e([m]);function g(e){let{user:r,database:s,table:i,query:p,confirmedDelegetedUser:g}=o().useContext(m.AddNewDbUserContext);t(49436);let[S,_]=o().useState("invitation"),[b,x]=o().useState(!1),[f,h]=o().useState(!1),[y,D]=o().useState(["Edit"]),[E,q]=o().useState(s.db_slug),[v,A]=o().useState(null),[w,R]=o().useState(null),[U,N]=o().useState([]),[P,$]=o().useState([]);return(0,a.jsxs)(o().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)(u.A,{}),(0,a.jsxs)("h1",{className:"text-3xl m-0",children:["Add A New User to ",s.db_name]})]})}),(0,a.jsx)(n.A,{user:r})]}),(0,a.jsxs)("section",{className:"paper",children:[b&&(0,a.jsx)(d.A,{}),(0,a.jsxs)("form",{onSubmit:e=>{e.preventDefault(),x(!0);let t=e.target,a=Array.from(t),i={};a.forEach(e=>{!e.nodeName?.match(/button/i)&&e.name&&e.value?.match(/./)&&(i[e.name]=e.value)});let o={payload:i,dbFullName:s.db_full_name,dbId:s.id};(0,l.A)("/api/addDbUser",{method:"post",body:o},!0).then(e=>{e.success?w?(w.imageName=`${E}-user-${e.newUserId}`,w.mimeType="jpeg",delete w.imageBase64Full,(0,l.A)("/api/addUserMedia",{method:"post",body:{media:[w],folder:E.replace(/_/g,"-"),type:"image"}},!0).then(t=>{(0,l.A)("/api/updateDbUser",{method:"post",body:{dbFullName:s.db_full_name,payload:{id:e.newUserId,image:t.mediaData[0].media_url,image_thumbnail:t.mediaData[0].media_thumbnail_url}}},!0).then(e=>{e.success&&(window.location.pathname=`/admin/${r?.id}/databases/${s.db_slug}/users`),setTimeout(()=>{x(!1)},500)})})):window.location.pathname=`/admin/${r?.id}/databases/${s.db_slug}/users`:setTimeout(()=>{x(!1)},500)})},className:"w-full flex flex-col items-stretch gap-4",children:[(0,a.jsx)(c.A,{user:r,targetDb:s.db_full_name,database:s,userImage:w,setUserImage:R}),(0,a.jsx)("button",{children:"Add User"})]})]})]})}m=(p.then?(await p)():p)[0],s()}catch(e){s(e)}})},31651:(e,r,t)=>{t(81630);let s=t(77463);e.exports=async function({request:e,databaseSlug:r,user:t,query:a}){try{let i=t.id,o=null;if(!a?.delegated)return{dbUserId:i};let n=a.dbUserId,u=`${process.env.DSQL_USER_DB_PREFIX}${n}_${r}`,l=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${u}`;try{if(!e.cookies?.[l])throw Error("Cookie not present");let t=s({encryptedString:e.cookies[l]});if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:i=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: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,r,t)=>{let s=t(77463),a=t(68743);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let i=0;i",r.message),e}}},22373:(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 o=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"],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)}`),n&&(a+=` +IP: ${n}`),a+=` +Date: ${o.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",a),s.appendFileSync("./.tmp/error.log",` + + + + +${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},90378:(e,r,t)=>{t(29021);let s=t(89545),a=t(22373),i=t(67216),o=t(1231),n=t(88896);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:u,useLocal:l}){let d;let c=!!t?.match(/^datasquirel$/),m=l?n:c?i:o;try{d=e&&r&&Array.isArray(r)&&r[0]?c?await m(e,r):await m({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):c?await m(e):await m({paradigm:"Full Access",database:t,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(d&&u)try{let e=d;return await s({unparsedResults:e,tableSchema:u})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),a({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(d)return d;else return null}},1231:(e,r,t)=>{let s=t(29021);t(33873);let a=t(9973),i=t(31976),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:i()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:n}){try{return new Promise((u,l)=>{let d=!!e?.match(/full.access|^fa$/i);try{function c(e){o.end(),u(JSON.parse(JSON.stringify(e)))}function m(e){o.end(),u({error:e.message,queryStringGenerated:t,queryValuesGenerated:n,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: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:r,ssl:i()}}),n&&Array.isArray(n)&&n[0]?o.query(t,n).then(c).catch(m):o.query(t).then(c).catch(m)}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}}}},88896:(e,r,t)=>{let s=t(9973),a=t(31976);async function i(...e){let r=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()},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 t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}e.exports=i},12403:(e,r,t)=>{t.a(e,async(e,s)=>{try{t.r(r),t.d(r,{AddNewDbUserContext:()=>D,default:()=>f,getServerSideProps:()=>h});var a=t(8732),i=t(82015),o=t.n(i),n=t(95222),u=t(20048),l=t.n(u),d=t(16975),c=t(90378),m=t.n(c),p=t(64098),g=t(31651),S=t.n(g),_=t(67216),b=t.n(_),x=e([d,p]);[d,p]=x.then?(await x)():x;let y=t(29021),D=o().createContext({});function f({user:e,database:r,table:t,query:s,confirmedDelegetedUser:i}){let o=(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)(n.A,{head:o,user:e,extraHeaderContent:(0,a.jsx)(p.A,{database:r,query:s,confirmedDelegetedUser:i,user:e}),children:(0,a.jsx)(D.Provider,{value:{user:e,database:r,table:t,query:s,confirmedDelegetedUser:i},children:(0,a.jsx)(d.A,{})})})}async function h({req:e,res:r,query:t}){let s=await l()(e,r);if(!s?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let a=await S()({request:e,user:s,databaseSlug:t.single,query:t});if(!a)return{redirect:{destination:"/admin",permanent:!1}};let{dbUserId:i,rootUserId:o}=a,n=await b()(`SELECT * FROM user_databases WHERE user_id='${i}' AND db_slug='${t.single}'`);if(!n||!n[0])return{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}};let u=JSON.parse(y.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${i}/main.json`,"utf-8")),d=(u.filter(e=>e.dbFullName===n[0].db_full_name)[0]?.tables).filter(e=>"users"===e.tableName)[0];return await m()({database:n[0].db_full_name,queryString:"SELECT * FROM users LIMIT 20",tableSchema:d}),{props:{user:s,database:n[0],table:d||{},query:t,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 r=require("../../../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[9764,883,8268,7070,5134,3737,2332,7488],()=>t(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 new file mode 100644 index 0000000..9afee55 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-user.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../../../chunks/1790.js","../../../../../../chunks/2332.js","../../../../../../chunks/2414.js","../../../../../../chunks/2451.js","../../../../../../chunks/2996.js","../../../../../../chunks/3247.js","../../../../../../chunks/3468.js","../../../../../../chunks/3737.js","../../../../../../chunks/4050.js","../../../../../../chunks/4312.js","../../../../../../chunks/4385.js","../../../../../../chunks/45.js","../../../../../../chunks/5134.js","../../../../../../chunks/5212.js","../../../../../../chunks/5264.js","../../../../../../chunks/5421.js","../../../../../../chunks/5674.js","../../../../../../chunks/615.js","../../../../../../chunks/6154.js","../../../../../../chunks/6806.js","../../../../../../chunks/7070.js","../../../../../../chunks/7488.js","../../../../../../chunks/7665.js","../../../../../../chunks/7734.js","../../../../../../chunks/8153.js","../../../../../../chunks/8268.js","../../../../../../chunks/8370.js","../../../../../../chunks/8540.js","../../../../../../chunks/8613.js","../../../../../../chunks/883.js","../../../../../../chunks/8842.js","../../../../../../chunks/9205.js","../../../../../../chunks/9621.js","../../../../../../chunks/9732.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 new file mode 100644 index 0000000..d42d2b7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/add-database.js @@ -0,0 +1 @@ +"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,8613,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 new file mode 100644 index 0000000..92478af --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/add-database.js.nft.json @@ -0,0 +1 @@ +{"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/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-shared/data/dataTypes.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/7070.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9621.js","../../../../chunks/9732.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 new file mode 100644 index 0000000..6fb9a1a --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/media.js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..e98e97e --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/media.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..852c25b --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/media/[...folder].js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..7388c73 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/media/[...folder].js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/7070.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9621.js","../../../../chunks/9732.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 new file mode 100644 index 0000000..476b15d --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/schema.js @@ -0,0 +1 @@ +"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:()=>x,default:()=>d,getServerSideProps:()=>h,getStaticPaths:()=>m,getStaticProps:()=>p,reportWebVitals:()=>y,routeModule:()=>A,unstable_getServerProps:()=>b,unstable_getServerSideProps:()=>j,unstable_getStaticParams:()=>v,unstable_getStaticPaths:()=>g,unstable_getStaticProps:()=>f});var a=r(63865),i=r(9455),l=r(30671),n=r(49407),o=r(68268),u=r(74094),c=e([u]);u=(c.then?(await c)():c)[0];let d=(0,l.M)(u,"default"),p=(0,l.M)(u,"getStaticProps"),m=(0,l.M)(u,"getStaticPaths"),h=(0,l.M)(u,"getServerSideProps"),x=(0,l.M)(u,"config"),y=(0,l.M)(u,"reportWebVitals"),f=(0,l.M)(u,"unstable_getStaticProps"),g=(0,l.M)(u,"unstable_getStaticPaths"),v=(0,l.M)(u,"unstable_getStaticParams"),b=(0,l.M)(u,"unstable_getServerProps"),j=(0,l.M)(u,"unstable_getServerSideProps"),A=new a.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/schema",pathname:"/admin/[user_id]/schema",bundlePath:"",filename:""},components:{App:o.default,Document:n.default},userland:u});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),n=r(58548),o=r(51548),u=r(74094),c=r(40942);r(63715),r(34844);var d=r(89788),p=r(56248),m=r.n(p),h=e([u,c,d]);function x(e){let{dbSchemaData:t,user:r}=l().useContext(u.UserSchemaContext),[s,i]=l().useState(t),[c,p]=l().useState(null),[h,x]=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.jsxs)("div",{className:"w-full justify-between",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"Database SCHEMA JSON"}),(0,a.jsxs)("div",{children:[(0,a.jsx)(o.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$/)?p(null):p(e.target.value)}}),h&&h[0]&&(0,a.jsx)(o.A,{required:!0,selectOptions:[{title:"All Tables",payload:"none"},...h.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.jsx)(d.A,{content:m().stringify(s,null,4),readOnly:!0,options:{wrap:!0},wrapperProps:{className:"h-[60vh]"}})]})})]})}[u,c,d]=h.then?(await h)():h,s()}catch(e){s(e)}})},40942:(e,t,r)=>{r.a(e,async(e,t)=>{try{r(8732),r(82015);var s=r(74094),a=e([s]);s=(a.then?(await a)():a)[0],t()}catch(e){t(e)}})},84759:(e,t,r)=>{r.d(t,{A:()=>s});function s({editorHTMLElementRef:e,fieldObject:t,setRefresh:r,language:s="javascript",entry:a,jsonTextEditors:i,editorRef:l,readOnly:n,initialContent:o,options:u}){try{if(!ace?.edit||!e.current){console.log("Ace Editor not found!"),setTimeout(()=>{r?.(e=>e+1)},1e3);return}let c=ace.edit(e.current);c.setOptions({mode:"ace/mode/"+s,value:o||(t?.defaultValue?t.defaultValue:t?.fieldName&&a?.[t.fieldName]?(()=>{if("json"!==s)return a[t.fieldName];try{return JSON.stringify(JSON.parse(a[t.fieldName]),null,4)}catch(e){return a[t.fieldName]}})():""),placeholder:"json"==s?"{}":"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,readOnly:n,...u}),l&&t?.fieldName&&(i?.current.push({fieldName:t.fieldName,ref:l}),l.current=c);try{ace.require("ace/ext/beautify").beautify(c.session)}catch(e){}}catch(e){console.log("JSON Editor ERROR =>",e.message)}}},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:o,info:u,id:c}){try{function d(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"+(u?" 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:c||t,className:"w-full bg-white",required:i,onChange:e=>{l&&l(null),e.target.classList.remove("warning"),r&&r(e)},defaultValue:o||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}),u&&(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:d,onMouseLeave:d,onClick:d,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:u})}),(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.a(e,async(e,s)=>{try{r.d(t,{A:()=>u});var a=r(8732);r(63715);var i=r(82015),l=r.n(i);r(84759);var n=r(75979),o=e([n]);function u({editorRef:e,content:t,readOnly:r,language:s="javascript",options:i,wrapperProps:o}){try{let e=l().useRef(),[t,r]=l().useState(0);return(0,a.jsx)("div",{...o,ref:e,className:(0,n.twMerge)("ace-editor-wrapper w-full h-full minimal-scrollbars all-children",o?.className)})}catch(e){return(0,a.jsx)(l().Fragment,{children:(0,a.jsx)("h2",{className:"text-xl m-0",children:"Editor Error"})})}}n=(o.then?(await o)():o)[0],s()}catch(e){s(e)}})},34844:(e,t,r)=>{r.d(t,{A:()=>u});var s=r(8732),a=r(82015),i=r.n(a),l=r(11790),n=r.n(l),o=r(96089);function u({content:e,language:t,style:r,showCopy:a}){let[l,u]=i().useState(!1),c=()=>{u(!0)},d=(e,t)=>{"clickaway"!==t&&u(!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:d,children:"✖"})}),m={};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,...m}:m,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(()=>{c()})},children:(0,s.jsx)(o.A,{className:"text-white",size:20})}),(0,s.jsx)(n(),{open:l,autoHideDuration:2e3,onClose:d,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)},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"}]])},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"}]])},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"}]])},56248:e=>{e.exports={parse:function(e,t){if(e){if("object"==typeof e)return e;if("string"==typeof e)try{return JSON.parse(e,t)}catch(e){return}}},stringify:function(e,t,r){try{return JSON.stringify(e,t,r)}catch(e){return}}}},74094:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.r(t),r.d(t,{UserSchemaContext:()=>f,default:()=>h,getServerSideProps:()=>x});var a=r(8732),i=r(82015),l=r.n(i),n=r(95222),o=r(20048),u=r.n(o),c=r(74223),d=r(24671),p=r(58548),m=e([c]);c=(m.then?(await m)():m)[0];let y=r(29021),f=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)(f.Provider,{value:{user:e,dbSchemaData:r},children:e?.verification_status?.toString().match(/1/)?(0,a.jsx)(l().Fragment,{children:(0,a.jsx)(c.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)(p.A,{user:e})]}),(0,a.jsx)(d.A,{})]})})})}async function x({req:e,res:t,query:r}){let s=await u()(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(!y.existsSync(a))return{redirect:{destination:"/admin",permanent:!1}};let i=JSON.parse(y.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],()=>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 new file mode 100644 index 0000000..ec862d6 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/schema.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..b775dd8 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/settings.js @@ -0,0 +1 @@ +"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{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,8613,1223,2414,3247,45],()=>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 new file mode 100644 index 0000000..ba50a1d --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/settings.js.nft.json @@ -0,0 +1 @@ +{"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/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-shared/data/dataTypes.json","../../../../../package.json","../../../../package.json","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..e0c79e4 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users.js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..328c5dc --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..28a07d6 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/add-user.js @@ -0,0 +1 @@ +"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"},...t.props}),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 new file mode 100644 index 0000000..f024b83 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/add-user.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/7070.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9621.js","../../../../chunks/9732.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 new file mode 100644 index 0000000..125fd51 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases.js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..f024b83 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/7070.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9621.js","../../../../chunks/9732.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 new file mode 100644 index 0000000..5fe3df9 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database].js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..a842f43 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database].js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../../chunks/1790.js","../../../../../chunks/2332.js","../../../../../chunks/2414.js","../../../../../chunks/2451.js","../../../../../chunks/2996.js","../../../../../chunks/3247.js","../../../../../chunks/3468.js","../../../../../chunks/3737.js","../../../../../chunks/4050.js","../../../../../chunks/4312.js","../../../../../chunks/4385.js","../../../../../chunks/45.js","../../../../../chunks/5134.js","../../../../../chunks/5212.js","../../../../../chunks/5264.js","../../../../../chunks/5421.js","../../../../../chunks/5674.js","../../../../../chunks/615.js","../../../../../chunks/6154.js","../../../../../chunks/6806.js","../../../../../chunks/7070.js","../../../../../chunks/7488.js","../../../../../chunks/7665.js","../../../../../chunks/7734.js","../../../../../chunks/8153.js","../../../../../chunks/8268.js","../../../../../chunks/8370.js","../../../../../chunks/8540.js","../../../../../chunks/8613.js","../../../../../chunks/883.js","../../../../../chunks/8842.js","../../../../../chunks/9205.js","../../../../../chunks/9621.js","../../../../../chunks/9732.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 new file mode 100644 index 0000000..68c9644 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database]/[user].js @@ -0,0 +1 @@ +"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"},...t.props}),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 new file mode 100644 index 0000000..37d8b88 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database]/[user].js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../../../chunks/1790.js","../../../../../../chunks/2332.js","../../../../../../chunks/2414.js","../../../../../../chunks/2451.js","../../../../../../chunks/2996.js","../../../../../../chunks/3247.js","../../../../../../chunks/3468.js","../../../../../../chunks/3737.js","../../../../../../chunks/4050.js","../../../../../../chunks/4312.js","../../../../../../chunks/4385.js","../../../../../../chunks/45.js","../../../../../../chunks/5134.js","../../../../../../chunks/5212.js","../../../../../../chunks/5264.js","../../../../../../chunks/5421.js","../../../../../../chunks/5674.js","../../../../../../chunks/615.js","../../../../../../chunks/6154.js","../../../../../../chunks/6806.js","../../../../../../chunks/7070.js","../../../../../../chunks/7488.js","../../../../../../chunks/7665.js","../../../../../../chunks/7734.js","../../../../../../chunks/8153.js","../../../../../../chunks/8268.js","../../../../../../chunks/8370.js","../../../../../../chunks/8540.js","../../../../../../chunks/8613.js","../../../../../../chunks/883.js","../../../../../../chunks/8842.js","../../../../../../chunks/9205.js","../../../../../../chunks/9621.js","../../../../../../chunks/9732.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 new file mode 100644 index 0000000..a299227 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/acceptUserInvitation.js @@ -0,0 +1,16 @@ +"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,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>v,routeModule:()=>b});var s={};t.r(s),t.d(s,{default:()=>g});var i=t(89947),a=t(2706),n=t(96762),l=t(6420),o=t.n(l),u=t(48225),d=t.n(u),c=t(27825),_=t.n(c),p=t(51348),m=t.n(p),f=t(47670),E=t.n(f);async function g(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await o()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=_().cloneDeep(e.body),i=s.inviting_user_id,a=s.invited_user_email,n=s.database_access,l=s.priviledge;try{let e=await m()("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[i,t.id,t.email]);if(e&&e[0])return r.json({success:!1});let s=await E()({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:i,invited_user_id:t.id,database_access:n,user_priviledge:l,user_type:"admin",first_name:t.first_name,last_name:t.last_name,email:t.email,username:t.first_name,image:t.image,image_thumbnail:t.image_thumbnail}});await m()("UPDATE invitations SET invitation_status='Accepted' WHERE inviting_user_id=? AND invited_user_email=?",[i,a]);let o=await m()("SELECT db_tables_data FROM invitations WHERE inviting_user_id=?",[i]);if(await m()(`DELETE FROM delegated_user_tables WHERE root_user_id='${i}' AND delegated_user_id='${t.id}'`),o&&o[0]){let e=o[0].db_tables_data.split("|");for(let r=0;r{t(81630);let s=t(51348),i=t(72835),a=t(29021),n=t(31341);async function l(e,r,t,l){let{keyCookieName:o,csrfCookieName:u}=n();if(!e.cookies?.[o]?.match(/./))return null;let d=i({encryptedString:e.cookies[o]});if(!d)return null;let c=JSON.parse(d);if(!c.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${_}/${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=l},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=r;e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),i+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:i,csrfCookieName:a+=s}}},48225:(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,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],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)}`),l&&(i+=` +IP: ${l}`),i+=` +Date: ${n.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",i),s.appendFileSync("./.tmp/error.log",` + + + + +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:i}=t(55511),{Buffer:a}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,l=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=i("aes-192-cbc",s(n,l,o),a.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[4050],()=>t(27118));module.exports=s})(); \ 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 new file mode 100644 index 0000000..962d705 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/acceptUserInvitation.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..c56051e --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/addAdminUserUser.js @@ -0,0 +1,16 @@ +"use strict";(()=>{var e={};e.id=9785,e.ids=[9785],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")},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 s=t(89947),a=t(2706),n=t(96762),l=t(6420),o=t.n(l),d=t(44767),u=t.n(d);async function _(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"});console.log("Invitation Received by current logged in user, Loggin in VIA API ...");let i=await u()({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 s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/addAdminUserUser",pathname:"/api/addAdminUserUser",bundlePath:"",filename:""},userland:i})},6420:(e,r,t)=>{t(81630);let i=t(51348),s=t(72835),a=t(29021),n=t(31341);async function l(e,r,t,l){let{keyCookieName:o,csrfCookieName:d}=n();if(!e.cookies?.[o]?.match(/./))return null;let u=s({encryptedString:e.cookies[o]});if(!u)return null;let _=JSON.parse(u);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.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}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await i(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=l},44767:(e,r,t)=>{let i=t(48225),s=t(51348),a=t(47670),n=t(44900);e.exports=async function({query:e,user:r,useLocal:t}){try{let i=t?n:s,{invite:l,database_access:o,priviledge:d,email:u}=e,_=[l,u],c=await i("SELECT date_created_code FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",_);if(!c||!c[0])throw Error("No Invitation Found");let m=[l],p=await i("SELECT first_name,last_name,email FROM users WHERE id=?",m);if(p?.[0]){let e=await i("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[l,r.id,u]);if(e?.[0])console.log("User already added");else{a({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:l,invited_user_id:r.id,database_access:o,first_name:r.first_name,last_name:r.last_name,phone:r.phone,email:r.email,username:r.username,user_type:"admin",user_priviledge:d,image:r.image,image_thumbnail:r.image_thumbnail},useLocal:t});let e=await i("SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[l,u]);if(await i("DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[l,r.id]),e&&e[0]){let i=e[0].db_tables_data.split("|");for(let e=0;e{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",i=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=r;e?.userId&&(s+=`user_${e.userId}_`),e?.database&&(s+=`${e.database}_`),s+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:s,csrfCookieName:a+=i}}},48225:(e,r,t)=>{let i=t(29021),{IncomingMessage:s}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:s,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"],t=a.headers["cf-connecting-ip"],i=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||i||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: ${n.toDateString()} +========================================`,i.existsSync("./.tmp/error.log")||i.writeFileSync("./.tmp/error.log","","utf-8");let o=i.readFileSync("./.tmp/error.log","utf-8");i.writeFileSync("./.tmp/error.log",s),i.appendFileSync("./.tmp/error.log",` + + + + +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:i,createDecipheriv:s}=t(55511),{Buffer:a}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,l=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=s("aes-192-cbc",i(n,l,o),a.alloc(16,0));try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};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 new file mode 100644 index 0000000..962d705 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/addAdminUserUser.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..dc7eba1 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/addApiKey.js @@ -0,0 +1,16 @@ +"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:()=>h,default:()=>E,routeModule:()=>v});var s={};t.r(s),t.d(s,{default:()=>y});var a=t(89947),n=t(2706),i=t(96762),o=t(20503),l=t.n(o),u=t(48225),c=t.n(u),d=t(6420),p=t.n(d),f=t(47670),_=t.n(f);let m=t(29021);t(33873);let{execSync:S}=t(79646),g=t(47795);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{api_key_name:s,api_key_slug:a,api_key_scope:n,target_database:i,target_table:o}=e.body;if(!s?.match(/./)||!a?.match(/./)||!n?.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");m.existsSync(e)||m.mkdirSync(e,{recursive:!0});let u=g.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:i,target_table:o};"fullAccess"==n&&(c={...c,full_access:!0});let d=l()({data:JSON.stringify(c)});if(!d)return r.json({success:!1,msg:"Couldn't encrypt API key"});let p=l()({data:d}),f={dbFullName:"datasquirel",tableName:"api_keys",data:{user_id:t.id,name:s,slug:a,key:p,scope:n}};u&&(f.data.csrf=u);let S=await _()(f);if(!S.insertId)throw Error(S?.error||"Api Key Couldn't be added");m.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 E=(0,i.M)(s,"default"),h=(0,i.M)(s,"config"),v=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/addApiKey",pathname:"/api/addApiKey",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72835),n=t(29021),i=t(31341);async function o(e,r,t,o){let{keyCookieName:l,csrfCookieName:u}=i();if(!e.cookies?.[l]?.match(/./))return null;let c=a({encryptedString:e.cookies[l]});if(!c)return null;let d=JSON.parse(c);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=r;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=t;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:a,csrfCookieName:n+=s}}},48225:(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",` + + + + +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=a("aes-192-cbc",s(i,o,l),n.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};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 new file mode 100644 index 0000000..df2f63d --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/addApiKey.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..a41a707 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/addDbUser.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=9187,e.ids=[9187],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")},49915:(e,r,s)=>{s.r(r),s.d(r,{config:()=>m,default:()=>f,routeModule:()=>S});var t={};s.r(t),s.d(t,{default:()=>_});var a=s(89947),i=s(2706),n=s(96762),o=s(14533),l=s.n(o),u=s(6420),d=s.n(u),c=s(47670),p=s.n(c);async function _(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 f=(0,n.M)(t,"default"),m=(0,n.M)(t,"config"),S=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(72835),i=s(29021),n=s(31341);async function o(e,r,s,o){let{keyCookieName:l,csrfCookieName:u}=n();if(!e.cookies?.[l]?.match(/./))return null;let d=a({encryptedString:e.cookies[l]});if(!d)return null;let c=JSON.parse(d);if(!c.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!i.existsSync(`${p}/${c.csrf_k}`))return null;if(0==c.verification_status&&!s){let e=await t(`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=o},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=r;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=s;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),{keyCookieName:a,csrfCookieName:i+=t}}},72835:(e,r,s)=>{let{scryptSync:t,createDecipheriv:a}=s(55511),{Buffer:i}=s(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:s})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=s||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=a("aes-192-cbc",t(n,o,l),i.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},14533:(e,r,s)=>{let{createHmac:t}=s(55511);e.exports=function({password:e,encryptionKey:r}){let s=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!s?.match(/.{8,}/))throw Error("Encryption key is invalid");let a=t("sha512",s);return a.update(e),a.digest("base64")}}};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 new file mode 100644 index 0000000..962d705 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/addDbUser.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..b39fc2c --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/addNewMediaFolder.js @@ -0,0 +1 @@ +"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:()=>y,default:()=>S,routeModule:()=>E});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),o=t(2706),i=t(96762),a=t(33873),c=t.n(a),u=t(6420),l=t.n(u),p=t(80304),f=t.n(p);let d=t(29021);async function _(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:s}=f()(e.body),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"});let o=c().join(n,`images/user-images/user-${t.id}/`)+s;if(d.existsSync(o))return r.json({success:!1});d.mkdirSync(o),r.json({success:!0})}let S=(0,i.M)(s,"default"),y=(0,i.M)(s,"config"),E=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/addNewMediaFolder",pathname:"/api/addNewMediaFolder",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),i=t(31341);async function a(e,r,t,a){let{keyCookieName:c,csrfCookieName:u}=i();if(!e.cookies?.[c]?.match(/./))return null;let l=n({encryptedString:e.cookies[c]});if(!l)return null;let p=JSON.parse(l);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let f=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!f)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${f}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=a},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},80304:(e,r,t)=>{let s=t(27825);function n(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 s=e;return t&&(s=e.toString().replace(t,"")),r||(s=e.toString().replace(/\n|\r|\n\r|\r\n/g,"").replace(/ /g,"")),s=s.replace(/(?{let s=t[e];if(!s){delete t[e];return}"string"==typeof s||"number"==typeof s?t[e]=n(s,r):"object"!=typeof s||Array.isArray(s)?"object"==typeof s&&Array.isArray(s)&&(t[e]=i(s,r)):t[e]=o(s,r)}),t}function i(e,r){let t=s.cloneDeep(e);return t.forEach((e,s)=>{if(!e){t.splice(s,1);return}"string"==typeof e||"number"==typeof e?t[s]=n(e,r):"object"!=typeof e||Array.isArray(e)?"object"==typeof e&&Array.isArray(e)&&(t[s]=i(e,r)):t[s]=o(e,r)}),t}e.exports=n},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=n("aes-192-cbc",s(i,a,c),o.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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=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 new file mode 100644 index 0000000..a90f12f --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/addNewMediaFolder.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..078fe69 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/addSocialLogin.js @@ -0,0 +1,16 @@ +"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:()=>_,default:()=>S,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>f});var n=t(89947),o=t(2706),a=t(96762),i=t(48225),l=t.n(i),c=t(6420),u=t.n(c);let p=t(29021);t(33873);let{execSync:d}=t(79646);async function f(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{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:c}=a();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.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}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=i},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},48225:(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",` + + + + +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(a,i,l),o.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/addSocialLogin.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..3000fa1 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/addTableEntry.js @@ -0,0 +1,16 @@ +"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:()=>f,default:()=>m,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>E});var a=t(89947),i=t(2706),o=t(96762),l=t(96771),n=t.n(l),d=t(47670),u=t.n(d);t(51348),t(21339);let c=t(73677),p=t(39831),_=t(48225),g=t(6420);async function E(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await g(e,r,!0);if(!t)return r.json({success:!1,msg:"User Auth Failed"});let{tableName:s,payload:a,tableSchema:i,dbSlug:o,dbId:l,delegated:d}=e.body;try{let d=await p({databaseSlug:o,request:e,user:t,query:e.query});if(!await c({user:t,confirmedDelegetedUser:d,database:o,table:s,dbId:l,priviledgeRegex:/Update Entries/i}))return r.json({success:!1,msg:"Unauthorized"});let _=d?.rootUserId?`datasquirel_user_${d.rootUserId}_${o}`:`datasquirel_user_${t.id}_${o}`,g=await u()({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:_,tableName:s,data:a,tableSchema:i});if(!g.insertId)throw console.log("Table Insertion Failed =>",g),Error(g?.error||"Table Insertion Failed");await n()({dbName:_,entryId:g.insertId,entryOrder:a.order,tableName:s,tableSchema:i}),r.json({success:!0})}catch(e){_({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 m=(0,o.M)(s,"default"),f=(0,o.M)(s,"config"),S=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/addTableEntry",pathname:"/api/addTableEntry",bundlePath:"",filename:""},userland:s})},73677:(e,r,t)=>{let s=t(51348),a=t(48225);e.exports=async function({user:e,confirmedDelegetedUser:r,database:t,table:i,priviledgeRegex:o,dbId:l}){let n,d;try{r?.delegated?(n=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,i]),d=n[0]?.priviledge?.match(o)):(n=await s("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,i,l]),d=!0)}catch(r){a({component:"checkUserRights",message:r.message,user:e})}return!!n&&!!n[0]&&!!d}},39831:(e,r,t)=>{t(81630);let s=t(72835);e.exports=async function({request:e,databaseSlug:r,user:t,query:a}){try{let i=t.id,o=null;if(!a?.delegated)return{dbUserId:i};let l=a.dbUserId,n=`${process.env.DSQL_USER_DB_PREFIX}${l}_${r}`,d=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${n}`;try{if(!e.cookies?.[d])throw Error("Cookie not present");let t=s({encryptedString:e.cookies[d]});if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:i=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:i}}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:i}){try{if(i.fields.find(e=>!!e.fieldName?.match(/^order$/i))&&t){let i=await s({database:e,paradigm:"Full Access",queryString:`SELECT * FROM ${a} WHERE \`order\` = '${t}' AND id != ?`,queryValues:[String(r)]});if(!i?.[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}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72835),i=t(29021),o=t(31341);async function l(e,r,t,l){let{keyCookieName:n,csrfCookieName:d}=o();if(!e.cookies?.[n]?.match(/./))return null;let u=a({encryptedString:e.cookies[n]});if(!u)return null;let c=JSON.parse(u);if(!c.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${p}/${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=l},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=r;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=t;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),{keyCookieName:a,csrfCookieName:i+=s}}},48225:(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 o=new Date,l=(()=>{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)}`),l&&(a+=` +IP: ${l}`),a+=` +Date: ${o.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let n=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` + + + + +${n}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:i}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,l=t||process.env.DSQL_ENCRYPTION_SALT,n=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=a("aes-192-cbc",s(o,l,n),i.alloc(16,0));try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[4050],()=>t(14373));module.exports=s})(); \ 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 new file mode 100644 index 0000000..962d705 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/addTableEntry.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..7f75a62 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/addUserMedia.js @@ -0,0 +1,16 @@ +"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:()=>$,default:()=>b,routeModule:()=>x});var a={};t.r(a),t.d(a,{config:()=>y,default:()=>E});var i=t(89947),s=t(2706),l=t(96762),n=t(47670),o=t.n(n),u=t(10701),d=t.n(u),c=t(48227),m=t.n(c),p=t(48225),_=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(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 s=a.folder,l=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(s){let e=S.join(n,`images/user-images/user-${t.id}/${s}`);g.existsSync(e)||g.mkdirSync(e,{recursive:!0});let r=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/media/${s}`;g.existsSync(r)||g.mkdirSync(r,{recursive:!0})}try{let e=[];for(let r=0;r{let a=t(9288),i=t(48225),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:_,urlRootPath:f,relativePath:h}=p,{width:g,height:S,format:v}=await c.metadata(),y=l||v;g&&S&&g>1800&&c.resize(1800,Math.round(1800/g*S),{fit:"cover"}),c.toFormat(y,{quality:80}),await c.metadata();let E=`${r}.${y}`;if(await c.toFile(_+E),g&&S&&g>d){let e=d/g;m.resize(d,Math.round(S*e),{fit:"cover"})}else g&&S&&m.resize(150,Math.round(150/g*S),{fit:"cover"});m.toFormat(y,{quality:80});let b=`${r}_thumbnail.${y}`;return await m.toFile(_+b),{urlPath:f+E,urlThumbnailPath:f+b,urlRelativePath:h+E,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: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}}},6420:(e,r,t)=>{t(81630);let a=t(51348),i=t(72835),s=t(29021),l=t(31341);async function n(e,r,t,n){let{keyCookieName:o,csrfCookieName:u}=l();if(!e.cookies?.[o]?.match(/./))return null;let d=i({encryptedString:e.cookies[o]});if(!d)return null;let c=JSON.parse(d);if(!c.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let m=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!m)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!s.existsSync(`${m}/${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&&r.setHeader("Set-Cookie",["user_refresh=1"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=n},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=r;e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),i+=t;let s=r;return e?.userId&&(s+=`user_${e.userId}_`),e?.database&&(s+=`${e.database}_`),{keyCookieName:i,csrfCookieName:s+=a}}},48225:(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",` + + + + +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:a,createDecipheriv:i}=t(55511),{Buffer:s}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let l=r||process.env.DSQL_ENCRYPTION_PASSWORD,n=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!l?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!n?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=i("aes-192-cbc",a(l,n,o),s.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};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 new file mode 100644 index 0000000..0e43227 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/addUserMedia.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..b721335 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/addUserTable.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=8275,e.ids=[8275],e.modules={60818:e=>{e.exports=require("dotenv")},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:()=>x,default:()=>D,routeModule:()=>v});var s={};t.r(s),t.d(s,{default:()=>F});var r=t(89947),l=t(2706),d=t(96762),i=t(48225),n=t.n(i),u=t(6420),o=t.n(u),b=t(2258),c=t(27825),_=t.n(c),m=t(78634),f=t(51348),p=t.n(f),h=t(47670),N=t.n(h),S=t(19261),g=t.n(S);t(29021),t(33873);let{execSync:E}=t(79646);async function F(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:s}=e.body,r=e.body.dbFullName.replace(/[^a-z\_0-9]/g,""),l=e.body.dbSlug,d=e.body.dbId,i=e.body.parentDatabase,u=e.body.parentTable;try{let e=(0,b.default)({userId:t.id});if(!e)throw Error("No User Schema found!");let o=e.findIndex(e=>e.dbFullName===r),c=e[o];if(!c)throw Error("No Target Database Found!");let f=c.tables.findIndex(e=>e.tableName===s.tableName);if(f>=0?e[o].tables[f]=s:e[o].tables.push(s),s?.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:r,tableName:s.tableName,tableNameFull:s.tableNameFull}):t.childrenTables=[{dbNameFull:r,tableName:s.tableName,tableNameFull:s.tableFullName}]}if(c.childrenDatabases)for(let a=0;ae.dbFullName===r.dbFullName);e[a]&&(e[a].tables=_().cloneDeep(c.tables));let l=await p()("SELECT * FROM user_databases WHERE user_id = ? AND db_full_name = ?",[t.id,r.dbFullName]),d=await p()("SELECT * FROM user_database_tables WHERE db_id=? AND user_id=? AND table_slug=?",[l[0].id,t.id,s.tableName]);if(d?.[0])continue;await N()({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:t.id,db_id:l[0].id,db_slug:l[0].db_slug,table_name:s.tableFullName,table_slug:s.tableName}})}catch(e){n()({component:"/api/addUserTable/lines-124-140",message:e.message,user:t})}}(0,m.default)({userId:t.id,schemaData:e});let h={user_id:t.id,db_id:d,db_slug:l,table_name:s.tableFullName,table_slug:s.tableName};s?.childTable&&(h.child_table="1",h.child_table_parent_database=i,h.child_table_parent_table=u),await N()({dbFullName:"datasquirel",tableName:"user_database_tables",data:h}),await g()({userId:t.id,targetDatabase:r}),a.json({success:!0})}catch(e){console.log(e.message),n()({component:"/api/addUserTable/main-catch-error",message:e.message,user:t}),a.json({success:!1,msg:"Database Files could not be written!"})}}let D=(0,d.M)(s,"default"),x=(0,d.M)(s,"config"),v=new r.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/addUserTable",pathname:"/api/addUserTable",bundlePath:"",filename:""},userland:s})},6420:(e,a,t)=>{t(81630);let s=t(51348),r=t(72835),l=t(29021),d=t(31341);async function i(e,a,t,i){let{keyCookieName:n,csrfCookieName:u}=d();if(!e.cookies?.[n]?.match(/./))return null;let o=r({encryptedString:e.cookies[n]});if(!o)return null;let b=JSON.parse(o);if(!b.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${b.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&&!l.existsSync(`${c}/${b.csrf_k}`))return null;if(0==b.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${b.id}'`);e&&e[0]&&1==e[0].verification_status&&a.setHeader("Set-Cookie",["user_refresh=1"])}return b?.date&&Date.now()-b.date>6048e5?null:b}e.exports=i},31341:e=>{e.exports=function(e){let a=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",r=a;e?.userId&&(r+=`user_${e.userId}_`),e?.database&&(r+=`${e.database}_`),r+=t;let l=a;return e?.userId&&(l+=`user_${e.userId}_`),e?.database&&(l+=`${e.database}_`),{keyCookieName:r,csrfCookieName:l+=s}}},2258:(e,a,t)=>{t.r(a),t.d(a,{default:()=>d});let s=t(48225),r=t(29021),l=t(33873);function d({userId:e}){try{let a=l.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(r.readFileSync(a,"utf-8"))}catch(e){return s({component:"grabUserSchemaData",message:e.message}),null}}},78634:(e,a,t)=>{t.r(a),t.d(a,{default:()=>d});let s=t(48225),r=t(29021),l=t(33873);function d({userId:e,schemaData:a}){try{let t=l.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return r.writeFileSync(t,JSON.stringify(a),"utf8"),!0}catch(e){return s({component:"/functions/backend/setUserSchemaData",message:e.message}),!1}}}};var a=require("../../webpack-api-runtime.js");a.C(e);var t=e=>a(a.s=e),s=a.X(0,[4050,2451],()=>t(13441));module.exports=s})(); \ 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 new file mode 100644 index 0000000..3b98fbd --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/addUserTable.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../.env","../../../../jsonData/dbSchemas/main.json","../../../../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/dotenv/lib/main.js","../../../../node_modules/dotenv/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-shared/data/defaultFields.json","../../../../package.json","../../../package.json","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..f59c397 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/addUserUser.js @@ -0,0 +1,4 @@ +"use strict";(()=>{var e={};e.id=3812,e.ids=[3812],e.modules={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,t)=>{t.r(s),t.d(s,{config:()=>h,default:()=>g,routeModule:()=>E});var a={};t.r(a),t.d(a,{default:()=>S});var r=t(89947),i=t(2706),n=t(96762),l=t(59474),o=t.n(l),d=t(6420),u=t.n(d),c=t(47670),_=t.n(c),p=t(51348),m=t.n(p),f=t(14533),v=t.n(f);async function S(e,s){if("POST"!==e.method)return s.json({msg:"Failed!"});let t=await u()(e,s,!0);if(!t)return s.json({success:!1,msg:"Unauthorized"});let a=e.body,r=a.paradigm;if(r?.match(/database/)){let e=await _()({dbFullName:"datasquirel",tableName:"user_users",data:(()=>{let e=Object.keys(a),s={};return e.forEach(e=>{e?.match(/paradigm|priviledge|database_access|databases|confirm/)||(s[e]=a[e])}),s.user_id=t.id,s.password=v()({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:a.password}),s.user_type="database",s.email=a.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(t?.email===a.email_address)return s.json({success:!1,msg:"Can't Invite yourself"});let e=await m()("SELECT * FROM invitations WHERE invited_user_email=? AND inviting_user_id=?",[a.email_address,t.id]);if(e&&e[0])return s.json({success:!1,msg:"User Already Invited"});await _()({dbFullName:"datasquirel",tableName:"invitations",data:{inviting_user_id:t.id,invited_user_email:a.email_address,database_access:a.database_access,priviledge:a.priviledge,db_tables_data:a.db_tables}});let r=await o()({to:a.email_address,subject:`${t.first_name} ${t.last_name} Invited you`,text:`${t.first_name} ${t.last_name} has invited you to manage a datasquirel account`,html:` +

${t.first_name} ${t.last_name} has invited you to manage a datasquirel account.

+ Accept Invitation + `});s.json({success:!!r?.accepted,msg:"This is an invitation request"})}}let g=(0,n.M)(a,"default"),h=(0,n.M)(a,"config"),E=new r.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/addUserUser",pathname:"/api/addUserUser",bundlePath:"",filename:""},userland:a})},6420:(e,s,t)=>{t(81630);let a=t(51348),r=t(72835),i=t(29021),n=t(31341);async function l(e,s,t,l){let{keyCookieName:o,csrfCookieName:d}=n();if(!e.cookies?.[o]?.match(/./))return null;let u=r({encryptedString:e.cookies[o]});if(!u)return null;let c=JSON.parse(u);if(!c.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${_}/${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},31341:e=>{e.exports=function(e){let s=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",r=s;e?.userId&&(r+=`user_${e.userId}_`),e?.database&&(r+=`${e.database}_`),r+=t;let i=s;return e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),{keyCookieName:r,csrfCookieName:i+=a}}},59474:(e,s,t)=>{let a=t(29021),r=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:s,text:t,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 o=(n?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!a.existsSync("./email/index.html"))return;let d=a.readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,i||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let a={};a.from=`"Datasquirel" <${o}>`,a.sender=o,n&&(a["replyTo "]=o),a.to=e,a.subject=s,a.text=t,a.html=d,l=await r.sendMail(a)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return l}},72835:(e,s,t)=>{let{scryptSync:a,createDecipheriv:r}=t(55511),{Buffer:i}=t(79428);e.exports=({encryptedString:e,encryptionKey:s,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=s||process.env.DSQL_ENCRYPTION_PASSWORD,l=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=r("aes-192-cbc",a(n,l,o),i.alloc(16,0));try{let s=d.update(e,"hex","utf8");return s+=d.final("utf8")}catch(s){return console.log("Error in decrypting =>",s.message),e}}},14533:(e,s,t)=>{let{createHmac:a}=t(55511);e.exports=function({password:e,encryptionKey:s}){let t=s||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let r=a("sha512",t);return r.update(e),r.digest("base64")}}};var s=require("../../webpack-api-runtime.js");s.C(e);var t=e=>s(s.s=e),a=s.X(0,[4050],()=>t(21110));module.exports=a})(); \ 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 new file mode 100644 index 0000000..c63939d --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/addUserUser.js.nft.json @@ -0,0 +1 @@ +{"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/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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..85bdb52 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/addUsersTableToDatabase.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=4436,e.ids=[4436],e.modules={60818:e=>{e.exports=require("dotenv")},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:()=>y,default:()=>T,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>R});var l=t(89947),r=t(2706),i=t(96762),d=t(51348),u=t.n(d),n=t(48225),o=t.n(n),f=t(6420),p=t.n(f),m=t(47670),_=t.n(m),c=t(19261),b=t.n(c);let N=t(29021);t(33873);let{execSync:A}=t(79646);async function R(e,a){if("POST"!==e.method)return a.json({msg:"Failed!"});let s=await p()(e,a,!0);if(!s)return a.json({success:!1,msg:"Unauthorized"});let{dbFullName:l,dbSlug:r,dbId:i}=e.body,d=t(8693),n=t(95610),f=[...n.slice(0,2),...d.fields,...n.slice(2)];d.fields=[...f];try{let e;let t=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s.id}/main.json`,n=JSON.parse(N.readFileSync(t,"utf8")),f=n.filter(e=>e.dbFullName===l)[0],p=f.tables.filter((a,t)=>{if("users"===a.tableName)return e=t,!0});if(p?.[0]&&"number"==typeof e?f.tables[e]=d:f.tables.push(d),f.childrenDatabases)for(let e=0;ee.dbFullName===a.dbFullName)[0].tables=f.tables;let e=await u()("SELECT * FROM user_databases WHERE user_id = ? AND db_full_name = ?",[s.id,a.dbFullName]);await _()({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:s.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:s})}}N.writeFileSync(`${t}`,JSON.stringify(n),"utf8"),await _()({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:s.id,db_id:i,db_slug:r,table_name:"Users",table_slug:"users"}});let m=l.replace(/[^a-z\_0-9]/g,"");await b()({userId:s.id,targetDatabase:m}),a.json({success:!0})}catch(e){o()({component:"/api/addUsersTableToDatabase/main-catch-error",message:e.message,user:s}),a.json({success:!1,msg:"Database Files could not be written!"})}}let T=(0,i.M)(s,"default"),y=(0,i.M)(s,"config"),g=new l.PagesAPIRouteModule({definition:{kind:r.A.PAGES_API,page:"/api/addUsersTableToDatabase",pathname:"/api/addUsersTableToDatabase",bundlePath:"",filename:""},userland:s})},6420:(e,a,t)=>{t(81630);let s=t(51348),l=t(72835),r=t(29021),i=t(31341);async function d(e,a,t,d){let{keyCookieName:u,csrfCookieName:n}=i();if(!e.cookies?.[u]?.match(/./))return null;let o=l({encryptedString:e.cookies[u]});if(!o)return null;let f=JSON.parse(o);if(!f.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${f.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!r.existsSync(`${p}/${f.csrf_k}`))return null;if(0==f.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${f.id}'`);e&&e[0]&&1==e[0].verification_status&&a.setHeader("Set-Cookie",["user_refresh=1"])}return f?.date&&Date.now()-f.date>6048e5?null:f}e.exports=d},31341:e=>{e.exports=function(e){let a=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",l=a;e?.userId&&(l+=`user_${e.userId}_`),e?.database&&(l+=`${e.database}_`),l+=t;let r=a;return e?.userId&&(r+=`user_${e.userId}_`),e?.database&&(r+=`${e.database}_`),{keyCookieName:l,csrfCookieName:r+=s}}},8693: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":"TEXT"},{"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),s=a.X(0,[4050,2451],()=>t(13461));module.exports=s})(); \ 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 new file mode 100644 index 0000000..af3fd32 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/addUsersTableToDatabase.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../.env","../../../../jsonData/dbSchemas/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/dotenv/lib/main.js","../../../../node_modules/dotenv/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-shared/data/defaultFields.json","../../../../package-shared/data/presets/users.json","../../../../package.json","../../../package.json","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..cf3a9d4 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/admin/addUserBackup.js @@ -0,0 +1 @@ +"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,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}}})},55535:(e,s,r)=>{r.r(s),r.d(s,{config:()=>E,default:()=>D,routeModule:()=>v});var t={};r.r(t),r.d(t,{default:()=>f});var n=r(89947),o=r(2706),c=r(96762),a=r(51348),i=r.n(a),l=r(19131),u=r.n(l);let p=r(29021),_=r(21820),{execSync:d,spawnSync:S}=r(79646);async function f(e,s){if("POST"!==e.method)return s.json({success:!1,msg:"Wrong Method"});let r=await u()(e);if(!r?.logged_in_status)return s.json({success:!1,log:"Unauthorized"});try{let r=e.body.user.id.toString().replace(/[^0-9]/g,"").replace(/\//g,""),t=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r}/backups`;p.existsSync(t)||p.mkdirSync(t);let n=Date.now().toString();p.mkdirSync(`${t}/${n}`);let o=await i()("SHOW databases LIKE ?",[`datasquirel_user_${r}_%`]);for(let e=0;e ${i}`;console.log(`addUserBackup.js exe => ${l}`),S(c,["-u",process.env.DSQL_DB_USERNAME,"-h",process.env.DSQL_DB_HOST,`-p${process.env.DSQL_DB_PASSWORD}`,r,">",i],a)}p.copyFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r}/main.json`,`${t}/${n}/main.json`),s.json({success:!0})}catch(e){console.log(e.message),s.json({success:!1})}}let D=(0,c.M)(t,"default"),E=(0,c.M)(t,"config"),v=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/addUserBackup",pathname:"/api/admin/addUserBackup",bundlePath:"",filename:""},userland:t})},19131:(e,s,r)=>{let{IncomingMessage:t}=r(81630),n=r(72835),o=r(31341);e.exports=async function(e){let{keyCookieName:s,csrfCookieName:r}=o(),t=`${s}_su`;if(!e.cookies?.[t])return console.log("No auth key cookie found"),null;let c=n({encryptedString:e.cookies[t]});if(!c)return console.log("No user payload found"),null;let a=JSON.parse(c);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}},31341:e=>{e.exports=function(e){let s=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=s;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=r;let o=s;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=t}}},72835:(e,s,r)=>{let{scryptSync:t,createDecipheriv:n}=r(55511),{Buffer:o}=r(79428);e.exports=({encryptedString:e,encryptionKey:s,encryptionSalt:r})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let c=s||process.env.DSQL_ENCRYPTION_PASSWORD,a=r||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!c?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",t(c,a,i),o.alloc(16,0));try{let s=l.update(e,"hex","utf8");return s+=l.final("utf8")}catch(s){return console.log("Error in decrypting =>",s.message),e}}},51348:(e,s,r)=>{let t=r(9973),n=r(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 c(...e){try{let s=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=c},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=55535);module.exports=r})(); \ 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 new file mode 100644 index 0000000..849b85d --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/admin/addUserBackup.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..2273055 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/admin/clearErrorLogs.js @@ -0,0 +1 @@ +"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:()=>_,default:()=>p,routeModule:()=>f});var o={};t.r(o),t.d(o,{default:()=>d});var n=t(89947),s=t(2706),i=t(96762),u=t(19131),a=t.n(u);let{execSync:l}=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 a()(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,i.M)(o,"default"),_=(0,i.M)(o,"config"),f=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(72835),s=t(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:t}=s(),o=`${r}_su`;if(!e.cookies?.[o])return console.log("No auth key cookie found"),null;let i=n({encryptedString:e.cookies[o]});if(!i)return console.log("No user payload found"),null;let u=JSON.parse(i);return u.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):u.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):u}},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",o=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let s=r;return e?.userId&&(s+=`user_${e.userId}_`),e?.database&&(s+=`${e.database}_`),{keyCookieName:n,csrfCookieName:s+=o}}},72835:(e,r,t)=>{let{scryptSync:o,createDecipheriv:n}=t(55511),{Buffer:s}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,u=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",o(i,u,a),s.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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 new file mode 100644 index 0000000..d04f6f5 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/admin/clearErrorLogs.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..6d49230 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/admin/clientError.js @@ -0,0 +1,13 @@ +"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(59474);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",` + + + + +${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})},59474:(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 new file mode 100644 index 0000000..fe26bf5 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/admin/clientError.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..f87ac6c --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/admin/createNewBackup.js @@ -0,0 +1,16 @@ +"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:()=>g,default:()=>y,routeModule:()=>E});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),o=t(2706),a=t(96762),i=t(93209),l=t.n(i),c=t(48225),u=t.n(c),d=t(19131),p=t.n(d);let m=t(29021),S=t(21820),{execSync:f}=t(79646);async function _(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 s="./.tmp/backups";m.existsSync(s)||m.mkdirSync("./.tmp/backups");let n=Date.now().toString();m.mkdirSync(`${s}/${n}`);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=`${s}/${n}/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",`${s}/${n}/datasquirelSchema.json`),l()({rootFolderPath:`${process.env.DSQL_USER_DB_SCHEMA_PATH}`,destinationFolderPath:`${s}/${n}/userSchemas`}),r.json({success:!0})}catch(e){r.json({success:!1}),u()({component:"/api/admin/createNewBackup/lines-73-90",message:e.message})}}let y=(0,a.M)(s,"default"),g=(0,a.M)(s,"config"),E=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/createNewBackup",pathname:"/api/admin/createNewBackup",bundlePath:"",filename:""},userland:s})},93209:(e,r,t)=>{let s=t(29021);e.exports=function({rootFolderPath:e,destinationFolderPath:r}){try{return s.mkdirSync(r),function e(r,t){let n=s.readdirSync(r);for(let o=0;o{let{IncomingMessage:s}=t(81630),n=t(72835),o=t(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:t}=o(),s=`${r}_su`;if(!e.cookies?.[s])return console.log("No auth key cookie found"),null;let a=n({encryptedString:e.cookies[s]});if(!a)return console.log("No user payload found"),null;let i=JSON.parse(a);return i.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):i.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):i}},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},48225:(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",` + + + + +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(a,i,l),o.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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 new file mode 100644 index 0000000..d04f6f5 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/admin/createNewBackup.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..5a827ee --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/admin/docs/[action].js @@ -0,0 +1 @@ +"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:()=>R,default:()=>w,routeModule:()=>x});var r={};a.r(r),a.d(r,{default:()=>v});var s=a(89947),n=a(2706),l=a(96762),o=a(77509),i=a.n(o),d=a(73921),c=a.n(d),u=a(29131),p=a.n(u),_=a(30573),g=a.n(_),E=a(6983),f=a.n(E),S=a(46238),y=a.n(S),m=a(19131),h=a.n(m);async function v(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 i()({body:s});break;case"update-page":e=await i()({body:s,update:!0});break;case"delete-page":e=await c()({body:s});break;case"get-snippets":e=await p()();break;case"grab-parent-pages":e=await f()({body:s});break;case"get-child-pages":e=await g()({body:s});break;case"persist":e=await y()({body:s})}if(!e)throw Error("Operation failed!");t.json({success:!0,result:e})}catch(e){t.json({success:!1})}}let w=(0,l.M)(r,"default"),R=(0,l.M)(r,"config"),x=new s.PagesAPIRouteModule({definition:{kind:n.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),n=a(47670),l=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}}(),i=await n({data:{title:e.title,slug:a,description:r(e.description,l),content:r(e.content,l),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 i?.insertId?i:t&&i.affectedRows?i: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{let{IncomingMessage:r}=a(81630),s=a(72835),n=a(31341);e.exports=async function(e){let{keyCookieName:t,csrfCookieName:a}=n(),r=`${t}_su`;if(!e.cookies?.[r])return console.log("No auth key cookie found"),null;let l=s({encryptedString:e.cookies[r]});if(!l)return console.log("No user payload found"),null;let o=JSON.parse(l);return o.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):o.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):o}},31341:e=>{e.exports=function(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",a=process.env.DSQL_COOKIES_KEY_NAME||"key",r=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=t;e?.userId&&(s+=`user_${e.userId}_`),e?.database&&(s+=`${e.database}_`),s+=a;let n=t;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:s,csrfCookieName:n+=r}}},72835:(e,t,a)=>{let{scryptSync:r,createDecipheriv:s}=a(55511),{Buffer:n}=a(79428);e.exports=({encryptedString:e,encryptionKey:t,encryptionSalt:a})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let l=t||process.env.DSQL_ENCRYPTION_PASSWORD,o=a||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!l?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=s("aes-192-cbc",r(l,o,i),n.alloc(16,0));try{let t=d.update(e,"hex","utf8");return t+=d.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}}};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 new file mode 100644 index 0000000..e1f2a2a --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/admin/docs/[action].js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/7070.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9621.js","../../../../chunks/9732.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 new file mode 100644 index 0000000..3d5e4ae --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/admin/getTablesForUserDatabase.js @@ -0,0 +1,16 @@ +"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,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}}})},62347:(e,r,s)=>{s.r(r),s.d(r,{config:()=>_,default:()=>d,routeModule:()=>S});var t={};s.r(t),s.d(t,{default:()=>p});var n=s(89947),o=s(2706),a=s(96762),c=s(57638),l=s.n(c);s(48225);var i=s(19131),u=s.n(i);async function p(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let s=await u()(e);if(!s?.logged_in_status)return r.json({success:!1,log:"No Logs"});let{database:t}=e.query;try{let e=await l()({database:"string"==typeof t?t:"",queryString:`SHOW TABLES FROM ${t}`});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})}}s(29021);let d=(0,a.M)(t,"default"),_=(0,a.M)(t,"config"),S=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/getTablesForUserDatabase",pathname:"/api/admin/getTablesForUserDatabase",bundlePath:"",filename:""},userland:t})},19131:(e,r,s)=>{let{IncomingMessage:t}=s(81630),n=s(72835),o=s(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:s}=o(),t=`${r}_su`;if(!e.cookies?.[t])return console.log("No auth key cookie found"),null;let a=n({encryptedString:e.cookies[t]});if(!a)return console.log("No user payload found"),null;let c=JSON.parse(a);return c.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):c.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):c}},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=s;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=t}}},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,s)=>{let t=s(72835),n=s(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let s=[];try{for(let o=0;o",r.message),e}}},48225:(e,r,s)=>{let t=s(29021),{IncomingMessage:n}=s(81630);e.exports=async function({user:e,message:r,component:s,noMail:n,req:o}){let a=new Date,c=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],s=o.headers["cf-connecting-ip"],t=Array.isArray(e)?e[0]:e?.split(",")[0],n=s||t||r||o.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${s}`;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)}`),c&&(n+=` +IP: ${c}`),n+=` +Date: ${a.toDateString()} +========================================`,t.existsSync("./.tmp/error.log")||t.writeFileSync("./.tmp/error.log","","utf-8");let l=t.readFileSync("./.tmp/error.log","utf-8");t.writeFileSync("./.tmp/error.log",n),t.appendFileSync("./.tmp/error.log",` + + + + +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,s)=>{s(29021);let t=s(6061),n=s(48225),o=s(51348),a=s(21339),c=s(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:s,tableSchema:l,useLocal:i}){let u;let p=!!s?.match(/^datasquirel$/),d=i?c:p?o:a;try{u=e&&r&&Array.isArray(r)&&r[0]?p?await d(e,r):await d({paradigm:"Full Access",database:s,queryString:e,queryValues:r}):p?await d(e):await d({paradigm:"Full Access",database:s,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;return await t({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",s,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,s)=>{let{scryptSync:t,createDecipheriv:n}=s(55511),{Buffer:o}=s(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:s})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,c=s||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let i=n("aes-192-cbc",t(a,c,l),o.alloc(16,0));try{let r=i.update(e,"hex","utf8");return r+=i.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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},21339:(e,r,s)=>{let t=s(29021);s(33873);let n=s(9973),o=s(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:s,queryValues:c}){try{return new Promise((l,i)=>{let u=!!e?.match(/full.access|^fa$/i);try{function p(e){a.end(),l(JSON.parse(JSON.stringify(e)))}function d(e){a.end(),l({error:e.message,queryStringGenerated:s,queryValuesGenerated:c,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()}}),c&&Array.isArray(c)&&c[0]?a.query(s,c).then(p).catch(d):a.query(s).then(p).catch(d)}catch(e){t.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,s)=>{let t=s(9973),n=s(21580);async function o(...e){let r=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()},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 s=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}e.exports=o},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=62347);module.exports=s})(); \ 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 new file mode 100644 index 0000000..849b85d --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/admin/getTablesForUserDatabase.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..b1e8022 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/admin/getUserBackups.js @@ -0,0 +1 @@ +"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:()=>_});var s={};t.r(s),t.d(s,{default:()=>l});var n=t(89947),o=t(2706),u=t(96762),i=t(19131),a=t.n(i);let c=t(29021);async function l(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 s=e.body.user.id.toString().replace(/[^0-9]/g,"").replace(/\//g,""),n=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s}/backups`;c.existsSync(n)||c.mkdirSync(n);let o=c.readdirSync(n);r.json({success:!0,backups:o})}let d=(0,u.M)(s,"default"),p=(0,u.M)(s,"config"),_=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/getUserBackups",pathname:"/api/admin/getUserBackups",bundlePath:"",filename:""},userland:s})},19131:(e,r,t)=>{let{IncomingMessage:s}=t(81630),n=t(72835),o=t(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:t}=o(),s=`${r}_su`;if(!e.cookies?.[s])return console.log("No auth key cookie found"),null;let u=n({encryptedString:e.cookies[s]});if(!u)return console.log("No user payload found"),null;let i=JSON.parse(u);return i.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):i.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):i}},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let u=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!u?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(u,i,a),o.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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 new file mode 100644 index 0000000..d04f6f5 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/admin/getUserBackups.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..9b60b63 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/admin/getUserData.js @@ -0,0 +1 @@ +"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,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}}})},29249:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>_,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>d});var o=t(89947),n=t(2706),a=t(96762),i=t(51348),c=t.n(i),u=t(19131),l=t.n(u);let p=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"});let s=e.body.user,o=s?.id.toString().replace(/[^0-9]/g,"").replace(/\//g,""),n=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${o}`,a=[];!function e({originArray:r,rootPath:t}){let s=p.readdirSync(t);for(let o=0;oObject.values(e)[0])})}let _=(0,a.M)(s,"default"),f=(0,a.M)(s,"config"),S=new o.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/admin/getUserData",pathname:"/api/admin/getUserData",bundlePath:"",filename:""},userland:s})},19131:(e,r,t)=>{let{IncomingMessage:s}=t(81630),o=t(72835),n=t(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:t}=n(),s=`${r}_su`;if(!e.cookies?.[s])return console.log("No auth key cookie found"),null;let a=o({encryptedString:e.cookies[s]});if(!a)return console.log("No user payload found"),null;let i=JSON.parse(a);return i.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):i.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):i}},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=r;e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),o+=t;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:o,csrfCookieName:n+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:o}=t(55511),{Buffer:n}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=o("aes-192-cbc",s(a,i,c),n.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),o=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:o()}});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=29249);module.exports=t})(); \ 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 new file mode 100644 index 0000000..849b85d --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/admin/getUserData.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..82de488 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/admin/grabBackups.js @@ -0,0 +1 @@ +"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,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}}})},89995:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>_});var n={};t.r(n),t.d(n,{default:()=>l});var s=t(89947),o=t(2706),a=t(96762),u=t(19131),i=t.n(u);let c=t(29021);async function l(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed"});let t=await i()(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});let n="./.tmp/backups";c.existsSync(n)||c.mkdirSync(n);let s=c.readdirSync(n);r.json({success:!0,backups:s})}let d=(0,a.M)(n,"default"),p=(0,a.M)(n,"config"),_=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/grabBackups",pathname:"/api/admin/grabBackups",bundlePath:"",filename:""},userland:n})},19131:(e,r,t)=>{let{IncomingMessage:n}=t(81630),s=t(72835),o=t(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:t}=o(),n=`${r}_su`;if(!e.cookies?.[n])return console.log("No auth key cookie found"),null;let a=s({encryptedString:e.cookies[n]});if(!a)return console.log("No user payload found"),null;let u=JSON.parse(a);return u.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):u.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):u}},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=r;e?.userId&&(s+=`user_${e.userId}_`),e?.database&&(s+=`${e.database}_`),s+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:s,csrfCookieName:o+=n}}},72835:(e,r,t)=>{let{scryptSync:n,createDecipheriv:s}=t(55511),{Buffer:o}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,u=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=s("aes-192-cbc",n(a,u,i),o.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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=89995);module.exports=t})(); \ 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 new file mode 100644 index 0000000..d04f6f5 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/admin/grabBackups.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..95bec08 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/admin/grabErrorLogs.js @@ -0,0 +1 @@ +"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 s=t(89947),n=t(2706),i=t(96762),u=t(19131),a=t.n(u);let l=t(29021);async function c(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed"});let t=await a()(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});if(!l.existsSync("./.tmp/error.log"))return r.json({success:!0,log:"No Logs Yet."});let o=l.readFileSync("./.tmp/error.log","utf-8");r.json({success:!0,log:o})}let d=(0,i.M)(o,"default"),p=(0,i.M)(o,"config"),f=new s.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/admin/grabErrorLogs",pathname:"/api/admin/grabErrorLogs",bundlePath:"",filename:""},userland:o})},19131:(e,r,t)=>{let{IncomingMessage:o}=t(81630),s=t(72835),n=t(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:t}=n(),o=`${r}_su`;if(!e.cookies?.[o])return console.log("No auth key cookie found"),null;let i=s({encryptedString:e.cookies[o]});if(!i)return console.log("No user payload found"),null;let u=JSON.parse(i);return u.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):u.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):u}},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",o=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=r;e?.userId&&(s+=`user_${e.userId}_`),e?.database&&(s+=`${e.database}_`),s+=t;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:s,csrfCookieName:n+=o}}},72835:(e,r,t)=>{let{scryptSync:o,createDecipheriv:s}=t(55511),{Buffer:n}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,u=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=s("aes-192-cbc",o(i,u,a),n.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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 new file mode 100644 index 0000000..d04f6f5 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/admin/grabErrorLogs.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..96bce92 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/admin/grabFile.js @@ -0,0 +1 @@ +"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,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}}})},15570:(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 s=t(89947),o=t(2706),a=t(96762),u=t(19131),i=t.n(u);let l=t(29021);async function c(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let t=await i()(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});let{type:n,path:s}=e.body;if(e.body.user,!s?.match(/^\.\/jsonData\/dbSchemas\/users/))return r.json({success:!1,msg:"Invalid Path"});let o=s.replace(/\//g,"\\\\"),a=l.readFileSync(o,"utf-8");r.json({success:!0,data:a})}let d=(0,a.M)(n,"default"),p=(0,a.M)(n,"config"),f=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/grabFile",pathname:"/api/admin/grabFile",bundlePath:"",filename:""},userland:n})},19131:(e,r,t)=>{let{IncomingMessage:n}=t(81630),s=t(72835),o=t(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:t}=o(),n=`${r}_su`;if(!e.cookies?.[n])return console.log("No auth key cookie found"),null;let a=s({encryptedString:e.cookies[n]});if(!a)return console.log("No user payload found"),null;let u=JSON.parse(a);return u.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):u.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):u}},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=r;e?.userId&&(s+=`user_${e.userId}_`),e?.database&&(s+=`${e.database}_`),s+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:s,csrfCookieName:o+=n}}},72835:(e,r,t)=>{let{scryptSync:n,createDecipheriv:s}=t(55511),{Buffer:o}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,u=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=s("aes-192-cbc",n(a,u,i),o.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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=15570);module.exports=t})(); \ 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 new file mode 100644 index 0000000..d04f6f5 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/admin/grabFile.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..c68ffe6 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/admin/loginSuUser.js @@ -0,0 +1 @@ +"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")},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:()=>p,default:()=>_,routeModule:()=>E});var n={};t.r(n),t.d(n,{default:()=>d});var s=t(89947),o=t(2706),i=t(96762),a=t(31341),u=t.n(a),c=t(20503),l=t.n(c);async function d(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=l()({data:JSON.stringify({email:t,password:process.env.DSQL_USER_KEY,authKey:process.env.DSQL_SPECIAL_KEY,logged_in_status:!0,date:Date.now()})}),{keyCookieName:i,csrfCookieName:a}=u()();r.setHeader("Set-Cookie",[`${i}_su=${o};samesite=strict;path=/;HttpOnly=true;Secure=true`]),r.json({success:!0})}let _=(0,i.M)(n,"default"),p=(0,i.M)(n,"config"),E=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/loginSuUser",pathname:"/api/admin/loginSuUser",bundlePath:"",filename:""},userland:n})},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=r;e?.userId&&(s+=`user_${e.userId}_`),e?.database&&(s+=`${e.database}_`),s+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:s,csrfCookieName:o+=n}}},20503:(e,r,t)=>{let{scryptSync:n,createCipheriv:s}=t(55511),{Buffer:o}=t(79428);e.exports=({data:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,u=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=s("aes-192-cbc",n(i,a,u),o.alloc(16,0));try{let r=c.update(e,"utf8","hex");return r+=c.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},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 new file mode 100644 index 0000000..d04f6f5 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/admin/loginSuUser.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..d1f332a --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/admin/runUserDbQuery.js @@ -0,0 +1,16 @@ +"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,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}}})},89496:(e,r,s)=>{s.r(r),s.d(r,{config:()=>g,default:()=>S,routeModule:()=>f});var t={};s.r(t),s.d(t,{default:()=>_});var n=s(89947),o=s(2706),a=s(96762),c=s(57638),l=s.n(c),i=s(48225),u=s.n(i),p=s(19131),d=s.n(p);async function _(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let s=await d()(e);if(!s?.logged_in_status)return r.json({success:!1,log:"No Logs"});let{database:t,query:n}=e.body;e.body.user;try{let e=await l()({database:t,queryString:n});if(!e)return r.json({success:!1,msg:"Query Failed!"});r.json({success:!0,result:e})}catch(e){console.log(e.message),u()({component:"/api/runUserDbQuery/main-catch-error",message:e.message}),r.json({success:!1})}}s(29021);let S=(0,a.M)(t,"default"),g=(0,a.M)(t,"config"),f=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/runUserDbQuery",pathname:"/api/admin/runUserDbQuery",bundlePath:"",filename:""},userland:t})},19131:(e,r,s)=>{let{IncomingMessage:t}=s(81630),n=s(72835),o=s(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:s}=o(),t=`${r}_su`;if(!e.cookies?.[t])return console.log("No auth key cookie found"),null;let a=n({encryptedString:e.cookies[t]});if(!a)return console.log("No user payload found"),null;let c=JSON.parse(a);return c.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):c.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):c}},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=s;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=t}}},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,s)=>{let t=s(72835),n=s(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let s=[];try{for(let o=0;o",r.message),e}}},48225:(e,r,s)=>{let t=s(29021),{IncomingMessage:n}=s(81630);e.exports=async function({user:e,message:r,component:s,noMail:n,req:o}){let a=new Date,c=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],s=o.headers["cf-connecting-ip"],t=Array.isArray(e)?e[0]:e?.split(",")[0],n=s||t||r||o.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${s}`;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)}`),c&&(n+=` +IP: ${c}`),n+=` +Date: ${a.toDateString()} +========================================`,t.existsSync("./.tmp/error.log")||t.writeFileSync("./.tmp/error.log","","utf-8");let l=t.readFileSync("./.tmp/error.log","utf-8");t.writeFileSync("./.tmp/error.log",n),t.appendFileSync("./.tmp/error.log",` + + + + +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,s)=>{s(29021);let t=s(6061),n=s(48225),o=s(51348),a=s(21339),c=s(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:s,tableSchema:l,useLocal:i}){let u;let p=!!s?.match(/^datasquirel$/),d=i?c:p?o:a;try{u=e&&r&&Array.isArray(r)&&r[0]?p?await d(e,r):await d({paradigm:"Full Access",database:s,queryString:e,queryValues:r}):p?await d(e):await d({paradigm:"Full Access",database:s,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;return await t({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",s,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,s)=>{let{scryptSync:t,createDecipheriv:n}=s(55511),{Buffer:o}=s(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:s})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,c=s||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let i=n("aes-192-cbc",t(a,c,l),o.alloc(16,0));try{let r=i.update(e,"hex","utf8");return r+=i.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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},21339:(e,r,s)=>{let t=s(29021);s(33873);let n=s(9973),o=s(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:s,queryValues:c}){try{return new Promise((l,i)=>{let u=!!e?.match(/full.access|^fa$/i);try{function p(e){a.end(),l(JSON.parse(JSON.stringify(e)))}function d(e){a.end(),l({error:e.message,queryStringGenerated:s,queryValuesGenerated:c,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()}}),c&&Array.isArray(c)&&c[0]?a.query(s,c).then(p).catch(d):a.query(s).then(p).catch(d)}catch(e){t.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,s)=>{let t=s(9973),n=s(21580);async function o(...e){let r=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()},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 s=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}e.exports=o},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=89496);module.exports=s})(); \ 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 new file mode 100644 index 0000000..849b85d --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/admin/runUserDbQuery.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..905afa6 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/admin/updateEnv.js @@ -0,0 +1 @@ +"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:()=>P,default:()=>g,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>E});var n=t(89947),o=t(2706),u=t(96762),a=t(33873),i=t.n(a),c=t(19131),l=t.n(c),d=t(27825),p=t.n(d);let{execSync:f}=t(79646),_=t(29021);async function E(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"});try{let t=i().join(process.cwd(),".env"),s=_.readFileSync(t,"utf-8"),n=RegExp(`${p().escapeRegExp(e.body.key)}=.*`);s.match(n);let o=s.replace(n,`${e.body.key}=${e.body.value}`);_.writeFileSync(t,o,"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)(s,"default"),P=(0,u.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/updateEnv",pathname:"/api/admin/updateEnv",bundlePath:"",filename:""},userland:s})},19131:(e,r,t)=>{let{IncomingMessage:s}=t(81630),n=t(72835),o=t(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:t}=o(),s=`${r}_su`;if(!e.cookies?.[s])return console.log("No auth key cookie found"),null;let u=n({encryptedString:e.cookies[s]});if(!u)return console.log("No user payload found"),null;let a=JSON.parse(u);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}},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let u=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!u?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(u,a,i),o.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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 new file mode 100644 index 0000000..3df320f --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/admin/updateEnv.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..8f3e206 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/changeDbUserPassword.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=7963,e.ids=[7963],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}}})},6523:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>f,routeModule:()=>E});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),o=t(2706),a=t(96762),i=t(51348),c=t.n(i),u=t(6420),l=t.n(u),d=t(14533),_=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+$/),o=!!String(t).match(/^\d+$/),a=!!String(s).match(/ /);if(!e||!o)throw Error("Invalud Parameters!");if(a)throw Error("Invalid Password!");let i=await c()("SELECT * FROM user_databases WHERE id = ?",[n]),u=i?.[0]?.db_full_name,l=_()({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:s});await c()(`UPDATE \`${u}\`.\`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 f=(0,a.M)(s,"default"),S=(0,a.M)(s,"config"),E=new n.PagesAPIRouteModule({definition:{kind:o.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(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:c,csrfCookieName:u}=a();if(!e.cookies?.[c]?.match(/./))return null;let l=n({encryptedString:e.cookies[c]});if(!l)return null;let d=JSON.parse(l);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=n("aes-192-cbc",s(a,i,c),o.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},14533:(e,r,t)=>{let{createHmac:s}=t(55511);e.exports=function({password:e,encryptionKey:r}){let t=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let n=s("sha512",t);return n.update(e),n.digest("base64")}},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=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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/changeDbUserPassword.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..47808e0 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/checkDuplicateData.js @@ -0,0 +1,16 @@ +"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")},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}}})},43634:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>u,routeModule:()=>d});var s={};t.r(s),t.d(s,{default:()=>l});var n=t(89947),a=t(2706),o=t(96762),c=t(57638),i=t.n(c);async function l(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed!"});let{type:t,value:s,tableName:n,dbFullName:a,userId:o,dbId:c,userType:l,database:u}=e.query,p=`SELECT \`${t}\` FROM \`${n}\` WHERE \`${t}\`=?`,d=[s];o&&(p+=" AND user_id=?",d.push(o)),c&&(p+=" AND db_id=?",d.push(c)),l&&(p+=" AND user_type=?",d.push(l)),u&&(p+=" AND `database`=?",d.push(u));let _=await i()({queryString:p,queryValuesArray:d,database:a&&"string"==typeof a?a.replace(/[^a-z0-9_]/g,""):"datasquirel"});r.json({result:!!_&&!!_[0]})}let u=(0,o.M)(s,"default"),p=(0,o.M)(s,"config"),d=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/checkDuplicateData",pathname:"/api/checkDuplicateData",bundlePath:"",filename:""},userland:s})},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(72835),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},48225:(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,c=(()=>{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)}`),c&&(n+=` +IP: ${c}`),n+=` +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",n),s.appendFileSync("./.tmp/error.log",` + + + + +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),c=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:l}){let u;let p=!!t?.match(/^datasquirel$/),d=l?c:p?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?p?await d(e,r):await d({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):p?await d(e):await d({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;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(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,c=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(o,c,i),a.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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:c}){try{return new Promise((i,l)=>{let u=!!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:t,queryValuesGenerated:c,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()}}),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"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);async function a(...e){let r=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()},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 t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{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=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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/checkDuplicateData.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..772d99e --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/checkExistingFolder.js @@ -0,0 +1 @@ +"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,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}}})},82651:(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),i=t(96762),a=t(33873),c=t.n(a),u=t(6420),l=t.n(u);let _=t(29021);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{name:s,folder:n}=e.query,o=process.env.DSQL_STATIC_SERVER_DIR;if(!o)return console.log("Static File ENV not Found!"),r.json({success:!1,msg:"No Static Path!"});let i=c().join(o,`images/user-images/user-${t.id}/${n?n+"/":""}`),a=_.existsSync(i+s);r.json({success:a})}let d=(0,i.M)(s,"default"),f=(0,i.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/checkExistingFolder",pathname:"/api/checkExistingFolder",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),i=t(31341);async function a(e,r,t,a){let{keyCookieName:c,csrfCookieName:u}=i();if(!e.cookies?.[c]?.match(/./))return null;let l=n({encryptedString:e.cookies[c]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${p}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=a},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=n("aes-192-cbc",s(i,a,c),o.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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=82651);module.exports=t})(); \ 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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/checkExistingFolder.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..224afeb --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/clientSideAuth.js @@ -0,0 +1 @@ +"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,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}}})},7616:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,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(6420),c=t.n(a);async function u(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await c()(e,r,!0);r.json({user:t})}let l=(0,i.M)(s,"default"),_=(0,i.M)(s,"config"),p=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/clientSideAuth",pathname:"/api/clientSideAuth",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),i=t(31341);async function a(e,r,t,a){let{keyCookieName:c,csrfCookieName:u}=i();if(!e.cookies?.[c]?.match(/./))return null;let l=n({encryptedString:e.cookies[c]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${p}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=a},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=n("aes-192-cbc",s(i,a,c),o.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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=7616);module.exports=t})(); \ 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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/clientSideAuth.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..da711f5 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/connect.js @@ -0,0 +1,16 @@ +"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:()=>E,default:()=>_,routeModule:()=>P});var n={};t.r(n),t.d(n,{default:()=>m});var i=t(89947),s=t(2706),o=t(96762),a=t(48225),l=t.n(a),u=t(77619),c=t.n(u),d=t(72835),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:o,type:a}=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()({encryptedString:i}),{user_id:o,full_access:a,csrf:l}=n?JSON.parse(n):null;if(!a||!l)return r.json({success:!1,msg:"Unauthorized"});let u=g().resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${o}`,"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,o.M)(n,"default"),E=(0,o.M)(n,"config"),P=new i.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/connect",pathname:"/api/connect",bundlePath:"",filename:""},userland:n})},77619:(e,r,t)=>{let n=t(29021),i=t(72835);e.exports=({key:e,database:r,table:t,user_id:s})=>{if(!e||!s)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 a=i({encryptedString:e}),l=JSON.parse(a||""),u=n.existsSync(`${o}/${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}}},48225:(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 o=new Date,a=(()=>{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)}`),a&&(i+=` +IP: ${a}`),i+=` +Date: ${o.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",` + + + + +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:n,createDecipheriv:i}=t(55511),{Buffer:s}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=i("aes-192-cbc",n(o,a,l),s.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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 new file mode 100644 index 0000000..7bd833e --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/connect.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..399ee39 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/connect/disconnect.js @@ -0,0 +1,16 @@ +"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,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}}})},85617:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>f,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>S});var n=t(89947),o=t(2706),a=t(96762),i=t(48225),c=t.n(i),l=t(6420),u=t.n(l),p=t(33364),_=t.n(p);t(29021),t(28354);let{URL:d}=t(79551);async function S(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{dbId:s}=e.body;try{if(!s)throw Error("No Target Database ID provided");await _()({tableName:"user_databases",data:{remote_connected:0,remote_connection_host:"",remote_connection_key:"",remote_connection_type:"",remote_db_full_name:""},identifierColumnName:"id",identifierValue:s}),r.json({success:!0})}catch(e){console.log("Disconnect Error, =>",e.message),c()({component:"/api/connect/verify/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Operation Failed!"})}}let f=(0,a.M)(s,"default"),g=(0,a.M)(s,"config"),m=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/connect/disconnect",pathname:"/api/connect/disconnect",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:c,csrfCookieName:l}=a();if(!e.cookies?.[c]?.match(/./))return null;let u=n({encryptedString:e.cookies[c]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${_}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=i},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},33364:(e,r,t)=>{let s=t(72583),n=t(16570),o=t(51348),a=t(21339),i=t(20503),c=t(44900);async function l({dbContext:e,paradigm:r,dbFullName:t,tableName:l,data:u,tableSchema:p,identifierColumnName:_,identifierValue:d,encryptionKey:S,encryptionSalt:f,useLocal:g}){if(!u||!Object.keys(u).length)return null;let m=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),E=g?c:m?o:a,D=Object.keys(u),h=[],y=[];for(let e=0;ee.fieldName===r):null,a=o&&o[0]?o[0]:null;if(null==t||void 0==t)continue;a?.richText&&(t=s(t,n)),a?.encrypted&&(t=i({data:t,encryptionKey:S,encryptionSalt:f})),"object"==typeof t&&(t=JSON.stringify(t)),a?.pattern&&!new RegExp(a.pattern,a.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"}}),h.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}h.push(`date_updated='${Date()}'`),h.push(`date_updated_code='${Date.now()}'`);let v=`UPDATE ${l} SET ${h.join(",")} WHERE \`${_}\`=?`;return y.push(d),m?await E(v,y):await E({paradigm:r,database:t,queryString:v,queryValues:y})}e.exports=l},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),{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",` + + + + +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(a,i,c),o.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},20503:(e,r,t)=>{let{scryptSync:s,createCipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({data:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=n("aes-192-cbc",s(a,i,c),o.alloc(16,0));try{let r=l.update(e,"utf8","hex");return r+=l.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},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 p(e){a.end(),c(JSON.parse(JSON.stringify(e)))}function _(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(p).catch(_):a.query(t).then(p).catch(_)}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}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);async function o(...e){let r=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()},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 t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{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=85617);module.exports=t})(); \ 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 new file mode 100644 index 0000000..7b4246d --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/connect/disconnect.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..18be58c --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/connect/handshake.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=4065,e.ids=[4065],e.modules={60818:e=>{e.exports=require("dotenv")},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:()=>g,default:()=>m,routeModule:()=>h});var s={};t.r(s),t.d(s,{default:()=>f});var n=t(89947),a=t(2706),o=t(96762),c=t(7753),i=t(48225),l=t.n(i),u=t(6420),_=t.n(u),d=t(33364),p=t.n(d);t(29021),t(28354);let{URL:S}=t(79551);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await _()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{url:s,key:n,database:a,dbSchema:o,type:i,remoteDbs:u,targetDb:d}=e.body;try{if(!d?.tables)throw Error("No Target Database");await p()({tableName:"user_databases",data:{remote_connected:1,remote_connection_host:s,remote_connection_key:n,remote_connection_type:i,remote_db_full_name:d.dbFullName},identifierColumnName:"db_full_name",identifierValue:a.db_full_name}),await (0,c.e)({dbSchema:d,database:a,userId:t.id}),r.json({success:!0})}catch(e){console.log("Connect Handshake Error, =>",e.message),l()({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"),g=(0,o.M)(s,"config"),h=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 s=t(19261),{execSync:n}=t(79646),a=t(29021),o=t(33873),c=async({userId:e,dbSchema:r,targetDb:t})=>(await s({userId:e,targetDatabase:t}),`User ${e} Db Schema Updated`),i=async({userId:e,dbSchema:r,database:t})=>{let s=o.resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${e}`,"main.json"),n=JSON.parse(a.readFileSync(s,"utf-8")),i=n.findIndex(e=>e.dbFullName==t.db_full_name);if(i<0)throw Error("Target Database not found in user schema data");let l={...n[i]};return n[i]=r,n[i].dbName=l.dbName,n[i].dbFullName=l.dbFullName,n[i].dbSlug=l.dbSlug,n[i].dbImage=l.dbImage,await c({dbSchema:n,userId:e,targetDb:t.db_full_name})};r.e=i},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function c(e,r,t,c){let{keyCookieName:i,csrfCookieName:l}=o();if(!e.cookies?.[i]?.match(/./))return null;let u=n({encryptedString:e.cookies[i]});if(!u)return null;let _=JSON.parse(u);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.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&&!a.existsSync(`${d}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=c},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},33364:(e,r,t)=>{let s=t(72583),n=t(16570),a=t(51348),o=t(21339),c=t(20503),i=t(44900);async function l({dbContext:e,paradigm:r,dbFullName:t,tableName:l,data:u,tableSchema:_,identifierColumnName:d,identifierValue:p,encryptionKey:S,encryptionSalt:f,useLocal:m}){if(!u||!Object.keys(u).length)return null;let g=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),h=m?i:g?a:o,D=Object.keys(u),E=[],b=[];for(let e=0;ee.fieldName===r):null,o=a&&a[0]?a[0]:null;if(null==t||void 0==t)continue;o?.richText&&(t=s(t,n)),o?.encrypted&&(t=c({data:t,encryptionKey:S,encryptionSalt:f})),"object"==typeof t&&(t=JSON.stringify(t)),o?.pattern&&!new RegExp(o.pattern,o.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?b.push(String(t)):b.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 \`${d}\`=?`;return b.push(p),g?await h(y,b):await h({paradigm:r,database:t,queryString:y,queryValues:b})}e.exports=l},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"]}}},20503:(e,r,t)=>{let{scryptSync:s,createCipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({data:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,c=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!c?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=n("aes-192-cbc",s(o,c,i),a.alloc(16,0));try{let r=l.update(e,"utf8","hex");return r+=l.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},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:c}){try{return new Promise((i,l)=>{let u=!!e?.match(/full.access|^fa$/i);try{function _(e){o.end(),i(JSON.parse(JSON.stringify(e)))}function d(e){o.end(),i({error:e.message,queryStringGenerated:t,queryValuesGenerated:c,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()}}),c&&Array.isArray(c)&&c[0]?o.query(t,c).then(_).catch(d):o.query(t).then(_).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}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);async function a(...e){let r=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()},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 t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{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=e=>r(r.s=e),s=r.X(0,[2451],()=>t(83919));module.exports=s})(); \ 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 new file mode 100644 index 0000000..f2873f7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/connect/handshake.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../.env","../../../../../jsonData/dbSchemas/main.json","../../../../../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/dotenv/lib/main.js","../../../../../node_modules/dotenv/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-shared/data/defaultFields.json","../../../../../package.json","../../../../package.json","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..354108a --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/connect/verify.js @@ -0,0 +1,16 @@ +"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:()=>_,routeModule:()=>h});var s={};t.r(s),t.d(s,{default:()=>m});var n=t(89947),o=t(2706),a=t(96762),i=t(83634),c=t.n(i),l=t(48225),u=t.n(l),p=t(6420),d=t.n(p);t(29021),t(28354);let{URL:f}=t(79551);async function m(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:o,dbSchema:a,type:i}=e.body;try{let{hostname:e,port:t,protocol:o}=new f(s),a=await c()({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 _=(0,a.M)(s,"default"),S=(0,a.M)(s,"config"),h=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/connect/verify",pathname:"/api/connect/verify",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:c,csrfCookieName:l}=a();if(!e.cookies?.[c]?.match(/./))return null;let u=n({encryptedString:e.cookies[c]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.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}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=i},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},83634:(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:c,port:l,scheme:u}){let p=c?JSON.stringify(c):null,d=e?new o(e):null,f={method:r||"GET",hostname:d?d.hostname:t,port:u?.match(/https/i)?443:d?d.protocol?.match(/https/i)?443:d.port:l?Number(l):80,headers:{}};return a&&(f.path=a),i&&(f.headers=i),c&&(f.headers["Content-Type"]="application/json",f.headers["Content-Length"]=p?Buffer.from(p).length:void 0),new Promise((e,r)=>{let t=(u?.match(/https/i)?s:d?.protocol?.match(/https/i)?s:n).request(f,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")})});c&&t.write(p),t.on("error",e=>{console.log("HTTPS request ERROR =>",e.message),r(`HTTP request error =>, ${e.message}`)}),t.end()})}},48225:(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",` + + + + +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(a,i,c),o.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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 new file mode 100644 index 0000000..849b85d --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/connect/verify.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..318d067 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/contact.js @@ -0,0 +1,19 @@ +"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(59474),l=t.n(i),c=t(48225),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:` +

Message From ${t}, ${s}

+

${n}

+ `,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})},59474:(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}},48225:(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)}}},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 new file mode 100644 index 0000000..053e3c9 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/contact.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..1e2676d --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/createUserDatabase.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=8893,e.ids=[8893],e.modules={60818:e=>{e.exports=require("dotenv")},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,s,a)=>{a.r(s),a.d(s,{config:()=>A,default:()=>R,routeModule:()=>g});var r={};a.r(r),a.d(r,{default:()=>N});var t=a(89947),i=a(2706),n=a(96762),l=a(51348),o=a.n(l),u=a(48225),d=a.n(u),c=a(6420),_=a.n(c),b=a(47670),p=a.n(b),S=a(51926),m=a.n(S),E=a(19261),f=a.n(E);let D=a(29021);a(33873);let{execSync:h}=a(79646);async function N(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 r=await o()("SELECT * FROM users WHERE id = ?",[a.id]),t=r?.[0],{db_name:i,db_slug:n,db_description:l,db_image:u,duplicate:c,keepUpdated:b,keepDataUpdated:S}=e.body;if(n.match(/[^a-zA-Z0-9-_]/))return s.json({success:!1,msg:"Input Error"});let E=`datasquirel_user_${a.id}_${n}`,h=await m()(`CREATE DATABASE IF NOT EXISTS \`${E}\` CHARACTER SET utf8mb4 COLLATE utf8mb4_bin`);if(!h?.affectedRows)return s.json({success:!1,msg:"Database Could Not be created!"});let N={user_id:a.id,db_name:i,db_slug:n,db_full_name:E,db_description:l,db_image:u};c&&b&&(N.active_clone="1",N.active_clone_parent_db=c),c&&S&&(N.active_data="1");let R=await p()({dbFullName:"datasquirel",tableName:"user_databases",data:N});if(R.insertId)try{let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${a.id}/main.json`,r=JSON.parse(D.readFileSync(e,"utf8")),o={dbName:i,dbSlug:n,dbFullName:E,dbDescription:l,dbImage:u,tables:[]};if(c)try{let e=r.filter(e=>e.dbFullName===c)[0];o.tables=e.tables,b&&(o.childDatabase=!0,o.childDatabaseDbFullName=c,S&&(o.updateData=!0),e.childrenDatabases?e.childrenDatabases.push({dbFullName:E}):e.childrenDatabases=[{dbFullName:E}]);for(let e=0;e{a(81630);let r=a(51348),t=a(72835),i=a(29021),n=a(31341);async function l(e,s,a,l){let{keyCookieName:o,csrfCookieName:u}=n();if(!e.cookies?.[o]?.match(/./))return null;let d=t({encryptedString:e.cookies[o]});if(!d)return null;let c=JSON.parse(d);if(!c.csrf_k||a&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(a&&!i.existsSync(`${_}/${c.csrf_k}`))return null;if(0==c.verification_status&&!a){let e=await r(`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},31341:e=>{e.exports=function(e){let s=process.env.DSQL_COOKIES_PREFIX||"dsql_",a=process.env.DSQL_COOKIES_KEY_NAME||"key",r=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",t=s;e?.userId&&(t+=`user_${e.userId}_`),e?.database&&(t+=`${e.database}_`),t+=a;let i=s;return e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),{keyCookieName:t,csrfCookieName:i+=r}}},51926:(e,s,a)=>{let r=a(29021),t=a(48225),i=a(45356);e.exports=async function(e){let s;"production".match(/dev/)&&r.appendFileSync("./.tmp/sqlQuery.sql",e+"\n"+Date()+"\n\n\n","utf8");try{s=await i(e)}catch(e){t({component:"noDatabaseDbHandler",message:e.message}),console.log("ERROR in noDatabaseDbHandler =>",e.message)}return s||null}},45356:(e,s,a)=>{let r=a(9973),t=a(21580),i=r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,charset:"utf8mb4",ssl:t()}});e.exports=function(...e){try{return new Promise((s,a)=>{i.query(...e).then(e=>{i.end(),s(JSON.parse(JSON.stringify(e)))}).catch(e=>{i.end(),s({error:e.message,sql:e.sql})})})}catch(e){return{success:!1,error:e.message}}}}};var s=require("../../webpack-api-runtime.js");s.C(e);var a=e=>s(s.s=e),r=s.X(0,[4050,2451],()=>a(34932));module.exports=r})(); \ 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 new file mode 100644 index 0000000..83393e0 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/createUserDatabase.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../.env","../../../../jsonData/dbSchemas/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/dotenv/lib/main.js","../../../../node_modules/dotenv/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-shared/data/defaultFields.json","../../../../package.json","../../../package.json","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..d1bcee1 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/deleteApiKey.js @@ -0,0 +1,16 @@ +"use strict";(()=>{var e={};e.id=7015,e.ids=[7015],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}}})},5261:(e,r,t)=>{t.r(r),t.d(r,{config:()=>y,default:()=>m,routeModule:()=>A});var s={};t.r(s),t.d(s,{default:()=>D});var n=t(89947),o=t(2706),a=t(96762),i=t(72835),l=t.n(i),c=t(48225),u=t.n(c),_=t(6420),S=t.n(_),p=t(64122),d=t.n(p),f=t(77619),g=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{id:s,key:n,user_id:o}=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 o=g()({key:String(l()({encryptedString:n})),user_id:t.id});if(!o?.sign)throw await d()({dbFullName:"datasquirel",tableName:"api_keys",identifierColumnName:"id",identifierValue:s}),Error("API KEY is Invalid");try{let r=`${e}/${o?.sign}`;E.unlinkSync(r)}catch(e){console.log("Error Deleting API key",e.message)}await d()({dbFullName:"datasquirel",tableName:"api_keys",identifierColumnName:"id",identifierValue:s}),r.json({success:!0})}catch(e){console.log(`ERROR Deleting API Key => ${e.message}`),u()({component:"/api/deleteApiKey/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Deletion Failed!"})}}let m=(0,a.M)(s,"default"),y=(0,a.M)(s,"config"),A=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/deleteApiKey",pathname:"/api/deleteApiKey",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:c}=a();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let _=JSON.parse(u);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let S=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!S)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${S}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=i},77619:(e,r,t)=>{let s=t(29021),n=t(72835);e.exports=({key:e,database:r,table:t,user_id:o})=>{if(!e||!o)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 i=n({encryptedString:e}),l=JSON.parse(i||""),c=s.existsSync(`${a}/${l.sign}`);if(String(l.user_id)!==String(o)||!c)return null;if(!l.target_database)return l;if(!r&&l.target_database)return null;let u=l.target_database?.split(",").includes(String(r));if(u&&!l.target_table)return l;if(u&&!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}}},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},64122:(e,r,t)=>{let s=t(51348),n=t(21339),o=t(44900);async function a({dbContext:e,paradigm:r,dbFullName:t,tableName:a,identifierColumnName:i,identifierValue:l,useLocal:c}){try{let u=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),_=c?o:u?s:n,S=`DELETE FROM ${a} WHERE \`${i}\`=?`;return u?await _(S,[l]):await _({paradigm:r,queryString:S,database:t,queryValues:[l]})}catch(e){return null}}e.exports=a},48225:(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",` + + + + +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(a,i,l),o.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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((l,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function _(e){a.end(),l(JSON.parse(JSON.stringify(e)))}function S(e){a.end(),l({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(_).catch(S):a.query(t).then(_).catch(S)}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}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);async function o(...e){let r=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()},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 t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{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=5261);module.exports=t})(); \ 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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/deleteApiKey.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..7ac5e49 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/deleteDbUser.js @@ -0,0 +1,16 @@ +"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,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}}})},80061:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>p,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>d});var n=t(89947),a=t(2706),o=t(96762),c=t(57638),i=t.n(c),l=t(6420),u=t.n(l);async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await u()(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:t,userId:s}=e.body;await i()({database:t,queryString:"DELETE FROM users WHERE id = ?",queryValuesArray:[s]}),r.json({success:!0,msg:"User Deleted!"})}t(29021);let p=(0,o.M)(s,"default"),_=(0,o.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/deleteDbUser",pathname:"/api/deleteDbUser",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function c(e,r,t,c){let{keyCookieName:i,csrfCookieName:l}=o();if(!e.cookies?.[i]?.match(/./))return null;let u=n({encryptedString:e.cookies[i]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=c},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},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(72835),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},48225:(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,c=(()=>{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)}`),c&&(n+=` +IP: ${c}`),n+=` +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",n),s.appendFileSync("./.tmp/error.log",` + + + + +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),c=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:l}){let u;let d=!!t?.match(/^datasquirel$/),p=l?c:d?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;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(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,c=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(o,c,i),a.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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:c}){try{return new Promise((i,l)=>{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:c,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()}}),c&&Array.isArray(c)&&c[0]?o.query(t,c).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}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);async function a(...e){let r=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()},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 t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{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=80061);module.exports=t})(); \ 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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/deleteDbUser.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..eee6d8d --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/deleteInvitation.js @@ -0,0 +1 @@ +"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,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}}})},50667:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),i=t(2706),o=t(96762),a=t(51348),u=t.n(a),c=t(6420),l=t.n(c);async function _(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"});await u()("DELETE FROM invitations WHERE id = ? AND inviting_user_id = ?",[e.body.id,t.id]),r.json({success:!0})}let d=(0,o.M)(s,"default"),p=(0,o.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/deleteInvitation",pathname:"/api/deleteInvitation",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),i=t(29021),o=t(31341);async function a(e,r,t,a){let{keyCookieName:u,csrfCookieName:c}=o();if(!e.cookies?.[u]?.match(/./))return null;let l=n({encryptedString:e.cookies[u]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.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&&!i.existsSync(`${d}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=a},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),{keyCookieName:n,csrfCookieName:i+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:i}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,u=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(o,a,u),i.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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 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 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=50667);module.exports=t})(); \ 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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/deleteInvitation.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..2229fd8 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/deleteMediaFolder.js @@ -0,0 +1,16 @@ +"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:()=>g,default:()=>m,routeModule:()=>y});var s={};t.r(s),t.d(s,{default:()=>E});var n=t(89947),a=t(2706),o=t(96762),i=t(51348),c=t.n(i),l=t(48225),u=t.n(l),d=t(6420),p=t.n(d),_=t(33873),f=t.n(_);let S=t(29021);async function E(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=S.readdirSync(e);for(let t=0;t",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=f().join(e,`images/user-images/user-${t.id}/`),o=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/media/`,i=a+(s?s.replace(/\.| /g,"")+"/":""),l=o+(s?s.replace(/\.| /g,"")+"/":"");await n({path:i}),await n({path:l}),r.json({success:!0})}catch(e){u()({component:"/api/deleteMediaFolder/main-catch-error",message:e.message,user:t}),r.json({success:!1})}}let m=(0,o.M)(s,"default"),g=(0,o.M)(s,"config"),y=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/deleteMediaFolder",pathname:"/api/deleteMediaFolder",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function i(e,r,t,i){let{keyCookieName:c,csrfCookieName:l}=o();if(!e.cookies?.[c]?.match(/./))return null;let u=n({encryptedString:e.cookies[c]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},48225:(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 c=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` + + + + +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(o,i,c),a.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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=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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/deleteMediaFolder.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..beea2e2 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/deleteTableEntry.js @@ -0,0 +1,16 @@ +"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:()=>m,default:()=>D,routeModule:()=>y});var s={};t.r(s),t.d(s,{default:()=>g});var n=t(89947),a=t(2706),o=t(96762),i=t(64122),l=t.n(i),c=t(73677),u=t.n(c),d=t(39831),_=t.n(d),p=t(48225),S=t.n(p),E=t(6420),f=t.n(E);async function g(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{dbFullName:s,tableName:n,entryId:a,dbSlug:o,dbId:i,delegated:c}=e.body;try{let c=await _()({databaseSlug:o,request:e,user:t,query:e.query});if(!await u()({user:t,confirmedDelegetedUser:c,database:o,table:n,dbId:i,priviledgeRegex:/Delete Entries/i}))return r.json({success:!1,msg:"Unauthorized"});await l()({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:s,tableName:n,identifierColumnName:"id",identifierValue:a}),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 D=(0,o.M)(s,"default"),m=(0,o.M)(s,"config"),y=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/deleteTableEntry",pathname:"/api/deleteTableEntry",bundlePath:"",filename:""},userland:s})},73677:(e,r,t)=>{let s=t(51348),n=t(48225);e.exports=async function({user:e,confirmedDelegetedUser:r,database:t,table:a,priviledgeRegex:o,dbId:i}){let l,c;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,a]),c=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,a,i]),c=!0)}catch(r){n({component:"checkUserRights",message:r.message,user:e})}return!!l&&!!l[0]&&!!c}},39831:(e,r,t)=>{t(81630);let s=t(72835);e.exports=async function({request:e,databaseSlug:r,user:t,query:n}){try{let a=t.id,o=null;if(!n?.delegated)return{dbUserId:a};let i=n.dbUserId,l=`${process.env.DSQL_USER_DB_PREFIX}${i}_${r}`,c=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${l}`;try{if(!e.cookies?.[c])throw Error("Cookie not present");let t=s({encryptedString:e.cookies[c]});if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:a=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:a}}catch(e){return null}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},64122:(e,r,t)=>{let s=t(51348),n=t(21339),a=t(44900);async function o({dbContext:e,paradigm:r,dbFullName:t,tableName:o,identifierColumnName:i,identifierValue:l,useLocal:c}){try{let u=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=c?a:u?s:n,_=`DELETE FROM ${o} WHERE \`${i}\`=?`;return u?await d(_,[l]):await d({paradigm:r,queryString:_,database:t,queryValues:[l]})}catch(e){return null}}e.exports=o},48225:(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)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(o,i,l),a.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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 _(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(_):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}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);async function a(...e){let r=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()},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 t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{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=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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/deleteTableEntry.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..668ee9f --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/deleteUser.js @@ -0,0 +1,16 @@ +"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:()=>g,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),l=t.n(o),u=t(83743),c=t.n(u),d=t(48225),E=t.n(d),_=t(6420),p=t.n(_);let S=t(29021),f=t(33873);async function R(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"});"production".match(/prod/i);try{await l()(`DELETE FROM users WHERE id='${t.id}'`),await l()(`DELETE FROM user_users WHERE invited_user_id='${t.id}' OR user_id='${t.id}'`),await l()(`DELETE FROM delegated_user_tables WHERE delegated_user_id='${t.id}' OR root_user_id='${t.id}'`),await l()(`DELETE FROM user_databases WHERE user_id='${t.id}'`),await l()(`DELETE FROM user_database_tables WHERE user_id='${t.id}'`),await l()(`DELETE FROM user_media WHERE user_id='${t.id}'`),await l()(`DELETE FROM delegated_users WHERE user_id='${t.id}' OR delegated_user_id='${t.id}'`),await l()(`DELETE FROM unsubscribes WHERE user_id='${t.id}'`),await l()(`DELETE FROM notifications WHERE user_id='${t.id}'`),await l()(`DELETE FROM api_keys WHERE user_id='${t.id}'`),await l()(`DELETE FROM invitations WHERE inviting_user_id='${t.id}' OR invited_user_email='${t.email}'`);let e=await l()("SELECT * FROM mariadb_users WHERE user_id = ?",[t.id]);for(let r=0;r{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",e.message),!1}}},6420:(e,r,t)=>{t(81630);let s=t(51348),i=t(72835),n=t(29021),a=t(31341);async function o(e,r,t,o){let{keyCookieName:l,csrfCookieName:u}=a();if(!e.cookies?.[l]?.match(/./))return null;let c=i({encryptedString:e.cookies[l]});if(!c)return null;let d=JSON.parse(c);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let E=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!E)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${E}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=r;e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),i+=t;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:i,csrfCookieName:n+=s}}},48225:(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 l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",i),s.appendFileSync("./.tmp/error.log",` + + + + +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:i}=t(55511),{Buffer:n}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=i("aes-192-cbc",s(a,o,l),n.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/deleteUser.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..b8822d2 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/deleteUserDatabase.js @@ -0,0 +1,16 @@ +"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:()=>D,default:()=>E,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>m});var n=t(89947),a=t(2706),o=t(96762),i=t(51348),l=t.n(i),c=t(48225),u=t.n(c),d=t(6420),p=t.n(d),f=t(51926),_=t.n(f);let S=t(29021);async function m(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 _()(`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(S.readFileSync(s,"utf8")),o=n.filter((r,t)=>{if(r.dbFullName===a)return e=t,!0});if(o[0].childDatabase){let e=n.filter(e=>e.dbFullName===o[0].childDatabaseDbFullName)[0],r=e.childrenDatabases?.findIndex(e=>e.dbFullName===o[0].childDatabaseDbFullName);e.childrenDatabases&&"number"==typeof r&&e.childrenDatabases.splice(r,1)}n.splice(e,1),S.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 E=(0,o.M)(s,"default"),D=(0,o.M)(s,"config"),g=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/deleteUserDatabase",pathname:"/api/deleteUserDatabase",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},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),{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)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(o,i,l),a.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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},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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/deleteUserDatabase.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..1d47342 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/deleteUserMedia.js @@ -0,0 +1,16 @@ +"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:()=>v,default:()=>g,routeModule:()=>y});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(48225),u=t.n(l),d=t(6420),_=t.n(d),S=t(48227),p=t.n(S),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 _()(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=p()({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 _=o.match(/[^\/]+$/)[0],S=a.match(/[^\/]+$/)[0],f=c().normalize(i+_),D=c().normalize(i+S);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 g=(0,a.M)(s,"default"),v=(0,a.M)(s,"config"),y=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}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:c,csrfCookieName:l}=a();if(!e.cookies?.[c]?.match(/./))return null;let u=n({encryptedString:e.cookies[c]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},64122:(e,r,t)=>{let s=t(51348),n=t(21339),o=t(44900);async function a({dbContext:e,paradigm:r,dbFullName:t,tableName:a,identifierColumnName:i,identifierValue:c,useLocal:l}){try{let u=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=l?o:u?s:n,_=`DELETE FROM ${a} WHERE \`${i}\`=?`;return u?await d(_,[c]):await d({paradigm:r,queryString:_,database:t,queryValues:[c]})}catch(e){return null}}e.exports=a},48225:(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",` + + + + +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(a,i,c),o.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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 _(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(_):a.query(t).then(d).catch(_)}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}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);async function o(...e){let r=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()},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 t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{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=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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/deleteUserMedia.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..0fcfeef --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/deleteUserTable.js @@ -0,0 +1,16 @@ +"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,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}}})},77379:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>D,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>m});var a=t(89947),n=t(2706),l=t(96762),o=t(57638),i=t.n(o),c=t(48225),u=t.n(c),d=t(6420),_=t.n(d),p=t(51348),S=t.n(p);let f=t(29021);async function m(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await _()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body,{id:a,user_id:n,table_name:l,table_slug:o,table_description:c}=s.table,{db_full_name:d}=s.database;await i()({database:d,queryString:`DROP TABLE \`${o}\``});let p=a?[a]:[o,t.id,s.database.id];await S()(a?"DELETE FROM user_database_tables WHERE id=?":"DELETE FROM user_database_tables WHERE table_slug=? AND user_id=? AND db_id=?",p);try{let e;let s=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/main.json`,a=JSON.parse(f.readFileSync(s,"utf8")),n=a.filter((e,r)=>{if(e.dbFullName===d)return!0}),l=n[0].tables.filter((r,t)=>{if(r?.tableName===o)return e=t,!0});if(l[0].childTable){let e;let r=a.filter(e=>e.dbFullName===l[0].childTableDbFullName)[0].tables.filter(e=>{if(e.tableName===l[0].childTableName)return!0})[0];r.childrenTables?.filter((r,t)=>{r.tableName===o&&(e=t)}),"number"==typeof e&&r.childrenTables?.splice(e,1)}if(n[0].tables.splice(e,1),n[0].childrenDatabases)for(let e=0;ee.dbFullName===r.dbFullName)[0];e.tables=n[0].tables,await S()("DELETE FROM user_database_tables WHERE table_slug=? AND user_id=? AND db_slug=?",[o,t.id,e.dbSlug])}catch(e){u()({component:"/api/deleteUserTable/lines-125-128",message:e.message,user:t})}}f.writeFileSync(`${s}`,JSON.stringify(a),"utf8"),r.json({success:!0})}catch(e){u()({component:"/api/deleteUserTable/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"File Updates Failed"})}}let D=(0,l.M)(s,"default"),E=(0,l.M)(s,"config"),g=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/deleteUserTable",pathname:"/api/deleteUserTable",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72835),n=t(29021),l=t(31341);async function o(e,r,t,o){let{keyCookieName:i,csrfCookieName:c}=l();if(!e.cookies?.[i]?.match(/./))return null;let u=a({encryptedString:e.cookies[i]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=r;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=t;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:a,csrfCookieName:n+=s}}},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(72835),a=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n",r.message),e}}},48225:(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 l=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: ${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)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),a=t(48225),n=t(51348),l=t(21339),o=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:c}){let u;let d=!!t?.match(/^datasquirel$/),_=c?o:d?n:l;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await _(e,r):await _({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):d?await _(e):await _({paradigm:"Full Access",database:t,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;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(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let l=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!l?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=a("aes-192-cbc",s(l,o,i),n.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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 l(...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=l},21339:(e,r,t)=>{let s=t(29021);t(33873);let a=t(9973),n=t(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:r,queryString:t,queryValues:o}){try{return new Promise((i,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){l.end(),i(JSON.parse(JSON.stringify(e)))}function _(e){l.end(),i({error:e.message,queryStringGenerated:t,queryValuesGenerated:o,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: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]?l.query(t,o).then(d).catch(_):l.query(t).then(d).catch(_)}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}}}},44900:(e,r,t)=>{let s=t(9973),a=t(21580);async function n(...e){let r=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()},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 t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{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=77379);module.exports=t})(); \ 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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/deleteUserTable.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..6e3fe0d --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/deleteUserUser.js @@ -0,0 +1 @@ +"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,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}}})},83246:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),i=t(2706),o=t(96762),a=t(51348),u=t.n(a),c=t(6420),l=t.n(c);async function _(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 s=e.body,{user_type:n,user_id:i,email:o,invited_user_id:a}=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=?",[t.id,o]),await u()("DELETE FROM delegated_user_tables WHERE delegated_user_id=? AND root_user_id=?",[a,t.id])),r.json({success:!0,msg:"User Deleted!"})}t(29021);let d=(0,o.M)(s,"default"),p=(0,o.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/deleteUserUser",pathname:"/api/deleteUserUser",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),i=t(29021),o=t(31341);async function a(e,r,t,a){let{keyCookieName:u,csrfCookieName:c}=o();if(!e.cookies?.[u]?.match(/./))return null;let l=n({encryptedString:e.cookies[u]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.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&&!i.existsSync(`${d}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=a},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),{keyCookieName:n,csrfCookieName:i+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:i}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,u=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(o,a,u),i.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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 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 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=83246);module.exports=t})(); \ 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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/deleteUserUser.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..3143a31 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/downloadDatabaseSchema.js @@ -0,0 +1,16 @@ +"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:()=>_});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"),_=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(48225),{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})}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:c}=a();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.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}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=i},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},48225:(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",` + + + + +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(a,i,l),o.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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 new file mode 100644 index 0000000..59d3330 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/downloadDatabaseSchema.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..92499a8 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/exportDatabase.js @@ -0,0 +1,16 @@ +"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:()=>_,default:()=>d,routeModule:()=>f});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),c=t(6420),u=t.n(c);async function p(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await u()(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"),_=(0,a.M)(s,"config"),f=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(48225),{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})}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:c}=a();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.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}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=i},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},48225:(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",` + + + + +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(a,i,l),o.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/exportDatabase.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..e72ed88 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/exportTableData.js @@ -0,0 +1,16 @@ +"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 s={};t.r(s),t.d(s,{config:()=>c,default:()=>d});var a=t(89947),n=t(2706),i=t(96762),o=t(6420),l=t.n(o),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 l()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{paradigm:s,dbName:a,tableName:n,payload:i}=e.body;try{let e=await (0,u.A)({dbName:a,paradigm:s,payload:i,tableName:n,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,i.M)(s,"default"),f=(0,i.M)(s,"config"),m=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/exportTableData",pathname:"/api/exportTableData",bundlePath:"",filename:""},userland:s})},27444:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(47670),a=t.n(s);let n=t(48225),i=t(51348);async function o({paradigm:e,userId:r,dbName:t,tableName:s,payload:o,payloadType:l}){let u={};try{let n=`${process.env.DSQL_USER_DB_PREFIX}${r}_${t.replace(/ /g,"")}`;switch(e){case"export":let c=await i(`SELECT * FROM \`${n}\`.\`${s}\``);u.tableData=c;break;case"import":let d="base64"==l?Buffer.from(o,"base64").toString():o,p="object"===l?o:JSON.parse(d);for(let e=0;e{t(81630);let s=t(51348),a=t(72835),n=t(29021),i=t(31341);async function o(e,r,t,o){let{keyCookieName:l,csrfCookieName:u}=i();if(!e.cookies?.[l]?.match(/./))return null;let c=a({encryptedString:e.cookies[l]});if(!c)return null;let d=JSON.parse(c);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=r;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=t;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:a,csrfCookieName:n+=s}}},48225:(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",` + + + + +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=a("aes-192-cbc",s(i,o,l),n.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[4050],()=>t(724));module.exports=s})(); \ 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 new file mode 100644 index 0000000..962d705 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/exportTableData.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..1a02795 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/fetch-entries-basic.js @@ -0,0 +1,16 @@ +"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:()=>f,default:()=>S,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>p});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(48225),_=t(6420);async function p(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await _(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:p,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 _=d?.rootUserId?`datasquirel_user_${d.rootUserId}_${a}`:`datasquirel_user_${t.id}_${a}`,f=`SELECT id${o?",title":l?",slug":p?",CONCAT(first_name, ' ', last_name) AS full_name":S?","+S:""} FROM ${s}`,g=await i()({database:_,queryString:f});r.json({success:!0,entries:g})}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"),f=(0,o.M)(s,"config"),g=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(48225);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(72835);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({encryptedString: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}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72835),n=t(29021),o=t(31341);async function l(e,r,t,l){let{keyCookieName:i,csrfCookieName:c}=o();if(!e.cookies?.[i]?.match(/./))return null;let u=a({encryptedString:e.cookies[i]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=l},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=r;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=t;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:a,csrfCookieName:n+=s}}},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(72835),a=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n",r.message),e}}},48225:(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",` + + + + +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),a=t(48225),n=t(51348),o=t(21339),l=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:c}){let u;let d=!!t?.match(/^datasquirel$/),_=c?l:d?n:o;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await _(e,r):await _({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):d?await _(e):await _({paradigm:"Full Access",database:t,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;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(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,l=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=a("aes-192-cbc",s(o,l,i),n.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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 _(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(_):o.query(t).then(d).catch(_)}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}}}},44900:(e,r,t)=>{let s=t(9973),a=t(21580);async function n(...e){let r=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()},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 t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{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=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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/fetch-entries-basic.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..34e849e --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/fetch-media.js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..a832c7c --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/fetch-media.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..b8984ad --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/get-authorized-databases.js @@ -0,0 +1,16 @@ +"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:()=>m,routeModule:()=>y});var s={};t.r(s),t.d(s,{default:()=>g});var n=t(89947),a=t(2706),o=t(96762),i=t(2258),l=t(48225),u=t.n(l),c=t(6420),d=t.n(c),p=t(27825),f=t.n(p),_=t(51348),S=t.n(_);t(29021),t(33873);let{execSync:E}=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 S()("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=f().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 m=(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})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:u}=o();if(!e.cookies?.[l]?.match(/./))return null;let c=n({encryptedString:e.cookies[l]});if(!c)return null;let d=JSON.parse(c);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},2258:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o});let s=t(48225),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:"grabUserSchemaData",message:e.message}),null}}},48225:(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)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=n("aes-192-cbc",s(o,i,l),a.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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 new file mode 100644 index 0000000..651a9bc --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/get-authorized-databases.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..da92e05 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/getDatabaseTables.js @@ -0,0 +1,16 @@ +"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:()=>E,default:()=>f,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),a=t(2706),o=t(96762),i=t(6420),l=t.n(i),u=t(48225),c=t.n(u),d=t(51348),_=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,n=e.query.dbOwnerId,a=e.query.delegatedUserId;try{let e=await _()("SELECT id FROM user_databases WHERE user_id=? AND db_slug=?",[n,s]);if(!e||!e[0])return r.json({success:!1,msg:"Database not found"});let t=await _()("SELECT table_name,table_slug FROM user_database_tables WHERE user_id=? AND db_id=?",[n,e[0].id]),o=await _()("SELECT `database`,`table` FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[n,a]);r.json({success:!0,tables:t,accessed_tables:o})}catch(e){c()({component:"/api/getDatabaseTables/main-catch-error",message:e.message,user:t}),r.json({success:!1})}}t(29021);let f=(0,o.M)(s,"default"),E=(0,o.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/getDatabaseTables",pathname:"/api/getDatabaseTables",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:u}=o();if(!e.cookies?.[l]?.match(/./))return null;let c=n({encryptedString:e.cookies[l]});if(!c)return null;let d=JSON.parse(c);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},48225:(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)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=n("aes-192-cbc",s(o,i,l),a.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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=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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/getDatabaseTables.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..7f826ee --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/getDelegatedDatabaseToken.js @@ -0,0 +1,16 @@ +"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:()=>g,default:()=>f,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>S});var n=t(89947),a=t(2706),o=t(96762),i=t(51348),l=t.n(i),c=t(20503),u=t.n(c),d=t(48225),_=t.n(d),p=t(6420),E=t.n(p);async function S(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 s=e.body.rootUserId,n=e.body.priviledges,a=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,a]);if(!e||!e[0])throw Error(`user with id ${t.id} has no access to ${a} 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,a])).map(e=>e.table),i=await l()("SELECT * FROM users WHERE id=?",[s]),c={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}_${a}`,databaseSlug:a,allowedTables:o,priviledges:n,dateCreated:Date.now()},d=u()({data:JSON.stringify(c)}),_=`${process.env.DSQL_USER_DB_PREFIX}${c.rootUserId}_${a}`,p=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${_}`;r.setHeader("Set-Cookie",[`${p}=${d};path=/`]),r.json({success:!0,msg:"Processed Successfully"})}catch(e){return console.log("ERROR:",e.message),_()({component:"/api/getDelegatedDatabaseToken/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Unauthorized"})}}let f=(0,o.M)(s,"default"),g=(0,o.M)(s,"config"),m=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/getDelegatedDatabaseToken",pathname:"/api/getDelegatedDatabaseToken",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},48225:(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)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(o,i,l),a.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},20503:(e,r,t)=>{let{scryptSync:s,createCipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({data:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=n("aes-192-cbc",s(o,i,l),a.alloc(16,0));try{let r=c.update(e,"utf8","hex");return r+=c.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},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=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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/getDelegatedDatabaseToken.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..8b8ff2b --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/getDelegatedDatabases.js @@ -0,0 +1,8 @@ +"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 n=r(89947),a=r(2706),i=r(96762),u=r(51348),o=r.n(u),l=r(6420),_=r.n(l);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 o()(` + 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}' + `),n=[];if(t&&t[0])for(let e=0;e`db_slug='${e}'`).join(" OR ")}) AND user_id=${a}`);for(let e=0;e{r(81630);let t=r(51348),n=r(72835),a=r(29021),i=r(31341);async function u(e,s,r,u){let{keyCookieName:o,csrfCookieName:l}=i();if(!e.cookies?.[o]?.match(/./))return null;let _=n({encryptedString:e.cookies[o]});if(!_)return null;let c=JSON.parse(_);if(!c.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.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(r&&!a.existsSync(`${d}/${c.csrf_k}`))return null;if(0==c.verification_status&&!r){let e=await t(`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=u},31341:e=>{e.exports=function(e){let s=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=s;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=r;let a=s;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=t}}},72835:(e,s,r)=>{let{scryptSync:t,createDecipheriv:n}=r(55511),{Buffer:a}=r(79428);e.exports=({encryptedString:e,encryptionKey:s,encryptionSalt:r})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=s||process.env.DSQL_ENCRYPTION_PASSWORD,u=r||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",t(i,u,o),a.alloc(16,0));try{let s=l.update(e,"hex","utf8");return s+=l.final("utf8")}catch(s){return console.log("Error in decrypting =>",s.message),e}}},51348:(e,s,r)=>{let t=r(9973),n=r(21580),a=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 i(...e){try{let s=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/getDelegatedDatabases.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..e81a6d6 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/getDiskUsage.js @@ -0,0 +1,22 @@ +"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:()=>g,default:()=>E,routeModule:()=>h});var s={};t.r(s),t.d(s,{default:()=>f});var n=t(89947),i=t(2706),o=t(96762),a=t(51348),c=t.n(a),l=t(48225),u=t.n(l),d=t(6420),p=t.n(d);let _=t(29021),m=t(33873),{execSync:S}=t(79646);async function f(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||_.existsSync(i)||_.mkdirSync(i,{recursive:!0});let o=m.join(i,`images/user-images/user-${t.id}`);_.existsSync(o)||_.mkdirSync(o,{recursive:!0});let a=m.join(i,`images/user-images/user-${t.id}`),l=m.join(i,`videos/user-videos/user-${t.id}`);async function s(e){try{let r=_.readdirSync(e);for(let t=0;t ${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})}}_.existsSync(l)||_.mkdirSync(l,{recursive:!0}),await s(a),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 E=(0,o.M)(s,"default"),g=(0,o.M)(s,"config"),h=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/getDiskUsage",pathname:"/api/getDiskUsage",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),i=t(29021),o=t(31341);async function a(e,r,t,a){let{keyCookieName:c,csrfCookieName:l}=o();if(!e.cookies?.[c]?.match(/./))return null;let u=n({encryptedString:e.cookies[c]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=a},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),{keyCookieName:n,csrfCookieName:i+=s}}},48225:(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 o=new Date,a=(()=>{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)}`),a&&(n+=` +IP: ${a}`),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",` + + + + +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:i}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(o,a,c),i.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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 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 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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/getDiskUsage.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..c9b6afa --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/getUserDatabaseTables.js @@ -0,0 +1 @@ +"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,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}}})},34132:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>p,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>d});var n=t(89947),a=t(2706),o=t(96762),i=t(51348),u=t.n(i),c=t(6420),l=t.n(c);t(29021),t(33873);let{execSync:_}=t(79646);async function d(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, table_name, table_slug FROM user_database_tables WHERE user_id='${t.id}' AND db_id='${e.query.dbId}'`);r.json({success:!0,tables:s})}let p=(0,o.M)(s,"default"),f=(0,o.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,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function i(e,r,t,i){let{keyCookieName:u,csrfCookieName:c}=o();if(!e.cookies?.[u]?.match(/./))return null;let l=n({encryptedString:e.cookies[u]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.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&&!a.existsSync(`${d}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=i},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,u=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(o,i,u),a.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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=34132);module.exports=t})(); \ 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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/getUserDatabaseTables.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..6dfb45d --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/getUserDatabases.js @@ -0,0 +1 @@ +"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:()=>f,default:()=>p,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>d});var n=t(89947),o=t(2706),a=t(96762),i=t(51348),u=t.n(i),c=t(6420),l=t.n(c);t(29021),t(33873);let{execSync:_}=t(79646);async function d(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 p=(0,a.M)(s,"default"),f=(0,a.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:o.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(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:u,csrfCookieName:c}=a();if(!e.cookies?.[u]?.match(/./))return null;let l=n({encryptedString:e.cookies[u]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.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}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=i},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,u=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(a,i,u),o.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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=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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/getUserDatabases.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..234cc57 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/getUserMedia.js @@ -0,0 +1 @@ +"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:()=>f});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),i=t(2706),o=t(96762),a=t(51348),u=t.n(a),c=t(6420),l=t.n(c);async function _(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,o.M)(s,"default"),p=(0,o.M)(s,"config"),f=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(72835),i=t(29021),o=t(31341);async function a(e,r,t,a){let{keyCookieName:u,csrfCookieName:c}=o();if(!e.cookies?.[u]?.match(/./))return null;let l=n({encryptedString:e.cookies[u]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.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&&!i.existsSync(`${d}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=a},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),{keyCookieName:n,csrfCookieName:i+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:i}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,u=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(o,a,u),i.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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 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 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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/getUserMedia.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..22f46b6 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/getUserSchemaData.js @@ -0,0 +1,16 @@ +"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:()=>_,routeModule:()=>f});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(48225),l=t.n(i),c=t(6420),u=t.n(c);let d=t(29021);async function p(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"});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 _=(0,o.M)(s,"default"),S=(0,o.M)(s,"config"),f=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(72835);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}`,c=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${l}`;try{if(!e.cookies?.[c])throw Error("Cookie not present");let t=s({encryptedString: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}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72835),n=t(29021),o=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=a({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=r;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=t;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:a,csrfCookieName:n+=s}}},48225:(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",` + + + + +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=a("aes-192-cbc",s(o,i,l),n.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/getUserSchemaData.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..a748b75 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/healthcheck.js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..a832c7c --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/healthcheck.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..1c75115 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/importDatabase.js @@ -0,0 +1,16 @@ +"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:()=>h,default:()=>g,routeModule:()=>b});var a={};r.r(a),r.d(a,{default:()=>S});var s=r(89947),l=r(2706),n=r(96762),i=r(72350),o=r.n(i),u=r(48225),c=r.n(u),d=r(6420),p=r.n(d);let m=r(29021),f=r(21820),{execSync:_}=r(79646);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{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 g=(0,n.M)(a,"default"),h=(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),{default:s}=r(2258),{default:l}=r(78634),n=r(47670),i=r(24256);e.exports=async function({userId:e,database:t}){try{if(!e){console.log("No user Id provided");return}let r=s({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;re.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 l({schemaData:r,userId:e}),!0}catch(e){return console.log(e),!1}}},6420:(e,t,r)=>{r(81630);let a=r(51348),s=r(72835),l=r(29021),n=r(31341);async function i(e,t,r,i){let{keyCookieName:o,csrfCookieName:u}=n();if(!e.cookies?.[o]?.match(/./))return null;let c=s({encryptedString:e.cookies[o]});if(!c)return null;let d=JSON.parse(c);if(!d.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!l.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!r){let e=await a(`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=i},31341:e=>{e.exports=function(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=t;e?.userId&&(s+=`user_${e.userId}_`),e?.database&&(s+=`${e.database}_`),s+=r;let l=t;return e?.userId&&(l+=`user_${e.userId}_`),e?.database&&(l+=`${e.database}_`),{keyCookieName:s,csrfCookieName:l+=a}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},2258:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});let a=r(48225),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:"grabUserSchemaData",message:e.message}),null}}},6061:(e,t,r)=>{let a=r(72835),s=r(30003);e.exports=async function({unparsedResults:e,tableSchema:t}){let r=[];try{for(let l=0;l",t.message),e}}},48225:(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",` + + + + +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},78634:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});let a=r(48225),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}}},57638:(e,t,r)=>{r(29021);let a=r(6061),s=r(48225),l=r(51348),n=r(21339),i=r(44900);e.exports=async function({queryString:e,queryValuesArray:t,database:r,tableSchema:o,useLocal:u}){let c;let d=!!r?.match(/^datasquirel$/),p=u?i:d?l:n;try{c=e&&t&&Array.isArray(t)&&t[0]?d?await p(e,t):await p({paradigm:"Full Access",database:r,queryString:e,queryValues:t}):d?await p(e):await p({paradigm:"Full Access",database:r,queryString:e})}catch(e){s({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&o)try{let e=c;return await a({unparsedResults:e,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",r,e),s({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},72835:(e,t,r)=>{let{scryptSync:a,createDecipheriv:s}=r(55511),{Buffer:l}=r(79428);e.exports=({encryptedString:e,encryptionKey:t,encryptionSalt:r})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=t||process.env.DSQL_ENCRYPTION_PASSWORD,i=r||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=s("aes-192-cbc",a(n,i,o),l.alloc(16,0));try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},24256: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 new file mode 100644 index 0000000..904457f --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/importDatabase.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..ce23b13 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/importDatabaseSchema.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=3382,e.ids=[3382],e.modules={60818:e=>{e.exports=require("dotenv")},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:()=>P,default:()=>E,routeModule:()=>v});var s={};t.r(s),t.d(s,{default:()=>m});var n=t(89947),a=t(2706),o=t(96762),i=t(48225),u=t.n(i),c=t(6420),l=t.n(c),d=t(19261),f=t.n(d);let _=t(29021),p=t(33873);t(21820);let{execSync:S}=t(79646);async function m(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{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=p.resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${t.id}/main.json`);if(!_.existsSync(o))return r.end();let i=JSON.parse(_.readFileSync(o,"utf-8")),u=i.find(e=>e.dbFullName==s.db_full_name);if(!u)throw Error("Database not found!");u.tables=a.tables,_.writeFileSync(o,JSON.stringify(i),"utf-8"),await f()({userId:t.id,targetDatabase:s.db_full_name}),r.json({success:!0})}catch(e){console.log("JSON import ERROR =>",e.message),u()({component:"/api/importDatabase/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Import Failed!"})}}let E=(0,o.M)(s,"default"),P=(0,o.M)(s,"config"),v=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/importDatabaseSchema",pathname:"/api/importDatabaseSchema",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function i(e,r,t,i){let{keyCookieName:u,csrfCookieName:c}=o();if(!e.cookies?.[u]?.match(/./))return null;let l=n({encryptedString:e.cookies[u]});if(!l)return null;let d=JSON.parse(l);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let f=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!f)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${f}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},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=e=>r(r.s=e),s=r.X(0,[2451],()=>t(56807));module.exports=s})(); \ 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 new file mode 100644 index 0000000..1e1c71d --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/importDatabaseSchema.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../.env","../../../../jsonData/dbSchemas/main.json","../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/dotenv/lib/main.js","../../../../node_modules/dotenv/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-shared/data/defaultFields.json","../../../../package.json","../../../package.json","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..4d665c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/infiniteScroll.js @@ -0,0 +1,16 @@ +"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),c=t.n(l),i=t(48225),u=t.n(i);t(27825);var d=t(39831),p=t.n(d),_=t(57638),S=t.n(_);async function f(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await c()(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,c=s.page,i=20*c,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 ${i}`;let _=await S()({database:o,queryString:u,queryValuesArray:d,tableSchema:s.tableSchema}),f={success:!0,data:_,page:Number(c)+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(72835);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,c=`${process.env.DSQL_USER_DB_PREFIX}${l}_${r}`,i=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${c}`;try{if(!e.cookies?.[i])throw Error("Cookie not present");let t=s({encryptedString:e.cookies[i]});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}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72835),n=t(29021),o=t(31341);async function l(e,r,t,l){let{keyCookieName:c,csrfCookieName:i}=o();if(!e.cookies?.[c]?.match(/./))return null;let u=a({encryptedString:e.cookies[c]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=l},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=r;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=t;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:a,csrfCookieName:n+=s}}},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(72835),a=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n",r.message),e}}},48225:(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 c=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` + + + + +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),a=t(48225),n=t(51348),o=t(21339),l=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:c,useLocal:i}){let u;let d=!!t?.match(/^datasquirel$/),p=i?l:d?n:o;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):d?await p(e):await p({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}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,l=t||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let i=a("aes-192-cbc",s(o,l,c),n.alloc(16,0));try{let r=i.update(e,"hex","utf8");return r+=i.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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((c,i)=>{let u=!!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=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"),c({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),a=t(21580);async function n(...e){let r=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()},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 t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{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=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 new file mode 100644 index 0000000..a90f12f --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/infiniteScroll.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..ac13b2e --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/loginUser.js @@ -0,0 +1,19 @@ +"use strict";(()=>{var e={};e.id=3303,e.ids=[3303],e.modules={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:()=>D,default:()=>A,routeModule:()=>R});var s={};t.r(s),t.d(s,{default:()=>b});var i=t(89947),a=t(2706),n=t(96762),o=t(51348),l=t.n(o),u=t(44767),d=t.n(u),_=t(48225),m=t.n(_),c=t(59474),p=t.n(c),g=t(91766),f=t.n(g),S=t(31341),E=t.n(S),h=t(14533),y=t.n(h);let L=t(29021),v=t(20503);async function b(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");L.existsSync(t)||L.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=y()({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:i});if(i?.match(/ /)||s?.match(/ /))return r.json({msg:"Failed!",user:null});let _=await l()("SELECT * FROM users WHERE email=? OR username=?",[s,s]);if(!_||!_[0])return r.json({msg:"No user found",user:null});let m=!1;if(_&&_[0]&&(m=u===_[0].password),!m)return await f()(),p()({to:process.env.DSQL_CONTACT_EMAIL,subject:`Failed Login from ${s}`,html:`

${s} tried to login with a wrong password

${s} attempted a login on ${o} from ${n} with a wrong password.

`}),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:_[0].id,stripe_id:_[0].stripe_id||"",first_name:_[0].first_name,last_name:_[0].last_name,username:_[0].username,email:_[0].email,social_id:_[0].social_id,image:_[0].image,image_thumbnail:_[0].image_thumbnail,verification_status:_[0].verification_status,social_login:_[0].social_login,social_platform:_[0].social_platform,csrf_k:c,logged_in_status:!0,date:Date.now()},S=v({data:JSON.stringify(g)}),{keyCookieName:h,csrfCookieName:b}=E()();r.setHeader("Set-Cookie",[`${h}=${S};samesite=strict;path=/;HttpOnly=true;Secure=true`,`${b}=${c};samesite=strict;path=/;HttpOnly=true`]),L.appendFile("./.tmp/userLoginLogs.log",`${_[0].first_name} ${_[0].last_name} Logged in from ${_[0].social_login?_[0].social_platform:"Regular Email Login"} at ${Date()} + + +`,"utf8",e=>{e&&console.log("Loging log write error")}),L.writeFileSync(`${t}/${c}`,JSON.stringify(g)),a?.invite&&d()({query:a,user:{...g,phone:_[0].phone}}),await f()(),p()({to:process.env.DSQL_CONTACT_EMAIL,subject:`${s} Logged in successfully`,html:`

${s} successfully logged in

${s} successfully logged in on ${o} from ${n} on ${Date().substring(0,16)}.

`}),r.json({msg:"User Found",user:{auth:!0,userid:_[0].id,csrf_k:c,stripe_id:_[0].stripe_id||""},userPayload:g})}catch(e){console.log("Login Error =>",e.message),m()({component:"/api/loginUser/main-catch-error",message:e.message,user:{email:s}})}}else r.json({msg:"Oops ..."})}let A=(0,n.M)(s,"default"),D=(0,n.M)(s,"config"),R=new i.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/loginUser",pathname:"/api/loginUser",bundlePath:"",filename:""},userland:s})},91766:e=>{e.exports=async function(e){return await new Promise((r,t)=>{setTimeout(()=>{r(!0)},e||1e3)}),!0}},44767:(e,r,t)=>{let s=t(48225),i=t(51348),a=t(47670),n=t(44900);e.exports=async function({query:e,user:r,useLocal:t}){try{let s=t?n:i,{invite:o,database_access:l,priviledge:u,email:d}=e,_=[o,d],m=await s("SELECT date_created_code FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",_);if(!m||!m[0])throw Error("No Invitation Found");let c=[o],p=await s("SELECT first_name,last_name,email FROM users WHERE id=?",c);if(p?.[0]){let e=await s("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[o,r.id,d]);if(e?.[0])console.log("User already added");else{a({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:o,invited_user_id:r.id,database_access:l,first_name:r.first_name,last_name:r.last_name,phone:r.phone,email:r.email,username:r.username,user_type:"admin",user_priviledge:u,image:r.image,image_thumbnail:r.image_thumbnail},useLocal:t});let e=await s("SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[o,d]);if(await s("DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[o,r.id]),e&&e[0]){let s=e[0].db_tables_data.split("|");for(let e=0;e{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=r;e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),i+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:i,csrfCookieName:a+=s}}},59474:(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}},48225:(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",` + + + + +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},14533:(e,r,t)=>{let{createHmac:s}=t(55511);e.exports=function({password:e,encryptionKey:r}){let t=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let i=s("sha512",t);return i.update(e),i.digest("base64")}}};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 new file mode 100644 index 0000000..c63939d --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/loginUser.js.nft.json @@ -0,0 +1 @@ +{"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/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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..ed3a0a9 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/logoutUser.js @@ -0,0 +1 @@ +"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,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}}})},22380:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>l,routeModule:()=>p});var s={};t.r(s),t.d(s,{default:()=>c});var n=t(89947),o=t(2706),a=t(96762);t(6420);var i=t(31341),u=t.n(i);async function c(e,r){if("GET"!==e.method)return r.json({msg:"Logout Error"});{let{keyCookieName:e,csrfCookieName:t}=u()();r.setHeader("Set-Cookie",[`${e}=null;max-age=0`,`${t}=null;max-age=0`]),r.json({msg:"Logged Out"})}}t(29021);let l=(0,a.M)(s,"default"),_=(0,a.M)(s,"config"),p=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/logoutUser",pathname:"/api/logoutUser",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:u,csrfCookieName:c}=a();if(!e.cookies?.[u]?.match(/./))return null;let l=n({encryptedString:e.cookies[u]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${p}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=i},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,u=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(a,i,u),o.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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=22380);module.exports=t})(); \ 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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/logoutUser.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..25846a9 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/media/addPrivateMedia.js @@ -0,0 +1 @@ +"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:()=>E,default:()=>f,routeModule:()=>v});var s={};t.r(s),t.d(s,{default:()=>S});var i=t(89947),a=t(2706),n=t(96762),o=t(51348),c=t.n(o),u=t(6420),l=t.n(u),d=t(33873),_=t.n(d);let p=t(29021),m=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=m.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=_().join(n,"images"),u=`${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,m=e?`${o}/user-images/user-${t.id}`:`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/media`;if(!p.existsSync(m))try{p.mkdirSync(m,{recursive:!0})}catch(e){console.log("LINE 88 error:",e.message)}a&&a.split("/").reduce((e,r)=>{let t=e?.match(/./)?`${e}/${r}`:m;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],E=S.split(".")[1],v=e?`${u}${a?a+"/":"/"}${S}`:`@/media${a?a+"/":"/"}${S}`,h=e?`${l}${a?a+"/":"/"}${S}`:`@/media${a?a+"/":"/"}${S}`;p.copyFileSync(d,m+a+"/"+S),p.unlinkSync(d);let $=f+"_thumbnail."+E,P=d.replace(S,$),g=e?`${u}${a?a+"/":"/"}${$}`:`@/media${a?a+"/":"/"}${$}`,D=e?`${l}${a?a+"/":"/"}${$}`:`@/media${a?a+"/":"/"}${$}`;try{p.copyFileSync(P,m+a+"/"+$),p.unlinkSync(P)}catch(e){}await c()("UPDATE user_media SET private = ?, media_url= ?, media_thumbnail_url= ?, media_path = ?, media_thumbnail_path = ? WHERE id = ?",[e?0:1,v,g,h,D,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"),E=(0,n.M)(s,"config"),v=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(72835),a=t(29021),n=t(31341);async function o(e,r,t,o){let{keyCookieName:c,csrfCookieName:u}=n();if(!e.cookies?.[c]?.match(/./))return null;let l=i({encryptedString:e.cookies[c]});if(!l)return null;let d=JSON.parse(l);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=r;e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),i+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:i,csrfCookieName:a+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:i}=t(55511),{Buffer:a}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=i("aes-192-cbc",s(n,o,c),a.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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 new file mode 100644 index 0000000..0e34e06 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/media/addPrivateMedia.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../.env","../../../../../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/index.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/data/dataTypes.json","../../../../../node_modules/@moduletrace/datasquirel/package-shared/data/defaultFields.json","../../../../../node_modules/@moduletrace/datasquirel/package-shared/data/possibleFields.json","../../../../../node_modules/@moduletrace/datasquirel/package-shared/data/presets/users.json","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/api/query/get.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/api/query/post.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/api/social-login/githubLogin.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/api/social-login/handleSocialDb.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/api/social-login/loginSocialUser.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/api/users/api-create-user.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/api/users/api-delete-user.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/api/users/api-get-user.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/api/users/api-login.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/api/users/api-reauth-user.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/api/users/api-send-email-code.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/api/users/api-update-user.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/api/users/social/api-github-login.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/api/users/social/api-google-login.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/addAdminUserOnLogin.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/addMariadbUser.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/addUsersTableToDb.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/auth/write-auth-files.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/cookies/get-auth-cookie-names.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/defaultFieldsRegexp.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/fullAccessDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/grabNewUsersTableSchema.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/grabSchemaFieldsFromData.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/grabUserSchemaData.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/handleNodemailer.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/html/sanitizeHtmlOptions.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/httpsRequest.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/setUserSchemaData.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/updateUsersTableSchema.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/varDatabaseDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/dsql/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/dsql/encrypt.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/dsql/hashPassword.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/dsql/sql/sql-delete-generator.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/dsql/sql/sql-generator.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/dsql/sql/sql-insert-generator.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/html/one-time-code.html","../../../../../node_modules/@moduletrace/datasquirel/package-shared/shell/createDbFromSchema.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/shell/utils/createTable.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/shell/utils/dbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/shell/utils/generateColumnDescription.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/shell/utils/noDatabaseDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/shell/utils/supplementTable.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/shell/utils/updateTable.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/shell/utils/varDatabaseDbHandler.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/global-db/NO_DB_HANDLER.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/grabDbSSL.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/camelJoinedtoCamelSpace.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/ejson.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/delete-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/dotenv/lib/main.js","../../../../../node_modules/dotenv/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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..c789362 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/media/getPrivateMedia.js @@ -0,0 +1 @@ +"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:()=>_});var s={};t.r(s),t.d(s,{default:()=>l});var n=t(89947),o=t(2706),a=t(96762),i=t(6420),c=t.n(i);let u=t(29021);async function l(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Failed!"});let t=await c()(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,"")}`,o=s.replace(/\@/,n);u.createReadStream(o).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,a.M)(s,"default"),d=(0,a.M)(s,"config"),_=new n.PagesAPIRouteModule({definition:{kind:o.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(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:c,csrfCookieName:u}=a();if(!e.cookies?.[c]?.match(/./))return null;let l=n({encryptedString:e.cookies[c]});if(!l)return null;let p=JSON.parse(l);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.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}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=i},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=n("aes-192-cbc",s(a,i,c),o.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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=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 new file mode 100644 index 0000000..0e34e06 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/media/getPrivateMedia.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../.env","../../../../../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/index.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/data/dataTypes.json","../../../../../node_modules/@moduletrace/datasquirel/package-shared/data/defaultFields.json","../../../../../node_modules/@moduletrace/datasquirel/package-shared/data/possibleFields.json","../../../../../node_modules/@moduletrace/datasquirel/package-shared/data/presets/users.json","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/api/query/get.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/api/query/post.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/api/social-login/githubLogin.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/api/social-login/handleSocialDb.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/api/social-login/loginSocialUser.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/api/users/api-create-user.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/api/users/api-delete-user.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/api/users/api-get-user.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/api/users/api-login.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/api/users/api-reauth-user.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/api/users/api-send-email-code.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/api/users/api-update-user.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/api/users/social/api-github-login.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/api/users/social/api-google-login.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/addAdminUserOnLogin.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/addMariadbUser.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/addUsersTableToDb.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/auth/write-auth-files.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/cookies/get-auth-cookie-names.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/defaultFieldsRegexp.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/fullAccessDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/grabNewUsersTableSchema.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/grabSchemaFieldsFromData.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/grabUserSchemaData.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/handleNodemailer.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/html/sanitizeHtmlOptions.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/httpsRequest.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/setUserSchemaData.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/updateUsersTableSchema.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/varDatabaseDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/dsql/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/dsql/encrypt.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/dsql/hashPassword.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/dsql/sql/sql-delete-generator.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/dsql/sql/sql-generator.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/dsql/sql/sql-insert-generator.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/html/one-time-code.html","../../../../../node_modules/@moduletrace/datasquirel/package-shared/shell/createDbFromSchema.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/shell/utils/createTable.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/shell/utils/dbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/shell/utils/generateColumnDescription.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/shell/utils/noDatabaseDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/shell/utils/supplementTable.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/shell/utils/updateTable.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/shell/utils/varDatabaseDbHandler.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/global-db/NO_DB_HANDLER.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/grabDbSSL.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/camelJoinedtoCamelSpace.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/ejson.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/delete-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/dotenv/lib/main.js","../../../../../node_modules/dotenv/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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..222db73 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/purgeDb.js @@ -0,0 +1 @@ +"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,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}}})},97447:(e,r,t)=>{t.r(r),t.d(r,{config:()=>P,default:()=>E,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>S});var n=t(89947),o=t(2706),i=t(96762),a=t(29021),c=t.n(a),l=t(51348),u=t.n(l),_=t(6420),p=t.n(_),d=t(33873),f=t.n(d);async function S(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await p()(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{paradigm:t,payload:s}=e.body;try{console.log("Deleting media =>",s.id);let e=s.media_url,t=process.env.DSQL_STATIC_SERVER_DIR,n=process.env.DSQL_STATIC_HOST;if(!t){console.log("No Static Root Path"),r.json({success:!1,msg:"No Static Root Path"});return}let o=e.replace(n,""),i=f().join(t,o),a=c().existsSync(i);if(console.log("relativePath",o),console.log("STATIC_ROOT",t),console.log("STATIC_HOST",n),console.log("filePath",i),console.log("fileExist",a),a){r.json({success:!1});return}}catch(e){console.log("File verification Error =>",e.message),console.log("File Truly doesn't exist, cotinuing ...")}"user_media"===t&&await u()(`DELETE FROM user_media WHERE id='${s.id}'`),r.json({success:!0})}let E=(0,i.M)(s,"default"),P=(0,i.M)(s,"config"),g=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/purgeDb",pathname:"/api/purgeDb",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),i=t(31341);async function a(e,r,t,a){let{keyCookieName:c,csrfCookieName:l}=i();if(!e.cookies?.[c]?.match(/./))return null;let u=n({encryptedString:e.cookies[c]});if(!u)return null;let _=JSON.parse(u);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${p}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=a},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(i,a,c),o.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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=97447);module.exports=t})(); \ 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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/purgeDb.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..dee4561 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-file.js @@ -0,0 +1,16 @@ +"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")},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:()=>x,default:()=>$,routeModule:()=>R});var i={};t.r(i),t.d(i,{config:()=>E,default:()=>v});var s=t(89947),a=t(2706),n=t(96762),l=t(33873),o=t.n(l),u=t(47670),d=t.n(u),c=t(64122),m=t.n(c),p=t(48227),f=t.n(p),g=t(48225),_=t.n(g),S=t(77619),y=t.n(S);let h=t(29021),E={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 i=y()({key:t,user_id:String(e.query.user_id)});if(!i?.user_id)throw Error("Api Credentials invalid!");let{user_id:s,full_access:a}=i;if(!a)return r.json({success:!1,msg:"Unauthorized"});let{fileData:n,fileName:l,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-${s}/${c?.toString().replace(/\.\./g,"")}`);h.existsSync(e)||h.mkdirSync(e,{recursive:!0})}let _=f()({folder:c,isPrivate:p,user:i});if(!_)throw Error("Couldn't Grab Image URLs");let{fileRootPath:S,urlRootPath:E}=_,v=u?.match(/csv/i)?".csv":u?.match(/pdf/i)?".pdf":u?.match(/xlsx/)?".xlsx":u?.match(/json/i)?".json":".txt",$=E+l+v;h.writeFileSync(S+l+v,n,"base64"),await m()({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"media_url",identifierValue:$}),await d()({dbFullName:"datasquirel",tableName:"user_media",data:{user_id:s,media_name:l,media_url:$,media_thumbnail_url:$,folder:c||"",media_type:"file",private:p?"1":null}}),r.json({success:!0,payload:{urlPath:$}})}catch(t){console.log("File write error:",t),_()({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 $=(0,n.M)(i,"default"),x=(0,n.M)(i,"config"),R=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/query/[user_id]/add-file",pathname:"/api/query/[user_id]/add-file",bundlePath:"",filename:""},userland:i})},48227:(e,r,t)=>{let i=t(29021),s=t(33873);e.exports=function({isPrivate:e,user:r,folder:t,video:a,pathOnly:n}){"production".match(/production/);let l=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?`@/${a?"videos":"media"}/${t?t+"/":""}`:a?`/videos/user-videos/user-${l}/${t?t+"/":""}`:`/images/user-images/user-${l}/${t?t+"/":""}`,d=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${l}/media/${t?t+"/":""}`:s.join(o,u);return i.existsSync(d)||n||i.mkdirSync(d,{recursive:!0}),{fileRootPath:d,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${u}`,relativePath:u}}},77619:(e,r,t)=>{let i=t(29021),s=t(72835);e.exports=({key:e,database:r,table:t,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 l=s({encryptedString:e}),o=JSON.parse(l||""),u=i.existsSync(`${n}/${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 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 i=t(51348),s=t(21339),a=t(44900);async function n({dbContext:e,paradigm:r,dbFullName:t,tableName:n,identifierColumnName:l,identifierValue:o,useLocal:u}){try{let d=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),c=u?a:d?i:s,m=`DELETE FROM ${n} WHERE \`${l}\`=?`;return d?await c(m,[o]):await c({paradigm:r,queryString:m,database:t,queryValues:[o]})}catch(e){return null}}e.exports=n},48225:(e,r,t)=>{let i=t(29021),{IncomingMessage:s}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:s,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"],t=a.headers["cf-connecting-ip"],i=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||i||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: ${n.toDateString()} +========================================`,i.existsSync("./.tmp/error.log")||i.writeFileSync("./.tmp/error.log","","utf-8");let o=i.readFileSync("./.tmp/error.log","utf-8");i.writeFileSync("./.tmp/error.log",s),i.appendFileSync("./.tmp/error.log",` + + + + +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:i,createDecipheriv:s}=t(55511),{Buffer:a}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,l=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=s("aes-192-cbc",i(n,l,o),a.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),i=r.X(0,[4050],()=>t(82453));module.exports=i})(); \ 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 new file mode 100644 index 0000000..e1f2a2a --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-file.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/7070.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9621.js","../../../../chunks/9732.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 new file mode 100644 index 0000000..e3ef8c9 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-image.js @@ -0,0 +1,16 @@ +"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:()=>$,routeModule:()=>R});var i={};t.r(i),t.d(i,{config:()=>E,default:()=>v});var a=t(89947),s=t(2706),n=t(96762),o=t(33873),l=t.n(o),u=t(47670),d=t.n(u),c=t(64122),m=t.n(c),p=t(10701),g=t.n(p),f=t(48225),_=t.n(f),h=t(77619),S=t.n(h);let y=t(29021),E={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 i=S()({key:t,user_id:String(e.query.user_id)});if(!i?.user_id)throw Error("Api Credentials invalid!");let{user_id:a,full_access:s}=i;if(!s)return r.json({success:!1,msg:"Unauthorized"});let{imageData:n,imageName:o,mimeType:u,thumbnailSize:c,folder:p,isPrivate:f}=e.body,_=process.env.DSQL_STATIC_SERVER_DIR;if(!_)throw console.log("Static File ENV not Found!"),Error("No Static Path!");if(p){let e=l().join(_,`images/user-images/user-${a}/${p}`);y.existsSync(e)||y.mkdirSync(e,{recursive:!0})}let h=u?.match(/jpeg/i)?"jpeg":u?.match(/png/i)?"png":u?.match(/webp/i)?"webp":u?.match(/svg/i)?"svg":"jpg",E=await g()({imageName:o,imageSourceBase64:n,user:{id:a},mimeType:h,thumbnailSize:c,folder:p,isPrivate:f});if(!E)throw Error("Write Image Failed in add-media API route");let{urlPath:v,urlThumbnailPath:$}=E;await m()({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"media_url",identifierValue:v}),await d()({dbFullName:"datasquirel",tableName:"user_media",data:{user_id:a,media_name:o,media_url:v,media_thumbnail_url:$,folder:p||""}}),r.json({success:!0,payload:{urlPath:v,urlThumbnailPath:$}})}catch(t){_()({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 $=(0,n.M)(i,"default"),b=(0,n.M)(i,"config"),R=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/query/[user_id]/add-image",pathname:"/api/query/[user_id]/add-image",bundlePath:"",filename:""},userland:i})},10701:(e,r,t)=>{let i=t(9288),a=t(48225),s=t(48227);e.exports=async function({imageSourceBase64:e,imageName:r,user:t,mimeType:n,thumbnailSize:o,folder:l,isPrivate:u}){try{let a=Buffer.from(e,"base64"),d=o?parseInt(o.toString()):400,c=i(a),m=i(a),p=s({isPrivate:u,user:t,folder:l});if(!p)return null;let{fileRootPath:g,urlRootPath:f,relativePath:_}=p,{width:h,height:S,format:y}=await c.metadata(),E=n||y;h&&S&&h>1800&&c.resize(1800,Math.round(1800/h*S),{fit:"cover"}),c.toFormat(E,{quality:80}),await c.metadata();let v=`${r}.${E}`;if(await c.toFile(g+v),h&&S&&h>d){let e=d/h;m.resize(d,Math.round(S*e),{fit:"cover"})}else h&&S&&m.resize(150,Math.round(150/h*S),{fit:"cover"});m.toFormat(E,{quality:80});let $=`${r}_thumbnail.${E}`;return await m.toFile(g+$),{urlPath:f+v,urlThumbnailPath:f+$,urlRelativePath:_+v,urlThumbnailRelativePath:_+$}}catch(e){return console.log("Write Image to Disk error =>",e.message),a({component:"functions/backend/fsWriteImageToDiskFromBase64",message:e.message}),null}}},48227:(e,r,t)=>{let i=t(29021),a=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+"/":""}`:a.join(l,u);return i.existsSync(d)||n||i.mkdirSync(d,{recursive:!0}),{fileRootPath:d,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${u}`,relativePath:u}}},77619:(e,r,t)=>{let i=t(29021),a=t(72835);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=a({encryptedString:e}),l=JSON.parse(o||""),u=i.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 i=t(51348),a=t(21339),s=t(44900);async function n({dbContext:e,paradigm:r,dbFullName:t,tableName:n,identifierColumnName:o,identifierValue:l,useLocal:u}){try{let d=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),c=u?s:d?i:a,m=`DELETE FROM ${n} WHERE \`${o}\`=?`;return d?await c(m,[l]):await c({paradigm:r,queryString:m,database:t,queryValues:[l]})}catch(e){return null}}e.exports=n},48225:(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,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],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)}`),o&&(a+=` +IP: ${o}`),a+=` +Date: ${n.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",a),i.appendFileSync("./.tmp/error.log",` + + + + +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:i,createDecipheriv:a}=t(55511),{Buffer:s}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=a("aes-192-cbc",i(n,o,l),s.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),i=r.X(0,[4050],()=>t(19582));module.exports=i})(); \ 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 new file mode 100644 index 0000000..00535bd --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-image.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/7070.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9621.js","../../../../chunks/9732.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 new file mode 100644 index 0000000..556a0a4 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/delete-file.js @@ -0,0 +1,16 @@ +"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:()=>E,default:()=>D,routeModule:()=>y});var s={};t.r(s),t.d(s,{config:()=>g,default:()=>m});var n=t(89947),o=t(2706),a=t(96762),i=t(51348),c=t.n(i),l=t(64122),u=t.n(l),p=t(48225),d=t.n(p),S=t(77619),_=t.n(S);let f=t(29021),g={api:{bodyParser:{sizeLimit:"50mb"}}};async function m(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:o}=s;if(!o)return r.json({success:!1,msg:"Unauthorized"});let{url:a}=e.body,i=await c()("SELECT * FROM user_media WHERE media_url = ?",[a]);if(!i?.length)return r.json({success:!1,msg:"Media not found!"});let{id:l,folder:p,media_url:d,media_thumbnail_url:S,media_type:g}=i[0],m=process.env.DSQL_STATIC_SERVER_DIR;if(!m)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let D=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||"",m),E=D(d),y=D(S);if(!E?.match(/./))return r.json({success:!1,msg:"Invalid path!"});try{f.unlinkSync(E),f.unlinkSync(y),await u()({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"id",identifierValue:l}),r.json({success:!0,payload:{url:a}})}catch(e){console.log("File delete error:",e.message),r.json({success:!1,payload:{url:a},error:e.message})}}catch(t){console.log("File write error:",t),d()({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 D=(0,a.M)(s,"default"),E=(0,a.M)(s,"config"),y=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/query/[user_id]/delete-file",pathname:"/api/query/[user_id]/delete-file",bundlePath:"",filename:""},userland:s})},77619:(e,r,t)=>{let s=t(29021),n=t(72835);e.exports=({key:e,database:r,table:t,user_id:o})=>{if(!e||!o)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 i=n({encryptedString:e}),c=JSON.parse(i||""),l=s.existsSync(`${a}/${c.sign}`);if(String(c.user_id)!==String(o)||!l)return null;if(!c.target_database)return c;if(!r&&c.target_database)return null;let u=c.target_database?.split(",").includes(String(r));if(u&&!c.target_table)return c;if(u&&!t&&c.target_table)return null;if(c.target_table?.split(",").includes(String(t)))return c;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),null}}},64122:(e,r,t)=>{let s=t(51348),n=t(21339),o=t(44900);async function a({dbContext:e,paradigm:r,dbFullName:t,tableName:a,identifierColumnName:i,identifierValue:c,useLocal:l}){try{let u=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),p=l?o:u?s:n,d=`DELETE FROM ${a} WHERE \`${i}\`=?`;return u?await p(d,[c]):await p({paradigm:r,queryString:d,database:t,queryValues:[c]})}catch(e){return null}}e.exports=a},48225:(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",` + + + + +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(a,i,c),o.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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 p(e){a.end(),c(JSON.parse(JSON.stringify(e)))}function d(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(p).catch(d):a.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}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);async function o(...e){let r=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()},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 t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{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=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 new file mode 100644 index 0000000..922eb52 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/delete-file.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/7070.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9621.js","../../../../chunks/9732.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 new file mode 100644 index 0000000..b127253 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-private-file.js @@ -0,0 +1,16 @@ +"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:()=>P,default:()=>E,routeModule:()=>y});var i={};t.r(i),t.d(i,{config:()=>S,default:()=>_});var n=t(89947),s=t(2706),o=t(96762),a=t(33873),l=t.n(a),u=t(48227),c=t.n(u),d=t(48225),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:o,fileName:a,downloadType:u}=e.body,d=c()({folder:o,isPrivate:!0,user:i});if(!d)throw Error("Couldn't Grab Image URLs");let{fileRootPath:p}=d,f=l().join(p,a);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 E=(0,o.M)(i,"default"),P=(0,o.M)(i,"config"),y=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:o}){"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 u=e?`@/${s?"videos":"media"}/${t?t+"/":""}`:s?`/videos/user-videos/user-${a}/${t?t+"/":""}`:`/images/user-images/user-${a}/${t?t+"/":""}`,c=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${a}/media/${t?t+"/":""}`:n.join(l,u);return i.existsSync(c)||o||i.mkdirSync(c,{recursive:!0}),{fileRootPath:c,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${u}`,relativePath:u}}},77619:(e,r,t)=>{let i=t(29021),n=t(72835);e.exports=({key:e,database:r,table:t,user_id:s})=>{if(!e||!s)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 a=n({encryptedString:e}),l=JSON.parse(a||""),u=i.existsSync(`${o}/${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}}},48225:(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 o=new Date,a=(()=>{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)}`),a&&(n+=` +IP: ${a}`),n+=` +Date: ${o.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",` + + + + +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:i,createDecipheriv:n}=t(55511),{Buffer:s}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=n("aes-192-cbc",i(o,a,l),s.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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 new file mode 100644 index 0000000..621faf5 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-private-file.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/7070.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9621.js","../../../../chunks/9732.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 new file mode 100644 index 0000000..fecd954 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-schema.js @@ -0,0 +1,16 @@ +"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),o=t(48225),l=t.n(o),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:o,full_access:u}=i;if(!u)return r.json({success:!1,msg:"Unauthorized"});try{let e=t&&"string"==typeof t?`datasquirel_user_${o}_${t?.toLowerCase().replace(/[^a-z0-9\_]/g,"")}`:null,a=p.join(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${o.toString().replace(/\//g,"")}`,"main.json"),i=JSON.parse(d.readFileSync(a,"utf8")),l=e?i.find(r=>r.dbFullName==e):null;if(n&&t&&l?.tables?.[0]){let e=l.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&&!l?.tables?.[0])throw Error("Target Database Not Found!");t?r.json({success:!!l,payload:l}):r.json({success:!0,payload:i})}catch(e){l()({component:"/api/query/get-schema/lines-132-142",message:e.message}),r.json({success:!1,payload:null,error:e.message})}}catch(t){l()({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})},77619:(e,r,t)=>{let n=t(29021),s=t(72835);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({encryptedString: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 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}}},48225:(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",` + + + + +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:n,createDecipheriv:s}=t(55511),{Buffer:a}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=s("aes-192-cbc",n(i,o,l),a.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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 new file mode 100644 index 0000000..621faf5 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-schema.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/7070.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9621.js","../../../../chunks/9732.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 new file mode 100644 index 0000000..b980595 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get.js @@ -0,0 +1 @@ +"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:()=>g,default:()=>y,routeModule:()=>h});var a={};t.r(a),t.d(a,{default:()=>f});var s=t(89947),i=t(2706),l=t(96762);t(27825);var u=t(79681),n=t.n(u),o=t(48225),d=t.n(o),c=t(77619),p=t.n(c);let m=t(29021);async function f(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});try{let t,a;let s=e.query,{query:i,db:l}=s,u=s?.tableName?String(s.tableName):void 0,o=e.headers.authorization;if(!o)return r.json({success:!1,msg:"Unauthorized"});let d=p()({key:o,database:l,table:u,user_id:String(e.query.user_id)});if(!d?.user_id)throw Error("Api Credentials invalid!");let{user_id:c}=d;if(s?.queryValues&&"string"==typeof s?.queryValues)try{t=JSON.parse(s.queryValues)}catch(e){}let f=`datasquirel_user_${c}_${l}`,y=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${c.toString().replace(/\//g,"")}/main.json`;if(m.existsSync(y))try{a=JSON.parse(m.readFileSync(y,"utf8")).filter(e=>e.dbFullName===f)[0]}catch(e){}let g=await n()({dbFullName:f,query:i,tableName:u,queryValues:t,dbSchema:a});r.json(g)}catch(t){d()({component:"/api/query/get/main-catch-error",message:t.message,req:e}),r.json({success:!1,msg:"Wrong Credentials"})}}let y=(0,l.M)(a,"default"),g=(0,l.M)(a,"config"),h=new s.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/query/[user_id]/get",pathname:"/api/query/[user_id]/get",bundlePath:"",filename:""},userland:a})},79681:(e,r,t)=>{let a=t(27825),s=t(48225),i=t(8238);e.exports=async function({query:e,dbFullName:r,queryValues:t,tableName:l,dbSchema:u,useLocal:n}){if("string"==typeof e&&e.match(/^alter|^delete|information_schema|databases|^create/i))return{success:!1,msg:"Wrong Input."};try{let s,{result:o,error:d}=await i({dbFullName:r,query:e,queryValuesArray:t,readOnly:!0,dbSchema:u,tableName:l,local:n});if(u){let e=u.tables.find(e=>e.tableName===l);if(e){let r=a.cloneDeep(e);delete r.childTable,delete r.childTableDbFullName,delete r.childTableName,delete r.childrenTables,delete r.updateData,delete r.tableNameOld,delete r.indexes,s=r}}if(d)throw d;if(o.error)throw Error(o.error);return{success:!0,payload:o,schema:l&&s?s:void 0}}catch(e){return s({component:"/api/query/get/lines-85-94",message:e.message}),{success:!1,payload:null,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,8540],()=>t(7671));module.exports=a})(); \ 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 new file mode 100644 index 0000000..e1f2a2a --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/7070.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9621.js","../../../../chunks/9732.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 new file mode 100644 index 0000000..f6ea775 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/post.js @@ -0,0 +1 @@ +"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")},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:()=>q,default:()=>g,routeModule:()=>b});var s={};t.r(s),t.d(s,{config:()=>h,default:()=>y});var a=t(89947),i=t(2706),l=t(96762),o=t(29021),n=t.n(o);t(27825);var u=t(14211),d=t.n(u),c=t(48225),p=t.n(c),m=t(77619),f=t.n(m);let h={api:{bodyParser:{sizeLimit:"50mb"}}};async function y(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t,{query:s,database:a,tableName:i,queryValues:l}=e.body,o=e.headers.authorization,u=f()({key:o,database:a,table:i,user_id:String(e.query.user_id)});if(!u?.user_id)throw Error("Api Credentials invalid!");let{user_id:c,full_access:p}=u;if(!p)return r.json({success:!1,msg:"Unauthorized"});let m=`datasquirel_user_${c}_${a}`,h=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${c.toString().replace(/\//g,"")}/main.json`;if(n().existsSync(h))try{t=JSON.parse(n().readFileSync(h,"utf8")).filter(e=>e.dbFullName===m)[0]}catch(e){}let y=await d()({query:s,dbFullName:m,dbSchema:t,queryValues:l,tableName:i});r.json(y)}catch(t){p()({component:"/api/query/post/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]/post",pathname:"/api/query/[user_id]/post",bundlePath:"",filename:""},userland:s})},14211:(e,r,t)=>{let s=t(27825),a=t(48225),i=t(8238);e.exports=async function({query:e,dbFullName:r,queryValues:t,tableName:l,dbSchema:o,useLocal:n}){let u;if("string"==typeof e&&e?.match(/^create |^alter |^drop /i)||"object"==typeof e&&e?.action?.match(/^create |^alter |^drop /i))return{success:!1,msg:"Wrong Input"};try{let a,{result:d,error:c}=await i({dbFullName:r,query:e,dbSchema:o,queryValuesArray:t,tableName:l,local:n});if(u=d,c)throw c;if(o){let e=o.tables.find(e=>e.tableName===l);if(e){let r=s.cloneDeep(e);delete r.childTable,delete r.childTableDbFullName,delete r.childTableName,delete r.childrenTables,delete r.updateData,delete r.tableNameOld,delete r.indexes,a=r}}return{success:!0,payload:u,error:c,schema:l&&a?a:void 0}}catch(e){return a({component:"/api/query/post/lines-132-142",message:e.message}),{success:!1,payload:u,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,8540],()=>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 new file mode 100644 index 0000000..e1f2a2a --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/post.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/7070.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9621.js","../../../../chunks/9732.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 new file mode 100644 index 0000000..db667c6 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/update-schema-from-single-database.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=4133,e.ids=[4133],e.modules={60818:e=>{e.exports=require("dotenv")},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}}})},87854:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>m,routeModule:()=>_});var n={};t.r(n),t.d(n,{default:()=>g});var s=t(89947),a=t(2706),i=t(96762),u=t(48225),l=t.n(u),o=t(77619),d=t.n(o),c=t(19261),p=t.n(c);let f=t(29021);async function g(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`,l=JSON.parse(f.readFileSync(u,"utf8")),o=l.findIndex(e=>e.dbFullName==i?.dbFullName);if(i?.dbFullName&&l.find(e=>e.dbFullName==i.dbFullName),o<0)return r.json({success:!1,payload:null});l[o]=i,f.writeFileSync(u,JSON.stringify(l,null,4),"utf8"),await p()({userId:s.toString().replace(/\/| /g,""),targetDatabase:l[o].dbFullName}),r.json({success:!0,payload:"Success!"})}catch(t){l()({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 m=(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})},77619:(e,r,t)=>{let n=t(29021),s=t(72835);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 u=s({encryptedString:e}),l=JSON.parse(u||""),o=n.existsSync(`${i}/${l.sign}`);if(String(l.user_id)!==String(a)||!o)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}}},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=e=>r(r.s=e),n=r.X(0,[2451],()=>t(87854));module.exports=n})(); \ 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 new file mode 100644 index 0000000..322ce7b --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/update-schema-from-single-database.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../.env","../../../../../../jsonData/dbSchemas/main.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/dotenv/lib/main.js","../../../../../../node_modules/dotenv/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-shared/data/defaultFields.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/7070.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9621.js","../../../../chunks/9732.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 new file mode 100644 index 0000000..7bc509d --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/queryEntriesSearchTerm.js @@ -0,0 +1,16 @@ +"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:()=>f,default:()=>S,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),a=t(2706),o=t(96762),c=t(48225),i=t.n(c),l=t(6420),u=t.n(l),p=t(57638),d=t.n(p);async function _(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,n=e.query.db,a=e.query.field,o=String(e.query.term),c=e.query.operator;try{let e=`SELECT * FROM \`${s}\` WHERE LOWER(\`${a}\`) ${c?.toString()?.match(/equal/i)?"=":" LIKE "}? ORDER BY id DESC LIMIT 20`,t=[c?.toString()?.match(/equal/i)?o.toLowerCase():"%"+o.toLowerCase()+"%"],i=await d()({database:n?.toString()?.replace(/[^a-z0-9_]/g,""),queryString:e,queryValuesArray:t}),l=await d()({database:n?.toString()?.replace(/[^a-z0-9_]/g,""),queryString:e.replace(/\*/,"COUNT(id) AS count").replace(/ ORDER BY .*/,""),queryValuesArray:t});r.json({success:!0,result:i,count:l?.[0]?.count})}catch(e){i()({component:"/api/queryEntriesSearchTerm/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Failed!"})}}let S=(0,o.M)(s,"default"),f=(0,o.M)(s,"config"),m=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/queryEntriesSearchTerm",pathname:"/api/queryEntriesSearchTerm",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function c(e,r,t,c){let{keyCookieName:i,csrfCookieName:l}=o();if(!e.cookies?.[i]?.match(/./))return null;let u=n({encryptedString:e.cookies[i]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.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&&!a.existsSync(`${d}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=c},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},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(72835),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},48225:(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,c=(()=>{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)}`),c&&(n+=` +IP: ${c}`),n+=` +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",n),s.appendFileSync("./.tmp/error.log",` + + + + +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),c=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:l}){let u;let p=!!t?.match(/^datasquirel$/),d=l?c:p?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?p?await d(e,r):await d({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):p?await d(e):await d({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;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(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,c=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(o,c,i),a.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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:c}){try{return new Promise((i,l)=>{let u=!!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:t,queryValuesGenerated:c,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()}}),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"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);async function a(...e){let r=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()},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 t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{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=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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/queryEntriesSearchTerm.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..b5ffb1a --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/reAuthenticateUser.js @@ -0,0 +1,16 @@ +"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:()=>p,default:()=>d,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),i=t(2706),o=t(96762),a=t(6420),l=t.n(a),c=t(56129),u=t.n(c);async function _(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 u()({userId:t.id,res:r,csrf:t.csrf_k}),n={status:!!s,csrf:s?.csrf_k,user:s};r.json(n)}let d=(0,o.M)(s,"default"),p=(0,o.M)(s,"config"),f=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(48225),{ServerResponse:i}=t(81630),o=t(51348),a=t(20503),l=t(31341);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 o("SELECT * FROM users WHERE id=?",[e]);s.unlinkSync(`${n}/${t}`);let c=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:c,logged_in_status:!0,date:Date.now()},_=a({data:JSON.stringify(u)});s.writeFileSync(`${n}/${c}`,JSON.stringify(u));let{keyCookieName:d,csrfCookieName:p}=l();return r.setHeader("Set-Cookie",[`${d}=${_};samesite=strict;path=/;HttpOnly=true;Secure=true`,`${p}=${c};samesite=strict;path=/;HttpOnly=true;Secure=true`,"user_refresh=1"]),u}catch(r){return n({component:"reAuthUser",message:r.message,user:{id:e}}),null}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),i=t(29021),o=t(31341);async function a(e,r,t,a){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let _=JSON.parse(u);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.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&&!i.existsSync(`${d}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=a},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),{keyCookieName:n,csrfCookieName:i+=s}}},48225:(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 o=new Date,a=(()=>{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)}`),a&&(n+=` +IP: ${a}`),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)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:i}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(o,a,l),i.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},20503:(e,r,t)=>{let{scryptSync:s,createCipheriv:n}=t(55511),{Buffer:i}=t(79428);e.exports=({data:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=n("aes-192-cbc",s(o,a,l),i.alloc(16,0));try{let r=c.update(e,"utf8","hex");return r+=c.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},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 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 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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/reAuthenticateUser.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..8b4498a --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/refreshEntry.js @@ -0,0 +1,16 @@ +"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:()=>g,default:()=>m,routeModule:()=>E});var s={};t.r(s),t.d(s,{default:()=>f});var n=t(89947),a=t(2706),o=t(96762),c=t(57638),i=t.n(c),l=t(48225),u=t.n(l),d=t(6420),p=t.n(d),_=t(72835),S=t.n(_);async function f(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()||""],c=await i()({database:n?.toString()||"",queryString:e,queryValuesArray:t});if(!c||!c[0])return r.json({success:!1,msg:"Entry not found"});let l=JSON.parse(o||"{}");try{for(let e=0;e",e.message)}r.json({success:!0,entry:c[0]})}catch(e){u()({component:"/api/refreshEntry/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Deletion Failed!"})}}let m=(0,o.M)(s,"default"),g=(0,o.M)(s,"config"),E=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/refreshEntry",pathname:"/api/refreshEntry",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function c(e,r,t,c){let{keyCookieName:i,csrfCookieName:l}=o();if(!e.cookies?.[i]?.match(/./))return null;let u=n({encryptedString:e.cookies[i]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=c},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},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(72835),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},48225:(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,c=(()=>{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)}`),c&&(n+=` +IP: ${c}`),n+=` +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",n),s.appendFileSync("./.tmp/error.log",` + + + + +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),c=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:l}){let u;let d=!!t?.match(/^datasquirel$/),p=l?c:d?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;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(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,c=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(o,c,i),a.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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:c}){try{return new Promise((i,l)=>{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:c,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()}}),c&&Array.isArray(c)&&c[0]?o.query(t,c).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}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);async function a(...e){let r=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()},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 t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{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=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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/refreshEntry.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..5bb5271 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/registerUser.js @@ -0,0 +1,16 @@ +"use strict";(()=>{var e={};e.id=3953,e.ids=[3953],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")},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:()=>x,default:()=>w,routeModule:()=>N});var t={};s.r(t),s.d(t,{default:()=>R});var a=s(89947),i=s(2706),n=s(96762),l=s(20503),o=s.n(l),d=s(59474),u=s.n(d),c=s(48225),m=s.n(c),p=s(33873),_=s.n(p),g=s(79646),S=s(5194),f=s.n(S),E=s(51348),h=s.n(E),v=s(47670),y=s.n(v),b=s(33364),I=s.n(b),D=s(14533),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,a=s.first_name,i=s.last_name,n=s.email,l=s.password,d=s.username;if(!n.match(/.*@.*\..*/))return r.json({user:null,msg:"Invalid Email"});if(!a.match(/^[a-zA-Z]+$/)||!i.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=A()({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:l}),s=await h()(`SELECT * FROM users WHERE email='${n}'`);if(s&&s[0])return r.json({user:null,msg:"User Already Exists"});let c=await y()({dbFullName:"datasquirel",tableName:"users",data:{first_name:a,last_name:i,email:n,password:e,username:d}});if(!c?.insertId)return r.json({user:null,msg:"Adding User to Database failed"});await f()({userId:c.insertId});let m=o()({data: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}}/,m||"")}).then(e=>{}),"production".match(/production/),c.insertId,c.insertId;let p=process.env.DSQL_STATIC_SERVER_DIR;if(!p)throw console.log("Static File ENV not Found!"),Error("No Static Path");let S=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${c.insertId}`,E=_().join(p,`images/user-images/user-${c.insertId}`);L.mkdirSync(S,{recursive:!0}),L.mkdirSync(E,{recursive:!0}),L.writeFileSync(`${S}/main.json`,JSON.stringify([]),"utf8");let v=_().join(p,`images/user-images/user-${c.insertId}/user-${c.insertId}-profile.jpg`),b=_().join(p,`images/user-images/user-${c.insertId}/user-${c.insertId}-profile-thumbnail.jpg`),D=v.replace(p,process.env.DSQL_STATIC_HOST||""),R=b.replace(p,process.env.DSQL_STATIC_HOST||"");if(L.copyFileSync("./public/images/user-preset.png",v),L.copyFileSync("./public/images/user-preset-thumbnail.png",b),(0,g.execSync)(`chmod 644 ${v} ${b}`),await I()({dbFullName:"datasquirel",tableName:"users",identifierColumnName:"id",identifierValue:c.insertId,data:{image:D,image_thumbnail:R}}),t){let e=await y()({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:a,last_name:i,email:n,username:d,image:D,image_thumbnail:R}});await h()("UPDATE invitations SET invitation_status='Accepted' WHERE inviting_user_id=? AND invited_user_email=?",[t.invite,n]);let r=await h()("SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[t.invite,n]);if(await h()("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 ${e.message}`),m()({component:"/api/registerUser/main-catch-error",message:e.message,user:{first_name:a,last_name:i,email:n}}),r.json({user:null})}}let w=(0,n.M)(t,"default"),x=(0,n.M)(t,"config"),N=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/registerUser",pathname:"/api/registerUser",bundlePath:"",filename:""},userland:t})},5194:(e,r,s)=>{let t=s(47795),a=s(51348),i=s(45356),n=s(47670),l=s(20503),o=s(44900);e.exports=async function({userId:e,useLocal:r}){try{let s=process.env.DSQL_DB_HOST||"127.0.0.1",d=`dsql_user_${e}`,u=t.generate({length:16,numbers:!0,symbols:!0,uppercase:!0,exclude:"*#.'`\""}),c=l({data:u}),m=`CREATE USER IF NOT EXISTS '${d}'@'127.0.0.1' IDENTIFIED BY '${u}'`;r?await o(m):await i(m);let p="UPDATE users SET mariadb_user = ?, mariadb_host = '127.0.0.1', mariadb_pass = ? WHERE id = ?",_=[d,c,e];r?await o(p,_):await a(p,_),await n({tableName:"mariadb_users",data:{user_id:e,username:d,host:s,password:c,primary:"1",grants:'[{"database":"*","table":"*","privileges":["ALL"]}]'},dbContext:"Master",useLocal:r}),console.log(`User ${e} SQL credentials successfully added.`)}catch(e){console.log("Error in adding SQL user in 'addMariadbUser' function =>",e.message)}}},59474:(e,r,s)=>{let t=s(29021),a=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:i,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}}/,i||"").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 a.sendMail(t)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return l}},48225:(e,r,s)=>{let t=s(29021),{IncomingMessage:a}=s(81630);e.exports=async function({user:e,message:r,component:s,noMail:a,req:i}){let n=new Date,l=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],r=i.headers["x-real-ip"],s=i.headers["cf-connecting-ip"],t=Array.isArray(e)?e[0]:e?.split(",")[0],a=s||t||r||i.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +Error Message: ${r} +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}`),i?.url&&(a+=` +URL: ${i.url}`),i?.body&&(a+=` +Request Body: ${JSON.stringify(i.body,null,4)}`),l&&(a+=` +IP: ${l}`),a+=` +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",a),t.appendFileSync("./.tmp/error.log",` + + + + +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},14533:(e,r,s)=>{let{createHmac:t}=s(55511);e.exports=function({password:e,encryptionKey:r}){let s=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!s?.match(/.{8,}/))throw Error("Encryption key is invalid");let a=t("sha512",s);return a.update(e),a.digest("base64")}},45356:(e,r,s)=>{let t=s(9973),a=s(21580),i=t({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function(...e){try{return new Promise((r,s)=>{i.query(...e).then(e=>{i.end(),r(JSON.parse(JSON.stringify(e)))}).catch(e=>{i.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 new file mode 100644 index 0000000..8a1cbb5 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/registerUser.js.nft.json @@ -0,0 +1 @@ +{"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/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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..f80171e --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/renameMedia.js @@ -0,0 +1,16 @@ +"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:()=>$,default:()=>g,routeModule:()=>y});var s={};t.r(s),t.d(s,{default:()=>h});var n=t(89947),a=t(2706),i=t(96762),o=t(6420),l=t.n(o),c=t(48225),u=t.n(c),d=t(51348),_=t.n(d);t(33873);var p=t(48227),m=t.n(p),S=t(27825),f=t.n(S);let E=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.mediaObject,n=e.body.newName,a=e.body.newThumbnailName,i=e.body.replace;try{"production".match(/production/);let e=s.media_url.match(/\..{3,4}$/)[0],o=s?.private==1;if(!process.env.DSQL_STATIC_SERVER_DIR)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let l=m()({isPrivate:o,user:t,folder:s.folder?s.folder+"/":"",video:!!s.media_type?.match(/video/i)});if(!l)throw Error("Couldn't grab paths!");let{fileRootPath:c,urlRootPath:u,relativePath:d}=l,p=`${c}${s.media_name}${e}`,S=`${c}${n}${e}`,h=`${c}${s.media_name}_thumbnail${e}`,g=`${c}${n}_thumbnail${e}`,$=new RegExp(f().escapeRegExp(`${s.media_name}`)),y=s.media_url.replace($,n),v=s.media_url.replace($,n+"_thumbnail"),P=s.media_path?s.media_path.replace($,n):`${d}${n}`,R=s.media_thumbnail_path?s.media_thumbnail_path.replace($,n):`${d}${a}`;if(E.existsSync(S)&&!i)return r.json({success:!1,msg:"File already exists"});E.renameSync(p,S);try{E.renameSync(h,g)}catch(e){}await _()("UPDATE user_media SET media_name = ?, media_url = ?, media_thumbnail_url = ?, media_path = ?, media_thumbnail_path = ? WHERE id = ?",[n,y,v,P,R,s.id]),r.json({success:!0})}catch(e){console.log("Error in renaming media =>",e.message),u()({component:"/api/renameMedia/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Renaming failed. Please try again."})}}let g=(0,i.M)(s,"default"),$=(0,i.M)(s,"config"),y=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/renameMedia",pathname:"/api/renameMedia",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:a,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 c=e?`@/${a?"videos":"media"}/${t?t+"/":""}`:a?`/videos/user-videos/user-${o}/${t?t+"/":""}`:`/images/user-images/user-${o}/${t?t+"/":""}`,u=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${o}/media/${t?t+"/":""}`:n.join(l,c);return s.existsSync(u)||i||s.mkdirSync(u,{recursive:!0}),{fileRootPath:u,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${c}`,relativePath:c}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),i=t(31341);async function o(e,r,t,o){let{keyCookieName:l,csrfCookieName:c}=i();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},48225:(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",` + + + + +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(i,o,l),a.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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=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 new file mode 100644 index 0000000..a90f12f --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/renameMedia.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..7c37d85 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/resetDelegatedDatabaseToken.js @@ -0,0 +1 @@ +"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,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}}})},55961:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>l,routeModule:()=>p});var s={};t.r(s),t.d(s,{default:()=>u});var n=t(89947),o=t(2706),a=t(96762),i=t(6420),c=t.n(i);async function u(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await c()(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{userId:t,dbSlug:s}=e.body,n=`${process.env.DSQL_USER_DB_PREFIX}${t}_${s}`,o=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${n}`;r.setHeader("Set-Cookie",[`${o}=null;path=/;max-age=0`]),r.json({success:!0,msg:"Processed Successfully"})}let l=(0,a.M)(s,"default"),_=(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,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:c,csrfCookieName:u}=a();if(!e.cookies?.[c]?.match(/./))return null;let l=n({encryptedString:e.cookies[c]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${p}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=i},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=n("aes-192-cbc",s(a,i,c),o.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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=55961);module.exports=t})(); \ 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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/resetDelegatedDatabaseToken.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..2c88431 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/resetPassword.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=9971,e.ids=[9971],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},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}}})},24127:(e,r,t)=>{t.r(r),t.d(r,{config:()=>P,default:()=>l,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>d});var n=t(89947),o=t(2706),i=t(96762),a=t(14533),u=t.n(a),c=t(51348),p=t.n(c);async function d(e,r){if("GET"!==e.method)return r.json({msg:"UNauthorized"});{let{email:t,password:s}=e.query,n=u()({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:String(s)}),o=await p()(`UPDATE users SET password='${n}' WHERE email='${t}'`);r.json({success:!!o?.affectedRows})}}let l=(0,i.M)(s,"default"),P=(0,i.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/resetPassword",pathname:"/api/resetPassword",bundlePath:"",filename:""},userland:s})},14533:(e,r,t)=>{let{createHmac:s}=t(55511);e.exports=function({password:e,encryptionKey:r}){let t=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let n=s("sha512",t);return n.update(e),n.digest("base64")}},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=24127);module.exports=t})(); \ 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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/resetPassword.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..799859d --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/runUserDbQuery.js @@ -0,0 +1,16 @@ +"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:()=>f,default:()=>S,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>d});var n=t(89947),a=t(2706),o=t(96762),c=t(6420),i=t.n(c),l=t(48225),u=t.n(l),_=t(57638),p=t.n(_);async function d(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{database:s,query:n,tables:a}=e.body;try{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 S=(0,o.M)(s,"default"),f=(0,o.M)(s,"config"),m=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/runUserDbQuery",pathname:"/api/runUserDbQuery",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function c(e,r,t,c){let{keyCookieName:i,csrfCookieName:l}=o();if(!e.cookies?.[i]?.match(/./))return null;let u=n({encryptedString:e.cookies[i]});if(!u)return null;let _=JSON.parse(u);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${p}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=c},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},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(72835),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},48225:(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,c=(()=>{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)}`),c&&(n+=` +IP: ${c}`),n+=` +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",n),s.appendFileSync("./.tmp/error.log",` + + + + +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),c=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:l}){let u;let _=!!t?.match(/^datasquirel$/),p=l?c:_?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?_?await p(e,r):await p({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):_?await p(e):await p({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;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(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,c=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(o,c,i),a.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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:c}){try{return new Promise((i,l)=>{let u=!!e?.match(/full.access|^fa$/i);try{function _(e){o.end(),i(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),i({error:e.message,queryStringGenerated:t,queryValuesGenerated:c,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()}}),c&&Array.isArray(c)&&c[0]?o.query(t,c).then(_).catch(p):o.query(t).then(_).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}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);async function a(...e){let r=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()},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 t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{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=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 new file mode 100644 index 0000000..28372c7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/runUserDbQuery.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..fa68763 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/sendEmailVerificationLink.js @@ -0,0 +1 @@ +"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,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}}})},11074:(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),i=t(2706),o=t(96762),a=t(6420),c=t.n(a);let l=t(29021),u=t(59474),_=t(20503);async function p(e,r){if("GET"===e.method){let t=await c()(e,r);if(!t)return r.redirect(307,"/logout");let s=_({data:JSON.stringify({id:t.id,email:t.email,dateCode:Date.now()})}),n=process.env.DSQL_HOST;if(!await u({to:t.email,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}}/,n||"").replace(/{{token}}/,s||"")}))return r.json({success:!1});r.json({success:!0})}}let d=(0,o.M)(s,"default"),f=(0,o.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/sendEmailVerificationLink",pathname:"/api/sendEmailVerificationLink",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),i=t(29021),o=t(31341);async function a(e,r,t,a){let{keyCookieName:c,csrfCookieName:l}=o();if(!e.cookies?.[c]?.match(/./))return null;let u=n({encryptedString:e.cookies[c]});if(!u)return null;let _=JSON.parse(u);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${p}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=a},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),{keyCookieName:n,csrfCookieName:i+=s}}},59474:(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:i,alias:o}){let a;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let c=(o?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!s.existsSync("./email/index.html"))return;let l=s.readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,i||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let s={};s.from=`"Datasquirel" <${c}>`,s.sender=c,o&&(s["replyTo "]=c),s.to=e,s.subject=r,s.text=t,s.html=l,a=await n.sendMail(s)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return a}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:i}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(o,a,c),i.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},20503:(e,r,t)=>{let{scryptSync:s,createCipheriv:n}=t(55511),{Buffer:i}=t(79428);e.exports=({data:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=n("aes-192-cbc",s(o,a,c),i.alloc(16,0));try{let r=l.update(e,"utf8","hex");return r+=l.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},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 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 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=11074);module.exports=t})(); \ 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 new file mode 100644 index 0000000..03e4d13 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/sendEmailVerificationLink.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..e1bedbc --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/sendPasswordResetLink.js @@ -0,0 +1 @@ +"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")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},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:()=>m,routeModule:()=>A});var s={};r.r(s),r.d(s,{default:()=>d});var n=r(89947),o=r(2706),i=r(96762),a=r(91766),l=r.n(a);let c=r(29021),u=r(59474),p=r(20503);async function d(e,t){if("GET"===e.method){let r=p({data: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,i=process.env.DSQL_HOST||"https://datasquirel.com",a=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:`

${n} tried to reset password

${n} attempted a password reset on ${i} from ${o} with a wrong password.

`}),!a)return t.json({success:!1});t.json({success:!0})}}let m=(0,i.M)(s,"default"),f=(0,i.M)(s,"config"),A=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}},59474:(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:i}){let a;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 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,i&&(s["replyTo "]=l),s.to=e,s.subject=t,s.text=r,s.html=c,a=await n.sendMail(s)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return a}},20503:(e,t,r)=>{let{scryptSync:s,createCipheriv:n}=r(55511),{Buffer:o}=r(79428);e.exports=({data:e,encryptionKey:t,encryptionSalt:r})=>{if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let i=t||process.env.DSQL_ENCRYPTION_PASSWORD,a=r||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=n("aes-192-cbc",s(i,a,l),o.alloc(16,0));try{let t=c.update(e,"utf8","hex");return t+=c.final("hex")}catch(t){return console.log("Error in encrypting =>",t.message),e}}},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 new file mode 100644 index 0000000..053e3c9 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/sendPasswordResetLink.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..e62176d --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/social-login/facebook-auth.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=8464,e.ids=[8464],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")},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:()=>g,default:()=>f,routeModule:()=>q});var t={};a.r(t),a.d(t,{default:()=>m});var i=a(89947),s=a(2706),o=a(96762),l=a(20503),u=a.n(l),n=a(14385),p=a.n(n),d=a(31341),c=a.n(d);async function m(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let{facebookUserId:a,facebookUserImage:t,facebookUserFullName:i,facebookUserFirstName:s,facebookUserLastName:o,facebookUserEmail:l,supEmail:n}=e.body,{invite:d}=e.query;try{let e=await p()({email:l,payload:{email:l,first_name:s,last_name:o,social_id:a,social_platform:"facebook",image:t,image_thumbnail:t,username:`facebook-user-${a}`},social_platform:"facebook",social_id:a,invitation:d,supEmail:n});if(e.payload?.csrf_k){let a=u()({data:JSON.stringify(e.payload)}),{keyCookieName:t,csrfCookieName:i}=c()();r.setHeader("Set-Cookie",[`${t}=${a};samesite=strict;path=/;HttpOnly=true;Secure=true`,`${i}=${e.payload.csrf_k};samesite=strict;path=/;HttpOnly=true`])}r.json(e)}catch(e){console.log(e.message),r.json({success:!1,msg:"Failed!"})}}let f=(0,o.M)(t,"default"),g=(0,o.M)(t,"config"),q=new i.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/social-login/facebook-auth",pathname:"/api/social-login/facebook-auth",bundlePath:"",filename:""},userland:t})}};var r=require("../../../webpack-api-runtime.js");r.C(e);var a=e=>r(r.s=e),t=r.X(0,[4050,4385],()=>a(62914));module.exports=t})(); \ 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 new file mode 100644 index 0000000..9546516 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/social-login/facebook-auth.js.nft.json @@ -0,0 +1 @@ +{"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/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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..a70ae03 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/social-login/github-auth.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=7551,e.ids=[7551],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")},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:()=>b,default:()=>_,routeModule:()=>q});var s={};r.r(s),r.d(s,{default:()=>f});var i=r(89947),o=r(2706),a=r(96762),n=r(20503),l=r.n(n),u=r(14385),c=r.n(u),p=r(84930),h=r.n(p),m=r(31341),d=r.n(m);let g=r(67684);async function f(e,t){if("GET"!==e.method)return t.json({msg:"Failed!"});let{code:r,email:s,invite:i}=e.query;try{let e=await g({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 o=await c()({email:e.email,payload:{email:e.email,first_name:h()(e.login)?.split(" ")[0],last_name:h()(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:i,social_id:e.id,supEmail:s?s.toString():void 0});if(o.payload?.csrf_k){let e=l()({data:JSON.stringify(o.payload)}),{keyCookieName:r,csrfCookieName:s}=d()();t.setHeader("Set-Cookie",[`${r}=${e};samesite=strict;path=/;HttpOnly=true;Secure=true`,`${s}=${o.payload.csrf_k};samesite=strict;path=/;HttpOnly=true`])}t.json(o)}catch(e){console.log("ERROR in 'github-auth' API route =>",e.message),t.json({success:!1,msg:"Failed!"})}}let _=(0,a.M)(s,"default"),b=(0,a.M)(s,"config"),q=new i.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/social-login/github-auth",pathname:"/api/social-login/github-auth",bundlePath:"",filename:""},userland:s})},67684:(e,t,r)=>{let s=r(51348),i=r(83634);e.exports=async function({code:e,clientId:t,clientSecret:r}){let o;try{let a=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"}),n=JSON.parse(a);if(!n?.access_token)return o;let l=await i({method:"GET",hostname:"api.github.com",path:"/user",headers:{Authorization:`Bearer ${n.access_token}`,"User-Agent":"*"},scheme:"https"});if(o=JSON.parse(l),!o?.email&&o){let e=await s(`SELECT email FROM users WHERE social_login='1' AND social_platform='github' AND social_id='${o.id}'`);e&&e[0]&&(o.email=e[0].email)}}catch(e){console.log("ERROR in githubLogin.js backend function =>",e.message)}return o}},83634:(e,t,r)=>{let s=r(55591),i=r(81630),{URL:o}=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 o(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:i).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()})}},84930: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;et(t.s=e),s=t.X(0,[4050,4385],()=>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 new file mode 100644 index 0000000..9546516 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/social-login/github-auth.js.nft.json @@ -0,0 +1 @@ +{"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/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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..6dd82fc --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/social-login/google-auth.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=7867,e.ids=[7867],e.modules={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,t)=>{t.r(r),t.d(r,{config:()=>y,default:()=>f,routeModule:()=>h});var a={};t.r(a),t.d(a,{default:()=>c});var i=t(89947),o=t(2706),s=t(96762),l=t(20503),n=t.n(l),u=t(14385),d=t.n(u),p=t(31341),g=t.n(p);let{OAuth2Client:m}=t(76154);async function c(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=e.body,{invite:a}=e.query,{token:i}=t;try{let e=new m(""),t=(await e.verifyIdToken({idToken:i,audience:""})).getPayload();if(!t||!t.email_verified){r.json({user:null,msg:"Invalid Credentials"});return}let{given_name:o,family_name:s,email:l,sub:u,picture:p,email_verified:c}=t;if(!l)throw Error("No Email");let f=await d()({email:l,payload:{email:l,first_name:o,last_name:s,social_id:u,social_platform:"google",image:p,image_thumbnail:p,username:`google-user-${u}`},social_platform:"google",social_id:u,invitation:a});if(f.payload?.csrf_k){let e=n()({data:JSON.stringify(f.payload)}),{keyCookieName:t,csrfCookieName:a}=g()();r.setHeader("Set-Cookie",[`${t}=${e};samesite=strict;path=/;HttpOnly=true;Secure=true`,`${a}=${f.payload.csrf_k};samesite=strict;path=/;HttpOnly=true`])}r.json(f)}catch(e){console.log(e.message),r.json({success:!1,msg:"Failed!"})}}t(48225);let f=(0,s.M)(a,"default"),y=(0,s.M)(a,"config"),h=new i.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/social-login/google-auth",pathname:"/api/social-login/google-auth",bundlePath:"",filename:""},userland:a})}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[4050,4385],()=>t(50293));module.exports=a})(); \ 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 new file mode 100644 index 0000000..54b2488 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/social-login/google-auth.js.nft.json @@ -0,0 +1 @@ +{"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/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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..6fbd660 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/social-login/utils/checkEmail.js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..922eb52 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/social-login/utils/checkEmail.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/7070.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9621.js","../../../../chunks/9732.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 new file mode 100644 index 0000000..3ab3859 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/social-login/utils/checkSocialId.js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..922eb52 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/social-login/utils/checkSocialId.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/7070.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9621.js","../../../../chunks/9732.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 new file mode 100644 index 0000000..9884457 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/social-login/utils/getEmailFromSocialId.js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..922eb52 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/social-login/utils/getEmailFromSocialId.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/7070.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9621.js","../../../../chunks/9732.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 new file mode 100644 index 0000000..d9023a2 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/sql-users/create.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=7889,e.ids=[7889],e.modules={60818:e=>{e.exports=require("dotenv")},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")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},66650:(e,r,s)=>{s.r(r),s.d(r,{config:()=>x,default:()=>w,routeModule:()=>y});var t={};s.r(t),s.d(t,{default:()=>q});var a=s(89947),i=s(2706),o=s(96762),n=s(6420),u=s.n(n),d=s(48225),l=s.n(d);s(27825);var c=s(51348),h=s.n(c),m=s(20503),p=s.n(m),g=s(46889),f=s.n(g);s(29021);let E=s(47795);async function q(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let s=await u()(e,r,!0);if(!s)return r.json({success:!1,msg:"Unauthorized"});let{data:t,edit:a,grants:i}=e.body;try{let e=process.env.DSQL_DB_HOST||"127.0.0.1",a=`dsql_user_${s.id}`,{host:o,password:n}=t;if(!o.match(/./))throw Error("Invalid host");if(o.match(/^%$/))throw Error("Cannot set a catch-all host for this user.");let u=String(o).replace(/[^a-zA-Z0-9-\.\:\/\%]/g,""),d=n?.match(/./)?n:E.generate({length:16,numbers:!0,symbols:!0,uppercase:!0,exclude:"*#.'`\""}),l=await h()("SELECT * FROM mysql.user WHERE User = ? AND (Host = ? OR Host = ?)",[a,u,e]);if(l?.[0]?.User)throw Error("SQL User already exists. Remember if you have the '%' host on your primary user, it catches all other hosts.");if(u.match(/^%$/))throw Error("Can't create a catch-all host for this username. Catch-all host is only allowed on the primary user.");let c=await h()("SELECT COUNT(*) FROM mariadb_users WHERE user_id = ?",[s.id]);if(c?.[0]?.["COUNT(*)"]>=10)throw Error("User limit reached");let m=p()({data:d}),g=await h()("INSERT INTO mariadb_users (user_id, username, host, password, grants) VALUES (?, ?, ?, ?, ?)",[s.id,a,u,m,JSON.stringify(i)]);if(!g?.insertId)throw Error("Error in adding SQL user");await f()({userId:s.id,mariadbUser:a,mariadbUserHost:u}),r.json({success:!0})}catch(e){console.log("Create MariaDB user ERROR:",e.message),l()({component:"/api/acceptUserInvitation/catch-error",message:e.message,user:s}),r.json({success:!1,msg:"Error in adding SQL user =>"+e.message,err:e.message})}}let w=(0,o.M)(t,"default"),x=(0,o.M)(t,"config"),y=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/sql-users/create",pathname:"/api/sql-users/create",bundlePath:"",filename:""},userland:t})}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[5264],()=>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 new file mode 100644 index 0000000..cf00191 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/sql-users/create.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../.env","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/dotenv/lib/main.js","../../../../../node_modules/dotenv/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","../../../../package.json","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..333e3b1 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/sql-users/delete.js @@ -0,0 +1,16 @@ +"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:()=>S,default:()=>f,routeModule:()=>E});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),i=t(2706),o=t(96762),a=t(6420),l=t.n(a),c=t(48225),u=t.n(c);t(27825);var d=t(51348),p=t.n(d);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{id:s}=e.body;try{let e=await p()("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}`,o=n.host;await p()("DELETE FROM mariadb_users WHERE user_id = ? AND id = ?",[t.id,n.id]),await p()(`DROP USER '${i}'@'${o}'`),r.json({success:!0})}catch(e){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})}}t(29021);let f=(0,o.M)(s,"default"),S=(0,o.M)(s,"config"),E=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/sql-users/delete",pathname:"/api/sql-users/delete",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),i=t(29021),o=t(31341);async function a(e,r,t,a){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=a},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),{keyCookieName:n,csrfCookieName:i+=s}}},48225:(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 o=new Date,a=(()=>{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)}`),a&&(n+=` +IP: ${a}`),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)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:i}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(o,a,l),i.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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 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 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 new file mode 100644 index 0000000..9942e5e --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/sql-users/delete.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..3fe636d --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/sql-users/update.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=2350,e.ids=[2350],e.modules={60818:e=>{e.exports=require("dotenv")},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")},46849:(e,r,s)=>{s.r(r),s.d(r,{config:()=>q,default:()=>w,routeModule:()=>x});var t={};s.r(t),s.d(t,{default:()=>g});var i=s(89947),a=s(2706),o=s(96762),d=s(6420),u=s.n(d),n=s(48225),l=s.n(n);s(27825);var p=s(51348),h=s.n(p);s(33873),s(79646);var c=s(20503),m=s.n(c),E=s(46889),f=s.n(E);async function g(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let s=await u()(e,r,!0);if(!s)return r.json({success:!1,msg:"Unauthorized"});let{data:t,edit:i,prev:a,grants:o}=e.body;try{if(!a?.id)throw Error("Invalid existing DB entry");let e=await h()("SELECT * FROM mariadb_users WHERE id = ? AND user_id = ?",[a.id,s.id]),i=e?.[0];if(!i?.id)throw Error("Active User couldn't be verified");let d=`dsql_user_${s.id}`,{host:u,password:n}=t;if(!u)throw Error("No host provided");if(u.match(/^%$/))throw Error("Cannot set a catch-all host for this user.");let l=String(u).replace(/[^a-zA-Z0-9-\.\:\/\%]/g,"");if(i.host!=t.host){let e=await h()("SELECT * FROM mariadb_users WHERE user_id = ? AND host = ?",[s.id,l]);if(e?.[0]?.id)throw Error("User already exists with this host. Please choose another host.");await h()(`RENAME USER '${d}'@'${i.host}' TO '${d}'@'${l}'`)}let p=m()({data:n}),c=p==i.password?i.password:p;await h()("UPDATE mariadb_users SET host = ?, password = ?, grants = ? WHERE id = ?",[l,c,JSON.stringify(o),i.id]),await h()(`SET PASSWORD FOR '${d}'@'${l}' = PASSWORD('${n}');`),await f()({userId:s.id,mariadbUser:d,mariadbUserHost:l,sqlUserID:i.id}),r.json({success:!0})}catch(e){l()({component:"/api/acceptUserInvitation/catch-error",message:e.message,user:s}),r.json({success:!1,msg:"Error in adding SQL user =>"+e.message,err:e.message})}}s(29021);let w=(0,o.M)(t,"default"),q=(0,o.M)(t,"config"),x=new i.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/sql-users/update",pathname:"/api/sql-users/update",bundlePath:"",filename:""},userland:t})}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[5264],()=>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 new file mode 100644 index 0000000..cf00191 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/sql-users/update.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../.env","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/dotenv/lib/main.js","../../../../../node_modules/dotenv/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","../../../../package.json","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..e1f11e7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/stream/[path].js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..d04f6f5 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/stream/[path].js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..7f586c0 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/sync-table-data.js @@ -0,0 +1,16 @@ +"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")},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")},41848:(e,r,t)=>{t.r(r),t.d(r,{config:()=>h,default:()=>$,routeModule:()=>N});var a={};t.r(a),t.d(a,{default:()=>g});var s=t(89947),l=t(2706),o=t(96762),n=t(48225),i=t.n(n),d=t(6420),u=t.n(d),c=t(27825),p=t.n(c),m=t(51348),b=t.n(m),f=t(27444);t(81630),t(48225);let _=t(51348);async function E({tbls:e,user:r,query:t}){let a;if(!t?.delegated)return{isPriviledged:!0,rootUserId:r.id};try{for(let t=0;te.dbFullName==i),c=n.find(e=>e.dbFullName==d),m=u?.tables.find(e=>e.tableName==l.table),_=c?.tables.find(e=>e.tableName==s.table);if(!m||!_)throw Error("Operation Failed! Tables Schemas not present.");if(!p().isEqual(_.fields,m.fields))throw Error("Tables incompatible");switch(a){case"Push":let g=await b()(`SELECT * FROM ${d}.${s.table}`),$=await (0,f.A)({dbName:l.db,paradigm:"import",payload:g,tableName:l.table,userId:o.rootUserId,payloadType:"object"});return await y({dbName:l.db,tableName:l.table,data:g,userId:o.rootUserId}),r.json({success:!0,payload:$});case"Pull":let h=await b()(`SELECT * FROM ${i}.${l.table}`),N=await (0,f.A)({dbName:s.db,paradigm:"import",payload:h,tableName:s.table,userId:o.rootUserId,payloadType:"object"});return await y({dbName:s.db,tableName:s.table,data:h,userId:o.rootUserId}),r.json({success:!0,payload:N})}r.json({success:!1})}catch(e){console.log(e.message),i()({component:"/api/sync-table-data",message:e.message,user:t}),r.json({success:!1,msg:e.message})}}async function y({dbName:e,tableName:r,data:t,userId:a}){let s=`${process.env.DSQL_USER_DB_PREFIX}${a}_${e.replace(/ /g,"")}`,l=t.map(e=>e.id),o=`DELETE FROM ${s}.${r}`;l?.[0]&&(o+=` WHERE id NOT IN (${l.join(",")})`),await b()(o)}let $=(0,o.M)(a,"default"),h=(0,o.M)(a,"config"),N=new s.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/sync-table-data",pathname:"/api/sync-table-data",bundlePath:"",filename:""},userland:a})},27444:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(47670),s=t.n(a);let l=t(48225),o=t(51348);async function n({paradigm:e,userId:r,dbName:t,tableName:a,payload:n,payloadType:i}){let d={};try{let l=`${process.env.DSQL_USER_DB_PREFIX}${r}_${t.replace(/ /g,"")}`;switch(e){case"export":let u=await o(`SELECT * FROM \`${l}\`.\`${a}\``);d.tableData=u;break;case"import":let c="base64"==i?Buffer.from(n,"base64").toString():n,p="object"===i?n:JSON.parse(c);for(let e=0;e{t(81630);let a=t(51348),s=t(72835),l=t(29021),o=t(31341);async function n(e,r,t,n){let{keyCookieName:i,csrfCookieName:d}=o();if(!e.cookies?.[i]?.match(/./))return null;let u=s({encryptedString:e.cookies[i]});if(!u)return null;let c=JSON.parse(u);if(!c.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!l.existsSync(`${p}/${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&&r.setHeader("Set-Cookie",["user_refresh=1"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=n},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=r;e?.userId&&(s+=`user_${e.userId}_`),e?.database&&(s+=`${e.database}_`),s+=t;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),e?.database&&(l+=`${e.database}_`),{keyCookieName:s,csrfCookieName:l+=a}}},2258:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o});let a=t(48225),s=t(29021),l=t(33873);function o({userId:e}){try{let r=l.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:"grabUserSchemaData",message:e.message}),null}}},48225:(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 o=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],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)}`),n&&(s+=` +IP: ${n}`),s+=` +Date: ${o.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",` + + + + +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:a,createDecipheriv:s}=t(55511),{Buffer:l}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,n=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!n?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=s("aes-192-cbc",a(o,n,i),l.alloc(16,0));try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};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 new file mode 100644 index 0000000..904457f --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/sync-table-data.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..ac14536 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/test/cors.js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..d04f6f5 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/test/cors.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..57a6f1d --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/test/mail.js @@ -0,0 +1,16 @@ +"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(59474),l=t.n(o),u=t(48225),c=t.n(u);async function p(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});try{await l()({alias:"support",html:"

Test Mail

Hi there DSQL. Firing up on all systems now.

",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})},59474:(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}},48225:(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",` + + + + +${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 new file mode 100644 index 0000000..fe26bf5 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/test/mail.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..cffc60c --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/unsubscribe.js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..962d705 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/unsubscribe.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..db1ea25 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/updateAdminUserAccess.js @@ -0,0 +1 @@ +"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,r,s)=>{s.r(r),s.d(r,{config:()=>S,default:()=>E,routeModule:()=>m});var t={};s.r(t),s.d(t,{default:()=>f});var a=s(89947),i=s(2706),l=s(96762),n=s(51348),o=s.n(n),u=s(6420),d=s.n(u),c=s(47670),_=s.n(c);s(29021),s(33873);let{execSync:p}=s(79646);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let s=await d()(e,r,!0);if(!s)return r.json({success:!1,msg:"Unauthorized"});let{userObject:t,database_access:a,user_priviledge:i,db_tables:l,inv_user_id:n}=e.body,u=await o()("UPDATE user_users SET database_access = ? ,user_priviledge = ? WHERE user_id = ? AND email = ?",[a,i,s.id,t.email]),c=l.split("|");await o()(`DELETE FROM delegated_user_tables WHERE root_user_id='${s.id}' AND delegated_user_id='${n}'`);for(let e=0;e{s(81630);let t=s(51348),a=s(72835),i=s(29021),l=s(31341);async function n(e,r,s,n){let{keyCookieName:o,csrfCookieName:u}=l();if(!e.cookies?.[o]?.match(/./))return null;let d=a({encryptedString:e.cookies[o]});if(!d)return null;let c=JSON.parse(d);if(!c.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!i.existsSync(`${_}/${c.csrf_k}`))return null;if(0==c.verification_status&&!s){let e=await t(`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=n},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=r;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=s;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),{keyCookieName:a,csrfCookieName:i+=t}}},72835:(e,r,s)=>{let{scryptSync:t,createDecipheriv:a}=s(55511),{Buffer:i}=s(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:s})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let l=r||process.env.DSQL_ENCRYPTION_PASSWORD,n=s||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!l?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!n?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=a("aes-192-cbc",t(l,n,o),i.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[4050],()=>s(98397));module.exports=t})(); \ 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 new file mode 100644 index 0000000..962d705 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/updateAdminUserAccess.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..6692cb1 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/updateClonedTableForeignKeys.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=3133,e.ids=[3133],e.modules={60818:e=>{e.exports=require("dotenv")},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:()=>g,default:()=>m,routeModule:()=>y});var s={};t.r(s),t.d(s,{default:()=>E});var a=t(89947),o=t(2706),n=t(96762),i=t(39831),l=t.n(i),u=t(48225),d=t.n(u),c=t(6420),p=t.n(c),_=t(19261),f=t.n(_);let S=t(29021);t(33873);let{execSync:b}=t(79646);async function E(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 i=await l()({request:e,user:t,databaseSlug:o,query:e.query}),u=i?.rootUserId?i.rootUserId:t.id,d=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${u}/main.json`,c=JSON.parse(S.readFileSync(d,"utf-8")),p=c.findIndex(e=>e.dbFullName===a),_=c[p].tables.findIndex(e=>e.childTable&&e.childTableDbFullName===s.childTableDbFullName&&e.childTableName===s.childTableName&&e.tableName===s.tableName);c[p].tables[_]=s,S.writeFileSync(`${d}`,JSON.stringify(c),"utf8"),await f()({userId:u,targetDatabase:n}),r.json({success:!0})}catch(e){console.log(e.message),d()({component:"/api/addApiKey/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Foreign Key update Failed."})}}let m=(0,n.M)(s,"default"),g=(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(72835);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 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({encryptedString: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}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72835),o=t(29021),n=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:u}=n();if(!e.cookies?.[l]?.match(/./))return null;let d=a({encryptedString:e.cookies[l]});if(!d)return null;let c=JSON.parse(d);if(!c.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${p}/${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=i},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=r;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:a,csrfCookieName:o+=s}}},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=e=>r(r.s=e),s=r.X(0,[2451],()=>t(47095));module.exports=s})(); \ 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 new file mode 100644 index 0000000..266f9a6 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/updateClonedTableForeignKeys.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../.env","../../../../jsonData/dbSchemas/main.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/dotenv/lib/main.js","../../../../node_modules/dotenv/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-shared/data/defaultFields.json","../../../../package.json","../../../package.json","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..102e4fa --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/updateDbSchemaDataForUser.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=861,e.ids=[861],e.modules={60818:e=>{e.exports=require("dotenv")},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:()=>N,default:()=>P,routeModule:()=>y});var a={};t.r(a),t.d(a,{default:()=>I});var s=t(89947),o=t(2706),n=t(96762),l=t(51348),i=t.n(l),d=t(39831),u=t.n(d),c=t(48225),f=t.n(c),p=t(6420),_=t.n(p),b=t(2258),m=t(29021),S=t.n(m),E=t(27825),h=t.n(E),D=t(19261),g=t.n(D);t(29021),t(33873);let{execSync:v}=t(79646);async function I(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await _()(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 u()({request:e,user:t,databaseSlug:s,query:e.query}),d=l?.rootUserId?l.rootUserId:t.id,c=`datasquirel_user_${d}_${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:d});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=h().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 d=a.find(e=>e.dbFullName===t);if(!d)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 u=d.tables.find(e=>e.tableName==s.tableName);if(!u)throw Error("Table schema not found!");let c=l.tables.findIndex(e=>e.tableName==s.tableName);u&&(o[i].tables[c]=u);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=h().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=h().cloneDeep(u.fields),o[r].tables[t].indexes=h().cloneDeep(u.indexes))}),S().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:d}))throw Error("Update Failed!");return await g()({userId:d,targetDatabase:c}),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 P=(0,n.M)(a,"default"),N=(0,n.M)(a,"config"),y=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(72835);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}`,d=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${i}`;try{if(!e.cookies?.[d])throw Error("Cookie not present");let t=a({encryptedString:e.cookies[d]});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}}},6420:(e,r,t)=>{t(81630);let a=t(51348),s=t(72835),o=t(29021),n=t(31341);async function l(e,r,t,l){let{keyCookieName:i,csrfCookieName:d}=n();if(!e.cookies?.[i]?.match(/./))return null;let u=s({encryptedString:e.cookies[i]});if(!u)return null;let c=JSON.parse(u);if(!c.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let f=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!f)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${f}/${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&&r.setHeader("Set-Cookie",["user_refresh=1"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=l},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=r;e?.userId&&(s+=`user_${e.userId}_`),e?.database&&(s+=`${e.database}_`),s+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:s,csrfCookieName:o+=a}}},2258:(e,r,t)=>{t.r(r),t.d(r,{default:()=>n});let a=t(48225),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:"grabUserSchemaData",message:e.message}),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=e=>r(r.s=e),a=r.X(0,[2451],()=>t(23249));module.exports=a})(); \ 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 new file mode 100644 index 0000000..1c73ded --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/updateDbSchemaDataForUser.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../.env","../../../../jsonData/dbSchemas/main.json","../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/dotenv/lib/main.js","../../../../node_modules/dotenv/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-shared/data/defaultFields.json","../../../../package.json","../../../package.json","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..b645ce6 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/updateDbUser.js @@ -0,0 +1 @@ +"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,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}}})},96016:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>_,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),o=t(2706),a=t(96762),c=t(33364),i=t.n(c),l=t(6420),u=t.n(l);async function p(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await u()(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:t,payload:s}=e.body,n=(()=>{let e=Object.keys(s),r={};return e.forEach(e=>{!e?.match(/user_type|priviledge|database_access|databases?|confirm/)&&(e?.match(/databases|confirm/)||(r[e]=s[e]))}),r})(),o=await i()({dbFullName:t,tableName:"users",identifierColumnName:"id",identifierValue:s.id,data:{...n},dbContext:"Dsql User",paradigm:"Full Access"});r.json({success:!!o?.affectedRows,msg:o?.affectedRows?"User Updated":o})}let _=(0,a.M)(s,"default"),d=(0,a.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/updateDbUser",pathname:"/api/updateDbUser",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function c(e,r,t,c){let{keyCookieName:i,csrfCookieName:l}=a();if(!e.cookies?.[i]?.match(/./))return null;let u=n({encryptedString:e.cookies[i]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${_}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=c},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},33364:(e,r,t)=>{let s=t(72583),n=t(16570),o=t(51348),a=t(21339),c=t(20503),i=t(44900);async function l({dbContext:e,paradigm:r,dbFullName:t,tableName:l,data:u,tableSchema:p,identifierColumnName:_,identifierValue:d,encryptionKey:S,encryptionSalt:f,useLocal:D}){if(!u||!Object.keys(u).length)return null;let E=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),g=D?i:E?o:a,h=Object.keys(u),m=[],v=[];for(let e=0;ee.fieldName===r):null,a=o&&o[0]?o[0]:null;if(null==t||void 0==t)continue;a?.richText&&(t=s(t,n)),a?.encrypted&&(t=c({data:t,encryptionKey:S,encryptionSalt:f})),"object"==typeof t&&(t=JSON.stringify(t)),a?.pattern&&!new RegExp(a.pattern,a.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"}}),m.push(`\`${r}\`=?`),"number"==typeof t?v.push(String(t)):v.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}m.push(`date_updated='${Date()}'`),m.push(`date_updated_code='${Date.now()}'`);let y=`UPDATE ${l} SET ${m.join(",")} WHERE \`${_}\`=?`;return v.push(d),E?await g(y,v):await g({paradigm:r,database:t,queryString:y,queryValues:v})}e.exports=l},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"]}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,c=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(a,c,i),o.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},20503:(e,r,t)=>{let{scryptSync:s,createCipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({data:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,c=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!c?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=n("aes-192-cbc",s(a,c,i),o.alloc(16,0));try{let r=l.update(e,"utf8","hex");return r+=l.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},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:c}){try{return new Promise((i,l)=>{let u=!!e?.match(/full.access|^fa$/i);try{function p(e){a.end(),i(JSON.parse(JSON.stringify(e)))}function _(e){a.end(),i({error:e.message,queryStringGenerated:t,queryValuesGenerated:c,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()}}),c&&Array.isArray(c)&&c[0]?a.query(t,c).then(p).catch(_):a.query(t).then(p).catch(_)}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}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);async function o(...e){let r=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()},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 t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{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=96016);module.exports=t})(); \ 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 new file mode 100644 index 0000000..8a32dd9 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/updateDbUser.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..bde385b --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/updateTableEntry.js @@ -0,0 +1,16 @@ +"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:()=>y,default:()=>h,routeModule:()=>b});var s={};t.r(s),t.d(s,{default:()=>D});var a=t(89947),n=t(2706),o=t(96762),i=t(96771),l=t.n(i),c=t(73677),u=t.n(c),d=t(39831),p=t.n(d),_=t(48225),S=t.n(_),g=t(6420),E=t.n(g),f=t(33364),m=t.n(f);async function D(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{dbSlug:s,tableName:a,payload:n,entryId:o,tableSchema:i,delegated:c,dbId:d}=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 c=await p()({databaseSlug:s,request:e,user:t,query:e.query}),_=c?.rootUserId?`datasquirel_user_${c.rootUserId}_${s}`:`datasquirel_user_${t.id}_${s}`;if(!await u()({user:t,confirmedDelegetedUser:c,database:s,table:a,dbId:d,priviledgeRegex:/Update Entries/i}))return r.json({success:!1,msg:"Unauthorized"});let S=await m()({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 h=(0,o.M)(s,"default"),y=(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(48225);e.exports=async function({user:e,confirmedDelegetedUser:r,database:t,table:n,priviledgeRegex:o,dbId:i}){let l,c;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]),c=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]),c=!0)}catch(r){a({component:"checkUserRights",message:r.message,user:e})}return!!l&&!!l[0]&&!!c}},39831:(e,r,t)=>{t(81630);let s=t(72835);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}`,c=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${l}`;try{if(!e.cookies?.[c])throw Error("Cookie not present");let t=s({encryptedString: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}}},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}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72835),n=t(29021),o=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=a({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=r;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=t;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:a,csrfCookieName:n+=s}}},33364:(e,r,t)=>{let s=t(72583),a=t(16570),n=t(51348),o=t(21339),i=t(20503),l=t(44900);async function c({dbContext:e,paradigm:r,dbFullName:t,tableName:c,data:u,tableSchema:d,identifierColumnName:p,identifierValue:_,encryptionKey:S,encryptionSalt:g,useLocal:E}){if(!u||!Object.keys(u).length)return null;let f=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),m=E?l:f?n:o,D=Object.keys(u),h=[],y=[];for(let e=0;ee.fieldName===r):null,o=n&&n[0]?n[0]:null;if(null==t||void 0==t)continue;o?.richText&&(t=s(t,a)),o?.encrypted&&(t=i({data:t,encryptionKey:S,encryptionSalt:g})),"object"==typeof t&&(t=JSON.stringify(t)),o?.pattern&&!new RegExp(o.pattern,o.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"}}),h.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}h.push(`date_updated='${Date()}'`),h.push(`date_updated_code='${Date.now()}'`);let b=`UPDATE ${c} SET ${h.join(",")} WHERE \`${p}\`=?`;return y.push(_),f?await m(b,y):await m({paradigm:r,database:t,queryString:b,queryValues:y})}e.exports=c},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),{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",` + + + + +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=a("aes-192-cbc",s(o,i,l),n.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},20503:(e,r,t)=>{let{scryptSync:s,createCipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=({data:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=a("aes-192-cbc",s(o,i,l),n.alloc(16,0));try{let r=c.update(e,"utf8","hex");return r+=c.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},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 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?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}}}},44900:(e,r,t)=>{let s=t(9973),a=t(21580);async function n(...e){let r=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()},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 t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{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=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 new file mode 100644 index 0000000..8a32dd9 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/updateTableEntry.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..090b253 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/updateUser.js @@ -0,0 +1,16 @@ +"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")},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,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}}})},43359:(e,r,t)=>{t.r(r),t.d(r,{config:()=>v,default:()=>y,routeModule:()=>L});var s={};t.r(s),t.d(s,{default:()=>D});var n=t(89947),a=t(2706),o=t(96762),i=t(51348),l=t.n(i),c=t(17662),u=t.n(c),p=t(48225),d=t.n(p),S=t(6420),_=t.n(S),f=t(33873),m=t.n(f),g=t(79646),E=t(33364),h=t.n(E);async function D(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await _()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{first_name:s,last_name:n,image:a}=e.body;try{let e=(await l()(`SELECT image FROM users WHERE id='${t.id}'`))[0].image===a,o=process.env.DSQL_STATIC_SERVER_DIR;if(!o)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let i=m().join(o,`images/user-images/user-${t.id}/user-${t.id}-profile.jpg`),c=m().join(o,`images/user-images/user-${t.id}/user-${t.id}-profile-thumbnail.jpg`);e||(await u()({imageSourceUrl:"string"==typeof a?a:a.imageBase64,imageWritePath:i,sourceType:"string"==typeof a?"url":"base64"}),await u()({imageSourceUrl:"string"==typeof a?a:a.imageBase64,imageWritePath:c,maxSize:250,sourceType:"string"==typeof a?"url":"base64"}),(0,g.execSync)(`chmod 644 ${i} ${c}`));let p=i.replace(o,process.env.DSQL_STATIC_HOST||""),d=c.replace(o,process.env.DSQL_STATIC_HOST||"");await h()({dbFullName:"datasquirel",tableName:"users",identifierColumnName:"id",identifierValue:t.id,data:{first_name:s,last_name:n,image:p,image_thumbnail:d}}),await h()({dbFullName:"datasquirel",tableName:"user_users",identifierColumnName:"invited_user_id",identifierValue:t.id,data:{first_name:s,last_name:n,image:p,image_thumbnail:d}}),r.json({user:!0})}catch(e){d()({component:"/api/updateUser/main-catch-error",message:e.message,user:t}),r.json({user:null})}}let y=(0,o.M)(s,"default"),v=(0,o.M)(s,"config"),L=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/updateUser",pathname:"/api/updateUser",bundlePath:"",filename:""},userland:s})},17662:(e,r,t)=>{let s=t(34229),n=t(9288),a=t(48225);e.exports=async function({imageSourceUrl:e,imageWritePath:r,maxSize:t,sourceType:o}){try{async function i(){let r;if(o?.match("url")){if(e.match(/^http/i)){let t=await s(e,{});r=await t.buffer()}else r=`./public${e}`}else o?.match("base64")&&(r=Buffer.from(e,"base64"));return r}let a=await i(),l=t||650,c=n(a),{width:u,height:p,format:d}=await c.metadata();if(u&&p&&u>l){let e=l/u;c.resize(l,Math.round(p*e),{fit:"cover"})}d&&c.toFormat(d,{quality:80}),await c.toFile(r)}catch(e){a({component:"functions/backend/fsWriteImageToDisk",message:e.message})}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.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&&!a.existsSync(`${d}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=i},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},33364:(e,r,t)=>{let s=t(72583),n=t(16570),a=t(51348),o=t(21339),i=t(20503),l=t(44900);async function c({dbContext:e,paradigm:r,dbFullName:t,tableName:c,data:u,tableSchema:p,identifierColumnName:d,identifierValue:S,encryptionKey:_,encryptionSalt:f,useLocal:m}){if(!u||!Object.keys(u).length)return null;let g=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),E=m?l:g?a:o,h=Object.keys(u),D=[],y=[];for(let e=0;ee.fieldName===r):null,o=a&&a[0]?a[0]:null;if(null==t||void 0==t)continue;o?.richText&&(t=s(t,n)),o?.encrypted&&(t=i({data:t,encryptionKey:_,encryptionSalt:f})),"object"==typeof t&&(t=JSON.stringify(t)),o?.pattern&&!new RegExp(o.pattern,o.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"}}),D.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}D.push(`date_updated='${Date()}'`),D.push(`date_updated_code='${Date.now()}'`);let v=`UPDATE ${c} SET ${D.join(",")} WHERE \`${d}\`=?`;return y.push(S),g?await E(v,y):await E({paradigm:r,database:t,queryString:v,queryValues:y})}e.exports=c},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),{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)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(o,i,l),a.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},20503:(e,r,t)=>{let{scryptSync:s,createCipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({data:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=n("aes-192-cbc",s(o,i,l),a.alloc(16,0));try{let r=c.update(e,"utf8","hex");return r+=c.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},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 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?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}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);async function a(...e){let r=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()},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 t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{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=43359);module.exports=t})(); \ 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 new file mode 100644 index 0000000..a509907 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/updateUser.js.nft.json @@ -0,0 +1 @@ +{"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/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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..9b9bb66 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/updateUserDatabase.js @@ -0,0 +1,16 @@ +"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:()=>h,default:()=>E,routeModule:()=>y});var s={};r.r(s),r.d(s,{default:()=>g});var n=r(89947),a=r(2706),o=r(96762),l=r(33364),i=r.n(l),c=r(48225),u=r.n(c),p=r(6420),d=r.n(p),_=r(57638),S=r.n(_);let m=r(29021),f=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:n,db_slug:a,db_description:o,db_image:l,db_full_name:c,active_clone:p,active_clone_parent_db:_}=e.body;c?.match(/datasquirel_user_.*/)||t.json({success:!1,msg:"Unauthorized"});let g=`datasquirel_user_${r.id}_${a}`;if(await i()({dbFullName:"datasquirel",tableName:"user_databases",identifierColumnName:"id",identifierValue:s,data:{db_name:n,db_slug:a,db_description:o,db_image:l,db_full_name:g}}),c&&c!==g){console.log("Renaming Database");let e=f.platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysql.exe'":"mysql",t=f.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()};f.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(m.readFileSync(e,"utf8")),i=s.filter(e=>e.dbFullName===c);if(i[0].dbName=n,i[0].dbFullName=g,i[0].dbDescription=o,i[0].dbImage=l,i[0].dbSlug=a,p){let e=s.filter(e=>e.dbFullName===i[0].childDatabaseDbFullName)[0],t=e.childrenDatabases?.find(e=>e.dbFullName===c);t&&(t.dbFullName=g)}m.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 E=(0,o.M)(s,"default"),h=(0,o.M)(s,"config"),y=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/updateUserDatabase",pathname:"/api/updateUserDatabase",bundlePath:"",filename:""},userland:s})},6420:(e,t,r)=>{r(81630);let s=r(51348),n=r(72835),a=r(29021),o=r(31341);async function l(e,t,r,l){let{keyCookieName:i,csrfCookieName:c}=o();if(!e.cookies?.[i]?.match(/./))return null;let u=n({encryptedString:e.cookies[i]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.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(r&&!a.existsSync(`${d}/${p.csrf_k}`))return null;if(0==p.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=l},31341:e=>{e.exports=function(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=t;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=r;let a=t;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},33364:(e,t,r)=>{let s=r(72583),n=r(16570),a=r(51348),o=r(21339),l=r(20503),i=r(44900);async function c({dbContext:e,paradigm:t,dbFullName:r,tableName:c,data:u,tableSchema:p,identifierColumnName:d,identifierValue:_,encryptionKey:S,encryptionSalt:m,useLocal:f}){if(!u||!Object.keys(u).length)return null;let D=!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),g=f?i:D?a:o,E=Object.keys(u),h=[],y=[];for(let e=0;ee.fieldName===t):null,o=a&&a[0]?a[0]:null;if(null==r||void 0==r)continue;o?.richText&&(r=s(r,n)),o?.encrypted&&(r=l({data:r,encryptionKey:S,encryptionSalt: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 b=`UPDATE ${c} SET ${h.join(",")} WHERE \`${d}\`=?`;return y.push(_),D?await g(b,y):await g({paradigm:t,database:r,queryString:b,queryValues:y})}e.exports=c},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},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(72835),n=r(30003);e.exports=async function({unparsedResults:e,tableSchema:t}){let r=[];try{for(let a=0;a",t.message),e}}},48225:(e,t,r)=>{let s=r(29021),{IncomingMessage:n}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:n,req:a}){let o=new Date,l=(()=>{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],n=r||s||t||a.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}`),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 i=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` + + + + +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,t,r)=>{r(29021);let s=r(6061),n=r(48225),a=r(51348),o=r(21339),l=r(44900);e.exports=async function({queryString:e,queryValuesArray:t,database:r,tableSchema:i,useLocal:c}){let u;let p=!!r?.match(/^datasquirel$/),d=c?l:p?a:o;try{u=e&&t&&Array.isArray(t)&&t[0]?p?await d(e,t):await d({paradigm:"Full Access",database:r,queryString:e,queryValues:t}):p?await d(e):await d({paradigm:"Full Access",database:r,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;return await s({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",r,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,t,r)=>{let{scryptSync:s,createDecipheriv:n}=r(55511),{Buffer:a}=r(79428);e.exports=({encryptedString:e,encryptionKey:t,encryptionSalt:r})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=t||process.env.DSQL_ENCRYPTION_PASSWORD,l=r||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(o,l,i),a.alloc(16,0));try{let t=c.update(e,"hex","utf8");return t+=c.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},20503:(e,t,r)=>{let{scryptSync:s,createCipheriv:n}=r(55511),{Buffer:a}=r(79428);e.exports=({data:e,encryptionKey:t,encryptionSalt:r})=>{if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let o=t||process.env.DSQL_ENCRYPTION_PASSWORD,l=r||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!l?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=n("aes-192-cbc",s(o,l,i),a.alloc(16,0));try{let t=c.update(e,"utf8","hex");return t+=c.final("hex")}catch(t){return console.log("Error in encrypting =>",t.message),e}}},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:l}){try{return new Promise((i,c)=>{let u=!!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: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: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()}}),l&&Array.isArray(l)&&l[0]?o.query(r,l).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}}}},44900:(e,t,r)=>{let s=r(9973),n=r(21580);async function a(...e){let t=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()},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=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=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 new file mode 100644 index 0000000..8a32dd9 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/updateUserDatabase.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..8b9df4b --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/updateUserTable.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=4371,e.ids=[4371],e.modules={60818:e=>{e.exports=require("dotenv")},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:()=>A,default:()=>v,routeModule:()=>L});var s={};r.r(s),r.d(s,{default:()=>y});var a=r(89947),n=r(2706),o=r(96762),l=r(51348),i=r.n(l),c=r(73677),u=r.n(c),d=r(39831),_=r.n(d),p=r(48225),S=r.n(p),f=r(6420),g=r.n(f),E=r(33364),b=r.n(E),m=r(19261),D=r.n(m);let h=r(29021);r(33873);let{execSync:N}=r(79646);async function y(e,t){if("POST"!==e.method)return t.json({msg:"Failed!"});let r=await g()(e,t,!0);if(!r)return t.json({success:!1,msg:"Unauthorized"});let{dbFullName:s,dbSlug:a,dbId:n,tableNameOld:o,payload:l,delegated:c}=e.body,{tableName:d,tableFullName:p,tableDescription:f}=l;if(!d?.match(/./)||d.match(/[^a-zA-Z0-9-_]/))return t.json({success:!1,msg:"Bad Input"});try{let l=await _()({databaseSlug:a,request:e,user:r,query:e.query});if(!await u()({user:r,confirmedDelegetedUser:l,database:a,table:o,dbId:n,priviledgeRegex:/Edit Table/i}))return console.log("User Unauthorized"),t.json({success:!1,msg:"Unauthorized"});let g=l?.rootUserId?l.rootUserId:r.id,E=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${g}/main.json`,m=JSON.parse(h.readFileSync(E,"utf8")),N=m.filter(e=>e.dbFullName===s)[0].tables.filter((e,t)=>{if(e.tableName===o)return!0});if(N&&N[0])N[0].tableName=d,N[0].tableNameOld=o,N[0].tableFullName=p,f&&(N[0].tableDescription=f),N[0].childrenTables&&N[0].childrenTables.forEach(e=>{try{m.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");h.writeFileSync(`${E}`,JSON.stringify(m),"utf8"),await b()({dbFullName:"datasquirel",tableName:"user_database_tables",identifierColumnName:"table_slug",identifierValue:o,data:{table_name:p,table_slug:d,table_description:f}}),c&&l&&await i()("UPDATE delegated_user_tables SET `table`=? WHERE delegated_user_id=? AND root_user_id=? AND `table`=? AND `database`=?",[d,r.id,l.rootUserId,o,a]);let y=s.replace(/[^a-z\_0-9]/g,"");await D()({userId:g,targetDatabase:y}),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 v=(0,o.M)(s,"default"),A=(0,o.M)(s,"config"),L=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(48225);e.exports=async function({user:e,confirmedDelegetedUser:t,database:r,table:n,priviledgeRegex:o,dbId:l}){let i,c;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]),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(t){a({component:"checkUserRights",message:t.message,user:e})}return!!i&&!!i[0]&&!!c}},39831:(e,t,r)=>{r(81630);let s=r(72835);e.exports=async function({request:e,databaseSlug:t,user:r,query:a}){try{let n=r.id,o=null;if(!a?.delegated)return{dbUserId:n};let l=a.dbUserId,i=`${process.env.DSQL_USER_DB_PREFIX}${l}_${t}`,c=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${i}`;try{if(!e.cookies?.[c])throw Error("Cookie not present");let r=s({encryptedString:e.cookies[c]});if(!r)throw Error("Invalid Token");if((o=JSON.parse(r)).databaseSlug===t)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}}},6420:(e,t,r)=>{r(81630);let s=r(51348),a=r(72835),n=r(29021),o=r(31341);async function l(e,t,r,l){let{keyCookieName:i,csrfCookieName:c}=o();if(!e.cookies?.[i]?.match(/./))return null;let u=a({encryptedString:e.cookies[i]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!n.existsSync(`${_}/${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=l},31341:e=>{e.exports=function(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=t;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=r;let n=t;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:a,csrfCookieName:n+=s}}},33364:(e,t,r)=>{let s=r(72583),a=r(16570),n=r(51348),o=r(21339),l=r(20503),i=r(44900);async function c({dbContext:e,paradigm:t,dbFullName:r,tableName:c,data:u,tableSchema:d,identifierColumnName:_,identifierValue:p,encryptionKey:S,encryptionSalt:f,useLocal:g}){if(!u||!Object.keys(u).length)return null;let E=!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),b=g?i:E?n:o,m=Object.keys(u),D=[],h=[];for(let e=0;ee.fieldName===t):null,o=n&&n[0]?n[0]:null;if(null==r||void 0==r)continue;o?.richText&&(r=s(r,a)),o?.encrypted&&(r=l({data:r,encryptionKey:S,encryptionSalt:f})),"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"}}),D.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}D.push(`date_updated='${Date()}'`),D.push(`date_updated_code='${Date.now()}'`);let N=`UPDATE ${c} SET ${D.join(",")} WHERE \`${_}\`=?`;return h.push(p),E?await b(N,h):await b({paradigm:t,database:r,queryString:N,queryValues:h})}e.exports=c},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"]}}},20503:(e,t,r)=>{let{scryptSync:s,createCipheriv:a}=r(55511),{Buffer:n}=r(79428);e.exports=({data:e,encryptionKey:t,encryptionSalt:r})=>{if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let o=t||process.env.DSQL_ENCRYPTION_PASSWORD,l=r||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!l?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=a("aes-192-cbc",s(o,l,i),n.alloc(16,0));try{let t=c.update(e,"utf8","hex");return t+=c.final("hex")}catch(t){return console.log("Error in encrypting =>",t.message),e}}},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: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 _(e){o.end(),i({error:e.message,queryStringGenerated:r,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: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()}}),l&&Array.isArray(l)&&l[0]?o.query(r,l).then(d).catch(_):o.query(r).then(d).catch(_)}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}}}},44900:(e,t,r)=>{let s=r(9973),a=r(21580);async function n(...e){let t=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()},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},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=e=>t(t.s=e),s=t.X(0,[2451],()=>r(56363));module.exports=s})(); \ 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 new file mode 100644 index 0000000..b421c5a --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/updateUserTable.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../.env","../../../../jsonData/dbSchemas/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/dotenv/lib/main.js","../../../../node_modules/dotenv/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-shared/data/defaultFields.json","../../../../package.json","../../../package.json","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..4d76571 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/updateUserUser.js @@ -0,0 +1 @@ +"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,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}}})},66162:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>_,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),o=t(2706),a=t(96762),i=t(33364),c=t.n(i),l=t(6420),u=t.n(l);async function p(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await u()(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{user_type:t}=e.body,s=(()=>{let r=Object.keys(e.body),s={};return r.forEach(r=>{!(t?.match(/database/)&&r?.match(/user_type|priviledge|database_access|databases?|confirm/))&&(r?.match(/databases|confirm/)||(s[r]=e.body[r]))}),s})(),n=await c()({dbFullName:"datasquirel",tableName:"user_users",identifierColumnName:"id",identifierValue:e.body.id,data:{...s}});r.json({success:!!n?.affectedRows,msg:n?.affectedRows?"User Updated":n})}let _=(0,a.M)(s,"default"),d=(0,a.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/updateUserUser",pathname:"/api/updateUserUser",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:c,csrfCookieName:l}=a();if(!e.cookies?.[c]?.match(/./))return null;let u=n({encryptedString:e.cookies[c]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${_}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=i},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},33364:(e,r,t)=>{let s=t(72583),n=t(16570),o=t(51348),a=t(21339),i=t(20503),c=t(44900);async function l({dbContext:e,paradigm:r,dbFullName:t,tableName:l,data:u,tableSchema:p,identifierColumnName:_,identifierValue:d,encryptionKey:S,encryptionSalt:f,useLocal:E}){if(!u||!Object.keys(u).length)return null;let D=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),g=E?c:D?o:a,h=Object.keys(u),m=[],y=[];for(let e=0;ee.fieldName===r):null,a=o&&o[0]?o[0]:null;if(null==t||void 0==t)continue;a?.richText&&(t=s(t,n)),a?.encrypted&&(t=i({data:t,encryptionKey:S,encryptionSalt:f})),"object"==typeof t&&(t=JSON.stringify(t)),a?.pattern&&!new RegExp(a.pattern,a.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"}}),m.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}m.push(`date_updated='${Date()}'`),m.push(`date_updated_code='${Date.now()}'`);let v=`UPDATE ${l} SET ${m.join(",")} WHERE \`${_}\`=?`;return y.push(d),D?await g(v,y):await g({paradigm:r,database:t,queryString:v,queryValues:y})}e.exports=l},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"]}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(a,i,c),o.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},20503:(e,r,t)=>{let{scryptSync:s,createCipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({data:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=n("aes-192-cbc",s(a,i,c),o.alloc(16,0));try{let r=l.update(e,"utf8","hex");return r+=l.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},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 p(e){a.end(),c(JSON.parse(JSON.stringify(e)))}function _(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(p).catch(_):a.query(t).then(p).catch(_)}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}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);async function o(...e){let r=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()},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 t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{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=66162);module.exports=t})(); \ 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 new file mode 100644 index 0000000..8a32dd9 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/updateUserUser.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..f18731b --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/user-schema/replace-database-schema.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=4105,e.ids=[4105],e.modules={60818:e=>{e.exports=require("dotenv")},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,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}}})},46127:(e,r,s)=>{s.r(r),s.d(r,{config:()=>v,default:()=>m,routeModule:()=>D});var t={};s.r(t),s.d(t,{default:()=>h});var a=s(89947),n=s(2706),i=s(96762),o=s(6420),u=s.n(o),c=s(48225),l=s.n(c);s(27825);var d=s(51348),f=s.n(d),p=s(33873),_=s.n(p);s(79646);var S=s(19261),E=s.n(S);let b=s(29021);async function h(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let s=await u()(e,r,!0);if(!s)return r.json({success:!1,msg:"Unauthorized"});let t=e.body.schema,a=e.body.dbId;try{let e=await f()("SELECT * FROM user_databases WHERE user_id = ? AND id = ?",[s.id,a]);if(!e?.[0])throw Error("Invalid Database");let n=e[0],i=_().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s.id}/main.json`),o=JSON.parse(b.readFileSync(i,"utf-8")),u=o.find(e=>e.dbFullName==n.db_full_name);if(!u)throw Error("This Database doesn't exist");if(u.tables=t.tables,u.childrenDatabases)for(let e=0;ee.dbFullName===r);if(!s||!s.tables){u.childrenDatabases?.splice(e,1);continue}s.tables=t.tables}b.writeFileSync(`${i}`,JSON.stringify(o),"utf8"),await E()({userId:s.id,targetDatabase:n.db_full_name}),r.json({success:!0})}catch(t){l()({component:"/api/acceptUserInvitation/catch-error",message:t.message,user:s,req:e}),r.json({success:!1})}}let m=(0,i.M)(t,"default"),v=(0,i.M)(t,"config"),D=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:t})},6420:(e,r,s)=>{s(81630);let t=s(51348),a=s(72835),n=s(29021),i=s(31341);async function o(e,r,s,o){let{keyCookieName:u,csrfCookieName:c}=i();if(!e.cookies?.[u]?.match(/./))return null;let l=a({encryptedString:e.cookies[u]});if(!l)return null;let d=JSON.parse(l);if(!d.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let f=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!f)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!n.existsSync(`${f}/${d.csrf_k}`))return null;if(0==d.verification_status&&!s){let e=await t(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=r;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=s;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:a,csrfCookieName:n+=t}}},51348:(e,r,s)=>{let t=s(9973),a=s(21580),n=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 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,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=e=>r(r.s=e),t=r.X(0,[2451],()=>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 new file mode 100644 index 0000000..cef88b6 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/user-schema/replace-database-schema.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../.env","../../../../../jsonData/dbSchemas/main.json","../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/dotenv/lib/main.js","../../../../../node_modules/dotenv/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-shared/data/defaultFields.json","../../../../../package.json","../../../../package.json","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..573d6b7 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/add-user.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=8864,e.ids=[8864],e.modules={60818:e=>{e.exports=require("dotenv")},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:()=>g,default:()=>f,routeModule:()=>T});var s={};t.r(s),t.d(s,{default:()=>p});var r=t(89947),l=t(2706),i=t(96762),n=t(48225),u=t.n(n),d=t(77619),o=t.n(d),m=t(25788),c=t.n(m);async function p(e,a){if("POST"!==e.method)return a.json({success:!1,payload:null,msg:"Failed!"});try{let t=e.headers.authorization,{payload:s,database:r,encryptionKey:l}=e.body,i=o()({key:t,database:r,user_id:String(e.query.user_id)});if(!i?.user_id)throw Error("Api Credentials invalid!");if((!i.full_access||!i.sign)&&!s?.password){a.json({success:!1,msg:"Password is required to create an account"});return}let n=`datasquirel_user_${i.user_id}_${r}`,u=await c()({encryptionKey:l,database:n,payload:s,userId:i.user_id});a.json(u)}catch(t){u()({component:"/api/user/add-user/main-catch-error",message:t.message,user:{},req:e}),a.json({success:!1,msg:"API Error",error:t.message})}}let f=(0,i.M)(s,"default"),g=(0,i.M)(s,"config"),T=new r.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/user/[user_id]/add-user",pathname:"/api/user/[user_id]/add-user",bundlePath:"",filename:""},userland:s})},25788:(e,a,t)=>{let s=t(63026),r=t(47670),l=t(70402),i=t(57638),n=t(14533);e.exports=async function({encryptionKey:e,payload:a,database:t,userId:u,useLocal:d}){let o=e||process.env.DSQL_ENCRYPTION_PASSWORD;if(!o)return{success:!1,msg:"No encryption key provided",payload:null};if(!o?.match(/.{8,}/))return{success:!1,msg:"Encryption key must be at least 8 characters long",payload:null};let m=n({encryptionKey:o,password:String(a.password)});a.password=m;let c="SHOW COLUMNS FROM users",p=await i({queryString:c,database:t,useLocal:d});if(p?.[0]||(await s({userId:Number(u),database:t,useLocal:d,payload:a}),p=await i({queryString:c,database:t,useLocal:d})),!p?.[0])return{success:!1,msg:"Could not create users table"};let f=p.map(e=>e.Field);for(let e=0;e{t(29021),t(33873);let{execSync:s}=t(79646),r=t(48225),l=t(51348),{default:i}=t(2258),{default:n}=t(78634),u=t(47670),d=t(19261),o=t(44900),m=t(18801);e.exports=async function({userId:e,database:a,useLocal:t,payload:s}){try{let r=m({payload:s});if(!r)throw Error("Couldn't Get User Preset!");let c=i({userId:e});if(!c)throw Error("User schema data not found!");let p=c.find(e=>e.dbFullName===a);if(!p)throw Error("Couldn't Find Target Database!");let f=p?.tables.findIndex(e=>"users"===e.tableName);"number"==typeof f&&f>0?p.tables[f]=r:p.tables.push(r),n({schemaData:c,userId:e});let g=t?await o("SELECT id FROM user_databases WHERE user_id=? AND db_slug=?",[e,a]):await l("SELECT id FROM user_databases WHERE user_id=? AND db_slug=?",[e,a]);return g?.[0]&&await u({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:e,db_id:g[0].id,db_slug:p.dbSlug,table_name:"Users",table_slug:"users"},useLocal:t}),await d({userId:e,targetDatabase:a}),"Done!"}catch(a){return console.log(`addUsersTableToDb.js ERROR: ${a.message}`),r({component:"addUsersTableToDb",message:a.message,user:{id:e}}),a.message}}},77619:(e,a,t)=>{let s=t(29021),r=t(72835);e.exports=({key:e,database:a,table:t,user_id:l})=>{if(!e||!l)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 n=r({encryptedString:e}),u=JSON.parse(n||""),d=s.existsSync(`${i}/${u.sign}`);if(String(u.user_id)!==String(l)||!d)return null;if(!u.target_database)return u;if(!a&&u.target_database)return null;let o=u.target_database?.split(",").includes(String(a));if(o&&!u.target_table)return u;if(o&&!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}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},18801:(e,a,t)=>{let s=t(85288),r=t(48225);e.exports=function(e){try{let a=t(8693),r=t(95610),l=e?.payload?s({data:e?.payload,excludeData:r,excludeFields:a.fields}):[];console.log("supplementalFields",l);let i=[...a.fields,...l];console.log("allFields",i);let n=[...r.slice(0,2),...i,...r.slice(2)];return a.fields=[...n],a}catch(e){return console.log(`grabNewUsersTableSchema.js ERROR: ${e.message}`),r({component:"grabNewUsersTableSchema",message:e.message}),null}}},85288:(e,a,t)=>{let s=t(48225);e.exports=function({data:e,fields:a,excludeData:r,excludeFields:l}){try{t(81648),t(57539);let s=[],i=[];return e&&Object.keys(e)?.[0]&&(i=Object.keys(e)),a&&(i=[...i,...a],i=[...new Set(i)]),(i=i.filter(e=>!r||!Object.keys(r).includes(e)).filter(e=>!l||!l.find(a=>a.fieldName==e))).forEach(a=>{let t=e?e[a]:null;if("string"==typeof t){let e={fieldName:a,dataType:t.length>255?"TEXT":"VARCHAR(255)"};t.match(/<[^>]+>/g)&&(e.richText=!0),s.push(e)}else"number"==typeof t?s.push({fieldName:a,dataType:"INT"}):s.push({fieldName:a,dataType:"VARCHAR(255)"})}),s}catch(e){return console.log(`grabSchemaFieldsFromData.js ERROR: ${e.message}`),s({component:"grabSchemaFieldsFromData.js",message:e.message}),[]}}},2258:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i});let s=t(48225),r=t(29021),l=t(33873);function i({userId:e}){try{let a=l.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(r.readFileSync(a,"utf-8"))}catch(e){return s({component:"grabUserSchemaData",message:e.message}),null}}},6061:(e,a,t)=>{let s=t(72835),r=t(30003);e.exports=async function({unparsedResults:e,tableSchema:a}){let t=[];try{for(let l=0;l",a.message),e}}},78634:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i});let s=t(48225),r=t(29021),l=t(33873);function i({userId:e,schemaData:a}){try{let t=l.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return r.writeFileSync(t,JSON.stringify(a),"utf8"),!0}catch(e){return s({component:"/functions/backend/setUserSchemaData",message:e.message}),!1}}},70402:(e,a,t)=>{let s=t(48225),{default:r}=t(2258),{default:l}=t(78634),i=t(19261),n=t(85288);e.exports=async function({userId:e,database:a,newFields:t,newPayload:u}){try{let s=r({userId:e});if(!s)throw Error("User schema data not found!");let d=s.findIndex(e=>e.dbFullName===a);if(d<0)throw Error("Couldn't Find Target Database!");let o=s[d]?.tables.findIndex(e=>"users"===e.tableName),m=s[d].tables[o];if(!m?.fields?.[0])throw Error("Users Table Not Found!");let c=n({fields:t,data:u}),p=m.fields.findIndex(e=>"date_created"===e.fieldName);return m.fields.splice(p>=0?p:0,0,...c),l({schemaData:s,userId:e}),await i({userId:e,targetDatabase:a}),"Done!"}catch(a){return console.log(`addUsersTableToDb.js ERROR: ${a.message}`),s({component:"addUsersTableToDb",message:a.message,user:{id:e}}),a.message}}},57638:(e,a,t)=>{t(29021);let s=t(6061),r=t(48225),l=t(51348),i=t(21339),n=t(44900);e.exports=async function({queryString:e,queryValuesArray:a,database:t,tableSchema:u,useLocal:d}){let o;let m=!!t?.match(/^datasquirel$/),c=d?n:m?l:i;try{o=e&&a&&Array.isArray(a)&&a[0]?m?await c(e,a):await c({paradigm:"Full Access",database:t,queryString:e,queryValues:a}):m?await c(e):await c({paradigm:"Full Access",database:t,queryString:e})}catch(e){r({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(o&&u)try{let e=o;return await s({unparsedResults:e,tableSchema:u})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),r({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(o)return o;else return null}},14533:(e,a,t)=>{let{createHmac:s}=t(55511);e.exports=function({password:e,encryptionKey:a}){let t=a||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let r=s("sha512",t);return r.update(e),r.digest("base64")}},57539: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"}]')},81648:e=>{e.exports=JSON.parse('{"fieldName":"string","dataType":"BIGINT","nullValue":true,"primaryKey":true,"autoIncrement":true,"defaultValue":"CURRENT_TIMESTAMP","defaultValueLiteral":"CURRENT_TIMESTAMP","notNullValue":true,"foreignKey":{"foreignKeyName":"Name","destinationTableName":"Table Name","destinationTableColumnName":"Column Name","cascadeDelete":true,"cascadeUpdate":true},"onUpdate":"CURRENT_TIMESTAMP","onUpdateLiteral":"CURRENT_TIMESTAMP","onDelete":"CURRENT_TIMESTAMP","onDeleteLiteral":"CURRENT_TIMESTAMP","encrypted":false}')},8693: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":"TEXT"},{"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),s=a.X(0,[4050,2451],()=>t(48942));module.exports=s})(); \ 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 new file mode 100644 index 0000000..c7c2686 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/add-user.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../.env","../../../../../../jsonData/dbSchemas/main.json","../../../../../../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/dotenv/lib/main.js","../../../../../../node_modules/dotenv/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-shared/data/dataTypes.json","../../../../../../package-shared/data/defaultFields.json","../../../../../../package-shared/data/possibleFields.json","../../../../../../package-shared/data/presets/users.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/7070.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9621.js","../../../../chunks/9732.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 new file mode 100644 index 0000000..99abebe --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/delete-user.js @@ -0,0 +1,16 @@ +"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:()=>g,default:()=>S,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),a=t(2706),o=t(96762),i=t(48225),l=t.n(i),c=t(77619),u=t.n(c),d=t(42249),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,{deletedUserId:s,database:n}=e.body,a=u()({key:t,database:n?.db_slug,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=await p()({dbFullName:o,deletedUserId:s});r.json(i)}catch(t){l()({component:"/api/user/delete-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Wrong Credentials"})}}let S=(0,o.M)(s,"default"),g=(0,o.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/user/[user_id]/delete-user",pathname:"/api/user/[user_id]/delete-user",bundlePath:"",filename:""},userland:s})},42249:(e,r,t)=>{let s=t(64122),n=t(57638);e.exports=async function({dbFullName:e,deletedUserId:r,useLocal:t}){let a=await n({queryString:"SELECT * FROM users WHERE id = ?",queryValuesArray:[r],database:e,useLocal:t});return a?.[0]?{success:!0,result:await s({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:"users",identifierColumnName:"id",identifierValue:r,useLocal:t})}:{success:!1,msg:"User not found"}}},77619:(e,r,t)=>{let s=t(29021),n=t(72835);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({encryptedString:e}),l=JSON.parse(i||""),c=s.existsSync(`${o}/${l.sign}`);if(String(l.user_id)!==String(a)||!c)return null;if(!l.target_database)return l;if(!r&&l.target_database)return null;let u=l.target_database?.split(",").includes(String(r));if(u&&!l.target_table)return l;if(u&&!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),a=t(44900);async function o({dbContext:e,paradigm:r,dbFullName:t,tableName:o,identifierColumnName:i,identifierValue:l,useLocal:c}){try{let u=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=c?a:u?s:n,p=`DELETE FROM ${o} WHERE \`${i}\`=?`;return u?await d(p,[l]):await d({paradigm:r,queryString:p,database:t,queryValues:[l]})}catch(e){return null}}e.exports=o},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(72835),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},48225:(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)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),i=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:c}){let u;let d=!!t?.match(/^datasquirel$/),p=c?i:d?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;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(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(o,i,l),a.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);async function a(...e){let r=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()},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 t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{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=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 new file mode 100644 index 0000000..922eb52 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/delete-user.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/7070.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9621.js","../../../../chunks/9732.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 new file mode 100644 index 0000000..9dd62f4 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/get-user.js @@ -0,0 +1,16 @@ +"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:()=>g,default:()=>S,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),a=t(2706),o=t(96762),i=t(48225),c=t.n(i);t(57638);var l=t(77619),u=t.n(l),p=t(17550),d=t.n(p);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization,{userId:s,database:n}=e.body,a=u()({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=e.body.fields.map(e=>e.replace(/[^a-z\_]/g,"")),i=`datasquirel_user_${a.user_id}_${n}`,c=await d()({dbFullName:i,userId:s,fields:o});r.json(c)}catch(t){c()({component:"/api/user/get-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"User fetch Error"})}}let S=(0,o.M)(s,"default"),g=(0,o.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/user/[user_id]/get-user",pathname:"/api/user/[user_id]/get-user",bundlePath:"",filename:""},userland:s})},17550:(e,r,t)=>{let s=t(57638);e.exports=async function({fields:e,dbFullName:r,userId:t,useLocal:n}){let a=`SELECT ${e.join(",")} FROM users WHERE id=?`,o=await s({queryString:a,queryValuesArray:[t],database:r.replace(/[^a-z0-9_]/g,""),useLocal:n});return o&&o[0]?{success:!0,payload:o[0]}:{success:!1,payload:null}}},77619:(e,r,t)=>{let s=t(29021),n=t(72835);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({encryptedString:e}),c=JSON.parse(i||""),l=s.existsSync(`${o}/${c.sign}`);if(String(c.user_id)!==String(a)||!l)return null;if(!c.target_database)return c;if(!r&&c.target_database)return null;let u=c.target_database?.split(",").includes(String(r));if(u&&!c.target_table)return c;if(u&&!t&&c.target_table)return null;if(c.target_table?.split(",").includes(String(t)))return c;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),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(72835),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},48225:(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 c=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` + + + + +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),i=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:c,useLocal:l}){let u;let p=!!t?.match(/^datasquirel$/),d=l?i:p?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?p?await d(e,r):await d({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):p?await d(e):await d({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({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),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(o,i,c),a.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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((c,l)=>{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: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(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}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);async function a(...e){let r=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()},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 t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{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=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 new file mode 100644 index 0000000..922eb52 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/get-user.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/7070.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9621.js","../../../../chunks/9732.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 new file mode 100644 index 0000000..eec6609 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/github-login.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=7110,e.ids=[7110],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")},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:()=>m,default:()=>h,routeModule:()=>f});var s={};r.r(s),r.d(s,{default:()=>d});var i=r(89947),a=r(2706),n=r(96762),o=r(48225),l=r.n(o),u=r(77619),c=r.n(u),p=r(16465),g=r.n(p);async function d(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=c()({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"});let p=`datasquirel_user_${u.user_id}_${n}`,d=await g()({additionalFields:o,clientId:i,clientSecret:a,code:r,database:p,email:s,res:t,userId:u.user_id});t.json(d)}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 h=(0,n.M)(s,"default"),m=(0,n.M)(s,"config"),f=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})},67684:(e,t,r)=>{let s=r(51348),i=r(83634);e.exports=async function({code:e,clientId:t,clientSecret:r}){let a;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 a;let l=await i({method:"GET",hostname:"api.github.com",path:"/user",headers:{Authorization:`Bearer ${o.access_token}`,"User-Agent":"*"},scheme:"https"});if(a=JSON.parse(l),!a?.email&&a){let e=await s(`SELECT email FROM users WHERE social_login='1' AND social_platform='github' AND social_id='${a.id}'`);e&&e[0]&&(a.email=e[0].email)}}catch(e){console.log("ERROR in githubLogin.js backend function =>",e.message)}return a}},16465:(e,t,r)=>{let s=r(14385),i=r(67684),a=r(19691);e.exports=async function({code:e,clientId:t,clientSecret:r,database:n,additionalFields:o,res:l,email:u,userId:c}){if(!e||!t||!r||!n)return{success:!1,msg:"Missing query params"};if("string"!=typeof e||"string"!=typeof t||"string"!=typeof r||"string"!=typeof n)return{success:!1,msg:"Wrong Parameters"};let p=await i({code:e,clientId:t,clientSecret:r});if(!p)return{success:!1,msg:"No github user returned"};let g=p.name||p.id||p.login,d=p.name||p.login,h=d?.match(/ /)?d?.split(" "):d?.match(/\-/)?d?.split("-"):[d],m={email:p.email,first_name:a(h[0]),last_name:a(h[1]),social_id:g,social_platform:"github",image:p.avatar_url,image_thumbnail:p.avatar_url,username:"github-user-"+g};return{...await s({database:n,email:p.email,payload:m,social_platform:"github",social_id:g,supEmail:u,additionalFields:o})}}},77619:(e,t,r)=>{let s=r(29021),i=r(72835);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({encryptedString: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}}},83634:(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,g=e?new a(e):null,d={method:t||"GET",hostname:g?g.hostname:r,port:c?.match(/https/i)?443:g?g.protocol?.match(/https/i)?443:g.port:u?Number(u):80,headers:{}};return n&&(d.path=n),o&&(d.headers=o),l&&(d.headers["Content-Type"]="application/json",d.headers["Content-Length"]=p?Buffer.from(p).length:void 0),new Promise((e,t)=>{let r=(c?.match(/https/i)?s:g?.protocol?.match(/https/i)?s:i).request(d,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()})}},19691: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;et(t.s=e),s=t.X(0,[4050,4385],()=>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 new file mode 100644 index 0000000..d893b98 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/github-login.js.nft.json @@ -0,0 +1 @@ +{"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/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/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/7070.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9621.js","../../../../chunks/9732.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 new file mode 100644 index 0000000..c9c404f --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/google-login.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=5770,e.ids=[5770],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")},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")},56891:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>f,routeModule:()=>_});var s={};t.r(s),t.d(s,{default:()=>p});var a=t(89947),i=t(2706),o=t(96762),n=t(48225),u=t.n(n),l=t(77619),g=t.n(l),d=t(2853),c=t.n(d);async function p(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Failed!"});try{let{token:t,database:s,additionalFields:a}=e.body,i=e.headers.authorization,o=g()({key:i,database:s,user_id:String(e.query.user_id)});if(!o?.user_id)throw Error("Api Credentials invalid!");if(!o.full_access||!o.sign)return r.json({success:!1,msg:"Unauthorized"});let n=`datasquirel_user_${o.user_id}_${s}`,u=await c()({database:n,token:t,additionalFields:a});r.json(u)}catch(t){u()({component:"/api/user/google-login/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Error: "+t.message})}}let f=(0,o.M)(s,"default"),m=(0,o.M)(s,"config"),_=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:s})},2853:(e,r,t)=>{let s=t(55591),a=t(14385),i=t(27836);e.exports=async function({token:e,database:r,additionalFields:t}){try{let o=await new Promise((r,t)=>{s.request({method:"GET",hostname:"www.googleapis.com",path:"/oauth2/v3/userinfo",headers:{Authorization:`Bearer ${e}`}},e=>{let t="";e.on("data",e=>{t+=e}),e.on("end",()=>{r(i.parse(t))})}).end()});if(!o?.email_verified)throw Error("No Google User.");if(!r||"string"!=typeof r||r?.match(/ /))return{success:!1,user:void 0,msg:"Please provide a database slug(database name in lowercase with no spaces)"};let{given_name:n,family_name:u,email:l,sub:g,picture:d}=o,c={email:l,first_name:n,last_name:u,social_id:g,social_platform:"google",image:d,image_thumbnail:d,username:`google-user-${g}`};return{...await a({database:r,email:l||"",payload:c,social_platform:"google",social_id:g,additionalFields:t})}}catch(e){return console.log(`apo-google-login.js ERROR: ${e.message}`),{success:!1,user:void 0,msg:e.message}}}},77619:(e,r,t)=>{let s=t(29021),a=t(72835);e.exports=({key:e,database:r,table:t,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 n=a({encryptedString:e}),u=JSON.parse(n||""),l=s.existsSync(`${o}/${u.sign}`);if(String(u.user_id)!==String(i)||!l)return null;if(!u.target_database)return u;if(!r&&u.target_database)return null;let g=u.target_database?.split(",").includes(String(r));if(g&&!u.target_table)return u;if(g&&!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}}},27836: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}}}}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[4050,4385],()=>t(56891));module.exports=s})(); \ 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 new file mode 100644 index 0000000..d893b98 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/google-login.js.nft.json @@ -0,0 +1 @@ +{"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/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/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/7070.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9621.js","../../../../chunks/9732.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 new file mode 100644 index 0000000..5a9c5be --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/grab-google-user-from-token.js @@ -0,0 +1,16 @@ +"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:()=>f,default:()=>p,routeModule:()=>m});var n={};t.r(n),t.d(n,{default:()=>g});var i=t(89947),s=t(2706),o=t(96762),a=t(48225),l=t.n(a),u=t(77619),c=t.n(u);let{OAuth2Client:d}=t(76154);async function g(e,r){if("POST"!==e.method)return r.json({success:!1,payload:null,msg:"Failed!"});try{let t=e.headers.authorization,n=c()({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:i,clientId:s}=e.body,o=new d(s),a=await o.verifyIdToken({idToken:i,audience:s});if(!a?.getPayload()?.email_verified)return r.json({success:!1,payload:null,msg:"User not verified!"});let l=a.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,o.M)(n,"default"),f=(0,o.M)(n,"config"),m=new i.PagesAPIRouteModule({definition:{kind:s.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})},77619:(e,r,t)=>{let n=t(29021),i=t(72835);e.exports=({key:e,database:r,table:t,user_id:s})=>{if(!e||!s)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 a=i({encryptedString:e}),l=JSON.parse(a||""),u=n.existsSync(`${o}/${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}}},48225:(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 o=new Date,a=(()=>{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)}`),a&&(i+=` +IP: ${a}`),i+=` +Date: ${o.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",` + + + + +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:n,createDecipheriv:i}=t(55511),{Buffer:s}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=i("aes-192-cbc",n(o,a,l),s.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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 new file mode 100644 index 0000000..df7af7d --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/grab-google-user-from-token.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/7070.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9621.js","../../../../chunks/9732.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 new file mode 100644 index 0000000..42311fc --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/login-user.js @@ -0,0 +1,16 @@ +"use strict";(()=>{var e={};e.id=2726,e.ids=[2726],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}}})},81725:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>_,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>g});var n=t(89947),a=t(2706),o=t(96762),i=t(48225),l=t.n(i),c=t(77619),u=t.n(c),d=t(81681),p=t.n(d);async function g(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let{encryptionKey:t,payload:s,database:n,additionalFields:a,email_login:o,email_login_code:i,email_login_field:l,token:c,skipPassword:d}=e.body,g=e.headers.authorization,_=u()({key:g,database:n,user_id:String(e.query.user_id)});if(!_?.user_id)throw Error("Api Credentials invalid!");if(!_.full_access||!_.sign)return r.json({success:!1,msg:"Unauthorized"});let m=s.email,S=s.username,f=s.password,h=`datasquirel_user_${_.user_id}_${n}`,y=await p()({database:h,email:m,username:S,password:f,skipPassword:d,encryptionKey:t,additionalFields:a,email_login:o,email_login_code:i,email_login_field:l,token:c});r.json(y)}catch(t){l()({component:"/api/user/login-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Login Failed"})}}let _=(0,o.M)(s,"default"),m=(0,o.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/user/[user_id]/login-user",pathname:"/api/user/[user_id]/login-user",bundlePath:"",filename:""},userland:s})},81681:(e,r,t)=>{t(44900);let{writeAuthFile:s}=t(72047),n=t(57638),a=t(14533);e.exports=async function({encryptionKey:e,email:r,username:t,password:s,database:o,additionalFields:i,email_login:l,email_login_code:c,email_login_field:u,token:d,skipPassword:p,social:g,useLocal:_}){if(r?.match(/ /)||t&&t?.match(/ /)||s&&s?.match(/ /))return{success:!1,msg:"Invalid Email/Password format"};let m=s?a({encryptionKey:e,password:s}):null,S=await n({queryString:"SELECT * FROM users WHERE email = ? OR username = ?",queryValuesArray:[r,t],database:o.replace(/[^a-z0-9_]/g,""),useLocal:_});if((!S||!S[0])&&!g)return{success:!1,payload:null,msg:"No user found"};let f=!1;if(S?.[0]&&!l&&p)f=!0;else if(S?.[0]&&!l)f=m===S[0].password;else if(S&&S[0]&&l&&c&&u){let e=S[0][u];if(!e)throw Error("No code Found!");let[r,t]=e.split("-");if(Date.now()-Number(t)>9e5)throw Error("Code Expired");f=r===c}if(!f)return{success:!1,msg:"Wrong password, no social login validity",payload:null};f&&l&&await n({queryString:`UPDATE users SET ${u} = ? WHERE email = ? OR username = ?`,queryValuesArray:["",r,t],database:o.replace(/[^a-z0-9_]/g,""),useLocal:_});let h=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),y={id:S[0].id,first_name:S[0].first_name,last_name:S[0].last_name,username:S[0].username,email:S[0].email,phone:S[0].phone,social_id:S[0].social_id,image:S[0].image,image_thumbnail:S[0].image_thumbnail,verification_status:S[0].verification_status,social_login:S[0].social_login,social_platform:S[0].social_platform,csrf_k:h,more_data:S[0].more_user_data,logged_in_status:!0,date:Date.now()},D={success:!0,msg:"Login Successful",payload:y,userId:S[0].id,csrf:h};return i&&Array.isArray(i)&&i.length>0&&i.forEach(e=>{y[e]=S[0][e]}),D}},77619:(e,r,t)=>{let s=t(29021),n=t(72835);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({encryptedString:e}),l=JSON.parse(i||""),c=s.existsSync(`${o}/${l.sign}`);if(String(l.user_id)!==String(a)||!c)return null;if(!l.target_database)return l;if(!r&&l.target_database)return null;let u=l.target_database?.split(",").includes(String(r));if(u&&!l.target_table)return l;if(u&&!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}}},72047:(e,r,t)=>{let s=t(29021),n=t(33873),a=()=>{let e=n.resolve(process.cwd(),"./.tmp"),r=n.join(e,"logins");return{root:e,auth:r}},o=()=>{try{let e=a();return s.existsSync(e.root)||s.mkdirSync(e.root,{recursive:!0}),s.existsSync(e.auth)||s.mkdirSync(e.auth,{recursive:!0}),!0}catch(e){return console.log(`Error initializing Auth Files: ${e.message}`),!1}};r.grabAuthDirs=a,r.initAuthFiles=o,r.writeAuthFile=(e,r)=>{o();try{return s.writeFileSync(n.join(a().auth,e),r),!0}catch(e){return console.log(`Error writing Auth File: ${e.message}`),!1}},r.getAuthFile=e=>{try{let r=n.join(a().auth,e);return s.readFileSync(r,"utf-8")}catch(e){return console.log(`Error getting Auth File: ${e.message}`),null}},r.deleteAuthFile=e=>{try{return s.rmSync(n.join(a().auth,e))}catch(e){return console.log(`Error deleting Auth File: ${e.message}`),null}},r.checkAuthFile=e=>{try{return s.existsSync(n.join(a().auth,e))}catch(e){return console.log(`Error checking Auth File: ${e.message}`),!1}}},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(72835),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},48225:(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)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),i=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:c}){let u;let d=!!t?.match(/^datasquirel$/),p=c?i:d?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;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(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(o,i,l),a.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},14533:(e,r,t)=>{let{createHmac:s}=t(55511);e.exports=function({password:e,encryptionKey:r}){let t=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let n=s("sha512",t);return n.update(e),n.digest("base64")}},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}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);async function a(...e){let r=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()},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 t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{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=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 new file mode 100644 index 0000000..d579dde --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/login-user.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../.tmp/error.log","../../../../../../.tmp/sqlQuery.sql","../../../../../../.tmp/userLoginLogs.log","../../../../../../.tmp/wrt.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/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/7070.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9621.js","../../../../chunks/9732.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 new file mode 100644 index 0000000..4a61b7d --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/reauth-user.js @@ -0,0 +1,16 @@ +"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")},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}}})},62553:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>g,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),a=t(2706),o=t(96762),i=t(48225),l=t.n(i),c=t(77619),u=t.n(c),d=t(29477),_=t.n(d);async function p(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let{existingUser:t,database:s,additionalFields:n}=e.body,a=e.headers.authorization,o=u()({key:a,database:s,user_id:String(e.query.user_id)});if(!o?.user_id)throw Error("Api Credentials invalid!");if(!o.full_access||!o.sign)return r.json({success:!1,msg:"Unauthorized"});let i=`datasquirel_user_${o.user_id}_${s}`.replace(/[^a-z0-9_]/g,""),l=await _()({database:i,existingUser:t,additionalFields:n});r.json(l)}catch(t){l()({component:"/api/user/reauth-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Login Failed"})}}let g=(0,o.M)(s,"default"),S=(0,o.M)(s,"config"),m=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/user/[user_id]/reauth-user",pathname:"/api/user/[user_id]/reauth-user",bundlePath:"",filename:""},userland:s})},29477:(e,r,t)=>{let s=t(44900),n=t(57638);t(21572),e.exports=async function({existingUser:e,database:r,additionalFields:t,useLocal:a}){let o=e?.id&&e.id.toString().match(/./)?a?await s("SELECT * FROM users WHERE id=?",[e.id.toString()]):await n({queryString:"SELECT * FROM users WHERE id=?",queryValuesArray:[e.id.toString()],database:r}):null;if(!o||!o[0])return{success:!1,payload:null,msg:"No user found"};let i=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),l={id:o[0].id,first_name:o[0].first_name,last_name:o[0].last_name,username:o[0].username,email:o[0].email,phone:o[0].phone,social_id:o[0].social_id,image:o[0].image,image_thumbnail:o[0].image_thumbnail,verification_status:o[0].verification_status,social_login:o[0].social_login,social_platform:o[0].social_platform,csrf_k:i,more_data:o[0].more_user_data,logged_in_status:!0,date:Date.now()};return t&&Array.isArray(t)&&t.length>0&&t.forEach(e=>{l[e]=o[0][e]}),{success:!0,msg:"Login Successful",payload:l,csrf:i}}},77619:(e,r,t)=>{let s=t(29021),n=t(72835);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({encryptedString:e}),l=JSON.parse(i||""),c=s.existsSync(`${o}/${l.sign}`);if(String(l.user_id)!==String(a)||!c)return null;if(!l.target_database)return l;if(!r&&l.target_database)return null;let u=l.target_database?.split(",").includes(String(r));if(u&&!l.target_table)return l;if(u&&!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}}},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(72835),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},48225:(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)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),i=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:c}){let u;let d=!!t?.match(/^datasquirel$/),_=c?i:d?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await _(e,r):await _({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):d?await _(e):await _({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;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(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(o,i,l),a.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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 _(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(_):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}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);async function a(...e){let r=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()},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 t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{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=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 new file mode 100644 index 0000000..3b164f8 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/reauth-user.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/7070.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9621.js","../../../../chunks/9732.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 new file mode 100644 index 0000000..79a25d5 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/send-email-code.js @@ -0,0 +1,16 @@ +"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:()=>m,default:()=>S,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),a=t(2706),o=t(96762),i=t(48225),c=t.n(i),l=t(77619),u=t.n(l),d=t(40927),p=t.n(d);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let{email:t,database:s,email_login_field:n,mail_domain:a,mail_password:o,mail_username:i,mail_port:c,sender:l,html:d}=e.body,_=e.headers.authorization,S=u()({key:_,database:s,user_id:String(e.query.user_id)});if(!S?.user_id)throw Error("Api Credentials invalid!");if(!S.full_access||!S.sign)return r.json({success:!1,msg:"Unauthorized"});let m=`datasquirel_user_${S.user_id}_${s}`.replace(/[^a-z0-9_]/g,""),g=await p()({database:m,email:t,email_login_field:n,html:d,mail_domain:a,mail_password:o,mail_port:c,mail_username:i,sender:l});r.json(g)}catch(t){c()({component:"/api/user/login-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Failed: "+t.message})}}let S=(0,o.M)(s,"default"),m=(0,o.M)(s,"config"),g=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/user/[user_id]/send-email-code",pathname:"/api/user/[user_id]/send-email-code",bundlePath:"",filename:""},userland:s})},40927:(e,r,t)=>{t(44900);let s=t(57638),n=t(21572);e.exports=async function({email:e,database:r,email_login_field:t,mail_domain:a,mail_port:o,sender:i,mail_username:c,mail_password:l,html:u,useLocal:d}){if(e?.match(/ /))return{success:!1,msg:"Invalid Email/Password format"};let p=[e],_=await s({queryString:"SELECT * FROM users WHERE email = ?",queryValuesArray:p,database:r,useLocal:d});if(!_||!_[0])return{success:!1,msg:"No user found"};if(_&&_[0]&&t){let p=function(){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",r="";for(let t=0;t<8;t++)r+=e[Math.floor(Math.random()*e.length)];return r}(),_=n.createTransport({host:a||process.env.DSQL_MAIL_HOST,port:o||465,secure:!0,auth:{user:c||process.env.DSQL_MAIL_EMAIL,pass:l||process.env.DSQL_MAIL_PASSWORD}}),S={};S.from=`"Datasquirel SSO" <${i||"support@datasquirel.com"}>`,S.sender=i||"support@datasquirel.com",S.to=e,S.subject="One Time Login Code",S.html=u.replace(/{{code}}/,p);let m=await _.sendMail(S);if(!m?.accepted)throw Error("Mail not Sent!");let g=`UPDATE users SET ${t} = ? WHERE email = ?`,f=[p+`-${Date.now()}`,e];await s({queryString:g,queryValuesArray:f,database:r,useLocal:d})}return{success:!0,msg:"Success"}}},77619:(e,r,t)=>{let s=t(29021),n=t(72835);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({encryptedString:e}),c=JSON.parse(i||""),l=s.existsSync(`${o}/${c.sign}`);if(String(c.user_id)!==String(a)||!l)return null;if(!c.target_database)return c;if(!r&&c.target_database)return null;let u=c.target_database?.split(",").includes(String(r));if(u&&!c.target_table)return c;if(u&&!t&&c.target_table)return null;if(c.target_table?.split(",").includes(String(t)))return c;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),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(72835),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},48225:(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 c=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` + + + + +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),i=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:c,useLocal:l}){let u;let d=!!t?.match(/^datasquirel$/),p=l?i:d?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({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),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(o,i,c),a.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},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((c,l)=>{let u=!!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: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"),c({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);async function a(...e){let r=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()},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 t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{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=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 new file mode 100644 index 0000000..3b164f8 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/send-email-code.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/7070.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9621.js","../../../../chunks/9732.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 new file mode 100644 index 0000000..7318b7a --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/update-user.js @@ -0,0 +1,16 @@ +"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:()=>g,default:()=>f,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>S});var n=t(89947),a=t(2706),o=t(96762),i=t(48225),l=t.n(i),c=t(77619),u=t.n(c),d=t(42363),p=t.n(d),_=t(2258);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,updatedUserId:a}=e.body,o=u()({key:t,database:n,user_id:String(e.query.user_id)});if(!o?.user_id)throw Error("Api Credentials invalid!");if(!o.full_access||!o.sign)return r.json({success:!1,msg:"Unauthorized"});let i=`datasquirel_user_${o.user_id}_${n}`,l=(0,_.default)({userId:o.user_id}),c=l?.find(e=>e.dbFullName===i),d=await p()({dbFullName:i,payload:s,updatedUserId:a,dbSchema:c});r.json(d)}catch(t){l()({component:"/api/user/update-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Wrong Credentials"})}}let f=(0,o.M)(s,"default"),g=(0,o.M)(s,"config"),m=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})},42363:(e,r,t)=>{t(44900);let s=t(33364),n=t(20503),a=t(14533),o=t(57638);e.exports=async function({payload:e,dbFullName:r,updatedUserId:t,useLocal:i,dbSchema:l}){let c=await o({queryString:"SELECT * FROM users WHERE id = ?",queryValuesArray:[t],database:r,useLocal:i});if(!c?.[0])return{success:!1,msg:"User not found"};let u=(()=>{let r=Object.keys(e),t=(()=>{try{return l?.tables?.find(e=>"users"==e.tableName)}catch(e){return}})(),s={};return r.forEach(r=>{let a=t?.fields?.find(e=>e.fieldName==r);if(r?.match(/^date_|^id$|^uuid$/))return;let o=e[r];a?.encrypted&&(o=n({data:o})),s[r]=o}),s.password&&"string"==typeof s.password&&(s.password=a({password:s.password})),s})();return{success:!0,payload:await s({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:r,tableName:"users",identifierColumnName:"id",identifierValue:t,data:u,useLocal:i})}}},77619:(e,r,t)=>{let s=t(29021),n=t(72835);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({encryptedString:e}),l=JSON.parse(i||""),c=s.existsSync(`${o}/${l.sign}`);if(String(l.user_id)!==String(a)||!c)return null;if(!l.target_database)return l;if(!r&&l.target_database)return null;let u=l.target_database?.split(",").includes(String(r));if(u&&!l.target_table)return l;if(u&&!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(72583),n=t(16570),a=t(51348),o=t(21339),i=t(20503),l=t(44900);async function c({dbContext:e,paradigm:r,dbFullName:t,tableName:c,data:u,tableSchema:d,identifierColumnName:p,identifierValue:_,encryptionKey:S,encryptionSalt:f,useLocal:g}){if(!u||!Object.keys(u).length)return null;let m=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),y=g?l:m?a:o,h=Object.keys(u),D=[],E=[];for(let e=0;ee.fieldName===r):null,o=a&&a[0]?a[0]:null;if(null==t||void 0==t)continue;o?.richText&&(t=s(t,n)),o?.encrypted&&(t=i({data:t,encryptionKey:S,encryptionSalt:f})),"object"==typeof t&&(t=JSON.stringify(t)),o?.pattern&&!new RegExp(o.pattern,o.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"}}),D.push(`\`${r}\`=?`),"number"==typeof t?E.push(String(t)):E.push(t)}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 b=`UPDATE ${c} SET ${D.join(",")} WHERE \`${p}\`=?`;return E.push(_),m?await y(b,E):await y({paradigm:r,database:t,queryString:b,queryValues:E})}e.exports=c},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},2258:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o});let s=t(48225),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:"grabUserSchemaData",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,r,t)=>{let s=t(72835),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},48225:(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)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),i=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:c}){let u;let d=!!t?.match(/^datasquirel$/),p=c?i:d?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;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(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(o,i,l),a.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},20503:(e,r,t)=>{let{scryptSync:s,createCipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({data:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=n("aes-192-cbc",s(o,i,l),a.alloc(16,0));try{let r=c.update(e,"utf8","hex");return r+=c.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},14533:(e,r,t)=>{let{createHmac:s}=t(55511);e.exports=function({password:e,encryptionKey:r}){let t=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let n=s("sha512",t);return n.update(e),n.digest("base64")}},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}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);async function a(...e){let r=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()},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 t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{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=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 new file mode 100644 index 0000000..f078b35 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/update-user.js.nft.json @@ -0,0 +1 @@ +{"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","../../../../../package.json","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/7070.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9621.js","../../../../chunks/9732.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 new file mode 100644 index 0000000..ed85885 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/webhooks/github-push.js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..d04f6f5 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/api/webhooks/github-push.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..ced8548 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/blog.html @@ -0,0 +1 @@ +
\ 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 new file mode 100644 index 0000000..f3e8c38 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/blog.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/contact.html b/dsql-app/.local_dist/server/pages/contact.html new file mode 100644 index 0000000..c2f36c4 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/contact.html @@ -0,0 +1 @@ +
\ 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 new file mode 100644 index 0000000..f3e8c38 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/contact.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/create-account.js b/dsql-app/.local_dist/server/pages/create-account.js new file mode 100644 index 0000000..bb7420d --- /dev/null +++ b/dsql-app/.local_dist/server/pages/create-account.js @@ -0,0 +1,16 @@ +"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:()=>b,default:()=>y,getServerSideProps:()=>D,getStaticPaths:()=>v,getStaticProps:()=>E,reportWebVitals:()=>q,routeModule:()=>j,unstable_getServerProps:()=>A,unstable_getServerSideProps:()=>R,unstable_getStaticParams:()=>L,unstable_getStaticPaths:()=>P,unstable_getStaticProps:()=>N});var s={};r.r(s),r.d(s,{CreateAccountContext:()=>h,default:()=>S,getServerSideProps:()=>x});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(26123),r(67216),r(63715);var f=r(55966);r(6505);let h=d().createContext({});function S(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 x({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"),b=(0,n.M)(s,"config"),q=(0,n.M)(s,"reportWebVitals"),N=(0,n.M)(s,"unstable_getStaticProps"),P=(0,n.M)(s,"unstable_getStaticPaths"),L=(0,n.M)(s,"unstable_getStaticParams"),A=(0,n.M)(s,"unstable_getServerProps"),R=(0,n.M)(s,"unstable_getServerSideProps"),j=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"})})]})})}},20048:(e,t,r)=>{r(81630);let s=r(67216),a=r(77463),i=r(29021),n=r(6505);async function o(e,t,r,o){let{keyCookieName:l,csrfCookieName:u}=n();if(!e.cookies?.[l]?.match(/./))return null;let c=a({encryptedString:e.cookies[l]});if(!c)return null;let d=JSON.parse(c);if(!d.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!i.existsSync(`${p}/${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=o},26123:(e,t,r)=>{let s=r(22373),a=r(67216),i=r(43290),n=r(88896);e.exports=async function({query:e,user:t,useLocal:r}){try{let s=r?n:a,{invite:o,database_access:l,priviledge:u,email:c}=e,d=[o,c],p=await s("SELECT date_created_code FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",d);if(!p||!p[0])throw Error("No Invitation Found");let m=[o],_=await s("SELECT first_name,last_name,email FROM users WHERE id=?",m);if(_?.[0]){let e=await s("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[o,t.id,c]);if(e?.[0])console.log("User already added");else{i({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:o,invited_user_id:t.id,database_access:l,first_name:t.first_name,last_name:t.last_name,phone:t.phone,email:t.email,username:t.username,user_type:"admin",user_priviledge:u,image:t.image,image_thumbnail:t.image_thumbnail},useLocal:r});let e=await s("SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[o,c]);if(await s("DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[o,t.id]),e&&e[0]){let s=e[0].db_tables_data.split("|");for(let e=0;e{e.exports=function(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=t;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=r;let i=t;return e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),{keyCookieName:a,csrfCookieName:i+=s}}},43290:(e,t,r)=>{let s=r(72583),a=r(67942);r(19760);let i=r(19760);r(27825);let n=r(67216),o=r(1231),l=r(53219),u=r(88896);async function c({dbContext:e,paradigm:t,dbFullName:r,tableName:c,data:d,tableSchema:p,duplicateColumnName:m,duplicateColumnValue:_,update:g,encryptionKey:f,encryptionSalt:h,useLocal:S}){let x=!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),y=S?u:x?n:o;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,m&&"string"==typeof m){let s=x?await y(`SELECT * FROM \`${c}\` WHERE \`${m}\`=?`,[_]):await y({paradigm:"Read Only",database:r,queryString:`SELECT * FROM \`${c}\` WHERE \`${m}\`=?`,queryValues:[_]});if(s?.[0]&&!g)return null;if(s&&s[0]&&g)return await i({dbContext:e,paradigm:t,dbFullName:r,tableName:c,data:d,tableSchema:p,encryptionKey:f,encryptionSalt:h,identifierColumnName:m,identifierValue:_||""})}let E=Object.keys(d),v=[],D=[];for(let e=0;ee.fieldName==t):null,n=i&&i[0]?i[0]:null;if(null==r||void 0==r||n?.dataType?.match(/int$/i)&&"string"==typeof r&&!r?.match(/./))continue;n?.encrypted&&(r=l({data:r,encryptionKey:f,encryptionSalt:h}),console.log("DSQL: Encrypted value =>",r)),n?.richText&&(r=s(r,a)),n?.pattern&&!new RegExp(n.pattern,n.patternFlags||"").test(r)&&(console.log("DSQL: Pattern not matched =>",r),r=""),v.push("`"+t+"`"),"object"==typeof r&&(r=JSON.stringify(r)),"number"==typeof r?D.push(String(r)):D.push(r)}catch(e){console.log("DSQL: Error in parsing data keys =>",e.message);continue}d?.date_created||(v.push("`date_created`"),D.push(Date())),d?.date_created_code||(v.push("`date_created_code`"),D.push(Date.now())),d?.date_updated||(v.push("`date_updated`"),D.push(Date())),d?.date_updated_code||(v.push("`date_updated_code`"),D.push(Date.now()));let b=`INSERT INTO \`${c}\` (${v.join(",")}) VALUES (${D.map(()=>"?").join(",")})`;return x?await y(b,D):await y({paradigm:t,database:r,queryString:b,queryValues:D})}e.exports=c},19760:(e,t,r)=>{let s=r(72583),a=r(67942),i=r(67216),n=r(1231),o=r(53219),l=r(88896);async function u({dbContext:e,paradigm:t,dbFullName:r,tableName:u,data:c,tableSchema:d,identifierColumnName:p,identifierValue:m,encryptionKey:_,encryptionSalt:g,useLocal:f}){if(!c||!Object.keys(c).length)return null;let h=!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),S=f?l:h?i:n,x=Object.keys(c),y=[],E=[];for(let e=0;ee.fieldName===t):null,n=i&&i[0]?i[0]:null;if(null==r||void 0==r)continue;n?.richText&&(r=s(r,a)),n?.encrypted&&(r=o({data:r,encryptionKey:_,encryptionSalt:g})),"object"==typeof r&&(r=JSON.stringify(r)),n?.pattern&&!new RegExp(n.pattern,n.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"}}),y.push(`\`${t}\`=?`),"number"==typeof r?E.push(String(r)):E.push(r)}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 v=`UPDATE ${u} SET ${y.join(",")} WHERE \`${p}\`=?`;return E.push(m),h?await S(v,E):await S({paradigm:t,database:r,queryString:v,queryValues:E})}e.exports=u},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"]}}},22373:(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",` + + + + +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},77463:(e,t,r)=>{let{scryptSync:s,createDecipheriv:a}=r(55511),{Buffer:i}=r(79428);e.exports=({encryptedString:e,encryptionKey:t,encryptionSalt:r})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=t||process.env.DSQL_ENCRYPTION_PASSWORD,o=r||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=a("aes-192-cbc",s(n,o,l),i.alloc(16,0));try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},53219:(e,t,r)=>{let{scryptSync:s,createCipheriv:a}=r(55511),{Buffer:i}=r(79428);e.exports=({data:e,encryptionKey:t,encryptionSalt:r})=>{if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let n=t||process.env.DSQL_ENCRYPTION_PASSWORD,o=r||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let u=a("aes-192-cbc",s(n,o,l),i.alloc(16,0));try{let t=u.update(e,"utf8","hex");return t+=u.final("hex")}catch(t){return console.log("Error in encrypting =>",t.message),e}}},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}}}},88896:(e,t,r)=>{let s=r(9973),a=r(31976);async function i(...e){let t=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()},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=i},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={}))},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,45],()=>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 new file mode 100644 index 0000000..9772cf6 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/create-account.js.nft.json @@ -0,0 +1 @@ +{"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/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/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/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2451.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4312.js","../chunks/4385.js","../chunks/45.js","../chunks/5134.js","../chunks/5212.js","../chunks/5264.js","../chunks/5421.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/7070.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/8540.js","../chunks/8613.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9621.js","../chunks/9732.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 new file mode 100644 index 0000000..d0adc66 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs.js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..bd392c0 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2451.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4312.js","../chunks/4385.js","../chunks/45.js","../chunks/5134.js","../chunks/5212.js","../chunks/5264.js","../chunks/5421.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/7070.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/8540.js","../chunks/8613.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9621.js","../chunks/9732.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 new file mode 100644 index 0000000..51a7371 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs/[page].js @@ -0,0 +1 @@ +"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:()=>E,unstable_getStaticPaths:()=>h,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"),h=(0,o.M)(s,"unstable_getStaticPaths"),E=(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")},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,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 new file mode 100644 index 0000000..ef3556f --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs/[page].js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..1492a68 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs/[page]/[sub-page].js @@ -0,0 +1 @@ +"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:()=>v,unstable_getStaticPaths:()=>h,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"),h=(0,a.M)(s,"unstable_getStaticPaths"),v=(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")},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,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 new file mode 100644 index 0000000..e98e97e --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs/[page]/[sub-page].js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..46c746e --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs/api-reference.html @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/api-reference.json b/dsql-app/.local_dist/server/pages/docs/api-reference.json new file mode 100644 index 0000000..3a0ba99 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs/api-reference.json @@ -0,0 +1 @@ +{"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":"

Access 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.

","content":"

Overview

All 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 Read Only API key. If you want to have full access to every aspect of your account, use the Full Access API key. Learn how to add API keys here.


Getting started

After 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.

npm install datasquirel


Fetching Data using the get method

The 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.

  • Using CURL:

    CURL  \n    https://datasquirel.com/api/query/get?db=db_name&query=SELECT+*+FROM+table_name \n-H \n    \"Authorization:READ_ONLY_API_KEY\";Content-Type:application/json
  • Using node module

    const datasquirel = require(\"datasquirel\");\n\ndatasquirel\n    .get({\n        db: \"test\",\n        key: process.env.DATASQUIREL_READ_ONLY_KEY,\n        query: \"SELECT title, slug, body FROM blog_posts\",\n    })\n    .then((response) => {\n        console.log(response);\n    });

The response from this method returns a JSON payload with two fields: success: which could be either true or false, and payload: which is an array of values when the operation is successfull, or anything from null to a string to an object with an error message. This is a sample of a successful response object:

{\n    success: true,\n    payload: [\n        {\n            id: 1,\n            title: \"Hello World\",\n            slug: \"hello-world\",\n            body: \"This is a test blog post.\",\n        },\n    ],\n}

A failed response could return any of three results:

  • A null payload.

    {\n    success: false,\n    payload: null\n}

  • An error string payload

    {\n    success: false,\n    payload: \"ERROR: no such table as 'blog_posts'\"\n}
  • An object payload containing an error field

    {\n    success: false,\n    payload: { error: \"MYSQL ERROR: syntax error in your sql\" }\n}

In each case, the success key refurns a value of false , meaning the query failed.


Using the post method

The post method contains the full spectrum of CRUD operations. And it works *only with the Full Access API key. The read only API key will not work for post methods.

  • Using CURL
    CURL --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\"`

  • Using our npm module

    const datasquirel = require(\"datasquirel\");\n\ndatasquirel\n    .post({\n        database: \"social_network\",\n        key: process.env.FULL_ACCESS_API_KEY,\n        query: \"UPDATE users SET name = 'John' WHERE id = 1\",\n    })\n    .then((response) => {\n        console.log(response);\n    });

The process yeilds simalar results, but with a slight difference: for operations like insert and update, the success field yeilds true while the payload field yeilds an object containing fields like 

{\n    success: true,\n    payload: {\n        serverStatus: 37,\n        affectedRows: 1,\n    }\n}

The post method can also take an object as the query instead of a string. Example:

const datasquirel = require(\"datasquirel\");\n\ndatasquirel\n    .post({\n        database: \"social_network\",\n        key: process.env.FULL_ACCESS_API_KEY,\n        query: {\n            action: \"update\",\n            table: \"users\",\n            data: {\n                name: \"John\",\n            },\n            identifierColumnName: \"id\",\n            identifierValue: 1,\n        },\n    })\n    .then((response) => {\n        console.log(response);\n    });

This yields the exact same result as before. Learn more about the post method here.

"}},"__N_SSG":true} \ 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 new file mode 100644 index 0000000..f05a793 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs/api-reference/get.html @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/api-reference/get.json b/dsql-app/.local_dist/server/pages/docs/api-reference/get.json new file mode 100644 index 0000000..519215e --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs/api-reference/get.json @@ -0,0 +1 @@ +{"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":"

Fetch data from your database quickly and securely.

","content":"

Overview

The 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.

Using CURL

CURL  \n    https://datasquirel.com/api/query/get?db=db_name&query=SELECT+*+FROM+table_name \n-H \n    \"Authorization:READ_ONLY_API_KEY\";Content-Type:application/json


Using node module

const datasquirel = require(\"datasquirel\");\n\ndatasquirel\n    .get({\n        db: \"test\",\n        key: process.env.DATASQUIREL_READ_ONLY_KEY,\n        query: \"SELECT title, slug, body FROM blog_posts\",\n    })\n    .then((response) => {\n        console.log(response);\n    });


The response

The response from this method returns a JSON payload with two fields: success: which could be either true or false, and payload: which is an array of values when the operation is successfull, or anything from null to a string to an object with an error message. This is a sample of a successful response object:

{\n    success: true,\n    payload: [\n        {\n            id: 1,\n            title: \"Hello World\",\n            slug: \"hello-world\",\n            body: \"This is a test blog post.\",\n        },\n    ],\n}

A failed response could return any of three results:

  • A null payload.

    {\n    success: false,\n    payload: null\n}
  • An error string payload

    {\n    success: false,\n    payload: \"ERROR: no such table as 'blog_posts'\"\n}
  • An object payload containing an error field

    {\n    success: false,\n    payload: { error: \"MYSQL ERROR: syntax error in your sql\" }\n}

In each case, the success key refurns a value of false , meaning the query failed.


"}},"__N_SSG":true} \ 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 new file mode 100644 index 0000000..268cb45 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs/api-reference/post.html @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/api-reference/post.json b/dsql-app/.local_dist/server/pages/docs/api-reference/post.json new file mode 100644 index 0000000..31a75cc --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs/api-reference/post.json @@ -0,0 +1 @@ +{"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":"

Full CRUD operations on your database using our feature-rich API integration.

","content":"

Overview

The post  method expands on the get method. It adds the ability to insert, update, and delete data, as well as add and delete images from your static files directories.

The post method contains the full spectrum of CRUD operations. And it works *only with the Full Access API key. The read only API key will not work for post methods.

Using CURL

CURL --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\"`


Using our npm module

const datasquirel = require(\"datasquirel\");\n\ndatasquirel\n    .post({\n        database: \"social_network\",\n        key: process.env.FULL_ACCESS_API_KEY,\n        query: \"UPDATE users SET name = 'John' WHERE id = 1\",\n    })\n    .then((response) => {\n        console.log(response);\n    });


The Response

The process yeilds simalar results, but with a slight difference: for operations like insert and update, the success field yeilds true while the payload field yeilds an object containing fields like 

{\n    success: true,\n    payload: {\n        serverStatus: 37,\n        affectedRows: 1,\n    }\n}


Post with object query

The post method can also take an object as the query instead of a string. Example:

const datasquirel = require(\"datasquirel\");\n\ndatasquirel\n    .post({\n        database: \"social_network\",\n        key: process.env.FULL_ACCESS_API_KEY,\n        query: {\n            action: \"update\",\n            table: \"users\",\n            data: {\n                name: \"John\",\n            },\n            identifierColumnName: \"id\",\n            identifierValue: 1,\n        },\n    })\n    .then((response) => {\n        console.log(response);\n    });

This yields the exact same result as before.


Adding media

In addition to the full CRUD operations the post 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 *must be in base64 format. You can use our npm client module to convert images and documents to base64 format.

Using our node module

const datasquirel = require(\"datasquirel\");\n\ndatasquirel.media\n    .uploadImage({\n        key: process.env.DATASQUIREL_FULL_ACCESS_API_KEY,\n        payload: {\n            imageData: \"--------- LONG BASE64 STRING ---------\",\n            imageName: \"sunflower\",\n            folder: \"flowers\", // Optional\n            mimeType: \"jpeg\", // Optional\n            thumbnailSize: 300, // Optional\n        },\n    })\n    .then((response) => {\n        console.log(response);\n    });
"}},"__N_SSG":true} \ 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 new file mode 100644 index 0000000..881fc3c --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs/database-reference.html @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/database-reference.json b/dsql-app/.local_dist/server/pages/docs/database-reference.json new file mode 100644 index 0000000..f3dfe62 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs/database-reference.json @@ -0,0 +1 @@ +{"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":"

Understanding SQL and its syntax.

","content":"

Overview

SQL (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.

"}},"__N_SSG":true} \ 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 new file mode 100644 index 0000000..2a6a1af --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs/database-reference/data-types.html @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/database-reference/data-types.json b/dsql-app/.local_dist/server/pages/docs/database-reference/data-types.json new file mode 100644 index 0000000..2874617 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs/database-reference/data-types.json @@ -0,0 +1 @@ +{"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":"

Relational database data types

","content":"

VARCHAR

The 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 VARCHAR(20) .

"}},"__N_SSG":true} \ 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 new file mode 100644 index 0000000..5bf260d --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs/database-reference/querying-data.html @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/database-reference/querying-data.json b/dsql-app/.local_dist/server/pages/docs/database-reference/querying-data.json new file mode 100644 index 0000000..e4fcdfe --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs/database-reference/querying-data.json @@ -0,0 +1 @@ +{"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":"

Using SQL to query data from your database

","content":"

Overview

Querying 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.

SELECT Keyword

SELECT * FROM blog_posts

The select keyword is the most basic and used keyword. In the example above, we're selecting every row(or entry) from the table blog_posts . 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:

SELECT title, body FROM blog_posts

This query only targets the title and body columns(or fields) in the blog_posts table.

"}},"__N_SSG":true} \ 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 new file mode 100644 index 0000000..71b5139 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs/getting-started.html @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/getting-started.json b/dsql-app/.local_dist/server/pages/docs/getting-started.json new file mode 100644 index 0000000..dd4fcf3 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs/getting-started.json @@ -0,0 +1 @@ +{"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":"

Introduction to datasquirel. Read the quick-start guide to get started with a new account.

","content":"

Overview

Datasquirel 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:

  1. A full-fledged SQL server that runs multiple isolated databases for different users, interfacing with an online Graphical user interface and a REST API integration.
  2. An 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.

GUI Reference

SQL through your bowser
Learn More

Datasquirel's Graphical User Interface aims to narrow down the the complexities of SQL to a simple user interface with columns, rows, and entries.

API Reference

SQL over the cloud using REST
Learn More

Datasquirel's API reference uses our NPM module datasquirel. This can be installed via npm:

npm install datasquirel

Learn more by reading the api documentation


Key Concepts

SQL

SQL 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.

Database

A 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.

CRUD

CRUD stands for Create, Read, Update, Delete. This is the basic spectrum of the capabilities of any database, and it is useful for managing data.

"}},"__N_SSG":true} \ 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 new file mode 100644 index 0000000..1428d1f --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs/gui-reference.html @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/gui-reference.json b/dsql-app/.local_dist/server/pages/docs/gui-reference.json new file mode 100644 index 0000000..39462e3 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs/gui-reference.json @@ -0,0 +1 @@ +{"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":"

Datasquirel Graphic User Interface provides a way to manage database instances from your browser

","content":"

A 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:

1. Create Account

Create a free account here


2. Create Database

Navigate to your Dashboard or Databases page. Click the \"Add Database\" button to add a new database.

On 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

Creating 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.

3. Add a table

Databases 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.

On each table form you have access to the table fields(or column titles). Each field contains a few options:

  • Field Name: Name of field(or column title)
  • Data Type: type of data to be stored on that field: See All Datatypes
  • Required: Choose whether the field must have a value or not
  • Default Value: Default value of field in the case no value is entered.
  • More: The \"More\" button contains options for encryption and foreign keys

After these fields are filled, click \"Add Field\". Add as much field as you need. These fields serve as column titles for your table.

After creating a table you now have access to the tables list.


4. Add an Entry

Select the newly created Table and on the designated table page click on \"Add New Table Entry\"

Fill 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.

"}},"__N_SSG":true} \ 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 new file mode 100644 index 0000000..b7c4477 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs/gui-reference/getting-started.html @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/gui-reference/getting-started.json b/dsql-app/.local_dist/server/pages/docs/gui-reference/getting-started.json new file mode 100644 index 0000000..cf91b6f --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs/gui-reference/getting-started.json @@ -0,0 +1 @@ +{"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":"

Get started creating databases and making entries.

","content":"

Overview

Datasquirel 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.


1. Create Account

Create a free account here


2. Create Database

Navigate to your Dashboard or Databases page. Click the \"Add Database\" button to add a new database.

On 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

Creating 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.

3. Add a table

Databases 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.

On each table form you have access to the table fields(or column titles). Each field contains a few options:

  • Field Name: Name of field(or column title)
  • Data Type: type of data to be stored on that field: See All Datatypes
  • Required: Choose whether the field must have a value or not
  • Default Value: Default value of field in the case no value is entered.
  • More: The \"More\" button contains options for encryption and foreign keys

After these fields are filled, click \"Add Field\". Add as much field as you need. These fields serve as column titles for your table.

After creating a table you now have access to the tables list.


4. Add an Entry

Select the newly created Table and on the designated table page click on \"Add New Table Entry\"

Fill 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.

"}},"__N_SSG":true} \ 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 new file mode 100644 index 0000000..5d698f2 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs/gui-reference/upload-media.html @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/gui-reference/upload-media.json b/dsql-app/.local_dist/server/pages/docs/gui-reference/upload-media.json new file mode 100644 index 0000000..fa20385 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs/gui-reference/upload-media.json @@ -0,0 +1 @@ +{"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":"

Datasquirel comes baked with an integrated static file directory. This makes it easy to upload public and private files and access it from anywhere.

","content":"

Overview

Media 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.

Adding Media

Every 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:

1. Navigate to \"Media\" from your dashboard

If 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 (test  in this case), and it will contain the image you uploaded when you created the database. 

2. Select Media files

To add a new media, click on Add Media button. This will open a modal for you to choose which type of media you want to add.

There are two options available at this time: Images, and Files. 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.

3. Edit selected files and upload files

The next modal gives you the option to further change attributes of the images before uploading. These attributes include the image name, and privacy. Private images can only be accessed via out API using your Read Only or Full Access API keys.

After 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 1800px, 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 _thumbnail added to the original image's name.

After 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.


Adding Folders

Adding 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 Media admin page and click \"Add Folder\".

Add a folder name and click \"Add New Folder\". Your new folder is now ready to go. Click on the new folder and you can upload images and files to that folder.

"}},"__N_SSG":true} \ 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 new file mode 100644 index 0000000..5afdb2b --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs/quick-start.html @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/quick-start.json b/dsql-app/.local_dist/server/pages/docs/quick-start.json new file mode 100644 index 0000000..a8ed6b9 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs/quick-start.json @@ -0,0 +1 @@ +{"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":"

Start saving and retrieving data now. Set up and start deploying in minutes.

","content":"

Starting up your Datasquirel instance

To 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:

1. Create Account

Create a free account here


2. Create Database

Navigate to your Dashboard or Databases page. Click the \"Add Database\" button to add a new database.

On 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

Creating 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.

3. Add a table

Databases 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.

On each table form you have access to the table fields(or column titles). Each field contains a few options:

  • Field Name: Name of field(or column title)
  • Data Type: type of data to be stored on that field: See All Datatypes
  • Required: Choose whether the field must have a value or not
  • Default Value: Default value of field in the case no value is entered.
  • More: The \"More\" button contains options for encryption and foreign keys

After these fields are filled, click \"Add Field\". Add as much field as you need. These fields serve as column titles for your table.

After creating a table you now have access to the tables list.


4. Add an Entry

Select the newly created Table and on the designated table page click on \"Add New Table Entry\"

Fill 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.


Fetching Data

to start fetching data from your datasquirel account, you need to go through 3 steps:

1. Create an API key

Your api key is your gateway to all your data. There are two sets of API keys available for use: Read Only API keys, and Full Access API 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.

To create an API key, follow these steps:

  • Login to your admin dashboard and navigate to \"API keys\" page

  • Click 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).

  • Once your API key is created, copy the API key by clicking \"Copy API key\". Keep this key safe and secured.


2. Use your API key to make a request

After creating your API key, then comes the backend section.

  • First add the datasquirel package via NPM

    npm install datasquirel
  • Next import the datasquirel module into your project, choose the database you will be querying, add your API key, and then run the query.

    const datasquirel = require(\"datasquirel\");\n\ndatasquirel\n    .get({\n        db: \"test\",\n        key: process.env.DATASQUIREL_READ_ONLY_KEY,\n        query: \"SELECT title, slug, body FROM blog_posts\",\n    })\n    .then((response) => {\n        console.log(response);\n    });

Read our API Reference for more.

"}},"__N_SSG":true} \ 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 new file mode 100644 index 0000000..af4aa8b --- /dev/null +++ b/dsql-app/.local_dist/server/pages/email-verification.js @@ -0,0 +1,16 @@ +"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:()=>N,default:()=>q,getServerSideProps:()=>A,getStaticPaths:()=>D,getStaticProps:()=>b,reportWebVitals:()=>k,routeModule:()=>I,unstable_getServerProps:()=>O,unstable_getServerSideProps:()=>L,unstable_getStaticParams:()=>M,unstable_getStaticPaths:()=>w,unstable_getStaticProps:()=>R});var s={};r.r(s),r.d(s,{default:()=>P,getServerSideProps:()=>j});var i=r(63865),n=r(9455),a=r(30671),o=r(49407),l=r(68268),u=r(8732),c=r(82015),p=r.n(c);r(27912);var m=r(20048),d=r.n(m),x=r(32415),f=r(63715),g=r(77463),S=r.n(g),h=r(71457),y=r(22373),_=r.n(y),v=r(67216),E=r.n(v);function P({user:e,verified:t}){let[r,s]=p().useState(!1),[i,n]=p().useState(null);return t?(0,u.jsx)(h.A,{head:(0,u.jsxs)(p().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)(p().Fragment,{children:(0,u.jsx)(h.A,{head:(0,u.jsxs)(p().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 j({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=S()({encryptedString:n.toString()});if(e)try{s=JSON.parse(e)}catch(e){_()({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 E()(`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 E()(`UPDATE users SET verification_status='1' WHERE id='${s.id}'`),i=!0)}}catch(e){return _()({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 q=(0,a.M)(s,"default"),b=(0,a.M)(s,"getStaticProps"),D=(0,a.M)(s,"getStaticPaths"),A=(0,a.M)(s,"getServerSideProps"),N=(0,a.M)(s,"config"),k=(0,a.M)(s,"reportWebVitals"),R=(0,a.M)(s,"unstable_getStaticProps"),w=(0,a.M)(s,"unstable_getStaticPaths"),M=(0,a.M)(s,"unstable_getStaticParams"),O=(0,a.M)(s,"unstable_getServerProps"),L=(0,a.M)(s,"unstable_getServerSideProps"),I=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})},20048:(e,t,r)=>{r(81630);let s=r(67216),i=r(77463),n=r(29021),a=r(6505);async function o(e,t,r,o){let{keyCookieName:l,csrfCookieName:u}=a();if(!e.cookies?.[l]?.match(/./))return null;let c=i({encryptedString:e.cookies[l]});if(!c)return null;let p=JSON.parse(c);if(!p.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let m=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!m)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!n.existsSync(`${m}/${p.csrf_k}`))return null;if(0==p.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=o},6505:e=>{e.exports=function(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=t;e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),i+=r;let n=t;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:i,csrfCookieName:n+=s}}},22373:(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",` + + + + +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},77463:(e,t,r)=>{let{scryptSync:s,createDecipheriv:i}=r(55511),{Buffer:n}=r(79428);e.exports=({encryptedString:e,encryptionKey:t,encryptionSalt:r})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=t||process.env.DSQL_ENCRYPTION_PASSWORD,o=r||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=i("aes-192-cbc",s(a,o,l),n.alloc(16,0));try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},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 new file mode 100644 index 0000000..c403b03 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/email-verification.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2451.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4312.js","../chunks/4385.js","../chunks/45.js","../chunks/5134.js","../chunks/5212.js","../chunks/5264.js","../chunks/5421.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/7070.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/8540.js","../chunks/8613.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9621.js","../chunks/9732.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 new file mode 100644 index 0000000..b5d22dc --- /dev/null +++ b/dsql-app/.local_dist/server/pages/index.html @@ -0,0 +1 @@ +
\ 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 new file mode 100644 index 0000000..f3d0b8d --- /dev/null +++ b/dsql-app/.local_dist/server/pages/index.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2451.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4312.js","../chunks/4385.js","../chunks/45.js","../chunks/5134.js","../chunks/5212.js","../chunks/5264.js","../chunks/5421.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/7070.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/8540.js","../chunks/8613.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9621.js","../chunks/9732.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 new file mode 100644 index 0000000..7cf79b5 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/login.js @@ -0,0 +1 @@ +"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:()=>E,getServerSideProps:()=>A,getStaticPaths:()=>D,getStaticProps:()=>N,reportWebVitals:()=>I,routeModule:()=>k,unstable_getServerProps:()=>C,unstable_getServerSideProps:()=>T,unstable_getStaticParams:()=>R,unstable_getStaticPaths:()=>O,unstable_getStaticProps:()=>M});var s={};r.r(s),r.d(s,{default:()=>b,getServerSideProps:()=>w});var i=r(63865),a=r(9455),n=r(30671),o=r(49407),l=r(68268),u=r(8732),c=r(82015),p=r.n(c),m=r(27912),d=r.n(m),x=r(76601),f=r(63715);async function g({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 h=r(32415),y=r(72414);let v=p().createContext({});function S({user:e,query:t}){let[r,s]=(0,c.useState)(null),[i,a]=(0,c.useState)(!1);return(0,u.jsxs)(v.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)(h.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=>{g({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 j=r(20048),_=r.n(j),P=r(93353),q=r(55966);function b(e){return e.query.invite&&e.user?(0,u.jsx)(q.A,{}):(0,u.jsxs)(p().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)(P.A,{}),(0,u.jsx)("hr",{}),(0,u.jsx)("h3",{className:"m-0 text-lg font-semibold",children:"Login to your account"}),(0,u.jsx)(S,{user:e.user,query:e.query})]})})]})}async function w({req:e,res:t,query:r}){let s=await _()(e,t);return s?{redirect:{destination:"/admin",permanent:!1}}:{props:{user:s,query:r}}}let E=(0,n.M)(s,"default"),N=(0,n.M)(s,"getStaticProps"),D=(0,n.M)(s,"getStaticPaths"),A=(0,n.M)(s,"getServerSideProps"),L=(0,n.M)(s,"config"),I=(0,n.M)(s,"reportWebVitals"),M=(0,n.M)(s,"unstable_getStaticProps"),O=(0,n.M)(s,"unstable_getStaticPaths"),R=(0,n.M)(s,"unstable_getStaticParams"),C=(0,n.M)(s,"unstable_getServerProps"),T=(0,n.M)(s,"unstable_getServerSideProps"),k=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(77463),a=r(29021),n=r(6505);async function o(e,t,r,o){let{keyCookieName:l,csrfCookieName:u}=n();if(!e.cookies?.[l]?.match(/./))return null;let c=i({encryptedString:e.cookies[l]});if(!c)return null;let p=JSON.parse(c);if(!p.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let m=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!m)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!a.existsSync(`${m}/${p.csrf_k}`))return null;if(0==p.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=o},6505:e=>{e.exports=function(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=t;e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),i+=r;let a=t;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:i,csrfCookieName:a+=s}}},77463:(e,t,r)=>{let{scryptSync:s,createDecipheriv:i}=r(55511),{Buffer:a}=r(79428);e.exports=({encryptedString:e,encryptionKey:t,encryptionSalt:r})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=t||process.env.DSQL_ENCRYPTION_PASSWORD,o=r||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=i("aes-192-cbc",s(n,o,l),a.alloc(16,0));try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},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 new file mode 100644 index 0000000..c403b03 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/login.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2451.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4312.js","../chunks/4385.js","../chunks/45.js","../chunks/5134.js","../chunks/5212.js","../chunks/5264.js","../chunks/5421.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/7070.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/8540.js","../chunks/8613.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9621.js","../chunks/9732.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 new file mode 100644 index 0000000..577d538 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/logout.js @@ -0,0 +1 @@ +"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:()=>b,default:()=>q,getServerSideProps:()=>j,getStaticPaths:()=>E,getStaticProps:()=>v,reportWebVitals:()=>D,routeModule:()=>N,unstable_getServerProps:()=>I,unstable_getServerSideProps:()=>M,unstable_getStaticParams:()=>O,unstable_getStaticPaths:()=>L,unstable_getStaticProps:()=>A});var s={};r.r(s),r.d(s,{default:()=>y,getServerSideProps:()=>P});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),d=r.n(m),x=r(29021),g=r.n(x);r(63715),r(76601);var f=r(32415),h=r(6505),S=r.n(h);let _=r(20048);function y({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)(d(),{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)(f.A,{position:"relative",width:"20px"})]})})]})}async function P({req:e,res:t,query:r}){let s=await _(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}`)}}let{keyCookieName:i,csrfCookieName:o}=S()();return t.setHeader("Set-Cookie",[`${i}=none;max-age=0`,`${o}=null;max-age=0`]),{props:{user:s,logged_out:!0,query:r}}}let q=(0,n.M)(s,"default"),v=(0,n.M)(s,"getStaticProps"),E=(0,n.M)(s,"getStaticPaths"),j=(0,n.M)(s,"getServerSideProps"),b=(0,n.M)(s,"config"),D=(0,n.M)(s,"reportWebVitals"),A=(0,n.M)(s,"unstable_getStaticProps"),L=(0,n.M)(s,"unstable_getStaticPaths"),O=(0,n.M)(s,"unstable_getStaticParams"),I=(0,n.M)(s,"unstable_getServerProps"),M=(0,n.M)(s,"unstable_getServerSideProps"),N=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(77463),o=r(29021),n=r(6505);async function a(e,t,r,a){let{keyCookieName:u,csrfCookieName:l}=n();if(!e.cookies?.[u]?.match(/./))return null;let c=i({encryptedString:e.cookies[u]});if(!c)return null;let p=JSON.parse(c);if(!p.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let m=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!m)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!o.existsSync(`${m}/${p.csrf_k}`))return null;if(0==p.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=a},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)}}},6505:e=>{e.exports=function(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=t;e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),i+=r;let o=t;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:i,csrfCookieName:o+=s}}},77463:(e,t,r)=>{let{scryptSync:s,createDecipheriv:i}=r(55511),{Buffer:o}=r(79428);e.exports=({encryptedString:e,encryptionKey:t,encryptionSalt:r})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=t||process.env.DSQL_ENCRYPTION_PASSWORD,a=r||process.env.DSQL_ENCRYPTION_SALT,u=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=i("aes-192-cbc",s(n,a,u),o.alloc(16,0));try{let t=l.update(e,"hex","utf8");return t+=l.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},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 new file mode 100644 index 0000000..c403b03 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/logout.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2451.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4312.js","../chunks/4385.js","../chunks/45.js","../chunks/5134.js","../chunks/5212.js","../chunks/5264.js","../chunks/5421.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/7070.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/8540.js","../chunks/8613.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9621.js","../chunks/9732.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/privacy.html b/dsql-app/.local_dist/server/pages/privacy.html new file mode 100644 index 0000000..f93741f --- /dev/null +++ b/dsql-app/.local_dist/server/pages/privacy.html @@ -0,0 +1 @@ +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 new file mode 100644 index 0000000..f3e8c38 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/privacy.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/redirect.html b/dsql-app/.local_dist/server/pages/redirect.html new file mode 100644 index 0000000..28c4110 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/redirect.html @@ -0,0 +1 @@ +
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 new file mode 100644 index 0000000..f3e8c38 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/redirect.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/reset-password.js b/dsql-app/.local_dist/server/pages/reset-password.js new file mode 100644 index 0000000..ada7c6e --- /dev/null +++ b/dsql-app/.local_dist/server/pages/reset-password.js @@ -0,0 +1,16 @@ +"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:()=>I,default:()=>D,getServerSideProps:()=>N,getStaticPaths:()=>R,getStaticProps:()=>A,reportWebVitals:()=>L,routeModule:()=>k,unstable_getServerProps:()=>T,unstable_getServerSideProps:()=>$,unstable_getStaticParams:()=>C,unstable_getStaticPaths:()=>O,unstable_getStaticProps:()=>M});var s={};r.r(s),r.d(s,{ResetPasswordContext:()=>E,default:()=>j,getServerSideProps:()=>b});var i=r(63865),n=r(9455),a=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(77463),_=r.n(y),P=r(22373),w=r.n(P),v=r(27825),q=r.n(v);let E=p().createContext({});function j(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:"/"})]}),[n,a]=p().useState(!1),[o,u]=p().useState(!1);return(0,l.jsx)(m.A,{head:i,user:e.user,children:(0,l.jsx)(E.Provider,{value:{user:e.user},children:(0,l.jsx)("main",{children:(0,l.jsxs)("section",{children:[n&&(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=>{a(!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(()=>{a(!1)},500);return}if(i){window.alert("Passwords don't match"),setTimeout(()=>{a(!1)},500);return}(0,h.A)(`/api/resetPassword?email=${t}&password=${s}`).then(e=>{setTimeout(()=>{a(!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(`^${q().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=_()({encryptedString:r.token.toString()}),t=JSON.parse(e||"");if(Date.now()-t.dateCode>36e5)return{redirect:{destination:"/",permanent:!1}};i=t.email}catch(e){return w()({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 D=(0,a.M)(s,"default"),A=(0,a.M)(s,"getStaticProps"),R=(0,a.M)(s,"getStaticPaths"),N=(0,a.M)(s,"getServerSideProps"),I=(0,a.M)(s,"config"),L=(0,a.M)(s,"reportWebVitals"),M=(0,a.M)(s,"unstable_getStaticProps"),O=(0,a.M)(s,"unstable_getStaticPaths"),C=(0,a.M)(s,"unstable_getStaticParams"),T=(0,a.M)(s,"unstable_getServerProps"),$=(0,a.M)(s,"unstable_getServerSideProps"),k=new i.PagesRouteModule({definition:{kind:n.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)},20048:(e,t,r)=>{r(81630);let s=r(67216),i=r(77463),n=r(29021),a=r(6505);async function o(e,t,r,o){let{keyCookieName:u,csrfCookieName:l}=a();if(!e.cookies?.[u]?.match(/./))return null;let c=i({encryptedString:e.cookies[u]});if(!c)return null;let p=JSON.parse(c);if(!p.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let m=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!m)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!n.existsSync(`${m}/${p.csrf_k}`))return null;if(0==p.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=o},6505:e=>{e.exports=function(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=t;e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),i+=r;let n=t;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:i,csrfCookieName:n+=s}}},22373:(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 u=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",i),s.appendFileSync("./.tmp/error.log",` + + + + +${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},77463:(e,t,r)=>{let{scryptSync:s,createDecipheriv:i}=r(55511),{Buffer:n}=r(79428);e.exports=({encryptedString:e,encryptionKey:t,encryptionSalt:r})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=t||process.env.DSQL_ENCRYPTION_PASSWORD,o=r||process.env.DSQL_ENCRYPTION_SALT,u=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=i("aes-192-cbc",s(a,o,u),n.alloc(16,0));try{let t=l.update(e,"hex","utf8");return t+=l.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},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")},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 new file mode 100644 index 0000000..ccc5aa3 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/reset-password.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2451.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4312.js","../chunks/4385.js","../chunks/45.js","../chunks/5134.js","../chunks/5212.js","../chunks/5264.js","../chunks/5421.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/7070.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/8540.js","../chunks/8613.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9621.js","../chunks/9732.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 new file mode 100644 index 0000000..717af74 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/send-password-reset-link.js @@ -0,0 +1 @@ +"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:()=>A,default:()=>q,getServerSideProps:()=>D,getStaticPaths:()=>b,getStaticProps:()=>E,reportWebVitals:()=>N,routeModule:()=>C,unstable_getServerProps:()=>L,unstable_getServerSideProps:()=>I,unstable_getStaticParams:()=>k,unstable_getStaticPaths:()=>M,unstable_getStaticProps:()=>w});var r={};s.r(r),s.d(r,{SendPassResetContext:()=>v,default:()=>P,getServerSideProps:()=>j});var i=s(63865),a=s(9455),n=s(30671),o=s(49407),l=s(68268),u=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),_=s(49240);function y({message:e}){return(0,u.jsxs)("div",{className:"info gray",children:[(0,u.jsx)(_.A,{fontSize:"small",color:"inherit",className:"opacity-50 text-gray-600"}),(0,u.jsx)("span",{className:"font-normal",children:e})]})}let v=p().createContext({});function P(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,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("title",{children:t}),(0,u.jsx)("meta",{name:"description",content:s}),(0,u.jsx)(d.A,{pageTitle:t,pageDescription:s,pagePathname:"/"})]}),[i,a]=p().useState(!1),[n,o]=p().useState(!1);return(0,u.jsx)(m.A,{head:r,user:e.user,children:(0,u.jsx)(v.Provider,{value:{user:e.user},children:(0,u.jsx)("main",{children:(0,u.jsxs)("section",{children:[i&&(0,u.jsx)(x.A,{}),n?(0,u.jsx)(S.A,{message:"Email Sent. Please check your email address and follow the link provided",className:"whitespace-nowrap"}):(0,u.jsx)("div",{className:"paper",children:(0,u.jsxs)("div",{className:"max-w-xl flex-col items-stretch",children:[(0,u.jsx)("h1",{className:"m-0 text-4xl",children:"Send Password Reset Link"}),(0,u.jsx)("span",{children:"Please enter your email address to receive a password reset link"}),(0,u.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,u.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,u.jsx)("button",{children:"Send password reset Email"}),(0,u.jsx)(y,{message:"Please note that this link will expire after 1 hour"})]})]})})]})})})})}async function j({req:e,res:t}){let s=await f()(e,t);return s?.social_login?{redirect:{destination:"/",permanent:!1}}:{props:{user:s}}}let q=(0,n.M)(r,"default"),E=(0,n.M)(r,"getStaticProps"),b=(0,n.M)(r,"getStaticPaths"),D=(0,n.M)(r,"getServerSideProps"),A=(0,n.M)(r,"config"),N=(0,n.M)(r,"reportWebVitals"),w=(0,n.M)(r,"unstable_getStaticProps"),M=(0,n.M)(r,"unstable_getStaticPaths"),k=(0,n.M)(r,"unstable_getStaticParams"),L=(0,n.M)(r,"unstable_getServerProps"),I=(0,n.M)(r,"unstable_getServerSideProps"),C=new i.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/send-password-reset-link",pathname:"/send-password-reset-link",bundlePath:"",filename:""},components:{App:l.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(77463),a=s(29021),n=s(6505);async function o(e,t,s,o){let{keyCookieName:l,csrfCookieName:u}=n();if(!e.cookies?.[l]?.match(/./))return null;let c=i({encryptedString:e.cookies[l]});if(!c)return null;let p=JSON.parse(c);if(!p.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let m=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!m)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!a.existsSync(`${m}/${p.csrf_k}`))return null;if(0==p.verification_status&&!s){let e=await r(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=o},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")},6505:e=>{e.exports=function(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",r=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=t;e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),i+=s;let a=t;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:i,csrfCookieName:a+=r}}},77463:(e,t,s)=>{let{scryptSync:r,createDecipheriv:i}=s(55511),{Buffer:a}=s(79428);e.exports=({encryptedString:e,encryptionKey:t,encryptionSalt:s})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=t||process.env.DSQL_ENCRYPTION_PASSWORD,o=s||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=i("aes-192-cbc",r(n,o,l),a.alloc(16,0));try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},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 new file mode 100644 index 0000000..c403b03 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/send-password-reset-link.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2451.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4312.js","../chunks/4385.js","../chunks/45.js","../chunks/5134.js","../chunks/5212.js","../chunks/5264.js","../chunks/5421.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/7070.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/8540.js","../chunks/8613.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9621.js","../chunks/9732.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 new file mode 100644 index 0000000..e34458c --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su.js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..c403b03 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2451.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4312.js","../chunks/4385.js","../chunks/45.js","../chunks/5134.js","../chunks/5212.js","../chunks/5264.js","../chunks/5421.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/7070.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/8540.js","../chunks/8613.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9621.js","../chunks/9732.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 new file mode 100644 index 0000000..ecf0ad6 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/backups.js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..6cfeb7c --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/backups.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..11e5b24 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/console.js @@ -0,0 +1 @@ +(()=>{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 new file mode 100644 index 0000000..6020124 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/console.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..b4b9ffb --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/docs.js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..ef3556f --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/docs.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..7413d20 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/docs/create-page.js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..922bf04 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/docs/create-page.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..dadc592 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/docs/edit-page.js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..922bf04 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/docs/edit-page.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..18243eb --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/docs/pages.js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..e98e97e --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/docs/pages.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..1835ef3 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/docs/pages/[id].js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..1218ba8 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/docs/pages/[id].js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/7070.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9621.js","../../../../chunks/9732.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 new file mode 100644 index 0000000..0b211ca --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/envar.js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..6cfeb7c --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/envar.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..602a25c --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/error-logs.js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..6cfeb7c --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/error-logs.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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..6afb60c --- /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:String(process.env.DSQL_DB_TARGET_IP_ADDRESS),port:3306,primary:!0,loadBalanced:!0,users:[{host:String(process.env.DSQL_DB_HOST),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..71ded0e --- /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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..bdd2694 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/login.js @@ -0,0 +1 @@ +"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:()=>P,getServerSideProps:()=>E,getStaticPaths:()=>q,getStaticProps:()=>j,reportWebVitals:()=>D,routeModule:()=>M,unstable_getServerProps:()=>N,unstable_getServerSideProps:()=>I,unstable_getStaticParams:()=>L,unstable_getStaticPaths:()=>A,unstable_getStaticProps:()=>w});var r={};s.r(r),s.d(r,{default:()=>_,getServerSideProps:()=>y});var i=s(63865),n=s(9455),o=s(30671),a=s(49407),l=s(68268),u=s(8732);s(82015);var c=s(27912),p=s.n(c),m=s(93615),d=s.n(m),x=s(63715),f=s(20048),h=s.n(f),g=s(72377),S=s.n(g);function _({user:e}){let t=(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("title",{children:"Super User Login | Datasquirel"}),(0,u.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,u.jsxs)("section",{className:"w-full h-screen justify-center items-center",children:[(0,u.jsx)(p(),{children:t}),(0,u.jsxs)("div",{className:"p-6 bg-slate-100 rounded w-full max-w-2xl flex flex-col items-center",children:[(0,u.jsx)(v,{}),(0,u.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,u.jsx)("input",{type:"text",name:"email",id:"email",placeholder:"Email Address"}),(0,u.jsx)("input",{type:"password",name:"password",id:"password",placeholder:"Password"}),(0,u.jsx)("input",{type:"password",name:"auth-key",id:"auth-key",placeholder:"Auth Key"}),(0,u.jsx)("button",{children:"Login"})]})]})]})}async function y({req:e,res:t,query:s}){let r=await h()(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 v(){return(0,u.jsxs)("div",{className:"flex flex-col items-center gap-2 text-center",children:[(0,u.jsx)("h1",{className:"text-2xl text-center m-0",children:"Super User Login"}),(0,u.jsxs)("span",{children:["This area is reserved only for the owner of this Admin. To login use the info in your ",(0,u.jsx)("b",{children:"dsql.env"})," File. Use the env variables as follows. Your ",(0,u.jsx)("i",{children:"email address"})," is the same address used to register the first user account"]}),(0,u.jsxs)("ul",{className:"p-0",children:[(0,u.jsxs)("li",{children:["Password:"," ",(0,u.jsx)("i",{className:"info small w-auto inline",children:"dsql.env::"}),(0,u.jsx)("b",{children:" DSQL_USER_KEY"})]}),(0,u.jsxs)("li",{children:["Auth Key:"," ",(0,u.jsx)("i",{className:"info small w-auto inline",children:"dsql.env::"}),(0,u.jsx)("b",{children:" DSQL_SPECIAL_KEY"})]})]})]})}let P=(0,o.M)(r,"default"),j=(0,o.M)(r,"getStaticProps"),q=(0,o.M)(r,"getStaticPaths"),E=(0,o.M)(r,"getServerSideProps"),b=(0,o.M)(r,"config"),D=(0,o.M)(r,"reportWebVitals"),w=(0,o.M)(r,"unstable_getStaticProps"),A=(0,o.M)(r,"unstable_getStaticPaths"),L=(0,o.M)(r,"unstable_getStaticParams"),N=(0,o.M)(r,"unstable_getServerProps"),I=(0,o.M)(r,"unstable_getServerSideProps"),M=new i.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/su/login",pathname:"/su/login",bundlePath:"",filename:""},components:{App:l.default,Document:a.default},userland:r})},93615:(e,t,s)=>{let{IncomingMessage:r}=s(81630),i=s(77463),n=s(6505);e.exports=async function(e){let{keyCookieName:t,csrfCookieName:s}=n(),r=`${t}_su`;if(!e.cookies?.[r])return console.log("No auth key cookie found"),null;let o=i({encryptedString:e.cookies[r]});if(!o)return console.log("No user payload found"),null;let a=JSON.parse(o);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}},20048:(e,t,s)=>{s(81630);let r=s(67216),i=s(77463),n=s(29021),o=s(6505);async function a(e,t,s,a){let{keyCookieName:l,csrfCookieName:u}=o();if(!e.cookies?.[l]?.match(/./))return null;let c=i({encryptedString:e.cookies[l]});if(!c)return null;let p=JSON.parse(c);if(!p.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let m=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!m)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!n.existsSync(`${m}/${p.csrf_k}`))return null;if(0==p.verification_status&&!s){let e=await r(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=a},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"}},6505:e=>{e.exports=function(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",r=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=t;e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),i+=s;let n=t;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:i,csrfCookieName:n+=r}}},77463:(e,t,s)=>{let{scryptSync:r,createDecipheriv:i}=s(55511),{Buffer:n}=s(79428);e.exports=({encryptedString:e,encryptionKey:t,encryptionSalt:s})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=t||process.env.DSQL_ENCRYPTION_PASSWORD,a=s||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=i("aes-192-cbc",r(o,a,l),n.alloc(16,0));try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},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 new file mode 100644 index 0000000..ef3556f --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/login.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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..ab881b7 --- /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:()=>v,unstable_getServerSideProps:()=>A,unstable_getStaticParams:()=>S,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"),S=(0,n.M)(l,"unstable_getStaticParams"),v=(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:String(process.env.DSQL_DB_TARGET_IP_ADDRESS),port:3306,primary:!0,loadBalanced:!0,users:[{host:String(process.env.DSQL_DB_HOST),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:()=>v,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),S=e([d]);function v({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=(S.then?(await S)():S)[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..b68a6c1 --- /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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..dd09725 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/users.js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..ef3556f --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/users.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2451.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4312.js","../../chunks/4385.js","../../chunks/45.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5264.js","../../chunks/5421.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/7070.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/8540.js","../../chunks/8613.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9621.js","../../chunks/9732.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 new file mode 100644 index 0000000..b979281 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/users/[single].js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..fad81e5 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/users/[single].js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..b9b9b9f --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/users/new.js @@ -0,0 +1 @@ +"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 new file mode 100644 index 0000000..39422d4 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/users/new.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2451.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4312.js","../../../chunks/4385.js","../../../chunks/45.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5264.js","../../../chunks/5421.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/7070.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/8540.js","../../../chunks/8613.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9621.js","../../../chunks/9732.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 new file mode 100644 index 0000000..97e16d6 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/terms.html @@ -0,0 +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 diff --git a/dsql-app/.local_dist/server/pages/terms.js.nft.json b/dsql-app/.local_dist/server/pages/terms.js.nft.json new file mode 100644 index 0000000..f3e8c38 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/terms.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/unsubscribe.js b/dsql-app/.local_dist/server/pages/unsubscribe.js new file mode 100644 index 0000000..9e0e267 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/unsubscribe.js @@ -0,0 +1 @@ +"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,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}}})},76048:(e,t,s)=>{s.r(t),s.d(t,{config:()=>j,default:()=>P,getServerSideProps:()=>q,getStaticPaths:()=>E,getStaticProps:()=>v,reportWebVitals:()=>D,routeModule:()=>k,unstable_getServerProps:()=>L,unstable_getServerSideProps:()=>O,unstable_getStaticParams:()=>M,unstable_getStaticPaths:()=>N,unstable_getStaticProps:()=>A});var r={};s.r(r),s.d(r,{default:()=>b,getServerSideProps:()=>y});var i=s(63865),n=s(9455),a=s(30671),o=s(49407),u=s(68268),l=s(8732),c=s(82015),p=s.n(c),m=s(32415),x=s(87472),d=s(20048),h=s.n(d),f=s(63715),g=s(71457),S=s(67216),_=s.n(S);function b({user:e,email:t,productionEnvironment:s,existingAlerts:r}){let i="Unsubscribe | Datasquirel",n="Unsubscribe from email alerts",a=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:i}),(0,l.jsx)("meta",{name:"description",content:n}),(0,l.jsx)(x.A,{pageTitle:i,pageDescription:n,pagePathname:"/unsubscribe"})]}),[o,u]=p().useState(!1);return(0,l.jsx)(p().Fragment,{children:(0,l.jsx)(g.A,{head:a,user:e,productionEnvironment:s,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:s=>{s.preventDefault(),u(!0);let r=s.target;(0,f.A)("/api/unsubscribe",{method:"post",body:{email:t,alerts:r.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:!!r,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 y({req:e,res:t,query:s}){let r=process.env.DSQL_HOST_ENV,i=await h()(e,t),n=s.email?s.email:i?.email?i.email:null,a=await _()(`SELECT email FROM unsubscribes WHERE email='${n}' AND type='alerts'`);return{props:{user:i,email:n,productionEnvironment:r,existingAlerts:!a[0]}}}let P=(0,a.M)(r,"default"),v=(0,a.M)(r,"getStaticProps"),E=(0,a.M)(r,"getStaticPaths"),q=(0,a.M)(r,"getServerSideProps"),j=(0,a.M)(r,"config"),D=(0,a.M)(r,"reportWebVitals"),A=(0,a.M)(r,"unstable_getStaticProps"),N=(0,a.M)(r,"unstable_getStaticPaths"),M=(0,a.M)(r,"unstable_getStaticParams"),L=(0,a.M)(r,"unstable_getServerProps"),O=(0,a.M)(r,"unstable_getServerSideProps"),k=new i.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/unsubscribe",pathname:"/unsubscribe",bundlePath:"",filename:""},components:{App:u.default,Document:o.default},userland:r})},20048:(e,t,s)=>{s(81630);let r=s(67216),i=s(77463),n=s(29021),a=s(6505);async function o(e,t,s,o){let{keyCookieName:u,csrfCookieName:l}=a();if(!e.cookies?.[u]?.match(/./))return null;let c=i({encryptedString:e.cookies[u]});if(!c)return null;let p=JSON.parse(c);if(!p.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let m=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!m)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!n.existsSync(`${m}/${p.csrf_k}`))return null;if(0==p.verification_status&&!s){let e=await r(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=o},6505:e=>{e.exports=function(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",r=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=t;e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),i+=s;let n=t;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:i,csrfCookieName:n+=r}}},77463:(e,t,s)=>{let{scryptSync:r,createDecipheriv:i}=s(55511),{Buffer:n}=s(79428);e.exports=({encryptedString:e,encryptionKey:t,encryptionSalt:s})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=t||process.env.DSQL_ENCRYPTION_PASSWORD,o=s||process.env.DSQL_ENCRYPTION_SALT,u=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=i("aes-192-cbc",r(a,o,u),n.alloc(16,0));try{let t=l.update(e,"hex","utf8");return t+=l.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},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 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,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(76048));module.exports=r})(); \ 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 new file mode 100644 index 0000000..c403b03 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/unsubscribe.js.nft.json @@ -0,0 +1 @@ +{"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/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2451.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4312.js","../chunks/4385.js","../chunks/45.js","../chunks/5134.js","../chunks/5212.js","../chunks/5264.js","../chunks/5421.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/7070.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/8540.js","../chunks/8613.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9621.js","../chunks/9732.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 new file mode 100644 index 0000000..e422ea7 --- /dev/null +++ b/dsql-app/.local_dist/server/webpack-api-runtime.js @@ -0,0 +1 @@ +(()=>{"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 new file mode 100644 index 0000000..5b16d0b --- /dev/null +++ b/dsql-app/.local_dist/server/webpack-runtime.js @@ -0,0 +1 @@ +(()=>{"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/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/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/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/2163-f48cfe454167b0f1.js b/dsql-app/.local_dist/static/chunks/2163-f48cfe454167b0f1.js new file mode 100644 index 0000000..4021367 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/2163-f48cfe454167b0f1.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2163],{98214:(e,t,l)=>{l.d(t,{A:()=>T});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(68698),g=l(61356),N=l(89894);function j(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)(g.A,{size:18,className:"mt-[-1px]"}):(0,a.jsx)(N.A,{size:18,className:"mt-[-1px]"})]})]})}function w(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(()=>{(0,v.A)({editorRef:u,entry:i,fieldObject:t,editorHTMLElementRef:c,jsonTextEditors:s,setRefresh:l,language: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)(j,{fieldObject:t,isExpanded:300!==r,setHeight:n,typeFinal:o,COLLAPSED_HEIGHT:300,EXPANDED_HEIGHT:600}),(0,a.jsx)(E,{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 E(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 T(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:j,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:j,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)(w,{fieldObject:p,dataTypeSchema:f,entry:y,entryPage:j,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]})}},68698:(e,t,l)=>{l.d(t,{A:()=>a});function a(e){let{editorHTMLElementRef:t,fieldObject:l,setRefresh:a,language:d="javascript",entry:i,jsonTextEditors:r,editorRef:s,readOnly:n,initialContent:o,options:c}=e;try{var u;if(!(null===(u=ace)||void 0===u?void 0:u.edit)||!t.current){console.log("Ace Editor not found!"),setTimeout(()=>{null==a||a(e=>e+1)},1e3);return}let e=ace.edit(t.current);e.setOptions({mode:"ace/mode/"+d,value:o||((null==l?void 0:l.defaultValue)?l.defaultValue:(null==l?void 0:l.fieldName)&&(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,readOnly:n,...c}),s&&(null==l?void 0:l.fieldName)&&(null==r||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)}}},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/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/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-e593d9c240f25546.js b/dsql-app/.local_dist/static/chunks/3127-e593d9c240f25546.js new file mode 100644 index 0000000..3c8b43b --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/3127-e593d9c240f25546.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.find(e=>!!e.title.match(/^entries$|^users$/))||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/3293-7a4e9f4883c0d05d.js b/dsql-app/.local_dist/static/chunks/3293-7a4e9f4883c0d05d.js new file mode 100644 index 0000000..2807616 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/3293-7a4e9f4883c0d05d.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),d=t(620),i=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(i.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)(d.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),d=t(96540),i=t(97711),n=t(41696);t(40961);var r=t(23698),c=t(17531);async function o(e){var a,t,l,s,d,i,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===(i=o.target.database_slug)||void 0===i?void 0:null===(d=i.value)||void 0===d?void 0:d.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:d,dbImage:i,keepUpdated:n,keepDataUpdated:o,query:u,user:m}=e;d(!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(i){if("string"==typeof i)h.db_image=i;else if("object"==typeof i){let e=await (0,r.A)("/api/addUserMedia",{method:"post",body:{media:[i],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(()=>{d(!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,i.A)({tableName:"user_databases",columnName:"db_slug",value:e,userId:a.id})}let[b,v]=d.useState(null),[x,f]=d.useState(!1),[y,_]=d.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:x,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"),v(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"),v("Duplicate Database Name")):(t.database_slug.classList.remove("warning"),v(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"),v(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"),v("Duplicate Database Name")):(a.classList.remove("warning"),v(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)(d.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),d=t(65113),i=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,i.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,d.A)({imageInputFile:a,maxWidth:400}))}})]})]})}},13834:(e,a,t)=>{t.d(a,{A:()=>r});var l=t(74848),s=t(96540),d=t(23698),i=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,d.A)("/api/getUserMedia").then(e=>{r(!1),o(e.media)})},[]),(0,l.jsxs)(i.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,i.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)},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:d,dispatch:i,userId:n,dbId:r}=e;return await (0,l.A)("/api/checkDuplicateData?tableName=".concat(a,"&type=").concat(t,"&value=").concat(s).concat(d?"&dbFullName="+d:"").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,d=document.querySelector("[data-imagepreview='image']"),i=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:i,imageSize:t}}},86625:(e,a,t)=>{var l=t(24994);a.A=void 0;var s=l(t(44888)),d=t(74848);a.A=(0,s.default)((0,d.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)),d=t(74848);a.A=(0,s.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")},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),d=t(51187),i=t(99862),n=t(4709),r=t(14589);function c(e){let{query:a,duplicateDb:t,user:d}=s.useContext(m),c=(null==a?void 0:a.duplicate)?(0,l.jsxs)("span",{children:["Duplicate"," ",(0,l.jsx)("a",{href:"/admin/".concat(null==d?void 0:d.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)(i.A,{}),(0,l.jsx)("h1",{className:"text-3xl m-0",children:c})]}),(0,l.jsx)(n.A,{user:d})]}),(0,l.jsx)(r.A,{})]})}var o=t(13834),u=!0;let m=s.createContext({});function h(e){let{user:a,databases:t,query:i,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)(d.A,{head:r,user:a,children:(0,l.jsxs)(m.Provider,{value:{user:a,databases:t,dbImage:u,setDbImage:h,query:i,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/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/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/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/5160-1efe1d072c9abed0.js b/dsql-app/.local_dist/static/chunks/5160-1efe1d072c9abed0.js new file mode 100644 index 0000000..d28b57f --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/5160-1efe1d072c9abed0.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),s=a(66051),i=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:p,setActiveEdit:h,database:f,currentTable:v,user:g}=e,N=(null==u?void 0:u.dataType)?u.dataType.replace(/\d|\(|\)/g,""):null,y=(null==u?void 0:u.dataType)?u.dataType.replace(/[^\d]/g,""):"200",j=a(94327),b=n.useRef(r().cloneDeep(u)),w=n.useRef(),[T,_]=n.useState(u),[C,F]=n.useState(null==u?void 0:u.fieldName),[V,I]=n.useState(N),[k,S]=n.useState(y),[A,E]=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"),U=!!(null==V?void 0:V.match(/uuid/i));return(0,t.jsx)("div",{className:"w-full -mt-3 bg-white dark:bg-slate-800 flex-wrap",ref:w,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]=T,e)),p.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=C),e))},required:!0,defaultValue:C})]}),(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:A})})]})]}),(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&&E(e.dataset.desc),e.value===l.value&&e.dataset.literal?(T.defaultValueLiteral=e.dataset.literal,T.nullValue=!1):delete T.defaultValueLiteral}),u.dataType=l.value+(l.value.match(/VARCHAR/)?"(".concat(k||200,")"):"")},defaultValue:V||void 0,children:j.map((e,l)=>e.name.match(/VARCHAR/)?(0,t.jsx)("option",{value:e.name,"data-desc":e.description,children:e.title+"("+(k||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==V?void 0:V.match(/VARCHAR/))&&(0,t.jsx)("input",{type:"number",defaultValue:k||200,className:"px-2",style:{maxWidth:"60px"},max:255,min:5,onChange:e=>{S(e.target.value),u.dataType=V+"(".concat(e.target.value,")")}})]})]}),(null==V?void 0:V.match(/text/i))&&(0,t.jsx)(n.Fragment,{children:(0,t.jsx)(i.A,{targetField:u})}),!(null===(l=u.dataType)||void 0===l?void 0:l.match(/text/i))&&!U&&(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"})]})]}),!U&&(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==T?void 0:null===(d=T.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==T?void 0:null===(o=T.dataType)||void 0===o?void 0:o.match(/text$/i))?"pointer-events-none opacity-50":"",placeholder:"Default Value",defaultValue:(null==T?void 0:T.defaultValue)?T.defaultValue:(null==T?void 0:T.nullValue)?"NULL":"",onInput:e=>{var l;let a=e.target;null!==(l=T.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))}})]}),!U&&(0,t.jsx)(s.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}),h&&h(!1)},children:"Cancel"})]})]})})}},66051:(e,l,a)=>{a.d(l,{A:()=>f});var t=a(74848),n=a(96540),s=a(25414),i=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)(i.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)(s.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),p=a(44500);function h(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:s,tableFields:i,setTableFields:m,setFieldData:f,user:v,fieldIndex:g}=e,[N,y]=n.useState(!1),j=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:()=>{y(!0)},children:"More"}),(0,t.jsx)(p.A,{open:N,onClose:()=>{j.current&&(l=x().cloneDeep(j.current)),y(!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)(h,{targetField:l,setFieldData:f}),(0,t.jsx)(r,{targetField:l,setFieldData:f}),a&&(0,t.jsx)(o.A,{targetField:l,setFieldData:f,database:s,tableFields:i,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:()=>{y(!1)},children:"Done"})]})})]})}},94996:(e,l,a)=>{a.d(l,{A:()=>r});var t=a(74848),n=a(96540),s=a(23698),i=a(620),d=a(21458);function r(e){var l,a,r,o;let{targetField:u,setFieldData:c,tableFields:m,setTableFields:x,database:p,currentTable:h,user:f,setActiveEdit:v,activeClonedTable:g}=e,[N,y]=n.useState(null!=u&&!!u.foreignKey),[j,b]=n.useState(null),[w,T]=n.useState(null),[_,C]=n.useState(null),[F,V]=n.useState(null),[I,k]=n.useState(!1),[S,A]=n.useState("boolean"!=typeof(null===(l=u.foreignKey)||void 0===l?void 0:l.cascadeDelete)||u.foreignKey.cascadeDelete),[E,D]=n.useState("boolean"==typeof(null===(a=u.foreignKey)||void 0===a?void 0:a.cascadeUpdate)&&u.foreignKey.cascadeUpdate);return n.useEffect(()=>{u.foreignKey={...u.foreignKey,cascadeDelete:S,cascadeUpdate:E}},[S,E]),n.useEffect(()=>{if(!N&&!(null==u?void 0:u.foreignKey)){b(null),T(null),C(null),V(null);return}(0,s.A)("/api/getUserSchemaData").then(e=>{if(e.success)try{let a=e.schemaData.filter(e=>e.dbFullName===p.db_full_name),t=h?a[0].tables.filter(e=>e.tableName!==h.tableName):a[0].tables;if(b(t),null==u?void 0:u.foreignKey){var l;let e=t.filter(e=>{var l;return e.tableName===(null==u?void 0:null===(l=u.foreignKey)||void 0===l?void 0:l.destinationTableName)});T(e[0]),(null===(l=e[0])||void 0===l?void 0:l.fields)&&C(e[0].fields)}}catch(e){(0,s.A)("/api/admin/clientError",{method:"post",body:{component:"ForeignKey/fetch-error-getUserSchemaData/lines-65-77",message:e.message,user:f}})}})},[N]),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full mt-2 relative",style:{minWidth:"70px"},children:[I&&(0,t.jsx)(i.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==u?void 0:u.foreignKey)?"Yes":"No",onChange:e=>{e.target.value.match(/yes/i)?(y(!0),c&&c(e=>(e.foreignKey={foreignKeyName:void 0,destinationTableName:void 0,destinationTableColumnName:void 0,cascadeDelete:!0},e))):(y(!1),c&&c(e=>(delete e.foreignKey,e)))},children:[(0,t.jsx)("option",{value:"No",children:"No"}),(0,t.jsx)("option",{value:"Yes",children:"Yes"})]}),N&&j&&(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==u?void 0:null===(r=u.foreignKey)||void 0===r?void 0:r.destinationTableName)?u.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(/--/)){c?c(e=>{let l=e.foreignKey;return l&&(l.destinationTableName=void 0),e}):a.dataset.destinationTableName=void 0;return}let t=j.filter(l=>l.tableName===e.target.value)[0];T(t),(null==t?void 0:t.fields)&&C(t.fields),c?c(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--"}),j.map((e,l)=>(0,t.jsx)("option",{value:e.tableName,children:e.tableFullName},l+1))]})}),w&&_&&(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==u?void 0:null===(o=u.foreignKey)||void 0===o?void 0:o.destinationTableColumnName)?u.foreignKey.destinationTableColumnName:void 0,onChange:e=>{try{var l;let a=_.filter(l=>l.fieldName===e.target.value)[0];if(V(a),null===(l=e.target.value)||void 0===l?void 0:l.match(/--/)){c&&c(e=>{let l=e.foreignKey;return l&&(l.destinationTableColumnName=void 0),e});return}let t="dsql_".concat(p.user_id,"_").concat(p.db_slug,"_").concat(Date.now());c?c(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,s.A)("/api/admin/clientError",{method:"post",body:{component:"ForeignKey/lines-232-264",message:e.message,user:f}})}},children:[(0,t.jsx)("option",{value:"--",children:"--Select Column--"}),_.map((e,l)=>(0,t.jsx)("option",{value:e.fieldName,children:e.fieldName},l+1))]}),g&&F&&(0,t.jsx)("button",{className:"secondary w-full",onClick:e=>{var l,a;k(!0),(0,s.A)("/api/updateClonedTableForeignKeys",{method:"post",body:{tableData:h,database:p.db_full_name,dbSlug:p.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(()=>{v&&v(!1)},1e3)})},children:"Add Foreign Key"}),(0,t.jsx)(d.A,{checkBoxValues:[{title:"Cascade Delete",default:S,name:"cascade-delete",onChangeHandler:e=>{A(e.target.checked)}},{title:"Cascade Update",name:"cascade-update",default:E,onChangeHandler:e=>{D(e.target.checked)}}],smallText:!0})]}),g&&(0,t.jsx)("button",{className:"light-gray w-full",onClick:e=>{delete u.foreignKey,v&&v(!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)},21458:(e,l,a)=>{a.d(l,{A:()=>n});var t=a(74848);function n(e){let{name:l,checkBoxValues:a,setAlert:n,labelColor:s,flexRow:i,baseText:d,smallText:r,className:o}=e;return(0,t.jsx)("div",{className:"flex items-start gap-x-4"+(i?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(o||""),children:a.map((e,a)=>{let{payload:i,title:o,onChangeHandler:u,fixed:c,jsx:m}=e,x=e.name?"".concat(l,"-").concat(e.name):i?l+"-"+i:l;return(0,t.jsxs)("div",{className:"flex items-center"+(e.default&&c?" pointer-events-none":"")+(r?" gap-1 ":" gap-2 ")+((null==e?void 0:e.className)?e.className:""),children:[(0,t.jsx)("input",{className:"m-0"+(r?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!e.default,name:x,id:x,onChange:l=>{n&&n(null),u&&u(l,e)},value:i,style:{minWidth:"20px"},...e.props}),m||(0,t.jsx)("label",{htmlFor:x,className:"m-0 "+(s||"text-slate-800 dark:text-white/80")+(d||r?" text-base":" text-lg"),children:o})]},a+1)})})}a(96540)},44500:(e,l,a)=>{a.d(l,{A:()=>d});var t=a(74848),n=a(96540),s=a(5338),i=a(76897);function d(e){let{children:l,open:a,setOpen:i,onClose:d,maxWidth:o}=e;return n.useEffect(()=>{if(a){let e=document.createElement("div");e.className="modal-wrapper",(0,s.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:s,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:s||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)(i.A,{})})]})]})}function o(e){var l;let{modalEl:a,closeFn:t}=e;t&&t(),null===(l=a.parentElement)||void 0===l||l.removeChild(a)}},94327: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/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/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/6156-c0700a2f6f1bd267.js b/dsql-app/.local_dist/static/chunks/6156-c0700a2f6f1bd267.js new file mode 100644 index 0000000..65ab305 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/6156-c0700a2f6f1bd267.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(94327),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(94327);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=>{window.confirm("Update Table Fields?")&&(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-d667ba27d72094f8.js b/dsql-app/.local_dist/static/chunks/6460-d667ba27d72094f8.js new file mode 100644 index 0000000..d8f9958 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/6460-d667ba27d72094f8.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(94327),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(98214),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(94327);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-2c3ce8dcf1028efd.js b/dsql-app/.local_dist/static/chunks/6946-2c3ce8dcf1028efd.js new file mode 100644 index 0000000..7edbf99 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/6946-2c3ce8dcf1028efd.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"},...e.props}),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/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/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/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/8949-61dcde8a69a04065.js b/dsql-app/.local_dist/static/chunks/8949-61dcde8a69a04065.js new file mode 100644 index 0000000..96db3fd --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/8949-61dcde8a69a04065.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8949],{86625:(e,t,a)=>{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/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;r{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/9799-16431e3472e19630.js b/dsql-app/.local_dist/static/chunks/9799-16431e3472e19630.js new file mode 100644 index 0000000..f76a017 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/9799-16431e3472e19630.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.find(e=>!!e.title.match(/^entries$|^users$/))||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"})]})})]})]})]})}a(28133)}}]); \ 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/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-c2373564c69ff406.js b/dsql-app/.local_dist/static/chunks/framework-c2373564c69ff406.js new file mode 100644 index 0000000..a9cebfd --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/framework-c2373564c69ff406.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6593],{22551:(e,n,t)=>{var r,l,a,u,o,i,s=t(96540),c=t(69982);function f(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t