orcaq 1.1.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{BvUhrUEH.js → 5oARMrld.js} +1 -1
- package/.output/public/_nuxt/{B7HEMfgt.js → 9sDqz0uT.js} +1 -1
- package/.output/public/_nuxt/{C1jMZ4hc.js → B-4cXhNx.js} +1 -1
- package/.output/public/_nuxt/{DhKwXzSk.js → BC6CdfCG.js} +1 -1
- package/.output/public/_nuxt/BCAMWuzu.js +9 -0
- package/.output/public/_nuxt/{DESYlybj.js → BG-rJefG.js} +1 -1
- package/.output/public/_nuxt/BKFPmrcv.js +1 -0
- package/.output/public/_nuxt/{BdDEVolW.js → BMLhg7hE.js} +1 -1
- package/.output/public/_nuxt/BVUHbgGW.js +27 -0
- package/.output/public/_nuxt/{CybtvDjH.js → BYOPXIhP.js} +1 -1
- package/.output/public/_nuxt/{CvcedJeQ.js → BYxQJ0gE.js} +1 -1
- package/.output/public/_nuxt/{CrLqg4B0.js → BZ4ThSRp.js} +1 -1
- package/.output/public/_nuxt/{D60Pzl_V.js → BZmDBfmV.js} +1 -1
- package/.output/public/_nuxt/{CREZ9f0O.js → B_ERKujF.js} +4 -4
- package/.output/public/_nuxt/{ZObQcd0X.js → BccuQbKA.js} +1 -1
- package/.output/public/_nuxt/{DHnNoguE.js → BcyZ-eCi.js} +1 -1
- package/.output/public/_nuxt/BdZsZgcB.js +1 -0
- package/.output/public/_nuxt/BigePTMZ.js +1 -0
- package/.output/public/_nuxt/BkN-uAef.js +1 -0
- package/.output/public/_nuxt/BmAp-sfn.js +1 -0
- package/.output/public/_nuxt/BqHKqsJ5.js +12 -0
- package/.output/public/_nuxt/BseVuOZ1.js +1 -0
- package/.output/public/_nuxt/BtuY54_l.js +1 -0
- package/.output/public/_nuxt/{DWBoXz89.js → Buh0pI3n.js} +1 -1
- package/.output/public/_nuxt/{B84SvUzr.js → BzVvHKKC.js} +1 -1
- package/.output/public/_nuxt/{ByOuUnNS.js → BzywwPw6.js} +1 -1
- package/.output/public/_nuxt/BzzgEvr9.js +7 -0
- package/.output/public/_nuxt/C-I81xfB.js +1 -0
- package/.output/public/_nuxt/C-Pa1rIR.js +1 -0
- package/.output/public/_nuxt/{DNdM2ZyK.js → C-pX1zRI.js} +1 -1
- package/.output/public/_nuxt/{C5bgdIOp.js → C0vscAQB.js} +1 -1
- package/.output/public/_nuxt/C4FrpL8k.js +1 -0
- package/.output/public/_nuxt/{Ci43mke5.js → C4zYnWdF.js} +1 -1
- package/.output/public/_nuxt/C9kgALYc.js +1 -0
- package/.output/public/_nuxt/{B4ebLeWY.js → CCmd8DpQ.js} +3 -3
- package/.output/public/_nuxt/{DXp9fCib.js → CGq9Twnj.js} +1 -1
- package/.output/public/_nuxt/{TuKV3Ilv.js → CHMlsxJw.js} +1 -1
- package/.output/public/_nuxt/CLQzuV82.js +1 -0
- package/.output/public/_nuxt/{BnFDcr74.js → CL_1HDtg.js} +1 -1
- package/.output/public/_nuxt/CRqiHVA4.js +1 -0
- package/.output/public/_nuxt/{DJqZzQsX.js → CS4EJV3B.js} +1 -1
- package/.output/public/_nuxt/CS5akSNT.js +1 -0
- package/.output/public/_nuxt/{B6hH0qos.js → CSExCj8O.js} +1 -1
- package/.output/public/_nuxt/{YJvNy3iu.js → CY_CG0AU.js} +27 -27
- package/.output/public/_nuxt/{b_MfGg1c.js → CbHZwHBV.js} +1 -1
- package/.output/public/_nuxt/Cbo6GmdE.js +1 -0
- package/.output/public/_nuxt/Cf460dGA.js +3867 -0
- package/.output/public/_nuxt/CfseWBL0.js +1 -0
- package/.output/public/_nuxt/{DNNdcUH4.js → Ch0I4juX.js} +1 -1
- package/.output/public/_nuxt/Chvs1m1n.js +1 -0
- package/.output/public/_nuxt/Chx1IK9D.js +1 -0
- package/.output/public/_nuxt/{BGVGiigU.js → CjpXgncp.js} +1 -1
- package/.output/public/_nuxt/CkjXKCQH.js +1 -0
- package/.output/public/_nuxt/Ckry8tuC.js +2 -0
- package/.output/public/_nuxt/{PUe8M07P.js → CmOZ0DCP.js} +1 -1
- package/.output/public/_nuxt/{H5m89x1B.js → CmjR7OTc.js} +1 -1
- package/.output/public/_nuxt/Co7e2XML.js +1 -0
- package/.output/public/_nuxt/CqkctA6I.js +67 -0
- package/.output/public/_nuxt/{CEvNlevo.js → CtB2-SFY.js} +1 -1
- package/.output/public/_nuxt/CtCx-4nJ.js +1 -0
- package/.output/public/_nuxt/CtkhwZY7.js +1 -0
- package/.output/public/_nuxt/Cty7uMrC.js +1 -0
- package/.output/public/_nuxt/CvFjsYJZ.js +1 -0
- package/.output/public/_nuxt/{D9dEqMyH.js → Czr647QE.js} +1 -1
- package/.output/public/_nuxt/{4by6-f6q.js → D0lW43G8.js} +315 -313
- package/.output/public/_nuxt/{DFM-aCBX.js → D28ykMUi.js} +1 -1
- package/.output/public/_nuxt/{DaKikgWm.js → DA4Xn6lm.js} +1 -1
- package/.output/public/_nuxt/{CS5ItJPR.js → DChDHsIe.js} +1 -1
- package/.output/public/_nuxt/{DQT4eICL.js → DJBO_9pO.js} +1 -1
- package/.output/public/_nuxt/DJXB1Li8.js +1 -0
- package/.output/public/_nuxt/{BprXyYdv.js → DKLk0T0H.js} +1 -1
- package/.output/public/_nuxt/{F5lCgNdb.js → DLBsdU7G.js} +1 -1
- package/.output/public/_nuxt/DNB4Xmyo.js +37 -0
- package/.output/public/_nuxt/DOAixkpJ.js +1 -0
- package/.output/public/_nuxt/{Cx6s86aR.js → DPq8O9CC.js} +1 -1
- package/.output/public/_nuxt/{Bq7otXBA.js → DQdA5Twt.js} +1 -1
- package/.output/public/_nuxt/{BeNILdbT.js → DRh-06Hb.js} +1 -1
- package/.output/public/_nuxt/DTvJImVU.js +1 -0
- package/.output/public/_nuxt/DVkCRFXi.js +1 -0
- package/.output/public/_nuxt/DX8ecA59.js +1 -0
- package/.output/public/_nuxt/DakKehZj.js +1 -0
- package/.output/public/_nuxt/Db3rTgnd.js +1 -0
- package/.output/public/_nuxt/DfyynWBR.js +1 -0
- package/.output/public/_nuxt/DgJOougY.js +1 -0
- package/.output/public/_nuxt/DkQCknMw.js +1 -0
- package/.output/public/_nuxt/{CA99KAte.js → DpBeiFQV.js} +2 -2
- package/.output/public/_nuxt/{DaMyovpr.js → DrdbRRXx.js} +1 -1
- package/.output/public/_nuxt/Dtl3qje7.js +1 -0
- package/.output/public/_nuxt/{DkadXn5U.js → Du5Ka6uI.js} +1 -1
- package/.output/public/_nuxt/Dunt8-TF.js +1 -0
- package/.output/public/_nuxt/{minLMBmY.js → DvWEWtFg.js} +1 -1
- package/.output/public/_nuxt/{Cvq07PgE.js → KynNdNgX.js} +1 -1
- package/.output/public/_nuxt/MWrJVKEf.js +2 -0
- package/.output/public/_nuxt/{Dpl6-lqE.js → NYpsF1lW.js} +1 -1
- package/.output/public/_nuxt/{BmU9CNkM.js → Nof0nVJ6.js} +1 -1
- package/.output/public/_nuxt/{BJYf67_H.js → Ohrg3hU7.js} +1 -1
- package/.output/public/_nuxt/Rrce0BXL.js +22 -0
- package/.output/public/_nuxt/VNOocds9.js +1 -0
- package/.output/public/_nuxt/Y-MEKhtd.js +1 -0
- package/.output/public/_nuxt/{CR6_eO9a.js → YdOCcCRS.js} +1 -1
- package/.output/public/_nuxt/bYQCSC5-.js +1 -0
- package/.output/public/_nuxt/bkzIFcLw.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/ad11b978-8fdd-4bb2-9b38-1d6fe93f994e.json +1 -0
- package/.output/public/_nuxt/default.B0xlD4Sl.css +1 -0
- package/.output/public/_nuxt/{CKqvNpN3.js → eOeO5uM0.js} +1 -1
- package/.output/public/_nuxt/entry.DxCQuGXb.css +1 -0
- package/.output/public/_nuxt/g9ZMnTLJ.js +1 -0
- package/.output/public/_nuxt/{TEF-nDfP.js → hIbRoJ89.js} +1 -1
- package/.output/public/_nuxt/{BxDrCsPf.js → j23gQsG7.js} +1 -1
- package/.output/public/_nuxt/klVlxnpt.js +1 -0
- package/.output/public/_nuxt/qRiDKEr7.js +1 -0
- package/.output/public/_nuxt/syq5mCJi.js +1 -0
- package/.output/public/_nuxt/v41yYOa9.js +10 -0
- package/.output/public/_nuxt/{CE8aasoy.js → vaJvtND9.js} +1 -1
- package/.output/public/_nuxt/wodl4bLW.js +2 -0
- package/.output/server/chunks/_/create-adapter.mjs +2 -0
- package/.output/server/chunks/_/create-adapter.mjs.map +1 -1
- package/.output/server/chunks/_/db-connection.mjs +500 -19
- package/.output/server/chunks/_/db-connection.mjs.map +1 -1
- package/.output/server/chunks/_/instance-insights.factory.mjs +2037 -14
- package/.output/server/chunks/_/instance-insights.factory.mjs.map +1 -1
- package/.output/server/chunks/_/metadata.factory.mjs +302 -22
- package/.output/server/chunks/_/metadata.factory.mjs.map +1 -1
- package/.output/server/chunks/_/redis-browser.service.mjs +513 -0
- package/.output/server/chunks/_/redis-browser.service.mjs.map +1 -0
- package/.output/server/chunks/_/redis-instance-insights.service.mjs +442 -0
- package/.output/server/chunks/_/redis-instance-insights.service.mjs.map +1 -0
- package/.output/server/chunks/_/redis-pubsub.service.mjs +227 -0
- package/.output/server/chunks/_/redis-pubsub.service.mjs.map +1 -0
- package/.output/server/chunks/_/redis.client.mjs +129 -0
- package/.output/server/chunks/_/redis.client.mjs.map +1 -0
- package/.output/server/chunks/_/tables.factory.mjs +20 -8
- package/.output/server/chunks/_/tables.factory.mjs.map +1 -1
- package/.output/server/chunks/build/client.manifest.mjs +730 -614
- package/.output/server/chunks/build/client.manifest.mjs.map +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +722 -613
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/ai/agent.mjs +4 -1
- package/.output/server/chunks/routes/api/ai/agent.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-export/export-database.mjs +4 -1
- package/.output/server/chunks/routes/api/database-export/export-database.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-export/jobs/_jobId/download.get.mjs +4 -1
- package/.output/server/chunks/routes/api/database-export/jobs/_jobId/download.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-export/jobs/_jobId_.get.mjs +4 -1
- package/.output/server/chunks/routes/api/database-export/jobs/_jobId_.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-import/import-database.mjs +4 -1
- package/.output/server/chunks/routes/api/database-import/import-database.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-import/jobs/_jobId_.get.mjs +4 -1
- package/.output/server/chunks/routes/api/database-import/jobs/_jobId_.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/create-role.mjs +4 -1
- package/.output/server/chunks/routes/api/database-roles/create-role.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/delete-role.mjs +4 -1
- package/.output/server/chunks/routes/api/database-roles/delete-role.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-databases-with-permissions.mjs +4 -1
- package/.output/server/chunks/routes/api/database-roles/get-databases-with-permissions.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-databases.mjs +4 -1
- package/.output/server/chunks/routes/api/database-roles/get-databases.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-permissions.mjs +4 -1
- package/.output/server/chunks/routes/api/database-roles/get-permissions.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-role-inheritance.mjs +4 -1
- package/.output/server/chunks/routes/api/database-roles/get-role-inheritance.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-role.mjs +4 -1
- package/.output/server/chunks/routes/api/database-roles/get-role.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-roles.mjs +4 -1
- package/.output/server/chunks/routes/api/database-roles/get-roles.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-schema-objects.mjs +4 -1
- package/.output/server/chunks/routes/api/database-roles/get-schema-objects.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-schemas.mjs +4 -1
- package/.output/server/chunks/routes/api/database-roles/get-schemas.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/grant-bulk-permissions.mjs +4 -1
- package/.output/server/chunks/routes/api/database-roles/grant-bulk-permissions.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/grant-permission.mjs +4 -1
- package/.output/server/chunks/routes/api/database-roles/grant-permission.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/revoke-permission.mjs +4 -1
- package/.output/server/chunks/routes/api/database-roles/revoke-permission.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/definition.post.mjs +4 -1
- package/.output/server/chunks/routes/api/functions/definition.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/delete.post.mjs +4 -1
- package/.output/server/chunks/routes/api/functions/delete.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/overview.post.mjs +4 -1
- package/.output/server/chunks/routes/api/functions/overview.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/rename.post.mjs +4 -1
- package/.output/server/chunks/routes/api/functions/rename.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/signature.post.mjs +4 -1
- package/.output/server/chunks/routes/api/functions/signature.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/update.post.mjs +4 -1
- package/.output/server/chunks/routes/api/functions/update.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/index.post.mjs +5 -2
- package/.output/server/chunks/routes/api/index.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/cancel-query.post.mjs +5 -2
- package/.output/server/chunks/routes/api/instance-insights/cancel-query.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/configuration.post.mjs +5 -2
- package/.output/server/chunks/routes/api/instance-insights/configuration.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/dashboard.post.mjs +5 -2
- package/.output/server/chunks/routes/api/instance-insights/dashboard.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/drop-slot.post.mjs +5 -2
- package/.output/server/chunks/routes/api/instance-insights/drop-slot.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/replication.post.mjs +5 -2
- package/.output/server/chunks/routes/api/instance-insights/replication.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/state.post.mjs +5 -2
- package/.output/server/chunks/routes/api/instance-insights/state.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/terminate-connection.post.mjs +5 -2
- package/.output/server/chunks/routes/api/instance-insights/terminate-connection.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/toggle-slot-status.post.mjs +5 -2
- package/.output/server/chunks/routes/api/instance-insights/toggle-slot-status.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/view.post.mjs +66 -0
- package/.output/server/chunks/routes/api/instance-insights/view.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/managment-connection/health-check.mjs +7 -1
- package/.output/server/chunks/routes/api/managment-connection/health-check.mjs.map +1 -1
- package/.output/server/chunks/routes/api/metadata/erd.post.mjs +7 -2
- package/.output/server/chunks/routes/api/metadata/erd.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/metadata/meta-data.post.mjs +6 -1
- package/.output/server/chunks/routes/api/metadata/meta-data.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/metadata/reverse-schemas.post.mjs +7 -2
- package/.output/server/chunks/routes/api/metadata/reverse-schemas.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/metrics/monitor.post.mjs +4 -1
- package/.output/server/chunks/routes/api/metrics/monitor.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/query/execute.post.mjs +6 -1
- package/.output/server/chunks/routes/api/query/execute.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/query/raw-execute-stream.post.mjs +15 -3
- package/.output/server/chunks/routes/api/query/raw-execute-stream.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/query/raw-execute.post.mjs +8 -1
- package/.output/server/chunks/routes/api/query/raw-execute.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/redis/browser/databases.post.mjs +25 -0
- package/.output/server/chunks/routes/api/redis/browser/databases.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/redis/browser/value.patch.mjs +39 -0
- package/.output/server/chunks/routes/api/redis/browser/value.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/redis/browser/value.post.mjs +25 -0
- package/.output/server/chunks/routes/api/redis/browser/value.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/redis/index.post.mjs +37 -0
- package/.output/server/chunks/routes/api/redis/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/redis/instance-insights/kill-client.post.mjs +38 -0
- package/.output/server/chunks/routes/api/redis/instance-insights/kill-client.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/redis/instance-insights/overview.post.mjs +35 -0
- package/.output/server/chunks/routes/api/redis/instance-insights/overview.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/redis/pubsub/messages.post.mjs +24 -0
- package/.output/server/chunks/routes/api/redis/pubsub/messages.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/redis/pubsub/overview.post.mjs +38 -0
- package/.output/server/chunks/routes/api/redis/pubsub/overview.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/redis/pubsub/publish.post.mjs +39 -0
- package/.output/server/chunks/routes/api/redis/pubsub/publish.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/redis/pubsub/subscribe.post.mjs +39 -0
- package/.output/server/chunks/routes/api/redis/pubsub/subscribe.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/redis/pubsub/unsubscribe.post.mjs +24 -0
- package/.output/server/chunks/routes/api/redis/pubsub/unsubscribe.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/redis/workbench/execute.post.mjs +60 -0
- package/.output/server/chunks/routes/api/redis/workbench/execute.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/tables/bulk-delete.post.mjs +9 -5
- package/.output/server/chunks/routes/api/tables/bulk-delete.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/bulk-update.post.mjs +9 -5
- package/.output/server/chunks/routes/api/tables/bulk-update.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/ddl.post.mjs +4 -1
- package/.output/server/chunks/routes/api/tables/ddl.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/export.post.mjs +5 -2
- package/.output/server/chunks/routes/api/tables/export.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/indexes.post.mjs +4 -1
- package/.output/server/chunks/routes/api/tables/indexes.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/meta.post.mjs +7 -2
- package/.output/server/chunks/routes/api/tables/meta.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/overview.post.mjs +4 -1
- package/.output/server/chunks/routes/api/tables/overview.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/rls.post.mjs +4 -1
- package/.output/server/chunks/routes/api/tables/rls.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/rules.post.mjs +4 -1
- package/.output/server/chunks/routes/api/tables/rules.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/size.post.mjs +4 -1
- package/.output/server/chunks/routes/api/tables/size.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/structure.post.mjs +4 -1
- package/.output/server/chunks/routes/api/tables/structure.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/triggers.post.mjs +4 -1
- package/.output/server/chunks/routes/api/tables/triggers.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/definition.post.mjs +4 -1
- package/.output/server/chunks/routes/api/views/definition.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/dependencies.post.mjs +4 -1
- package/.output/server/chunks/routes/api/views/dependencies.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/explain.post.mjs +4 -1
- package/.output/server/chunks/routes/api/views/explain.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/indexes.post.mjs +4 -1
- package/.output/server/chunks/routes/api/views/indexes.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/meta.post.mjs +4 -1
- package/.output/server/chunks/routes/api/views/meta.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/overview.post.mjs +4 -1
- package/.output/server/chunks/routes/api/views/overview.post.mjs.map +1 -1
- package/.output/server/chunks/routes/renderer.mjs +1 -1
- package/.output/server/index.mjs +1 -1
- package/.output/server/node_modules/@libsql/client/lib-esm/hrana.js +310 -0
- package/.output/server/node_modules/@libsql/client/lib-esm/http.js +230 -0
- package/.output/server/node_modules/@libsql/client/lib-esm/sql_cache.js +87 -0
- package/.output/server/node_modules/@libsql/client/package.json +123 -0
- package/.output/server/node_modules/@libsql/core/lib-esm/api.js +16 -0
- package/.output/server/node_modules/@libsql/core/lib-esm/config.js +136 -0
- package/.output/server/node_modules/@libsql/core/lib-esm/uri.js +120 -0
- package/.output/server/node_modules/@libsql/core/lib-esm/util.js +55 -0
- package/.output/server/node_modules/@libsql/core/package.json +91 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/batch.js +271 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/byte_queue.js +45 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/client.js +13 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/cursor.js +2 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/describe.js +8 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/index.js +4 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/json/decode.js +59 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/json/encode.js +72 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/protobuf/decode.js +150 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/protobuf/encode.js +95 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/protobuf/util.js +6 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/errors.js +102 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/client.js +124 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/cursor.js +135 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/json_decode.js +62 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/json_encode.js +55 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/protobuf_decode.js +44 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/protobuf_encode.js +78 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/stream.js +363 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/id_alloc.js +47 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/index.js +42 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/libsql_url.js +75 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/queue.js +26 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/queue_microtask.js +13 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/result.js +48 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/shared/json_decode.js +106 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/shared/json_encode.js +71 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/shared/protobuf_decode.js +115 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/shared/protobuf_encode.js +85 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/sql.js +46 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/stmt.js +76 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/stream.js +57 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/util.js +4 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/value.js +83 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/client.js +318 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/cursor.js +80 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/json_decode.js +74 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/json_encode.js +77 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/protobuf_decode.js +60 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/protobuf_encode.js +115 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/stream.js +211 -0
- package/.output/server/node_modules/@libsql/hrana-client/package.json +60 -0
- package/.output/server/node_modules/@libsql/isomorphic-fetch/node.js +6 -0
- package/.output/server/node_modules/@libsql/isomorphic-fetch/package.json +51 -0
- package/.output/server/node_modules/@libsql/isomorphic-ws/node.mjs +2 -0
- package/.output/server/node_modules/@libsql/isomorphic-ws/package.json +53 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/ADD.js +19 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/CARD.js +16 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/EXISTS.js +19 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/INFO.js +22 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/INSERT.js +41 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/LOADCHUNK.js +19 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/MADD.js +19 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/MEXISTS.js +19 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/RESERVE.js +28 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/SCANDUMP.js +23 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/helpers.js +28 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/index.js +53 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/INCRBY.js +28 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/INFO.js +22 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/INITBYDIM.js +19 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/INITBYPROB.js +19 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/MERGE.js +33 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/QUERY.js +18 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/index.js +26 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/ADD.js +19 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/ADDNX.js +19 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/COUNT.js +18 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/DEL.js +19 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/EXISTS.js +19 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/INFO.js +22 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/INSERT.js +34 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/INSERTNX.js +44 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/LOADCHUNK.js +19 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/RESERVE.js +31 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/SCANDUMP.js +23 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/index.js +41 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/index.js +18 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/ADD.js +20 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/BYRANK.js +26 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/BYREVRANK.js +41 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/CDF.js +21 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/CREATE.js +21 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/INFO.js +22 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/MAX.js +17 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/MERGE.js +27 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/MIN.js +17 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/QUANTILE.js +21 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/RANK.js +25 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/RESET.js +16 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/REVRANK.js +41 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/TRIMMED_MEAN.js +20 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/index.js +50 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/ADD.js +18 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/COUNT.js +18 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/INCRBY.js +28 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/INFO.js +24 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/LIST.js +16 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/LIST_WITHCOUNT.js +26 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/QUERY.js +19 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/RESERVE.js +25 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/index.js +32 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/index.js +9 -0
- package/.output/server/node_modules/@redis/bloom/package.json +36 -0
- package/.output/server/node_modules/@redis/client/dist/index.js +53 -0
- package/.output/server/node_modules/@redis/client/dist/lib/RESP/decoder.js +727 -0
- package/.output/server/node_modules/@redis/client/dist/lib/RESP/encoder.js +24 -0
- package/.output/server/node_modules/@redis/client/dist/lib/RESP/verbatim-string.js +12 -0
- package/.output/server/node_modules/@redis/client/dist/lib/authx/credentials-provider.js +26 -0
- package/.output/server/node_modules/@redis/client/dist/lib/authx/index.js +12 -0
- package/.output/server/node_modules/@redis/client/dist/lib/authx/token-manager.js +184 -0
- package/.output/server/node_modules/@redis/client/dist/lib/authx/token.js +32 -0
- package/.output/server/node_modules/@redis/client/dist/lib/client/cache.js +634 -0
- package/.output/server/node_modules/@redis/client/dist/lib/client/commands-queue.js +497 -0
- package/.output/server/node_modules/@redis/client/dist/lib/client/enterprise-maintenance-manager.js +387 -0
- package/.output/server/node_modules/@redis/client/dist/lib/client/identity.js +65 -0
- package/.output/server/node_modules/@redis/client/dist/lib/client/index.js +1118 -0
- package/.output/server/node_modules/@redis/client/dist/lib/client/legacy-mode.js +119 -0
- package/.output/server/node_modules/@redis/client/dist/lib/client/linked-list.js +212 -0
- package/.output/server/node_modules/@redis/client/dist/lib/client/multi-command.js +118 -0
- package/.output/server/node_modules/@redis/client/dist/lib/client/parser.js +83 -0
- package/.output/server/node_modules/@redis/client/dist/lib/client/pool.js +373 -0
- package/.output/server/node_modules/@redis/client/dist/lib/client/pub-sub.js +351 -0
- package/.output/server/node_modules/@redis/client/dist/lib/client/socket.js +336 -0
- package/.output/server/node_modules/@redis/client/dist/lib/client/tracing.js +122 -0
- package/.output/server/node_modules/@redis/client/dist/lib/cluster/cluster-slots.js +657 -0
- package/.output/server/node_modules/@redis/client/dist/lib/cluster/index.js +425 -0
- package/.output/server/node_modules/@redis/client/dist/lib/cluster/multi-command.js +124 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commander.js +91 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_CAT.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_DELUSER.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_DRYRUN.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_GENPASS.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_GETUSER.js +33 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_LIST.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_LOAD.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_LOG.js +39 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_LOG_RESET.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_SAVE.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_SETUSER.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_USERS.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_WHOAMI.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/APPEND.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ASKING.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/AUTH.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BGREWRITEAOF.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BGSAVE.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BITCOUNT.js +28 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BITFIELD.js +33 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BITFIELD_RO.js +23 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BITOP.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BITPOS.js +31 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BLMOVE.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BLMPOP.js +41 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BLPOP.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BRPOP.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BRPOPLPUSH.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BZMPOP.js +41 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BZPOPMAX.js +34 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BZPOPMIN.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_CACHING.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_GETNAME.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_GETREDIR.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_ID.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_INFO.js +62 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_KILL.js +66 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_LIST.js +35 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_NO-EVICT.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_NO-TOUCH.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_PAUSE.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_SETNAME.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_TRACKING.js +53 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_TRACKINGINFO.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_UNPAUSE.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_ADDSLOTS.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_ADDSLOTSRANGE.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_BUMPEPOCH.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_COUNT-FAILURE-REPORTS.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_COUNTKEYSINSLOT.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_DELSLOTS.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_DELSLOTSRANGE.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_FAILOVER.js +24 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_FLUSHSLOTS.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_FORGET.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_GETKEYSINSLOT.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_INFO.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_KEYSLOT.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_LINKS.js +28 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_MEET.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_MYID.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_MYSHARDID.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_NODES.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_REPLICAS.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_REPLICATE.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_RESET.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_SAVECONFIG.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_SET-CONFIG-EPOCH.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_SETSLOT.js +28 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_SLOTS.js +30 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND_COUNT.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND_GETKEYS.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND_GETKEYSANDFLAGS.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND_INFO.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND_LIST.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CONFIG_GET.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CONFIG_RESETSTAT.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CONFIG_REWRITE.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CONFIG_SET.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/COPY.js +24 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/DBSIZE.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/DECR.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/DECRBY.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/DEL.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/DELEX.js +43 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/DIGEST.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/DUMP.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ECHO.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/EVAL.js +31 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/EVALSHA.js +41 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/EVALSHA_RO.js +41 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/EVAL_RO.js +41 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/EXISTS.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/EXPIRE.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/EXPIREAT.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/EXPIRETIME.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/FCALL.js +41 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/FCALL_RO.js +41 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/FLUSHALL.js +24 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/FLUSHDB.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_DELETE.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_DUMP.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_FLUSH.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_KILL.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_LIST.js +38 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_LIST_WITHCODE.js +41 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_LOAD.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_RESTORE.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_STATS.js +47 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOADD.js +41 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEODIST.js +26 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOHASH.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOPOS.js +27 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUS.js +28 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUSBYMEMBER.js +28 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUSBYMEMBER_RO.js +46 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUSBYMEMBER_RO_WITH.js +46 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUSBYMEMBER_STORE.js +53 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUSBYMEMBER_WITH.js +36 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUS_RO.js +45 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUS_RO_WITH.js +27 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUS_STORE.js +53 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUS_WITH.js +56 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOSEARCH.js +54 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOSEARCHSTORE.js +27 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOSEARCH_WITH.js +55 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GET.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GETBIT.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GETDEL.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GETEX.js +50 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GETRANGE.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GETSET.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HDEL.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HELLO.js +35 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HEXISTS.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HEXPIRE.js +35 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HEXPIREAT.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HEXPIRETIME.js +26 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HGET.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HGETALL.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HGETDEL.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HGETEX.js +30 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HINCRBY.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HINCRBYFLOAT.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HKEYS.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HLEN.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HMGET.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HOTKEYS_GET.js +131 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HOTKEYS_RESET.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HOTKEYS_START.js +60 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HOTKEYS_STOP.js +27 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HPERSIST.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HPEXPIRE.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HPEXPIREAT.js +27 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HPEXPIRETIME.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HPTTL.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HRANDFIELD.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HRANDFIELD_COUNT.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HRANDFIELD_COUNT_WITHVALUES.js +41 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HSCAN.js +35 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HSCAN_NOVALUES.js +27 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HSET.js +55 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HSETEX.js +81 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HSETNX.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HSTRLEN.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HTTL.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HVALS.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/INCR.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/INCRBY.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/INCRBYFLOAT.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/INFO.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/KEYS.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LASTSAVE.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_DOCTOR.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_GRAPH.js +37 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_HISTOGRAM.js +39 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_HISTORY.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_LATEST.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_RESET.js +24 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LCS.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LCS_IDX.js +33 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LCS_IDX_WITHMATCHLEN.js +28 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LCS_LEN.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LINDEX.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LINSERT.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LLEN.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LMOVE.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LMPOP.js +27 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LOLWUT.js +23 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LPOP.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LPOP_COUNT.js +23 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LPOS.js +28 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LPOS_COUNT.js +26 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LPUSH.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LPUSHX.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LRANGE.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LREM.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LSET.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LTRIM.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/MEMORY_DOCTOR.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/MEMORY_MALLOC-STATS.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/MEMORY_PURGE.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/MEMORY_STATS.js +39 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/MEMORY_USAGE.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/MGET.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/MIGRATE.js +48 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/MODULE_LIST.js +28 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/MODULE_LOAD.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/MODULE_UNLOAD.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/MOVE.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/MSET.js +46 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/MSETEX.js +104 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/MSETNX.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/OBJECT_ENCODING.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/OBJECT_FREQ.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/OBJECT_IDLETIME.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/OBJECT_REFCOUNT.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PERSIST.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PEXPIRE.js +24 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PEXPIREAT.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PEXPIRETIME.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PFADD.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PFCOUNT.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PFMERGE.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PING.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PSETEX.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PTTL.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBLISH.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBSUB_CHANNELS.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBSUB_NUMPAT.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBSUB_NUMSUB.js +34 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBSUB_SHARDCHANNELS.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBSUB_SHARDNUMSUB.js +32 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/RANDOMKEY.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/READONLY.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/RENAME.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/RENAMENX.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/REPLICAOF.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/RESTORE-ASKING.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/RESTORE.js +34 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ROLE.js +60 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/RPOP.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/RPOPLPUSH.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/RPOP_COUNT.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/RPUSH.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/RPUSHX.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SADD.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SCAN.js +71 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SCARD.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SCRIPT_DEBUG.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SCRIPT_EXISTS.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SCRIPT_FLUSH.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SCRIPT_KILL.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SCRIPT_LOAD.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SDIFF.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SDIFFSTORE.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SET.js +61 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SETBIT.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SETEX.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SETNX.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SETRANGE.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SINTER.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SINTERCARD.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SINTERSTORE.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SISMEMBER.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SMEMBERS.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SMISMEMBER.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SMOVE.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SORT.js +53 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SORT_RO.js +40 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SORT_STORE.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SPOP.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SPOP_COUNT.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SPUBLISH.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SRANDMEMBER.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SRANDMEMBER_COUNT.js +23 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SREM.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SSCAN.js +35 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/STRLEN.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SUNION.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SUNIONSTORE.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SWAPDB.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/TIME.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/TOUCH.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/TTL.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/TYPE.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/UNLINK.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VADD.js +42 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VCARD.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VDIM.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VEMB.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VEMB_RAW.js +42 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VGETATTR.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VINFO.js +27 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VLINKS.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VLINKS_WITHSCORES.js +39 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VRANDMEMBER.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VRANGE.js +31 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VREM.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VSETATTR.js +27 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VSIM.js +51 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VSIM_WITHSCORES.js +32 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/WAIT.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XACK.js +23 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XACKDEL.js +31 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XADD.js +71 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XADD_NOMKSTREAM.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XAUTOCLAIM.js +43 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XAUTOCLAIM_JUSTID.js +35 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XCFGSET.js +28 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XCLAIM.js +52 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XCLAIM_JUSTID.js +31 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XDEL.js +24 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XDELEX.js +29 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XGROUP_CREATE.js +29 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XGROUP_CREATECONSUMER.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XGROUP_DELCONSUMER.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XGROUP_DESTROY.js +24 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XGROUP_SETID.js +26 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XINFO_CONSUMERS.js +40 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XINFO_GROUPS.js +46 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XINFO_STREAM.js +72 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XLEN.js +23 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XPENDING.js +42 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XPENDING_RANGE.js +49 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XRANGE.js +50 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XREAD.js +57 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XREADGROUP.js +42 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XREVRANGE.js +49 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XSETID.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XTRIM.js +36 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZADD.js +73 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZADD_INCR.js +36 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZCARD.js +23 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZCOUNT.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZDIFF.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZDIFFSTORE.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZDIFF_WITHSCORES.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZINCRBY.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZINTER.js +26 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZINTERCARD.js +24 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZINTERSTORE.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZINTER_WITHSCORES.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZLEXCOUNT.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZMPOP.js +47 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZMSCORE.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZPOPMAX.js +34 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZPOPMAX_COUNT.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZPOPMIN.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZPOPMIN_COUNT.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANDMEMBER.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANDMEMBER_COUNT.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANDMEMBER_COUNT_WITHSCORES.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGE.js +45 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGEBYLEX.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGEBYSCORE.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGEBYSCORE_WITHSCORES.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGESTORE.js +37 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGE_WITHSCORES.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANK.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANK_WITHSCORE.js +38 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZREM.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZREMRANGEBYLEX.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZREMRANGEBYRANK.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZREMRANGEBYSCORE.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZREVRANK.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZSCAN.js +26 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZSCORE.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZUNION.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZUNIONSTORE.js +23 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZUNION_WITHSCORES.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/generic-transformers.js +492 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/index.js +1161 -0
- package/.output/server/node_modules/@redis/client/dist/lib/errors.js +110 -0
- package/.output/server/node_modules/@redis/client/dist/lib/lua-script.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/multi-command.js +48 -0
- package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/client-registry.js +84 -0
- package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/index.js +81 -0
- package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/metrics.js +647 -0
- package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/types.js +120 -0
- package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/utils/error.util.js +199 -0
- package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/utils/index.js +32 -0
- package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/SENTINEL_MASTER.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/SENTINEL_MONITOR.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/SENTINEL_REPLICAS.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/SENTINEL_SENTINELS.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/SENTINEL_SET.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/index.js +23 -0
- package/.output/server/node_modules/@redis/client/dist/lib/sentinel/index.js +1229 -0
- package/.output/server/node_modules/@redis/client/dist/lib/sentinel/module.js +10 -0
- package/.output/server/node_modules/@redis/client/dist/lib/sentinel/multi-commands.js +115 -0
- package/.output/server/node_modules/@redis/client/dist/lib/sentinel/pub-sub-proxy.js +150 -0
- package/.output/server/node_modules/@redis/client/dist/lib/sentinel/utils.js +98 -0
- package/.output/server/node_modules/@redis/client/dist/lib/sentinel/wait-queue.js +24 -0
- package/.output/server/node_modules/@redis/client/dist/lib/single-entry-cache.js +38 -0
- package/.output/server/node_modules/@redis/client/dist/lib/utils/digest.js +34 -0
- package/.output/server/node_modules/@redis/client/dist/package.json +52 -0
- package/.output/server/node_modules/@redis/client/package.json +52 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRAPPEND.js +26 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRINDEX.js +31 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRINSERT.js +27 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRLEN.js +23 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRPOP.js +32 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRTRIM.js +22 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/CLEAR.js +23 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/DEBUG_MEMORY.js +23 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/DEL.js +23 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/FORGET.js +23 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/GET.js +24 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/MERGE.js +22 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/MGET.js +23 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/MSET.js +25 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/NUMINCRBY.js +26 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/NUMMULTBY.js +25 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/OBJKEYS.js +23 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/OBJLEN.js +23 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/SET.js +35 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/STRAPPEND.js +26 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/STRLEN.js +23 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/TOGGLE.js +20 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/TYPE.js +29 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/index.js +91 -0
- package/.output/server/node_modules/@redis/json/dist/lib/index.js +9 -0
- package/.output/server/node_modules/@redis/json/package.json +36 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/AGGREGATE.js +212 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/AGGREGATE_WITHCURSOR.js +40 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/ALIASADD.js +17 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/ALIASDEL.js +16 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/ALIASUPDATE.js +17 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/ALTER.js +19 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/CONFIG_GET.js +23 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/CONFIG_SET.js +17 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/CREATE.js +277 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/CURSOR_DEL.js +17 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/CURSOR_READ.js +27 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/DICTADD.js +18 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/DICTDEL.js +18 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/DICTDUMP.js +19 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/DROPINDEX.js +24 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/EXPLAIN.js +29 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/EXPLAINCLI.js +26 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/HYBRID.js +273 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/INFO.js +106 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/PROFILE_AGGREGATE.js +58 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/PROFILE_SEARCH.js +58 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/SEARCH.js +160 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/SEARCH_NOCONTENT.js +34 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/SPELLCHECK.js +56 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGADD.js +28 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGDEL.js +18 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGGET.js +27 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGGET_WITHPAYLOADS.js +36 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGGET_WITHSCORES.js +51 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGGET_WITHSCORES_WITHPAYLOADS.js +53 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGLEN.js +15 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/SYNDUMP.js +27 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/SYNUPDATE.js +24 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/TAGVALS.js +20 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/_LIST.js +18 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/index.js +125 -0
- package/.output/server/node_modules/@redis/search/dist/lib/dialect/default.js +5 -0
- package/.output/server/node_modules/@redis/search/dist/lib/index.js +17 -0
- package/.output/server/node_modules/@redis/search/package.json +37 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/ADD.js +29 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/ALTER.js +23 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/CREATE.js +24 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/CREATERULE.js +48 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/DECRBY.js +40 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/DEL.js +20 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/DELETERULE.js +17 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/GET.js +33 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/INCRBY.js +40 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/INFO.js +58 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/INFO_DEBUG.js +46 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MADD.js +20 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MGET.js +57 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MGET_SELECTED_LABELS.js +23 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MGET_WITHLABELS.js +43 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE.js +44 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE_GROUPBY.js +96 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE_SELECTED_LABELS.js +51 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE_SELECTED_LABELS_GROUPBY.js +52 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE_WITHLABELS.js +59 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE_WITHLABELS_GROUPBY.js +52 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE.js +41 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE_GROUPBY.js +41 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE_SELECTED_LABELS.js +41 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE_SELECTED_LABELS_GROUPBY.js +42 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE_WITHLABELS.js +41 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE_WITHLABELS_GROUPBY.js +41 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/QUERYINDEX.js +20 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/RANGE.js +66 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/REVRANGE.js +40 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/helpers.js +237 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/index.js +113 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/index.js +17 -0
- package/.output/server/node_modules/@redis/time-series/package.json +36 -0
- package/.output/server/node_modules/cluster-key-slot/lib/index.js +166 -0
- package/.output/server/node_modules/cluster-key-slot/package.json +56 -0
- package/.output/server/node_modules/js-base64/base64.mjs +301 -0
- package/.output/server/node_modules/js-base64/package.json +43 -0
- package/.output/server/node_modules/promise-limit/index.js +88 -0
- package/.output/server/node_modules/promise-limit/package.json +39 -0
- package/.output/server/node_modules/redis/dist/index.js +77 -0
- package/.output/server/node_modules/redis/package.json +36 -0
- package/.output/server/node_modules/ws/lib/buffer-util.js +131 -0
- package/.output/server/node_modules/ws/lib/constants.js +19 -0
- package/.output/server/node_modules/ws/lib/event-target.js +292 -0
- package/.output/server/node_modules/ws/lib/extension.js +203 -0
- package/.output/server/node_modules/ws/lib/limiter.js +55 -0
- package/.output/server/node_modules/ws/lib/permessage-deflate.js +528 -0
- package/.output/server/node_modules/ws/lib/receiver.js +706 -0
- package/.output/server/node_modules/ws/lib/sender.js +602 -0
- package/.output/server/node_modules/ws/lib/stream.js +161 -0
- package/.output/server/node_modules/ws/lib/subprotocol.js +62 -0
- package/.output/server/node_modules/ws/lib/validation.js +152 -0
- package/.output/server/node_modules/ws/lib/websocket-server.js +554 -0
- package/.output/server/node_modules/ws/lib/websocket.js +1393 -0
- package/.output/server/node_modules/ws/package.json +69 -0
- package/.output/server/node_modules/ws/wrapper.mjs +8 -0
- package/.output/server/package.json +16 -1
- package/package.json +8 -2
- package/.output/public/_nuxt/8Ppmjv9D.js +0 -1
- package/.output/public/_nuxt/B1qjkRVO.js +0 -1
- package/.output/public/_nuxt/B3KEisfc.js +0 -1
- package/.output/public/_nuxt/BDXvbRNW.js +0 -1
- package/.output/public/_nuxt/BGRcizqy.js +0 -1
- package/.output/public/_nuxt/BOK5ZFNK.js +0 -1
- package/.output/public/_nuxt/BPY2ud8g.js +0 -1
- package/.output/public/_nuxt/BSONoRG4.js +0 -2
- package/.output/public/_nuxt/BT53m-su.js +0 -1
- package/.output/public/_nuxt/BTJSh8in.js +0 -2
- package/.output/public/_nuxt/BVpt8J3a.js +0 -1
- package/.output/public/_nuxt/Bdtn2mn5.js +0 -1
- package/.output/public/_nuxt/BqyO8OjC.js +0 -3867
- package/.output/public/_nuxt/Bs1og3h1.js +0 -10
- package/.output/public/_nuxt/Bs2DgR_z.js +0 -1
- package/.output/public/_nuxt/BxrwrGYE.js +0 -1
- package/.output/public/_nuxt/By0aUn7N.js +0 -1
- package/.output/public/_nuxt/C177_GoB.js +0 -1
- package/.output/public/_nuxt/C69a9jD3.js +0 -67
- package/.output/public/_nuxt/C8AyZ3_X.js +0 -2
- package/.output/public/_nuxt/C8KplD68.js +0 -1
- package/.output/public/_nuxt/CNF1h1lI.js +0 -1
- package/.output/public/_nuxt/CcK14gfI.js +0 -1
- package/.output/public/_nuxt/CjouDEjz.js +0 -1
- package/.output/public/_nuxt/Cp5lMcfd.js +0 -1
- package/.output/public/_nuxt/CpYiq1Wv.js +0 -1
- package/.output/public/_nuxt/CwmbX4-U.js +0 -1
- package/.output/public/_nuxt/D-YUpbah.js +0 -9
- package/.output/public/_nuxt/D9BYd7AV.js +0 -1
- package/.output/public/_nuxt/DCJ49Fnq.js +0 -1
- package/.output/public/_nuxt/DeBdxlx0.js +0 -1
- package/.output/public/_nuxt/Dkikh2OC.js +0 -22
- package/.output/public/_nuxt/DlOyXrKK.js +0 -1
- package/.output/public/_nuxt/DqA_edEU.js +0 -1
- package/.output/public/_nuxt/DqxL2Lpl.js +0 -1
- package/.output/public/_nuxt/Dt3rfvTn.js +0 -1
- package/.output/public/_nuxt/Dt5h0Tys.js +0 -1
- package/.output/public/_nuxt/DwrSZ8Vj.js +0 -1
- package/.output/public/_nuxt/DwyFZZT6.js +0 -1
- package/.output/public/_nuxt/EM8J-XL1.js +0 -7
- package/.output/public/_nuxt/ESKvsKwc.js +0 -1
- package/.output/public/_nuxt/V5LvXMJl.js +0 -1
- package/.output/public/_nuxt/builds/meta/455d4da4-6357-4478-8703-78a79ccbbc0f.json +0 -1
- package/.output/public/_nuxt/default.DC7ec2JI.css +0 -1
- package/.output/public/_nuxt/entry.qdzR7QFr.css +0 -1
- package/.output/public/_nuxt/fpuEgQ7C.js +0 -12
- package/.output/public/_nuxt/jU7fkvuR.js +0 -1
- package/.output/public/_nuxt/lHkFwi3L.js +0 -1
- package/.output/public/_nuxt/pQ8l8BR2.js +0 -1
- package/.output/public/_nuxt/xYXqL1eV.js +0 -1
- package/.output/public/_nuxt/xxfb8w7n.js +0 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{b1 as po,bD as fo,r as P,au as Fe,aH as pt,aG as vo,d$ as yo,e0 as go,e1 as ho,e2 as bo,e3 as _o,a3 as $e,c as C,d as Y,aK as Tn,e as x,o as h,f as o,w as m,m as y,t as B,g as e,k as D,l as U,aq as Pe,F as fe,s as ke,n as De,A as le,a6 as ye,e4 as Rt,cz as Rn,e5 as ut,e6 as W,e7 as ft,e8 as wo,cu as xt,cB as an,ct as Co,cG as So,cF as xo,ci as yt,aC as sn,e9 as kt,ea as ln,eb as rn,ec as No,G as we,dL as $n,ed as To,ay as Be,K as Je,ba as Qe,am as Mt,ap as Nt,J as qe,aM as Ze,aP as Ro,dg as $o,i as Ee,bo as lt,aY as he,a_ as be,a0 as Ce,z as A,a$ as _e,bn as cn,bL as dt,b9 as vt,aZ as Ae,df as Io,ee as un,bE as Lt,bF as Bt,bG as Ut,ef as ko,eg as Oo,eh as dn,ei as mn,_ as Vt,h as Kt,bS as qt,x as Qt,y as zt,bk as Xe,C as In,B as jt,ej as Eo,d9 as Ao,bY as pn,bW as Fo,bZ as Ht,D as Do,co as Po,cp as Mo,cq as kn,P as Oe,bm as $t,aB as Tt,b2 as On,c9 as fn,ek as En,a1 as Lo,X as Bo,Z as Uo,el as Vo,em as Ko,en as vn,eo as qo,ep as Qo,q as zo,p as jo,W as Ho,eq as Wo,dq as Go,bx as Yo,av as Jo,dh as Xo,er as yn}from"./D0lW43G8.js";import{e as An,c as Fn,d as Zo,_ as Dn,a as Pn,b as Mn}from"./CRqiHVA4.js";import{u as xe,r as ze}from"./C0vscAQB.js";import{d as ea}from"./Cf460dGA.js";import{_ as Ln}from"./CmjR7OTc.js";import{_ as Bn}from"./g9ZMnTLJ.js";import{_ as Un}from"./CLQzuV82.js";import{H as mt,c as ta,d as na,e as oa}from"./CS5akSNT.js";import{c as Vn,u as aa,a as sa,b as la,d as ra,F as ia,e as ca,_ as et}from"./Dtl3qje7.js";import{d as ua,t as da,e as ma}from"./CCmd8DpQ.js";import{_ as pa}from"./BMLhg7hE.js";import{_ as fa,a as va,b as gn}from"./bkzIFcLw.js";import{_ as Wt}from"./C-I81xfB.js";import{_ as ya,j as ga,k as ha}from"./Dunt8-TF.js";import{_ as ba,a as _a,C as j,b as wa}from"./DVkCRFXi.js";import{_ as Ca}from"./Db3rTgnd.js";import{_ as Dt,c as hn,a as Ft,e as bn,b as _n}from"./BCAMWuzu.js";import{f as wn,a as Sa}from"./CGq9Twnj.js";import{b as tt,a as nt}from"./BVmBXPoG.js";import{_ as je,a as He}from"./CtCx-4nJ.js";import{c as xa,a as Na,p as Ta,b as Ra}from"./Czr647QE.js";import{a as $a}from"./-lZvfnzr.js";import"./DChDHsIe.js";import"./YdOCcCRS.js";const Ia=c=>{if(!Array.isArray(c)||c.length===0)return;let t="";c.forEach((r,n)=>{const s=Object.entries(r).map(([v,d])=>`${d}`).join(" ");t+=s,n<c.length-1&&(t+=`
|
|
2
|
+
`)}),navigator.clipboard.writeText(t).catch(r=>{console.error("Failed to copy: ",r)})},Kn=po("quick-query-logs",()=>{const c=yo(),{workspaceId:t,connectionId:r}=fo(),n=P([]),s=({tableName:l,schemaName:_})=>n.value.filter(b=>b.tableName===l&&b.schemaName===_&&b.connectionId===r.value),v=async l=>{if(!r.value||!t.value){console.error("connectionId or schemaId not found");return}let _=`
|
|
3
|
+
${l.logs}`;l.errorMessage&&(_+=`
|
|
4
|
+
-- Error: ${l.errorMessage}`);const b={...l,logs:_,connectionId:r.value,workspaceId:t.value,createdAt:vo().toISOString(),id:pt()};await c.quickQueryLogStorage.create(b),n.value.push(b)},d=async({tableName:l,schemaName:_})=>{if(!r.value){console.error("connectionId or schemaId not found");return}await c.quickQueryLogStorage.delete({connectionId:r.value,tableName:l,schemaName:_}),await p(r.value)},i=async()=>{if(!r.value){console.error("connectionId not found");return}await c.quickQueryLogStorage.delete({connectionId:r.value}),await p(r.value)},p=async l=>{const _=await c.quickQueryLogStorage.getByContext({connectionId:l});n.value=_};return Fe(()=>[r.value],async()=>{if(!r.value){console.error("connectionId not found");return}await p(r.value)},{deep:!0,immediate:!0}),{qqLogs:n,getLogsByTableId:s,deleteAllLogs:i,deleteLogsOfTable:d,createLog:v}},{persist:!1});function ka(c){return ho(bo,c)}function Oa(c){return go(_o,c)}const Ea=({tableName:c,schemaName:t})=>{var d;const r=$e(),{data:n,status:s}=xe("/api/tables/size",{method:"POST",body:{tableName:c,dbConnectionString:(d=r.selectedConnection)==null?void 0:d.connectionString,schema:t},key:`table-size-${c}-${t}`},"$1Ta2y3cNQa");return{tableSize:C(()=>n.value||{}),status:s}},Aa={class:"gap-0 flex flex-col h-full w-full p-2"},Fa={class:"flex flex-col gap-y-1"},Da={class:"flex items-center justify-between w-full"},Pa={class:"text-xs opacity-75"},Ma={class:"flex items-center justify-between gap-4"},La={class:"text-xs opacity-75"},Ba={class:"flex items-center justify-between gap-4"},Ua={class:"text-xs opacity-75"},Va=["onClick"],Ka={class:"flex justify-between text-xs w-full overflow-hidden"},qa=["title"],Qa={class:"opacity-50 w-1/4 min-w-[100px] text-right"},za=Y({__name:"QuickQueryTableSummary",props:{tableName:{},schemaName:{},columns:{},selectedColumnFieldId:{},handleSelectColumn:{type:Function},columnTypes:{}},emits:["resetSelectedCol"],setup(c,{emit:t}){const r=t,{tableSize:n}=Ea({tableName:c.tableName,schemaName:c.schemaName}),s=C(()=>{var d;return(((d=c.columns)==null?void 0:d.map(i=>{var l;const p=(l=c.columnTypes)==null?void 0:l.find(_=>_.name===i.field&&_.name);return p?{...i,type:(p==null?void 0:p.type)||""}:i}))||[]).slice(1)}),v=d=>d==="timestamp without time zone"?"timestamp":d||"";return Tn(d=>{d(()=>{c.selectedColumnFieldId!==void 0&&r("resetSelectedCol")})}),(d,i)=>{const p=An,l=Fn,_=Pe,b=le;return h(),x("div",Aa,[o(l,{class:"py-1 rounded-md"},{default:m(()=>[o(p,{class:"px-2"},{default:m(()=>[y("div",Fa,[y("div",Da,[i[0]||(i[0]=y("span",{class:"text-xs font-medium"},"Table Size:",-1)),y("span",Pa,B(e(n).tableSize),1)]),y("div",Ma,[i[1]||(i[1]=y("span",{class:"text-xs font-medium"},"Data Size:",-1)),y("span",La,B(e(n).dataSize),1)]),y("div",Ba,[i[2]||(i[2]=y("span",{class:"text-xs font-medium"},"Index Size:",-1)),y("span",Ua,B(e(n).indexSize),1)])])]),_:1})]),_:1}),o(l,{class:"mt-1 py-2 px-1 h-full overflow-y-auto custom-scrollbar rounded-md"},{default:m(()=>[o(p,{class:"px-0"},{default:m(()=>[e(s).length===0?(h(),D(_,{key:0,title:"No columns",desc:"This table has no columns to display."})):U("",!0),(h(!0),x(fe,null,ke(e(s),f=>(h(),x("div",{key:f==null?void 0:f.field,class:De(["cursor-pointer hover:bg-accent/50 rounded-sm",e(Zo)(d.selectedColumnFieldId===(f==null?void 0:f.field)&&"bg-accent/90")])},[y("div",{class:"flex items-center gap-2 justify-start p-1",onClick:w=>d.handleSelectColumn(f==null?void 0:f.field)},[o(b,{name:"hugeicons:layout-3-column",class:"size-4 min-w-3"}),y("div",Ka,[y("span",{class:"w-3/4 truncate max-w-[220px] overflow-hidden text-ellipsis whitespace-nowrap inline-block",title:f==null?void 0:f.headerName},B((f==null?void 0:f.headerName)||""),9,qa),y("span",Qa,B(v(Array.isArray(f==null?void 0:f.type)?f==null?void 0:f.type.join(", "):f==null?void 0:f.type)),1)])],8,Va)],2))),128))]),_:1})]),_:1})])}}}),ja=Rn({isSelect:an().optional(),fieldName:xt(),operator:xt().optional(),search:wo(c=>qn(c),Co([xt(),So(),an(),xo()])).optional()}),qn=c=>{if(c!==void 0)return c===null||typeof c=="string"||typeof c=="number"||typeof c=="boolean"?c:typeof c=="bigint"?c.toString():JSON.stringify(c)},Gt=c=>c==null?"":String(c),Ha=c=>t=>c===ye.POSTGRES?`$${t}`:"?",Qn=c=>t=>c===ye.POSTGRES||c===ye.ORACLE?`"${t}"`:`\`${t}\``,Cn=({col:c,op:t})=>({where:`${c} ${t}`,params:[]}),Sn=({col:c,op:t,search:r,nextPlaceholder:n})=>{const s=Gt(r).split(",").map(d=>d.trim()).filter(Boolean);if(!s.length)return{where:"",params:[]};const v=s.map(()=>n()).join(", ");return{where:`${c} ${t} (${v})`,params:s}},xn=({col:c,op:t,search:r})=>({where:`${c} ${t} ${Gt(r)}`,params:[]}),Te=({col:c,op:t,search:r,db:n,nextPlaceholder:s})=>{const v=t.toUpperCase().startsWith("NOT"),d=t.toUpperCase().startsWith("ILIKE"),i=n===ye.POSTGRES&&d?"ILIKE":"LIKE";let p=Gt(r);return t.endsWith("%VALUE%")?p=`%${r}%`:t.endsWith("%VALUE")?p=`%${r}`:t.endsWith("VALUE%")&&(p=`${r}%`),{where:`${n===ye.POSTGRES?`${c}::TEXT`:c} ${v?" NOT ":" "}${i} ${s()}`,params:[p]}},st=({col:c,op:t,search:r,nextPlaceholder:n})=>({where:`${c} ${t} ${n()}`,params:[r]}),zn={[W.IS_NULL]:Cn,[W.IS_NOT_NULL]:Cn,[W.IN]:Sn,[W.NOT_IN]:Sn,[W.BETWEEN]:xn,[W.NOT_BETWEEN]:xn,[W.LIKE]:Te,[W.ILIKE]:Te,[W.LIKE_CONTAINS]:Te,[W.LIKE_PREFIX]:Te,[W.LIKE_SUFFIX]:Te,[W.ILIKE_CONTAINS]:Te,[W.ILIKE_PREFIX]:Te,[W.ILIKE_SUFFIX]:Te,[W.NOT_LIKE_CONTAINS]:Te,[W.NOT_LIKE_PREFIX]:Te,[W.NOT_LIKE_SUFFIX]:Te,[W.NOT_ILIKE_CONTAINS]:Te,[W.NOT_ILIKE_PREFIX]:Te,[W.NOT_ILIKE_SUFFIX]:Te,[W.EQUAL]:st,[W.NOT_EQUAL]:st,[W.LESS]:st,[W.GREATER]:st,[W.LESS_EQUAL]:st,[W.GREATER_EQUAL]:st};function Wa({search:c,columns:t,db:r,op:n,nextPlaceholder:s}){const v=Qn(r),d=zn[n],i=[],p=[];return t.forEach(l=>{const _=v(l),b=d({col:_,op:n,search:c,db:r,nextPlaceholder:s});b.where&&(i.push(b.where),p.push(...b.params))}),{where:i.length?`(${i.join(" OR ")})`:"",params:p}}function Ga({filters:c,db:t,columns:r=[],composeWith:n=ft.AND}){const s=[],v=[];let d=1;const i=Ha(t),p=()=>i(d++),l=Qn(t),_=({where:f,params:w})=>{f&&(s.push(f),v.push(...w))},b=new Set((Rt[t]??Rt[ye.MYSQL]??[]).map(f=>f.value.toUpperCase()));return c.forEach(f=>{if(!(f!=null&&f.isSelect))return;const w=ja.parse(f);if(w.fieldName===ut.AnyField){const S=Wa({search:w.search??"",columns:r,db:t,op:w.operator,nextPlaceholder:p});S.where&&(s.push(S.where),v.push(...S.params));return}if(w.fieldName===ut.RawQuery){if(!w.search)return;s.push(`(${w.search})`);return}const a=l(w.fieldName),g=(w.operator??W.LIKE_CONTAINS).toUpperCase(),u=b.has(g)?g:W.LIKE_CONTAINS;_(zn[u]({col:a,op:u,search:w.search??"",db:t,nextPlaceholder:p}))}),{where:s.length?`WHERE ${s.join(` ${n} `)}`:"",params:v}}function Pt({filters:c,db:t,columns:r=[],composeWith:n}){const{where:s,params:v}=Ga({filters:c,db:t,columns:r,composeWith:n});if(!s)return"";const d=i=>i===null?"NULL":typeof i=="boolean"?i?"TRUE":"FALSE":typeof i=="number"?String(i):`'${String(i).replace(/'/g,"''")}'`;if(t===ye.POSTGRES){let i=s;return v.forEach((p,l)=>{i=i.replace(new RegExp(`\\$${l+1}\\b`,"g"),d(p))}),i}else{let i=0;return s.replace(/\?/g,()=>d(v[i++]))}}function Ya(c){const t=c.toUpperCase().trim();return t==="IS NULL"||t==="IS NOT NULL"?"":t==="IN"||t==="NOT IN"?"value1,value2,value3":t==="BETWEEN"||t==="NOT BETWEEN"?"value1 AND value2":t.includes("LIKE")?t.endsWith("%VALUE%")?"contains":t.endsWith("VALUE%")?"prefix*":t.endsWith("%VALUE")?"*suffix":"pattern":"value"}function Ja(c){return[ye.MYSQL,ye.MYSQL2,ye.MARIADB].includes(c)}function Ke(c,t){return Ja(t)?`\`${c.replace(/`/g,"``")}\``:`"${c.replace(/"/g,'""')}"`}function It({schemaName:c,tableName:t,dbType:r}){const n=Ke(t,r);return c?`${Ke(c,r)}.${n}`:n}function Xa({schemaName:c,tableName:t,pKeys:r,update:n,pKeyValue:s,dbType:v}){if(!t||!(r!=null&&r.length)||!n||!Object.keys(n).length)throw new Error("Invalid input: tableName, pKeys, and update object are required");const d=Object.entries(n).map(([l,_])=>_===null?`${Ke(l,v)} = NULL`:typeof _=="string"?`${Ke(l,v)} = '${_.replace(/'/g,"''")}'`:`${Ke(l,v)} = ${_}`).join(", "),i=r.map(l=>`${Ke(l,v)} = '${s[l]}'`).join(" AND ");return`UPDATE ${It({schemaName:c,tableName:t,dbType:v})} SET ${d} WHERE ${i}`}function Za({schemaName:c,tableName:t,pKeys:r,pKeyValue:n,dbType:s}){if(!t||!(r!=null&&r.length))throw new Error("Invalid input: tableName and pKeys are required");const v=r.map(i=>`${Ke(i,s)} = '${n[i]}'`).join(" AND ");return`DELETE FROM ${It({schemaName:c,tableName:t,dbType:s})} WHERE ${v}`}function es({schemaName:c,tableName:t,insertData:r,dbType:n}){if(!t||!r)throw new Error("Invalid input: tableName, insertData object are required");if(!Object.keys(r).length)return`INSERT INTO ${It({schemaName:c,tableName:t,dbType:n})} DEFAULT VALUES`;const s=Object.entries(r).map(([i])=>Ke(i,n)).join(", "),v=Object.values(r).map(i=>i===null?"NULL":typeof i=="string"?`'${i.replace(/'/g,"''")}'`:i).join(", ");return`INSERT INTO ${It({schemaName:c,tableName:t,dbType:n})} (${s}) VALUES (${v})`}function jn(c){const t=c.toLowerCase();if(t.startsWith("_"))return`${jn(t.substring(1))}[]`;switch(t){case"char":case"varchar":case"text":case"uuid":case"citext":case"money":case"inet":case"cidr":case"macaddr":case"macaddr8":case"tsvector":case"tsquery":case"xml":case"bytea":return"string";case"int2":case"int4":case"int8":case"numeric":case"float4":case"float8":case"decimal":case"oid":return"number";case"bool":case"boolean":return"boolean";case"json":case"jsonb":return"any";case"date":case"timestamp":case"timestamptz":case"time":case"timetz":case"interval":return"string";case"bit":case"varbit":return"string";default:return"unknown"}}const Hn=({tableName:c,connection:t,primaryKeys:r,columns:n,isPersist:s=!0,schemaName:v,workspaceId:d,connectionId:i,initFilters:p,initComposeWith:l})=>{const _=yt(),b=Kn(),f=P(!1),w=P(""),a=sn({limit:kt,offset:0}),g=P([]),u=sn({}),S=P(!1),N=P(ft.AND),Z=C(()=>{var q;const k=_.tableAppearanceConfigs.nullOrderPreference,L=(q=t.value)==null?void 0:q.type;return k===ln.Unset||L!==ye.POSTGRES&&L!==ye.ORACLE?"":k===ln.NullsFirst?"NULLS FIRST":"NULLS LAST"}),ie=C(()=>{var L;const k=(L=t.value)==null?void 0:L.type;return k===ye.MYSQL||k===ye.MYSQL2||k===ye.MARIADB?q=>`\`${q}\``:q=>`"${q}"`}),J=C(()=>{const k=ie.value;return`${rn} ${k(v)}.${k(c)}`}),ue=C(()=>{var k;return S.value?Pt({columns:n.value,db:((k=t.value)==null?void 0:k.type)||ye.POSTGRES,filters:g.value,composeWith:N.value}):""}),me=C(()=>{let k="";const L=(u==null?void 0:u.order)||"ASC",q=(u==null?void 0:u.columnName)||r.value[0]||n.value[0],te=ie.value;q&&(k=`ORDER BY ${te(q)} ${L}`,Z.value&&(k=`${k} ${Z.value}`));const Ie=`LIMIT ${a.limit}`,Se=`OFFSET ${a.offset}`;return`${rn} ${te(v)}.${te(c)} ${ue.value||""} ${k} ${Ie} ${Se}`}),pe=C(()=>{const k=ie.value;return`${No} ${k(v)}.${k(c)} ${ue.value||""}`}),oe=(k,L=0,q,te)=>{b.createLog({tableName:c,schemaName:v,logs:k,queryTime:L,error:q,errorMessage:te})},{data:de,status:Ne,refresh:T}=xe("/api/query/execute",{method:"POST",body:{query:me,...we(t.value)},watch:!1,immediate:!1,key:c,cache:"default",onResponseError:k=>{var q,te,Ie,Se;const L=(te=(q=k.response)==null?void 0:q._data)==null?void 0:te.data;f.value=!0,w.value=((Se=(Ie=k.response)==null?void 0:Ie._data)==null?void 0:Se.message)||"",oe(me.value,0,L,w.value)},onResponse:({response:k})=>{var L;k.ok&&oe(me.value,(L=k._data)==null?void 0:L.queryTime)}},"$CR5sijiGqB"),{refresh:E,data:H,status:I}=xe("/api/query/execute",{method:"POST",body:{query:pe,...we(t.value)},watch:!1,immediate:!1,key:`${c}-count`,cache:"default",onResponse:({response:k})=>{var L;k.ok&&oe(pe.value,(L=k._data)==null?void 0:L.queryTime)}},"$2oQhQUxDSL"),V=C(()=>{var k,L,q;return Number(((q=(L=(k=H.value)==null?void 0:k.result)==null?void 0:L[0])==null?void 0:q.count)||0)}),K=C(()=>a.offset+a.limit<V.value),R=C(()=>a.offset>0),$=({limit:k,offset:L})=>{k<=0||L<0||(a.limit=k,a.offset=L,T())},F=({columnName:k,order:L})=>{u.columnName=k,u.order=L,T()},M=()=>{K&&(a.offset+=a.limit,T())},O=()=>{if(!R)return;const k=a.offset-a.limit;k<0?a.offset=0:a.offset=k,T()},Q=k=>{N.value=k,a.offset=0,T(),E()},ae=()=>{a.offset=0,T(),E()},ne=()=>To.queryBuilderKey((d==null?void 0:d.value)??"",(i==null?void 0:i.value)??"",v,c);Fe([g,a,u,S,N],ea(()=>{if(!s)return;const k=ne();localStorage.setItem(k,JSON.stringify({filters:g.value,pagination:{...a},orderBy:{...u},isShowFilters:S.value,composeWith:N.value}))},$n),{deep:!0}),(()=>{if(!s){p&&(g.value=p,S.value=!0),l&&(N.value=l);return}const k=ne(),L=localStorage.getItem(k),q=L?JSON.parse(L):null;if(q){const{filters:te,pagination:Ie,orderBy:Se,isShowFilters:Ge,composeWith:Me}=q;Se&&(u.columnName=Se.columnName,u.order=Se.order),Ie&&(a.limit=Ie.limit,a.offset=Ie.offset),te&&(g.value=te),Me&&(N.value=Me),S.value=!!Ge}})();const ce=C(()=>Ne.value==="pending"),ge=C(()=>{var k;return((k=de.value)==null?void 0:k.result)||[]});return{whereClauses:ue,pagination:a,queryString:me,onUpdatePagination:$,isAllowNextPage:K,isAllowPreviousPage:R,onNextPage:M,onPreviousPage:O,queryCountString:pe,data:ge,isFetchingTableData:ce,refreshTableData:T,refreshCount:E,totalRows:V,onApplyNewFilter:ae,baseQueryString:J,openErrorModal:f,onUpdateOrderBy:F,orderBy:u,errorMessage:w,filters:g,addHistoryLog:oe,isShowFilters:S,onChangeComposeWith:Q,composeWith:N}};var re=(c=>(c.Data="Data",c.Structure="Structure",c.Erd="Erd",c))(re||{});const Wn=()=>{const c=P(),t=P(),r=P([]),n=P(void 0),s=P(!1);return{quickQueryFilterRef:c,quickQueryTableRef:t,selectedRows:r,isMutating:s,focusedCell:n}},ts=({columnName:c,cellValue:t})=>c?{fieldName:c,isSelect:!0,operator:W.EQUAL,search:qn(t)}:null,Gn=({quickQueryFilterRef:c,quickQueryTableRef:t,filters:r,onApplyNewFilter:n})=>{const s=d=>{r.value=[...r.value,d]};return{appendFilter:s,onAddFilterByContextCell:async()=>{var p,l;const d=(p=t.value)==null?void 0:p.cellContextMenu;if(!d)return;const i=ts({columnName:d.colDef.field,cellValue:d.value});i&&(s(i),await Be(),(l=c.value)==null||l.onShowSearch(),n())}}};function Yn(c){const{tableName:t,schemaName:r,primaryKeys:n,columnNames:s,data:v,selectedRows:d,pagination:i,addHistoryLog:p,refreshTableData:l,refreshCount:_,openErrorModal:b,errorMessage:f,quickQueryTableRef:w,focusedCell:a,safeModeEnabled:g,onRequestSafeModeConfirm:u,connection:S}=c,N=P(!1),Z=async()=>{var $;const R=($=w.value)==null?void 0:$.gridApi;R&&(R==null||R.deselectAll(),R==null||R.clearFocusedCell(),_(),l())},ie=R=>{d.value=R},J=R=>{a&&(a.value=R)},ue=()=>{var R;return((R=w.value)==null?void 0:R.editedCells)??[]},me=()=>ue().filter(R=>R.isNewRow||Object.keys(R.changedData).length>0),pe=async()=>{var F;const R=me();if(!v.value||!R.length){Je.info("No changes to save.");return}const $=[];if(R.forEach(M=>{var ee,ce,ge;const O=!!Object.keys(M.changedData).length,Q=(ee=v.value)==null?void 0:ee[M.rowId],ae=O&&Q&&!M.isNewRow,ne=M.isNewRow||!Q&&O;if(ae){const k=Xa({tableName:t,schemaName:r,update:M.changedData,pKeys:n.value,pKeyValue:Q,dbType:(ce=S.value)==null?void 0:ce.type});$.push(k)}else if(ne){const k=es({tableName:t,schemaName:r,insertData:M.changedData,dbType:(ge=S.value)==null?void 0:ge.type});$.push(k)}}),!$.length){Je.info("No valid changes to save.");return}if(!(g!=null&&g.value&&u&&!await u($.join(`
|
|
5
|
+
`),"save"))){N.value=!0;try{const{queryTime:M}=await $fetch("/api/tables/bulk-update",{method:"POST",body:{sqlUpdateStatements:$,...we(S.value)},onResponseError({response:O}){var ne,ee,ce;const Q=(ee=(ne=O==null?void 0:O._data)==null?void 0:ne.data)==null?void 0:ee.driverError,ae=(ce=O==null?void 0:O._data)==null?void 0:ce.message;b.value=!0,console.error("Error during bulk update:",O==null?void 0:O._data),f.value=ae||"An unknown error occurred during update.",p($.join(`
|
|
6
|
+
`),0,Q,ae)}});(F=w.value)!=null&&F.editedCells&&(w.value.editedCells=[]),p($.join(`
|
|
7
|
+
`),M),_(),l(),Je.success("Data saved successfully!")}catch(M){console.error("Fetch error in onSaveData:",M)}finally{N.value=!1}}},oe=async()=>{var $,F;if(!d.value.length){Je.info("No rows selected for deletion.");return}const R=[];if(d.value.forEach(M=>{var Q;const O=Za({tableName:t,schemaName:r,pKeys:n.value,pKeyValue:M,dbType:(Q=S.value)==null?void 0:Q.type});R.push(O)}),!(g!=null&&g.value&&u&&!await u(R.join(`
|
|
8
|
+
`),"delete"))){N.value=!0;try{const{queryTime:M}=await $fetch("/api/tables/bulk-delete",{method:"POST",body:{sqlDeleteStatements:R,...we(S.value)},onResponseError({response:Q}){var ee,ce,ge;const ae=(ce=(ee=Q==null?void 0:Q._data)==null?void 0:ee.data)==null?void 0:ce.driverError,ne=(ge=Q==null?void 0:Q._data)==null?void 0:ge.message;b.value=!0,f.value=ne||"An unknown error occurred during deletion.",p(R.join(`
|
|
9
|
+
`),0,ae,ne)}});if((($=d.value)==null?void 0:$.length)===((F=v.value)==null?void 0:F.length)&&i.offset>0){const Q=i.offset-i.limit;i.offset=Q>0?Q:0}p(R.join(`
|
|
10
|
+
`),M||0),_(),l(),Je.success("Rows deleted successfully!")}catch(M){console.error("Fetch error in onDeleteRows:",M)}finally{N.value=!1}}},de=()=>{var ae,ne;const R=(ae=w.value)==null?void 0:ae.gridApi;if(!R){Je.error("Table grid API not available to add row.");return}let $=0;R.forEachNode(()=>$++);const F=$,M={[mt]:F+1,...Object.fromEntries(s.value.map(ee=>[ee,void 0]))};R.applyTransaction({add:[M],addIndex:F});const O=ue();if(!((ne=w.value)!=null&&ne.editedCells))return;w.value.editedCells=[...O,{rowId:F,changedData:{},isNewRow:!0}],R.setFocusedCell(F,s.value[0]);const Q=R.getRowNode(F.toString());Q&&(R.deselectAll(),Q.setSelected(!0))},Ne=()=>{!w.value||!me().length||(w.value.editedCells=[],Z(),Je.info("Changes discarded."))},T=C(()=>me().length),E=C(()=>T.value>0);return{onAddEmptyRow:de,onDiscardChanges:Ne,onDeleteRows:oe,onSaveData:pe,isMutating:N,hasEditedRows:E,pendingChangesCount:T,onCopyRows:()=>{const R=d.value;if(!R)return;const $=R.map(F=>{var O;const M=((F==null?void 0:F[mt])||1)-1;return(O=v.value)==null?void 0:O[M]});Ia($)},onPasteRows:async()=>{var F,M;const R=(F=w.value)==null?void 0:F.gridApi;if(!R)return;const $=R.getFocusedCell();$&&($==null||$.rowIndex,(M=$==null?void 0:$.column)==null||M.getColId(),await navigator.clipboard.readText())},onRefresh:Z,onSelectedRowsChange:ie,onCopySelectedCell:async()=>{a!=null&&a.value&&await navigator.clipboard.writeText(Vn(a.value)||"")},onFocusedCellChange:J,onDeselectAll:()=>{var $;($=w.value)!=null&&$.gridApi}}}const Jn=({tableName:c,schemaName:t,connectionId:r,tabViewType:n})=>{const s=Qe(),{schemas:v}=Mt(s),d=C(()=>{const a=v.value[r];if(a)return a.find(g=>g.name===t)}),i=C(()=>{var a,g,u,S;switch(n){case Nt.TableDetail:return(g=(a=d.value)==null?void 0:a.tableDetails)==null?void 0:g[c];case Nt.ViewDetail:{const N=(S=(u=d.value)==null?void 0:u.viewDetails)==null?void 0:S[c];return{columns:N==null?void 0:N.columns,foreign_keys:[],primary_keys:[],table_id:N==null?void 0:N.view_id}}default:return null}}),p=C(()=>n===Nt.ViewDetail),l=C(()=>{var a,g;return((g=(a=i.value)==null?void 0:a.columns)==null?void 0:g.map(u=>u.name))||[]}),_=C(()=>{var a;return(((a=i.value)==null?void 0:a.foreign_keys)||[]).map(g=>g.column)}),b=C(()=>{var a;return((a=i.value)==null?void 0:a.foreign_keys)||[]}),f=C(()=>{var a;return(((a=i.value)==null?void 0:a.primary_keys)||[]).map(g=>g.column)}),w=C(()=>{var a,g;return((g=(a=i.value)==null?void 0:a.columns)==null?void 0:g.map(u=>({name:u.name,type:u.short_type_name})))||[]});return{primaryKeyColumns:f,foreignKeys:b,columnNames:l,tableMetaData:i,columnTypes:w,foreignKeyColumns:_,isVirtualTable:p}},ns=()=>({[re.Data]:!0,[re.Structure]:!1,[re.Erd]:!1}),Xn=({initialTab:c=re.Data,onTabChanged:t}={})=>{const r=P(c),n=P(ns());return Fe(r,s=>{n.value[s]=!0,t==null||t(s)}),{quickQueryTabView:r,openedQuickQueryTab:n}},Yt=({schemaName:c,tableName:t})=>{const r=Qe(),{activeReservedSchemas:n}=Mt(r),s=C(()=>(n.value||[]).find(p=>p.table===t&&p.schema===c)),v=C(()=>{var p,l;const i=new Map;return(l=(p=s.value)==null?void 0:p.used_by)==null||l.forEach(_=>{i.set(_.referenced_column,!0)}),i});return{activeReservedSchemas:n,reverseTables:s,isHaveRelationByFieldName:i=>v.value.has(i)}};function Zn(){const c=P(!1),t=P(""),r=P("save");let n=null;return{safeModeDialogOpen:c,safeModeDialogSql:t,safeModeDialogType:r,onRequestSafeModeConfirm:(i,p)=>new Promise(l=>{t.value=i,r.value=p,c.value=!0,n=l}),onSafeModeConfirm:()=>{n&&(n(!0),n=null),c.value=!1},onSafeModeCancel:()=>{n&&(n(!1),n=null),c.value=!1}}}const os=["for"],as=["for"],ss=Y({__name:"DynamicForm",props:{fields:{},validationSchema:{},class:{}},setup(c,{expose:t}){const r=c,n=ua({validationSchema:da(r.validationSchema),name:`dynamic-form-${pt()}`});return t({form:n}),(s,v)=>(h(),x("div",{class:De(r.class)},[(h(!0),x(fe,null,ke(s.fields,d=>qe((h(),x("div",{key:d.name},[y("div",{class:De(["flex justify-between pb-0.5",d.titleClass])},[y("label",{class:"text-xs text-right",for:d.name},B(d.label),9,os),y("label",{class:"text-xs text-right text-primary/80",for:d.name},B(d.type),9,as)],2),o(e(ma),{as:d.as,id:d.name,name:d.name,class:De(d.class),placeholder:d.placeholder},null,8,["as","id","name","class","placeholder"])])),[[Ze,d.isShow]])),128))],2))}}),ls={class:"p-2 pb-0"},rs={class:"relative w-full"},is={class:"absolute left-1.5 top-1.5 w-4"},cs=Y({__name:"PreviewSelectedRow",props:{columnTypes:{},selectedRow:{}},setup(c){const t=c,r=C(()=>{const _={};return t.columnTypes.forEach(b=>{const f=jn(b.type);f==="boolean"?_[b.name]=Oa().optional():f==="number"?_[b.name]=ka().optional():_[b.name]=xt().optional()}),_}),n=Ro(""),s=$o(n,$n),v=C(()=>{const _=[],b=s.value.toLowerCase().trim();return t.columnTypes.forEach(f=>{const w=f.name.toLowerCase(),a=b?w.includes(b):!0;_.push({label:f.name,type:f.type,as:pa,name:f.name,class:"px-1 py-0.5 h-fit min-h-6! text-primary/80 font-normal!",placeholder:"NULL",isShow:a})}),_}),d=C(()=>{const _=s.value.toLowerCase().trim();return _?!t.columnTypes.some(b=>b.name.toLowerCase().includes(_)):!1}),i=C(()=>Rn(r.value)),p=P(),l=_=>{const b=Object.entries(_).reduce((f,[w,a])=>(f[w]=Vn(a||""),f),{});Be(()=>{var f;(f=p.value)==null||f.form.setValues(b)})};return Fe(()=>[t.selectedRow,p],([_])=>{_&&l(_)},{immediate:!0,deep:!0}),(_,b)=>{const f=le,w=lt;return h(),x(fe,null,[y("div",ls,[y("div",rs,[y("div",is,[o(f,{name:"lucide:search",class:"stroke-3!"})]),o(w,{type:"text",placeholder:"Search fields ...",class:"pr-6 pl-6 w-full h-8",modelValue:e(n),"onUpdate:modelValue":b[0]||(b[0]=a=>Ee(n)?n.value=a:null)},null,8,["modelValue"]),e(n)?(h(),x("div",{key:0,class:"absolute right-2 top-1.5 w-4 cursor-pointer rounded-md hover:bg-accent",onClick:b[1]||(b[1]=a=>n.value="")},[o(f,{name:"lucide:x",class:"stroke-3! text-muted-foreground"})])):U("",!0)])]),e(d)?(h(),D(e(Pe),{key:0,title:"No results",desc:"No fields match your search."})):(h(),D(ss,{key:1,ref_key:"dynamicForm",ref:p,class:"space-y-1 p-2 overflow-y-auto",fields:e(v),"validation-schema":e(i)},null,8,["fields","validation-schema"]))],64)}}}),us={class:"grid gap-3"},ds={class:"grid gap-2"},ms={class:"grid grid-cols-3 items-center gap-4"},ps={class:"grid grid-cols-3 items-center gap-4"},fs={class:"flex justify-center"},vs=Y({__name:"QuickPagination",props:{limit:{},offset:{},totalRows:{}},emits:["onPaginate"],setup(c,{emit:t}){const r=c,n=t,s=P(0),v=P(0),d=P(!1),i=()=>{s.value=r.limit,v.value=r.offset},p=()=>{if(v.value>r.totalRows){v.value=r.totalRows-1;return}v.value<0&&(v.value=r.offset)},l=()=>{if(s.value>r.totalRows){s.value=r.totalRows;return}s.value<0&&(s.value=r.limit)},_=()=>{p(),l(),n("onPaginate",{limit:s.value,offset:v.value}),d.value=!1};return(b,f)=>(h(),D(e(he),null,{default:m(()=>[o(e(Dn),{open:d.value,"onUpdate:open":f[2]||(f[2]=w=>d.value=w)},{default:m(()=>[o(e(Pn),{"as-child":""},{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(e(Ce),{onClick:i,variant:"outline",size:"xxs"},{default:m(()=>[A(B(b.limit),1)]),_:1})]),_:1}),o(e(_e),null,{default:m(()=>f[3]||(f[3]=[y("p",null,"Pagination settings",-1)])),_:1})]),_:1}),o(e(Mn),{class:"w-64"},{default:m(()=>[y("div",us,[f[7]||(f[7]=y("div",{class:"space-y-2"},[y("h4",{class:"font-medium leading-none"},"Pagination"),y("p",{class:"text-sm text-muted-foreground"},"Set limit and offset")],-1)),y("div",ds,[y("div",ms,[o(e(cn),{for:"limit"},{default:m(()=>f[4]||(f[4]=[A("Limit")])),_:1}),o(e(lt),{id:"limit",type:"number",modelValue:s.value,"onUpdate:modelValue":f[0]||(f[0]=w=>s.value=w),modelModifiers:{number:!0},class:"col-span-2 h-6",min:"1",onBlur:l,onKeyup:dt(_,["enter"])},null,8,["modelValue"])]),y("div",ps,[o(e(cn),{for:"offset"},{default:m(()=>f[5]||(f[5]=[A("Offset")])),_:1}),o(e(lt),{id:"offset",type:"number",modelValue:v.value,"onUpdate:modelValue":f[1]||(f[1]=w=>v.value=w),modelModifiers:{number:!0},class:"col-span-2 h-6",min:"0",onBlur:p,onKeyup:dt(_,["enter"])},null,8,["modelValue"])])]),y("div",fs,[o(e(Ce),{size:"xs",class:"px-6",onClick:_},{default:m(()=>f[6]||(f[6]=[A("Go")])),_:1})])])]),_:1})]),_:1},8,["open"])]),_:1}))}}),ys=Y({__name:"RefreshButton",emits:["onRefresh"],setup(c,{emit:t}){const r=t,n=P(0),s=()=>{n.value+=360,r("onRefresh")};return vt([{key:"meta+r",callback:()=>{s()}}],{isPreventDefault:!0}),(v,d)=>(h(),D(e(he),null,{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(e(Ce),{variant:"outline",size:"xxs",onClick:s,"aria-label":"Refresh table"},{default:m(()=>[o(e(le),{name:"hugeicons:refresh",style:Ae({transform:`rotate(${n.value}deg)`}),class:"icon-transition"},null,8,["style"]),o(e(Wt),null,{default:m(()=>d[0]||(d[0]=[A("⌘R")])),_:1})]),_:1})]),_:1}),o(e(_e),null,{default:m(()=>d[1]||(d[1]=[y("p",null,"Refresh data",-1)])),_:1})]),_:1}))}}),gs=Io(ys,[["__scopeId","data-v-d56d89e4"]]),hs={key:0,class:"flex items-center gap-1"},bs={key:0,class:"absolute -right-1.5 -top-1.5 min-w-4 rounded-full bg-green-700 px-1 text-xxs font-medium leading-4 text-white"},_s={key:4,class:"font-normal text-xs text-primary/60"},ws={key:5,class:"font-normal text-sm text-primary"},Cs={key:1},Ss={key:2,class:"flex items-center gap-2"},xs={class:"font-normal text-sm text-primary/80"},Ns={key:3},Ts={class:"flex items-center gap-1"},eo=Y({__name:"QuickQueryControlBar",props:{isAllowNextPage:{type:Boolean},isAllowPreviousPage:{type:Boolean},totalRows:{},limit:{},offset:{},currentTotalRows:{},totalSelectedRows:{},hasEditedRows:{type:Boolean},pendingChangesCount:{},tabView:{},isViewVirtualTable:{type:Boolean}},emits:["onRefresh","onPaginate","onNextPage","onPreviousPage","onShowFilter","onSaveData","onAddEmptyRow","onDiscardChanges","onDeleteRows","onToggleHistoryPanel","update:tabView"],setup(c,{emit:t}){const r=yt(),{openSettings:n}=ko(),s=c,v=t,d=P(),i=C(()=>s.tabView===re.Data);return C(()=>{var p;return((p=un.find(l=>l.value===r.tableAppearanceConfigs.nullOrderPreference))==null?void 0:p.label)||"Unset"}),(p,l)=>{const _=Wt,b=Ce,f=Ut,w=Bt,a=Lt,g=Oo("auto-animate");return h(),x("div",{ref_key:"quickQueryControlBarRef",ref:d,class:De(["w-full select-none h-9 flex items-center justify-between"])},[e(i)?qe((h(),x("div",hs,[o(e(he),null,{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(b,{variant:"outline",size:"xxs",onClick:l[0]||(l[0]=u=>v("onShowFilter"))},{default:m(()=>[o(e(le),{name:"lucide:filter"}),o(_,null,{default:m(()=>l[14]||(l[14]=[A("⌘F")])),_:1})]),_:1})]),_:1}),o(e(_e),null,{default:m(()=>l[15]||(l[15]=[y("p",null,"Filter data",-1)])),_:1})]),_:1}),o(gs,{onOnRefresh:l[1]||(l[1]=u=>v("onRefresh"))}),o(e(he),null,{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(b,{variant:"outline",size:"xxs",onClick:l[2]||(l[2]=u=>v("onToggleHistoryPanel"))},{default:m(()=>[o(e(le),{name:"lucide:terminal"}),o(_,null,{default:m(()=>l[16]||(l[16]=[A("⌘j")])),_:1})]),_:1})]),_:1}),o(e(_e),null,{default:m(()=>l[17]||(l[17]=[y("p",null,"History logs",-1)])),_:1})]),_:1}),p.isViewVirtualTable?U("",!0):(h(),D(e(he),{key:0},{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(b,{variant:"outline",class:"font-normal",size:"xxs",onClick:l[3]||(l[3]=u=>v("onAddEmptyRow"))},{default:m(()=>[o(e(le),{name:"hugeicons:plus-sign"}),l[18]||(l[18]=A(" Row "))]),_:1})]),_:1}),o(e(_e),null,{default:m(()=>l[19]||(l[19]=[y("p",null,"Add new record",-1)])),_:1})]),_:1})),p.hasEditedRows&&!p.isViewVirtualTable?(h(),D(e(he),{key:1},{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(b,{variant:"outline",size:"xxs",class:"relative overflow-visible",onClick:l[4]||(l[4]=u=>v("onSaveData"))},{default:m(()=>[o(e(le),{name:"lucide:save"}),p.pendingChangesCount?(h(),x("span",bs,B(p.pendingChangesCount),1)):U("",!0),o(_,null,{default:m(()=>l[20]||(l[20]=[A("⌘S")])),_:1})]),_:1})]),_:1}),o(e(_e),null,{default:m(()=>l[21]||(l[21]=[y("p",null,"Save changes",-1)])),_:1})]),_:1})):U("",!0),p.hasEditedRows&&!p.isViewVirtualTable?(h(),D(e(he),{key:2},{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(b,{variant:"outline",size:"xxs",class:"font-normal",onClick:l[5]||(l[5]=u=>v("onDiscardChanges"))},{default:m(()=>[o(e(le),{name:"hugeicons:undo-02"}),l[22]||(l[22]=A(" Discard "))]),_:1})]),_:1}),o(e(_e),null,{default:m(()=>l[23]||(l[23]=[y("p",null,"Discard changes",-1)])),_:1})]),_:1})):U("",!0),p.totalSelectedRows&&!p.isViewVirtualTable?(h(),D(e(he),{key:3},{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(b,{variant:"outline",size:"xxs",onClick:l[6]||(l[6]=u=>v("onDeleteRows"))},{default:m(()=>[o(e(le),{name:"lucide:trash"}),o(_,null,{default:m(()=>l[24]||(l[24]=[A("⌥⌘⌫")])),_:1})]),_:1})]),_:1}),o(e(_e),null,{default:m(()=>[y("p",null,"Delete "+B(p.totalSelectedRows)+" selected rows",1)]),_:1})]),_:1})):U("",!0),p.totalSelectedRows?(h(),x("p",_s," Selected ")):U("",!0),p.totalSelectedRows?(h(),x("p",ws,B(p.totalSelectedRows),1)):U("",!0)])),[[g]]):(h(),x("div",Cs)),e(i)?(h(),x("div",Ss,[o(e(he),null,{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(b,{variant:"outline",size:"iconSm",disabled:!p.isAllowPreviousPage,onClick:l[7]||(l[7]=u=>v("onPreviousPage"))},{default:m(()=>[o(e(le),{name:"lucide:chevron-left"})]),_:1},8,["disabled"])]),_:1}),o(e(_e),null,{default:m(()=>l[25]||(l[25]=[y("p",null,"Previous page",-1)])),_:1})]),_:1}),y("div",xs,[A(B(p.offset+1)+"-"+B(p.offset+p.currentTotalRows)+" ",1),l[26]||(l[26]=y("p",{class:"font-normal text-xs text-primary/60 inline"},"of",-1)),A(" "+B(p.totalRows)+" ",1),l[27]||(l[27]=y("p",{class:"font-normal text-xs text-primary/60 inline"},"rows",-1))]),o(e(he),null,{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(b,{variant:"outline",size:"iconSm",disabled:!p.isAllowNextPage,onClick:l[8]||(l[8]=u=>v("onNextPage"))},{default:m(()=>[o(e(le),{name:"lucide:chevron-right"})]),_:1},8,["disabled"])]),_:1}),o(e(_e),null,{default:m(()=>l[28]||(l[28]=[y("p",null,"Next page",-1)])),_:1})]),_:1}),o(vs,{limit:p.limit,offset:p.offset,totalRows:p.totalRows,onOnPaginate:l[9]||(l[9]=u=>v("onPaginate",u))},null,8,["limit","offset","totalRows"])])):(h(),x("div",Ns)),y("div",Ts,[o(a,{"model-value":p.tabView,"onUpdate:modelValue":l[10]||(l[10]=u=>p.$emit("update:tabView",u))},{default:m(()=>[o(w,{class:"grid w-full grid-cols-3 h-[1.625rem]!"},{default:m(()=>[o(f,{value:e(re).Data,class:"h-5! px-1 font-medium text-xs cursor-pointer text-primary/80"},{default:m(()=>l[29]||(l[29]=[A(" Data ")])),_:1},8,["value"]),o(f,{value:e(re).Structure,class:"h-5! px-1 font-medium text-xs cursor-pointer text-primary/80"},{default:m(()=>l[30]||(l[30]=[A(" Structure ")])),_:1},8,["value"]),o(f,{value:e(re).Erd,class:"h-5! px-1 font-medium text-xs cursor-pointer text-primary/80",disabled:p.isViewVirtualTable},{default:m(()=>l[31]||(l[31]=[A(" ERD ")])),_:1},8,["value","disabled"])]),_:1})]),_:1},8,["model-value"]),o(e(he),null,{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(b,{variant:"ghost",size:"iconSm",onClick:l[11]||(l[11]=u=>e(n)("Quick Query"))},{default:m(()=>[e(r).quickQuerySafeModeEnabled?(h(),D(e(le),{key:0,name:"hugeicons:security-check",class:"size-4!"})):(h(),D(e(le),{key:1,name:"lucide:shield-minus",class:"size-4! text-muted-foreground"}))]),_:1})]),_:1}),o(e(_e),null,{default:m(()=>[y("p",null," Safe Mode: "+B(e(r).quickQuerySafeModeEnabled?"Enabled":"Disabled"),1),l[32]||(l[32]=y("p",{class:"text-xs text-muted-foreground"},"Click to configure",-1))]),_:1})]),_:1}),o(e(ya),null,{default:m(()=>[o(e(ga),{"as-child":""},{default:m(()=>[o(b,{variant:"ghost",size:"xxs"},{default:m(()=>[o(e(le),{name:"hugeicons:arrow-up-down",class:"size-4!"})]),_:1})]),_:1}),o(e(ha),{align:"end",class:"min-w-44"},{default:m(()=>[o(e(ba),{class:"py-0"},{default:m(()=>l[33]||(l[33]=[A("Null ordering")])),_:1}),o(e(_a)),o(e(fa),{"model-value":e(r).tableAppearanceConfigs.nullOrderPreference,"onUpdate:modelValue":l[12]||(l[12]=u=>e(r).tableAppearanceConfigs.nullOrderPreference=u)},{default:m(()=>[(h(!0),x(fe,null,ke(e(un),u=>(h(),D(e(va),{key:u.value,value:u.value,class:"h-7 cursor-pointer"},{default:m(()=>[A(B(u.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["model-value"])]),_:1})]),_:1}),o(e(he),null,{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(b,{variant:"ghost",size:"iconSm",onClick:l[13]||(l[13]=u=>e(n)("Appearance"))},{default:m(()=>[o(e(le),{name:"hugeicons:settings-04",class:"size-4!"})]),_:1})]),_:1}),o(e(_e),null,{default:m(()=>l[34]||(l[34]=[y("p",null,"Table appearance settings",-1)])),_:1})]),_:1})])],512)}}}),Rs={class:"sticky top-0 z-10 bg-popover"},$s={class:"p-1"},Is={key:3,class:"px-2 py-1 text-sm text-muted-foreground"},ks=Y({__name:"ColumnSelector",props:{columns:{},value:{}},emits:["update:value","update:open"],setup(c,{emit:t}){const r=c,n=t,s=P(""),v=C(()=>s.value.trim().toLowerCase()),d=C(()=>new dn(r.columns,{threshold:.35,ignoreLocation:!0,minMatchCharLength:1})),i=C(()=>new dn(mn,{keys:["label","value"],threshold:.35,ignoreLocation:!0,minMatchCharLength:1})),p=C(()=>{const b=v.value;return b?d.value.search(b).map(f=>f.item):r.columns}),l=C(()=>{const b=v.value;return b?i.value.search(b).map(f=>f.item):mn}),_=b=>{n("update:open",b),b||(s.value="")};return(b,f)=>{const w=qt,a=Kt,g=lt,u=In,S=jt,N=zt,Z=Qt,ie=Vt;return h(),D(ie,{"model-value":b.value,"onUpdate:modelValue":f[4]||(f[4]=J=>n("update:value",J)),"onUpdate:open":_},{default:m(()=>[o(a,{class:"w-36 min-w-36 h-6! text-sm cursor-pointer px-2"},{default:m(()=>[o(w,{placeholder:"Select field"})]),_:1}),o(Z,null,{default:m(()=>[o(N,null,{default:m(()=>[y("div",Rs,[y("div",$s,[o(g,{"model-value":e(s),"onUpdate:modelValue":f[0]||(f[0]=J=>Ee(s)?s.value=J:null),type:"text",placeholder:"Search fields",class:"h-7 text-sm",autocomplete:"off",onClick:f[1]||(f[1]=Xe(()=>{},["stop"])),onMousedown:f[2]||(f[2]=Xe(()=>{},["stop"])),onKeydown:f[3]||(f[3]=Xe(()=>{},["stop"]))},null,8,["model-value"])]),o(u)]),e(p).length?(h(!0),x(fe,{key:0},ke(e(p),J=>(h(),D(S,{key:J,class:"h-6 text-sm cursor-pointer",value:J},{default:m(()=>[A(B(J),1)]),_:2},1032,["value"]))),128)):U("",!0),e(p).length&&e(l).length?(h(),D(u,{key:1})):U("",!0),e(l).length?(h(!0),x(fe,{key:2},ke(e(l),J=>(h(),D(S,{key:J.value,class:"h-6 text-sm cursor-pointer",value:J.value},{default:m(()=>[A(B(J.label),1)]),_:2},1032,["value"]))),128)):U("",!0),!e(p).length&&!e(l).length?(h(),x("div",Is," No fields found ")):U("",!0)]),_:1})]),_:1})]),_:1},8,["model-value"])}}}),Os=Y({__name:"OperatorSelector",props:{dbType:{},value:{}},emits:["update:value","update:open"],setup(c){const t=c,r=C(()=>Rt[t.dbType]??Rt[ye.MYSQL]??[]);return(n,s)=>{const v=qt,d=Kt,i=jt,p=zt,l=Qt,_=Vt;return h(),D(_,{"model-value":n.value,"onUpdate:modelValue":s[0]||(s[0]=b=>n.$emit("update:value",b)),"onUpdate:open":s[1]||(s[1]=b=>n.$emit("update:open",b))},{default:m(()=>[o(d,{class:"w-36 min-w-36 h-6! text-sm cursor-pointer px-2"},{default:m(()=>[o(v,{placeholder:"Select operator"})]),_:1}),o(l,null,{default:m(()=>[o(p,null,{default:m(()=>[(h(!0),x(fe,null,ke(e(r),b=>(h(),x(fe,null,[b.value===e(Eo).value?(h(),D(e(In),{key:0})):(h(),D(i,{key:1,class:"h-6 text-sm cursor-pointer",value:b.value},{default:m(()=>[A(B(b.label),1)]),_:2},1032,["value"]))],64))),256))]),_:1})]),_:1})]),_:1},8,["model-value"])}}}),Es={class:"text-xs font-medium"},As={class:"text-xs font-medium"},Fs=Y({__name:"ViewParserFilterApply",props:{getParserApplyFilter:{type:Function},getParserAllFilter:{type:Function}},setup(c){const t=c,r=P(""),n=P(""),s=()=>{r.value=wn(t.getParserApplyFilter(),{language:"postgresql",keywordCase:"upper"}),n.value=wn(t.getParserAllFilter(),{language:"postgresql",keywordCase:"upper"})};return(v,d)=>(h(),D(e(he),null,{default:m(()=>[o(e(Dn),null,{default:m(()=>[o(e(Pn),{"as-child":""},{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(e(Ce),{onClick:s,size:"xxs",variant:"outline"},{default:m(()=>d[0]||(d[0]=[A(" SQL ")])),_:1})]),_:1}),o(e(_e),null,{default:m(()=>d[1]||(d[1]=[y("p",null,"View SQL query",-1)])),_:1})]),_:1}),o(e(Mn),{class:"w-[40rem] p-2 space-y-2","restore-focus":!0},{default:m(()=>[y("div",Es,[d[2]||(d[2]=A(" Curren filter ")),o(e(Dt),{code:e(r),language:"sql","max-height":"15rem",class:"mt-1"},null,8,["code"])]),y("div",As,[d[3]||(d[3]=A(" Apply all filter ")),o(e(Dt),{code:e(n),language:"sql","max-height":"15rem",class:"mt-1"},null,8,["code"])])]),_:1})]),_:1})]),_:1}))}}),Ds={class:"flex justify-between"},Ps={class:"flex items-center gap-0.5 text-xs"},Ms={class:"text-xs flex items-center gap-2"},Ls=Y({__name:"QuickQueryFilterGuide",props:{getParserApplyFilter:{type:Function},getParserAllFilter:{type:Function},composeWith:{}},emits:["onChangeComposeWith"],setup(c,{emit:t}){const r=t;return(n,s)=>{const v=qt,d=Kt,i=jt,p=zt,l=Qt,_=Vt,b=Wt;return h(),x("div",Ds,[y("div",Ps,[s[3]||(s[3]=A(" Compose with: ")),o(_,{modelValue:n.composeWith,"onUpdate:modelValue":s[0]||(s[0]=f=>r("onChangeComposeWith",f))},{default:m(()=>[o(d,{class:"w-14 h-5! text-xs cursor-pointer px-1 border-none gap-1 shadow-none"},{default:m(()=>[o(v,{placeholder:"Select operator"})]),_:1}),o(l,null,{default:m(()=>[o(p,null,{default:m(()=>[o(i,{class:"h-5 text-xs cursor-pointer",value:e(ft).AND},{default:m(()=>s[1]||(s[1]=[A(" AND ")])),_:1},8,["value"]),o(i,{class:"h-5 text-xs cursor-pointer",value:e(ft).OR},{default:m(()=>s[2]||(s[2]=[A(" OR ")])),_:1},8,["value"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),y("div",Ms,[y("div",null,[o(b,null,{default:m(()=>s[4]||(s[4]=[A("⌘F")])),_:1}),s[5]||(s[5]=A(": Show"))]),y("div",null,[o(b,null,{default:m(()=>s[6]||(s[6]=[A("Esc")])),_:1}),s[7]||(s[7]=A(": Exit"))]),o(e(Ao),{orientation:"vertical",class:"h-3/4!"}),y("div",null,[o(b,null,{default:m(()=>s[8]||(s[8]=[A("⌘I")])),_:1}),s[9]||(s[9]=A(": Insert"))]),y("div",null,[o(b,null,{default:m(()=>s[10]||(s[10]=[A("⌘⌫")])),_:1}),s[11]||(s[11]=A(": Delete"))]),y("div",null,[o(b,null,{default:m(()=>s[12]||(s[12]=[A("⌘↵")])),_:1}),s[13]||(s[13]=A(": Apply all"))])]),y("div",null,[o(Fs,{getParserApplyFilter:n.getParserApplyFilter,getParserAllFilter:n.getParserAllFilter},null,8,["getParserApplyFilter","getParserAllFilter"])])])}}}),to=Y({__name:"QuickQueryFilter",props:pn({columns:{},dbType:{},baseQuery:{},initFilters:{},composeWith:{}},{isShowFilters:{},isShowFiltersModifiers:{}}),emits:pn(["onSearch","onUpdateFilters","onChangeComposeWith"],["update:isShowFilters"]),setup(c,{expose:t,emit:r}){const n=c,s=Fo(c,"isShowFilters"),v=r,d=P(),i=Ht("filterSearchRefs"),p=C(()=>n.initFilters||[]),l=()=>p.value.map(T=>({...T})),_=T=>{v("onUpdateFilters",T)},b=(T,E)=>{const H=l(),I=H[T];I&&(H[T]={...I,...E},_(H))},f=(T,E)=>{const H=l();H.splice(T,0,{...E}),_(H)},w=T=>{const E=l();E.splice(T,1),_(E)},a=T=>{f(T+1,{isSelect:!0,fieldName:ut.AnyField,operator:W.LIKE_CONTAINS})},g=(T,E)=>{var K;const H=(K=p.value)==null?void 0:K[T],I=(H==null?void 0:H.fieldName)===ut.RawQuery,V=!(H!=null&&H.operator);I&&V?b(T,{...H,fieldName:E,operator:W.LIKE_CONTAINS}):b(T,{...H,fieldName:E})},u=()=>`${n.baseQuery} ${Pt({columns:n.columns,db:n.dbType,filters:p.value,composeWith:n.composeWith})};`,S=()=>`${n.baseQuery} ${Pt({columns:n.columns,db:n.dbType,filters:p.value.map(T=>({...T,isSelect:!0})),composeWith:n.composeWith})};`,N=(T=!1)=>{if(T){v("onSearch");return}v("onSearch")},Z=T=>{var H;const E=(H=p.value)==null?void 0:H[T];E!=null&&E.isSelect||b(T,{...E,isSelect:!0}),N()},ie=()=>{_(p.value.map(T=>({...T,isSelect:!0}))),N()},J=async T=>{var I;const E=(I=p.value)==null?void 0:I[T],H=!!(E!=null&&E.isSelect);w(T),await Be(),T!==0&&oe(T-1),H&&N()},ue=T=>T==null?"":String(T),me=(T,E)=>{b(T,{search:E})},pe=async(T,E)=>{b(T,{isSelect:E}),await N()},oe=T=>{var E,H;i.value&&((H=(E=i.value)==null?void 0:E[T])==null||H.$el.focus())},de=()=>{p.value.length||a(-1),s.value=!0,Be(()=>{const T=p.value.length-1||0;oe(T)})},Ne=()=>i.value?i.value.findIndex(E=>E.$el===document.activeElement):void 0;return vt([{key:"meta+backspace",callback:async()=>{const T=Ne();T===void 0||T<0||J(T)}},{key:"meta+enter",callback:()=>{const T=Ne();T!==void 0&&T>=0&&ie()}},{key:"meta+i",callback:async()=>{const T=Ne();T===void 0||T<0||(a(T),await Be(),oe(T+1))}},{key:"escape",callback:()=>{s.value=!1,N(!0)}}],{target:d}),t({onShowSearch:de,insert:f}),(T,E)=>{const H=Ca,I=lt,V=Ce;return s.value?(h(),x("div",{key:0,ref_key:"quickQueryFilterRef",ref:d,class:De(["h-fit space-y-1",e(p).length&&"pb-2"])},[(h(!0),x(fe,null,ke(e(p),(K,R)=>(h(),x("div",{class:"flex gap-1 items-center",key:R},[o(H,{"model-value":K.isSelect,onClick:E[0]||(E[0]=Xe(()=>{},["stop"])),onKeydown:E[1]||(E[1]=dt(Xe(()=>{},["stop","prevent"]),["enter"])),onKeyup:E[2]||(E[2]=dt(Xe(()=>{},["stop"]),["enter"])),"onUpdate:modelValue":$=>pe(R,!!$)},null,8,["model-value","onUpdate:modelValue"]),o(ks,{columns:T.columns,value:K.fieldName,"onUpdate:value":$=>{g(R,$)},"onUpdate:open":$=>{$||T.$nextTick(()=>oe(R))}},null,8,["columns","value","onUpdate:value","onUpdate:open"]),K.fieldName!==e(ut).RawQuery?(h(),D(Os,{key:0,"db-type":T.dbType,value:K.operator,"onUpdate:value":$=>b(R,{operator:$==null?void 0:String($)}),"onUpdate:open":$=>{$||T.$nextTick(()=>oe(R))}},null,8,["db-type","value","onUpdate:value","onUpdate:open"])):U("",!0),o(I,{"model-value":ue(K.search),type:"text",placeholder:e(Ya)(K.operator||""),class:"w-full h-6 px-2",ref_for:!0,ref_key:"filterSearchRefs",ref:i,onKeyup:E[3]||(E[3]=dt(Xe(()=>N(),["stop"]),["enter"])),"onUpdate:modelValue":$=>me(R,String($))},null,8,["model-value","placeholder","onUpdate:modelValue"]),o(e(he),null,{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(V,{size:"xxs",variant:"outline",onClick:$=>Z(R)},{default:m(()=>E[5]||(E[5]=[A(" Apply ")])),_:2},1032,["onClick"])]),_:2},1024),o(e(_e),null,{default:m(()=>E[6]||(E[6]=[y("p",null,"Apply this filter",-1)])),_:1})]),_:2},1024),o(e(he),null,{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(V,{size:"iconSm",variant:"outline",onClick:$=>J(R)},{default:m(()=>[o(e(le),{name:"hugeicons:minus-sign"})]),_:2},1032,["onClick"])]),_:2},1024),o(e(_e),null,{default:m(()=>E[7]||(E[7]=[y("p",null,"Remove filter (Meta+Backspace)",-1)])),_:1})]),_:2},1024),o(e(he),null,{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(V,{size:"iconSm",variant:"outline",onClick:()=>a(R)},{default:m(()=>[o(e(le),{name:"hugeicons:plus-sign"})]),_:2},1032,["onClick"])]),_:2},1024),o(e(_e),null,{default:m(()=>E[8]||(E[8]=[y("p",null,"Add new filter (Meta+I)",-1)])),_:1})]),_:2},1024)]))),128)),e(p).length?(h(),D(Ls,{key:0,getParserApplyFilter:u,getParserAllFilter:S,"compose-with":T.composeWith,onOnChangeComposeWith:E[4]||(E[4]=K=>v("onChangeComposeWith",K))},null,8,["compose-with"])):U("",!0)],2)):U("",!0)}}}),no=Y({__name:"QuickQueryContextMenu",props:{totalSelectedRows:{},hasEditedRows:{type:Boolean},isReferencedTable:{type:Boolean},cellContextMenu:{},cellHeaderContextMenu:{},data:{},selectedRows:{},tableName:{},schemaName:{}},emits:["onRefresh","onSaveData","onAddEmptyRow","onDeleteRows","onCopyRows","onPasteRows","onCopySelectedCell","onFilterByValue","onClearContextMenu"],setup(c,{emit:t}){const r=yt(),n=c,s=t,v=C(()=>{var u,S,N,Z;return((S=(u=n.cellContextMenu)==null?void 0:u.column)==null?void 0:S.getColId())??((Z=(N=n.cellHeaderContextMenu)==null?void 0:N.column)==null?void 0:Z.getColId())}),d=C(()=>{var u,S,N;return((u=n.cellContextMenu)==null?void 0:u.column.getColDef().headerName)??((N=(S=n.cellHeaderContextMenu)==null?void 0:S.column)==null?void 0:N.getColDef().headerName)??""}),i=u=>{hn(n.selectedRows||[],d.value??"",u)},p=u=>{hn(n.data||[],d.value??"",u)},l=u=>Ft(n.selectedRows||[],n.tableName||"table_data",u,n.schemaName),_=u=>Ft(n.data||[],n.tableName||"table_data",u,n.schemaName),b=u=>bn(n.selectedRows||[],n.tableName||"table_data",u,"selected",n.schemaName),f=u=>bn(n.data||[],n.tableName||"table_data",u,"all",n.schemaName),w=()=>{var S;const u=(S=n.cellContextMenu)==null?void 0:S.value;if(u!==void 0){if(typeof u=="object")return _n(JSON.stringify(u));_n(String(u))}},a=()=>{var u;if(n.cellContextMenu){const S=(u=n.cellContextMenu)==null?void 0:u.data;Ft([S],n.tableName||"table_data","csv-no-header",n.schemaName)}},g=C(()=>{var pe;const u=!!n.cellContextMenu,S=n.selectedRows.length>0,N=n.selectedRows.length,Z=((pe=n.data)==null?void 0:pe.length)||0,ie=!!v.value,J=[{type:j.LABEL,title:`${N} selected`,condition:S&&u},{type:j.ACTION,title:"Copy as text",icon:"hugeicons:file-01",select:()=>i("list"),condition:S&&u},{type:j.ACTION,title:"Copy as JSON",icon:"hugeicons:code",select:()=>i("json"),condition:S&&u},{type:j.SEPARATOR,condition:S&&u},{type:j.LABEL,title:"All data in column"},{type:j.ACTION,title:"Copy as text",icon:"hugeicons:file-01",select:()=>p("list")},{type:j.ACTION,title:"Copy as JSON",icon:"hugeicons:code",select:()=>p("json")}],ue=[{type:j.LABEL,title:`${N} selected row(s)`,condition:S},{type:j.ACTION,title:"Copy as CSV/TSV",icon:"hugeicons:csv-02",select:()=>l("csv-no-header"),condition:S},{type:j.ACTION,title:"Copy as JSON",icon:"hugeicons:code",select:()=>l("json"),condition:S},{type:j.ACTION,title:"Copy as SQL",icon:"hugeicons:database",select:()=>l("sql"),condition:S},{type:j.SEPARATOR,condition:S},{type:j.LABEL,title:"All rows"},{type:j.ACTION,title:"Copy as CSV/TSV",icon:"hugeicons:csv-02",select:()=>_("csv-no-header")},{type:j.ACTION,title:"Copy as JSON",icon:"hugeicons:code",select:()=>_("json")},{type:j.ACTION,title:"Copy as SQL",icon:"hugeicons:database",select:()=>_("sql")}],me=[{type:j.LABEL,title:`${N} selected row${N>1?"s":""}`,condition:S},{type:j.ACTION,title:"Export as CSV",icon:"hugeicons:csv-01",select:()=>b("csv-no-header"),condition:S},{type:j.ACTION,title:"Export as CSV (have headers)",icon:"hugeicons:csv-01",select:()=>b("csv-with-header"),condition:S},{type:j.ACTION,title:"Export as JSON",icon:"hugeicons:code",select:()=>b("json"),condition:S},{type:j.ACTION,title:"Export as SQL",icon:"hugeicons:database",select:()=>b("sql"),condition:S},{type:j.SEPARATOR,condition:S},{type:j.LABEL,title:`All ${Z.toLocaleString()} row${Z!==1?"s":""}`},{type:j.ACTION,title:"Export as CSV",icon:"hugeicons:csv-01",select:()=>f("csv-no-header")},{type:j.ACTION,title:"Export as CSV (have headers)",icon:"hugeicons:csv-01",select:()=>f("csv-with-header")},{type:j.ACTION,title:"Export as JSON",icon:"hugeicons:code",select:()=>f("json")},{type:j.ACTION,title:"Export as SQL",icon:"hugeicons:database",select:()=>f("sql")}];return[{title:"View row detail",icon:"hugeicons:view",type:j.ACTION,select:()=>{r.onShowSecondSidebar()},condition:!n.isReferencedTable&&!!n.cellContextMenu},{title:"Filter by value",icon:"lucide:filter",type:j.ACTION,shortcut:"⌘F",select:()=>{s("onFilterByValue")},condition:!!n.cellContextMenu},{title:"Refresh",icon:"hugeicons:refresh",type:j.ACTION,shortcut:"⌘R",select:()=>{s("onRefresh")}},{type:j.SEPARATOR},{type:j.ACTION,title:"Copy current cell",icon:"hugeicons:copy-02",select:w,condition:u},{type:j.ACTION,title:"Copy current row",icon:"hugeicons:copy-02",select:a,condition:S&&u},{type:j.SEPARATOR,condition:u},{type:j.SUBMENU,title:"Copy column",icon:"hugeicons:layout-3-column",items:J,condition:ie,desc:d.value||"Select a column"},{type:j.SUBMENU,title:"Copy row(s)",icon:"hugeicons:layout-3-row",items:ue},{type:j.SEPARATOR},{type:j.SUBMENU,title:"Export",icon:"hugeicons:file-download",items:me}]});return(u,S)=>{const N=wa;return h(),D(N,{contextMenuItems:e(g),onOnClearContextMenu:S[0]||(S[0]=Z=>s("onClearContextMenu"))},{default:m(()=>[Do(u.$slots,"default")]),_:3},8,["contextMenuItems"])}}});function Bs({fieldType:c,isObjectColumn:t,value:r}){const n=t?JSON.stringify(r):r;return c==="bool"?!!n:n===""||n===null||n===void 0?null:n}const Us={class:"flex items-center justify-between"},Vs={class:"truncate"},Ks=Y({__name:"CustomCellUuid",props:{params:{}},setup(c){return(t,r)=>{var n,s;return h(),x("div",Us,[y("span",Vs,B(((s=(n=t.params)==null?void 0:n.formatValue)==null?void 0:s.call(n,t.params.value))||t.params.value),1),t.params.isPrimaryKey&&t.params.value?(h(),D(e(le),{key:0,onClick:r[0]||(r[0]=()=>{t.params.onOpenPreviewReverseTableModal(t.params.value)}),name:"hugeicons:view",class:"min-w-4 w-4! cursor-pointer hover:bg-amber-500"})):U("",!0)])}}}),qs={class:"ag-header-cell-text items-center flex gap-0.5","data-ref":"eText"},Qs={class:"text-xxs!"},zs={key:0,class:"ag-sort-indicator-container","data-ref":"eSortIndicator"},js={key:0,class:"ag-sort-indicator-icon ag-sort-ascending-icon","data-ref":"eSortAsc","aria-hidden":"true"},Hs={key:1,class:"ag-sort-indicator-icon ag-sort-descending-icon","data-ref":"eSortDesc","aria-hidden":"true"},Ws=Y({__name:"CustomHeaderTable",props:{params:{}},setup(c){const t=c,r=()=>{if(!t.params.allowSorting)return;const n=t.params.sort,s=t.params.onUpdateSort;s(n==="ASC"?{order:"DESC",columnName:t.params.displayName}:n==="DESC"?{}:{order:"ASC",columnName:t.params.displayName})};return(n,s)=>(h(),x("div",{class:"ag-header-cell-label cursor-pointer","data-ref":"eLabel",role:"presentation",onClick:r},[y("span",qs,[t.params.isPrimaryKey?(h(),D(e(le),{key:0,name:"lucide:key-round",class:"min-w-3! text-yellow-500"})):U("",!0),t.params.isForeignKey?(h(),D(e(le),{key:1,name:"lucide:key-round",class:"min-w-3!"})):U("",!0),A(" "+B(t.params.displayName)+" ",1),y("p",Qs,B(t.params.dataType),1)]),n.params.sort?(h(),x("span",zs,[n.params.sort==="ASC"?(h(),x("span",js,s[0]||(s[0]=[y("span",{class:"ag-icon ag-icon-asc",role:"presentation",unselectable:"on"},null,-1)]))):(h(),x("span",Hs,s[1]||(s[1]=[y("span",{class:"ag-icon ag-icon-desc",role:"presentation",unselectable:"on"},null,-1)])))])):U("",!0)]))}}),oo=Y({__name:"QuickQueryTable",props:{data:{},defaultPageSize:{},orderBy:{},foreignKeys:{},foreignKeyColumns:{},primaryKeyColumns:{},columnTypes:{},offset:{},class:{},isHaveRelationByFieldName:{type:Function},selectedColumnFieldId:{},currentTableName:{},currentSchemaName:{},selectedRows:{},isViewOnly:{type:Boolean}},emits:["onClickOutSide","update:orderBy","onSelectedRows","onOpenBackReferencedTableModal","onFocusCell","onOpenForwardReferencedTableModal"],setup(c,{expose:t,emit:r}){const n=c,s=r,v=P(n.defaultPageSize??kt),{gridApi:d,onGridReady:i}=aa(),p=Ht("agGridRef"),l=P(),_=P();Po(p,I=>{s("onFocusCell",void 0),s("onClickOutSide",I)});const b=P([]),f=C(()=>(n.data??[]).map((I,V)=>({[mt]:V+n.offset+1,...I}))),{handleCellMouseOverDebounced:w,handleCellMouseDown:a}=sa({gridApi:d,gridRef:p}),g=C(()=>new Map(n.columnTypes.map(I=>[I.name,I]))),u=I=>{var K;const V=((K=g.value.get(I))==null?void 0:K.type)||"";return["object","json","jsonb"].includes(V)},S=I=>{var Q,ae,ne;const{colDef:V,newValue:K,rowIndex:R}=I,$=Number(R),F=V.field,M=u(F??""),O=((Q=g.value.get(F??""))==null?void 0:Q.type)||"";if($!==null&&F){const ee=(ne=(ae=n==null?void 0:n.data)==null?void 0:ae[$])==null?void 0:ne[F];let ce=ee!==K;M&&(ce=JSON.stringify(ee)!==JSON.stringify(K));const ge=b.value.some(L=>L.rowId===$),k=Bs({fieldType:O,isObjectColumn:M,value:K});if(ce&&!ge){b.value.push({rowId:$,changedData:{[F]:k}});return}ce?b.value=b.value.map(L=>L.rowId===$?{...L,changedData:{...L.changedData,[F]:k}}:L):b.value=b.value.map(L=>{if(L.rowId!==$)return L;const q={...L.changedData};return delete q[F],{...L,changedData:q}}).filter(L=>L.isNewRow||Object.keys(L.changedData).length>0)}},N=C(()=>{var $;if(!(($=n.columnTypes)!=null&&$.length))return[];const I=[];I.push({colId:mt,headerName:na,field:mt,filter:!1,resizable:!0,editable:!1,sortable:!1,type:"indexColumn",headerComponentParams:{allowSorting:!1},pinned:"left",width:ta});const V=new Set(n.primaryKeyColumns),K=new Set(n.foreignKeyColumns),R=new Map(n.foreignKeys.map(F=>[F.column,F]));return n.columnTypes.forEach(({name:F,type:M})=>{const O=F,Q=n.orderBy.columnName===O?n.orderBy.order:void 0,ae=V.has(O),ne=K.has(O),ee=R.get(O),ce=n.isHaveRelationByFieldName(O),ge=ae&&ce||ne&&ee,k=["json","jsonb"].includes(M),L={headerName:O,field:O,colId:O,filter:!1,resizable:!0,editable:!0,sortable:!1,type:"editableColumn",headerComponentParams:{allowSorting:!0,sort:Q,onUpdateSort:q=>{s("update:orderBy",q)},fieldId:O,isPrimaryKey:ae,isForeignKey:ne},cellRenderer:ge?Ks:void 0,cellRendererParams:{isPrimaryKey:ge,onOpenPreviewReverseTableModal:q=>{ne&&ee?s("onOpenForwardReferencedTableModal",{id:q,tableName:ee.referenced_table,columnName:ee.referenced_column,schemaName:ee.referenced_table_schema}):s("onOpenBackReferencedTableModal",{id:q,columnName:O,tableName:n.currentTableName,schemaName:n.currentSchemaName})}},cellEditorSelector:q=>{if(k)return{component:"AgJsonCellEditor",popup:!0,popupPosition:"under"}},valueFormatter:q=>{const te=q.value;return typeof te=="number"||typeof te=="bigint"?te.toString():te===null?"NULL":k?JSON.stringify(te,null,2):te??""},valueSetter:q=>{if(n.isViewOnly)return!1;if(k)try{const te=JSON.parse(q.newValue);return q.data[O]=te,!0}catch(te){return console.error(`Invalid JSON format in column ${O}:`,te),!1}else return q.data[O]=q.newValue,!0}};I.push(L)}),I});function Z(I){const K=I.event.key;return["Backspace","Delete"].some(function(O){return O===K||K.toUpperCase()===O})}const ie=P({headerComponent:Ws,suppressKeyboardEvent:Z}),J=P({editableColumn:{cellStyle:I=>{const V=I.colDef.colId??"";if(!V||!n.data)return;const K=u(V??""),R=Number(I.node.id??I.node.rowIndex),$=n.data[R];if($===void 0)return{backgroundColor:"var(--color-green-100)"};const F={},M=$[V],O=I.value;(M===null||O===null)&&(F.color="var(--muted-foreground)");let Q=!1;return K?Q=JSON.stringify(M)!==JSON.stringify(O):Q=M!==O,Q?(F.backgroundColor="var(--color-orange-200)",delete F.color):F.backgroundColor="unset",F},cellClass:I=>I.column.getColId()===n.selectedColumnFieldId?"col-highlight-cell cellCenter":"cellCenter"}}),ue=la();Fe(ue,I=>{var V;(V=d.value)==null||V.updateGridOptions({theme:I})});const me=C(()=>({components:{AgJsonCellEditor:ra},paginationPageSize:v.value,rowBuffer:Mo,rowClass:"class-row-border-none",getRowStyle:V=>{if((V.node.rowIndex||0)%2===0)return{background:"var(--muted)"}},rowSelection:{mode:"multiRow",checkboxes:!1,headerCheckbox:!1,enableSelectionWithoutKeys:!1,enableClickSelection:"enableSelection",copySelectedRows:!1},theme:ue.value,pagination:!1,undoRedoCellEditing:!0,undoRedoCellEditingLimit:25,animateRows:!0,onCellMouseDown:a,onCellMouseOver:w,defaultColDef:ie.value,columnTypes:J.value})),pe=()=>{if(d.value){const I=d.value.getSelectedRows();oe(I)}},oe=I=>{s("onSelectedRows",I)},de=()=>{var V,K,R;const I=(V=d.value)==null?void 0:V.getFocusedCell();if(I){const $=(K=d.value)==null?void 0:K.getDisplayedRowAtIndex(I.rowIndex),F=I.column.getColId(),M=(R=$==null?void 0:$.data)==null?void 0:R[F];s("onFocusCell",M??void 0)}},Ne=I=>{var V,K;(V=n.selectedRows)!=null&&V.length||(K=I==null?void 0:I.node)==null||K.setSelected(!0),l.value=I},T=I=>{_.value=I};Fe(()=>n.selectedColumnFieldId,async()=>{var I;await Be(),(I=d.value)==null||I.refreshCells({force:!0})},{flush:"post"});const E=()=>{if(!d.value)return;const I=d.value.getAllGridColumns()||[],V=(n.data||[]).slice(0,10),K=ca({columns:I,rows:V}),R=new Set(n.primaryKeyColumns),$=new Set(n.foreignKeyColumns);d.value.updateGridOptions({columnDefs:I.map(F=>{const M=F.getColDef().field,O=R.has(M),Q=$.has(M),ne=O||Q?oa:0;return{...F.getColDef(),width:K[M]+ne}})})};return t({gridApi:d,editedCells:b,columnDefs:N,cellContextMenu:l,cellHeaderContextMenu:_,clearCellContextMenu:()=>{l.value=void 0,_.value=void 0}}),kn(async()=>{var $,F,M;if(!d.value)return;await Be();const I=d.value.getState(),V=document.querySelector(".ag-body-viewport");V&&(V.scrollTop=(($=I.scroll)==null?void 0:$.top)||0);const K=((F=d.value)==null?void 0:F.getAllGridColumns())||[];let R=0;for(const O of K){if(R>=(((M=I.scroll)==null?void 0:M.left)||0)){d.value.ensureColumnVisible(O.getColId(),"start");break}R+=O.getActualWidth()}}),(I,V)=>(h(),D(e(ia),{onSelectionChanged:pe,onCellValueChanged:S,onGridReady:e(i),onCellFocused:de,onRowDataUpdated:E,onCellContextMenu:Ne,onColumnHeaderContextMenu:T,class:De(n.class),"grid-options":e(me),columnDefs:e(N),rowData:e(f),ref_key:"agGridRef",ref:p},null,8,["onGridReady","class","grid-options","columnDefs","rowData"]))}}),We=320,Nn=34,Gs=24,ot=c=>c<=0?Nn:Math.min(We,Nn+c*Gs),Ys={class:"relative"},Js={key:0,class:"p-2"},Xs={key:2,class:"flex items-center justify-center py-6"},Zs=Y({__name:"IndexesTab",props:{schema:{},tableName:{},connectionId:{}},setup(c){const t=c,r=["index_name","method","is_unique","is_primary","definition"],n=Qe(),s=C(()=>`${t.schema}.${t.tableName}`),v=P(null),d=$e(),i=C(()=>t.connectionId?d.connections.find(a=>a.id===t.connectionId):d.selectedConnection),{data:p,status:l}=xe("/api/tables/indexes",{method:"POST",body:C(()=>({...we(i.value),schema:t.schema,table:t.tableName})),key:`indexes-${s.value}`,getCachedData:()=>{const a=n.indexesMap[s.value];return a!=null&&a.length?a:void 0},onResponse({response:a}){a._data&&(n.indexesMap[s.value]=a._data)},onResponseError({response:a}){var g;v.value=((g=a._data)==null?void 0:g.message)||"Failed to load indexes"}},"$NyxkuxC1vx"),_=C(()=>(p.value||[]).map(a=>({index_name:a.indexName,method:a.method,is_unique:a.isUnique,is_primary:a.isPrimary,definition:a.definition}))),b=C(()=>_.value.length>0?tt(_.value):nt(r)),f=C(()=>`${ot(_.value.length)}px`),w=()=>{v.value=null,ze(`indexes-${s.value}`)};return(a,g)=>{const u=Oe,S=Pe;return h(),x("div",Ys,[o(u,{visible:e(l)==="pending"},null,8,["visible"]),e(v)?(h(),x("div",Js,[o(e(je),{variant:"destructive"},{default:m(()=>[o(e(He),{class:"flex items-center justify-between gap-2"},{default:m(()=>[y("span",null,B(e(v)),1),o(e(Ce),{variant:"outline",size:"xs",onClick:w},{default:m(()=>g[0]||(g[0]=[A("Retry")])),_:1})]),_:1})]),_:1})])):e(_).length?(h(),x("div",{key:1,style:Ae({maxHeight:`${e(We)}px`,height:e(f)})},[o(e(et),{columns:e(b),data:e(_),class:"h-full",columnKeyBy:"field"},null,8,["columns","data"])],4)):e(l)!=="pending"?(h(),x("div",Xs,[o(S,{title:"No Indexes",desc:"This table has no indexes."})])):U("",!0)])}}}),el={class:"relative"},tl={key:0,class:"p-2"},nl={key:1,class:"flex items-center justify-center py-3"},ol=Y({__name:"RlsTab",props:{schema:{},tableName:{},connectionId:{}},setup(c){const t=c,r=["policy_name","permissive","command","roles","using_expression","with_check_expression"],n=Qe(),s=C(()=>`${t.schema}.${t.tableName}`),v=P(null),d=$e(),i=C(()=>t.connectionId?d.connections.find(g=>g.id===t.connectionId):d.selectedConnection),{data:p,status:l}=xe("/api/tables/rls",{method:"POST",body:C(()=>({...we(i.value),schema:t.schema,table:t.tableName})),key:`rls-${s.value}`,getCachedData:()=>{const g=n.rlsMap[s.value];if(g!=null&&g.length)return{enabled:!0,policies:g}},onResponse({response:g}){var u;(u=g._data)!=null&&u.policies&&(n.rlsMap[s.value]=g._data.policies)},onResponseError({response:g}){var u;v.value=((u=g._data)==null?void 0:u.message)||"Failed to load RLS policies"}},"$EinB8Z7zho"),_=g=>{if(Array.isArray(g))return g.map(N=>String(N));if(typeof g!="string")return[];const u=g.trim();if(!u)return[];const S=u.startsWith("{")&&u.endsWith("}")?u.slice(1,-1):u;return S?S.split(",").map(N=>N.trim().replace(/^"|"$/g,"")).filter(Boolean):[]},b=C(()=>{var g;return(((g=p.value)==null?void 0:g.policies)||[]).map(u=>({policy_name:u.policyName,permissive:u.permissive,command:u.command,roles:_(u.roles).join(", ")||"—",using_expression:u.usingExpression||"—",with_check_expression:u.withCheckExpression||"—"}))}),f=C(()=>b.value.length>0?tt(b.value):nt(r)),w=C(()=>`${ot(b.value.length)}px`),a=()=>{v.value=null,ze(`rls-${s.value}`)};return(g,u)=>{const S=Oe,N=Pe;return h(),x("div",el,[o(S,{visible:e(l)==="pending"},null,8,["visible"]),e(v)?(h(),x("div",tl,[o(e(je),{variant:"destructive"},{default:m(()=>[o(e(He),{class:"flex items-center justify-between gap-2"},{default:m(()=>[y("span",null,B(e(v)),1),o(e(Ce),{variant:"outline",size:"xs",onClick:a},{default:m(()=>u[0]||(u[0]=[A("Retry")])),_:1})]),_:1})]),_:1})])):e(p)?(h(),x(fe,{key:1},[e(b).length?(h(),x("div",{key:0,style:Ae({maxHeight:`${e(We)}px`,height:e(w)})},[o(e(et),{columns:e(f),data:e(b),class:"h-full",columnKeyBy:"field"},null,8,["columns","data"])],4)):e(l)!=="pending"?(h(),x("div",nl,[o(N,{title:"No Policies",desc:"No RLS policies are defined for this table."})])):U("",!0)],64)):U("",!0)])}}}),al={class:"relative"},sl={key:0,class:"p-2"},ll={key:2,class:"flex items-center justify-center py-3"},rl=Y({__name:"RulesTab",props:{schema:{},tableName:{},connectionId:{}},setup(c){const t=c,r=["rule_name","event","action_type","definition"],n=Qe(),s=C(()=>`${t.schema}.${t.tableName}`),v=P(null),d=$e(),i=C(()=>t.connectionId?d.connections.find(a=>a.id===t.connectionId):d.selectedConnection),{data:p,status:l}=xe("/api/tables/rules",{method:"POST",body:C(()=>({...we(i.value),schema:t.schema,table:t.tableName})),key:`rules-${s.value}`,getCachedData:()=>{const a=n.rulesMap[s.value];return a!=null&&a.length?a:void 0},onResponse({response:a}){a._data&&(n.rulesMap[s.value]=a._data)},onResponseError({response:a}){var g;v.value=((g=a._data)==null?void 0:g.message)||"Failed to load rules"}},"$u5D1mSLK0A"),_=C(()=>(p.value||[]).map(a=>({rule_name:a.ruleName,event:a.event,action_type:a.actionType,definition:a.definition}))),b=C(()=>_.value.length>0?tt(_.value):nt(r)),f=C(()=>`${ot(_.value.length)}px`),w=()=>{v.value=null,ze(`rules-${s.value}`)};return(a,g)=>{const u=Oe,S=Pe;return h(),x("div",al,[o(u,{visible:e(l)==="pending"},null,8,["visible"]),e(v)?(h(),x("div",sl,[o(e(je),{variant:"destructive"},{default:m(()=>[o(e(He),{class:"flex items-center justify-between gap-2"},{default:m(()=>[y("span",null,B(e(v)),1),o(e(Ce),{variant:"outline",size:"xs",onClick:w},{default:m(()=>g[0]||(g[0]=[A("Retry")])),_:1})]),_:1})]),_:1})])):e(_).length?(h(),x("div",{key:1,style:Ae({maxHeight:`${e(We)}px`,height:e(f)})},[o(e(et),{columns:e(b),data:e(_),class:"h-full",columnKeyBy:"field"},null,8,["columns","data"])],4)):e(l)!=="pending"?(h(),x("div",ll,[o(S,{title:"No Rules",desc:"This table has no rewrite rules."})])):U("",!0)])}}}),il={class:"rounded-md border p-2.5"},cl={key:0,class:"p-2"},ul={key:1,class:"space-y-1.5"},dl={class:"flex items-center gap-1 flex-wrap"},ml={class:"inline-flex items-center gap-1 rounded-md border bg-muted/20 px-1.5 py-0.5"},pl={class:"text-[11px] font-mono leading-none text-foreground"},fl={class:"flex flex-wrap gap-1"},vl={class:"text-xxs text-muted-foreground"},yl=Y({__name:"TableMetaInfo",props:{schema:{},tableName:{},connectionId:{}},setup(c){const t=c,r={table:"Table",partitioned:"Partitioned Table",foreign:"Foreign Table"},n=P(null),s=C(()=>`${t.schema}.${t.tableName}`),v=$e(),d=C(()=>t.connectionId?v.connections.find(f=>f.id===t.connectionId):v.selectedConnection),{data:i,status:p}=xe("/api/tables/meta",{method:"POST",body:C(()=>({...we(d.value),schema:t.schema,tableName:t.tableName})),key:`table-meta-${s.value}`,onResponseError({response:f}){var w;n.value=((w=f._data)==null?void 0:w.message)||"Failed to load table metadata"}},"$AYAykbrhiy"),l=C(()=>{var w;const f=(w=i.value)==null?void 0:w.type;return f?r[f]??f:"Unknown"}),_=C(()=>{var f,w,a,g,u;return[{label:"Rows",value:((w=(f=i.value)==null?void 0:f.rowEstimate)==null?void 0:w.toLocaleString())??"—",mono:!0},{label:"Total",value:((a=i.value)==null?void 0:a.totalSize)||"—"},{label:"Table",value:((g=i.value)==null?void 0:g.tableSize)||"—"},{label:"Index",value:((u=i.value)==null?void 0:u.indexSize)||"—"}]}),b=()=>{n.value=null,ze(`table-meta-${s.value}`)};return(f,w)=>{const a=Oe;return h(),x("div",il,[o(a,{visible:e(p)==="pending"},null,8,["visible"]),e(n)?(h(),x("div",cl,[o(e(je),{variant:"destructive"},{default:m(()=>[o(e(He),{class:"flex items-center justify-between gap-2"},{default:m(()=>[y("span",null,B(e(n)),1),o(e(Ce),{variant:"outline",size:"xs",onClick:b},{default:m(()=>w[0]||(w[0]=[A("Retry")])),_:1})]),_:1})]),_:1})])):e(i)?(h(),x("div",ul,[y("div",dl,[o(e($t),{variant:"secondary",class:"h-5 px-1.5 text-xxs"},{default:m(()=>[A(B(e(l)),1)]),_:1}),y("span",ml,[w[1]||(w[1]=y("span",{class:"text-xxs text-muted-foreground"}," Owner ",-1)),y("span",pl,B(e(i).owner||"—"),1)])]),y("div",fl,[(h(!0),x(fe,null,ke(e(_),g=>(h(),x("div",{key:g.label,class:"inline-flex items-center gap-1 rounded-md border bg-muted/20 px-1.5 py-0.5"},[y("span",vl,B(g.label),1),y("span",{class:De(["text-[11px] leading-none text-foreground",g.mono?"font-mono":"font-medium"])},B(g.value),3)]))),128))])])):U("",!0)])}}}),gl={class:"relative"},hl={key:0,class:"p-2"},bl={key:2,class:"flex items-center justify-center py-3"},_l=Y({__name:"TriggersTab",props:{schema:{},tableName:{},connectionId:{}},setup(c){const t=c,r=["trigger_name","enabled","timing","events","orientation","definition"],n=Qe(),s=C(()=>`${t.schema}.${t.tableName}`),v=P(null),d=$e(),i=C(()=>t.connectionId?d.connections.find(a=>a.id===t.connectionId):d.selectedConnection),{data:p,status:l}=xe("/api/tables/triggers",{method:"POST",body:C(()=>({...we(i.value),schema:t.schema,table:t.tableName})),key:`triggers-${s.value}`,getCachedData:()=>{const a=n.triggersMap[s.value];return a!=null&&a.length?a:void 0},onResponse({response:a}){a._data&&(n.triggersMap[s.value]=a._data)},onResponseError({response:a}){var g;v.value=((g=a._data)==null?void 0:g.message)||"Failed to load triggers"}},"$S3QU21QNI4"),_=C(()=>(p.value||[]).map(a=>{var g;return{trigger_name:a.triggerName,enabled:a.enabled?"Enabled":"Disabled",timing:a.timing,events:((g=a.events)==null?void 0:g.join(", "))||"—",orientation:a.orientation,definition:a.definition}})),b=C(()=>_.value.length>0?tt(_.value):nt(r)),f=C(()=>`${ot(_.value.length)}px`),w=()=>{v.value=null,ze(`triggers-${s.value}`)};return(a,g)=>{const u=Oe,S=Pe;return h(),x("div",gl,[o(u,{visible:e(l)==="pending"},null,8,["visible"]),e(v)?(h(),x("div",hl,[o(e(je),{variant:"destructive"},{default:m(()=>[o(e(He),{class:"flex items-center justify-between gap-2"},{default:m(()=>[y("span",null,B(e(v)),1),o(e(Ce),{variant:"outline",size:"xs",onClick:w},{default:m(()=>g[0]||(g[0]=[A("Retry")])),_:1})]),_:1})]),_:1})])):e(_).length?(h(),x("div",{key:1,style:Ae({maxHeight:`${e(We)}px`,height:e(f)})},[o(e(et),{columns:e(b),data:e(_),class:"h-full",columnKeyBy:"field"},null,8,["columns","data"])],4)):e(l)!=="pending"?(h(),x("div",bl,[o(S,{title:"No Triggers",desc:"This table has no triggers."})])):U("",!0)])}}}),wl={class:"relative"},Cl={key:0,class:"p-2"},Sl={key:2,class:"flex items-center justify-center py-6"},xl=Y({__name:"ViewDependencies",props:{schema:{},viewName:{},connectionId:{}},setup(c){const t=c,r=["depends_on"],n=P(null),s=C(()=>`${t.schema}.${t.viewName}`),v=$e(),d=C(()=>t.connectionId?v.connections.find(w=>w.id===t.connectionId):v.selectedConnection),{data:i,status:p}=xe("/api/views/dependencies",{method:"POST",body:C(()=>({...we(d.value),schema:t.schema,viewName:t.viewName})),key:`view-deps-${s.value}`,onResponseError({response:w}){var a;n.value=((a=w._data)==null?void 0:a.message)||"Failed to load dependencies"}},"$jEYg_hmjWR"),l=C(()=>(i.value||[]).map(w=>({depends_on:w.dependsOn}))),_=C(()=>l.value.length>0?tt(l.value):nt(r)),b=C(()=>`${ot(l.value.length)}px`),f=()=>{n.value=null,ze(`view-deps-${s.value}`)};return(w,a)=>{const g=Oe,u=Pe;return h(),x("div",wl,[o(g,{visible:e(p)==="pending"},null,8,["visible"]),e(n)?(h(),x("div",Cl,[o(e(je),{variant:"destructive"},{default:m(()=>[o(e(He),{class:"flex items-center justify-between gap-2"},{default:m(()=>[y("span",null,B(e(n)),1),o(e(Ce),{variant:"outline",size:"xs",onClick:f},{default:m(()=>a[0]||(a[0]=[A("Retry")])),_:1})]),_:1})]),_:1})])):e(l).length?(h(),x("div",{key:1,style:Ae({maxHeight:`${e(We)}px`,height:e(b)})},[o(e(et),{columns:e(_),data:e(l),class:"h-full",columnKeyBy:"field"},null,8,["columns","data"])],4)):e(p)!=="pending"?(h(),x("div",Sl,[o(u,{title:"No Dependencies",desc:"This view has no upstream dependencies."})])):U("",!0)])}}}),Nl={class:"relative"},Tl={key:0,class:"p-2"},Rl={key:2,class:"flex items-center justify-center py-6"},$l=Y({__name:"ViewIndexesTab",props:{schema:{},viewName:{},connectionId:{}},setup(c){const t=c,r=["index_name","method","is_unique","definition"],n=P(null),s=C(()=>`${t.schema}.${t.viewName}`),v=$e(),d=C(()=>t.connectionId?v.connections.find(w=>w.id===t.connectionId):v.selectedConnection),{data:i,status:p}=xe("/api/views/indexes",{method:"POST",body:C(()=>({...we(d.value),schema:t.schema,viewName:t.viewName})),key:`view-indexes-${s.value}`,onResponseError({response:w}){var a;n.value=((a=w._data)==null?void 0:a.message)||"Failed to load indexes"}},"$44YnrMDjVX"),l=C(()=>(i.value||[]).map(w=>({index_name:w.indexName,method:w.method,is_unique:w.isUnique,definition:w.definition}))),_=C(()=>l.value.length>0?tt(l.value):nt(r)),b=C(()=>`${ot(l.value.length)}px`),f=()=>{n.value=null,ze(`view-indexes-${s.value}`)};return(w,a)=>{const g=Oe,u=Pe;return h(),x("div",Nl,[o(g,{visible:e(p)==="pending"},null,8,["visible"]),e(n)?(h(),x("div",Tl,[o(e(je),{variant:"destructive"},{default:m(()=>[o(e(He),{class:"flex items-center justify-between gap-2"},{default:m(()=>[y("span",null,B(e(n)),1),o(e(Ce),{variant:"outline",size:"xs",onClick:f},{default:m(()=>a[0]||(a[0]=[A("Retry")])),_:1})]),_:1})]),_:1})])):e(l).length?(h(),x("div",{key:1,style:Ae({maxHeight:`${e(We)}px`,height:e(b)})},[o(e(et),{columns:e(_),data:e(l),class:"h-full",columnKeyBy:"field"},null,8,["columns","data"])],4)):e(p)!=="pending"?(h(),x("div",Rl,[o(u,{title:"No Indexes",desc:"This materialized view has no indexes."})])):U("",!0)])}}}),Il={class:"rounded-md border p-2.5 relative"},kl={key:0,class:"p-2"},Ol={key:1,class:"space-y-1.5"},El={class:"flex items-center gap-1 flex-wrap"},Al={key:0,class:"flex flex-wrap gap-1"},Fl={class:"text-xxs text-muted-foreground"},Dl=Y({__name:"ViewMetaInfo",props:{schema:{},viewName:{},connectionId:{}},setup(c){const t=c,r=Qe(),n=C(()=>`${t.schema}.${t.viewName}`),s=P(null),v=$e(),d=C(()=>t.connectionId?v.connections.find(a=>a.id===t.connectionId):v.selectedConnection),{data:i,status:p}=xe("/api/views/meta",{method:"POST",body:C(()=>({...we(d.value),schema:t.schema,viewName:t.viewName})),key:`view-meta-${n.value}`,getCachedData:()=>r.viewMetaMap[n.value]??void 0,onResponse({response:a}){a._data&&(r.viewMetaMap[n.value]=a._data)},onResponseError({response:a}){var g;s.value=((g=a._data)==null?void 0:g.message)||"Failed to load view metadata"}},"$pLysS3IkaY"),l=C(()=>{var a;return((a=i.value)==null?void 0:a.type)==="materialized"}),_=C(()=>l.value?"Materialized View":"Normal View"),b=C(()=>{var a,g,u,S;return l.value?{variant:(u=i.value)!=null&&u.isPopulated?"default":"destructive",label:`Populated: ${(S=i.value)!=null&&S.isPopulated?"Yes":"No"}`}:{variant:(a=i.value)!=null&&a.isUpdatable?"default":"outline",label:`Updatable: ${(g=i.value)!=null&&g.isUpdatable?"Yes":"No"}`}}),f=C(()=>{var a,g,u,S,N;return l.value?[{label:"Rows",value:((g=(a=i.value)==null?void 0:a.rowEstimate)==null?void 0:g.toLocaleString())??"—",mono:!0},{label:"Total",value:((u=i.value)==null?void 0:u.totalSize)??"—"},{label:"Table",value:((S=i.value)==null?void 0:S.tableSize)??"—"},{label:"Index",value:((N=i.value)==null?void 0:N.indexSize)??"—"}]:[]}),w=()=>{s.value=null,ze(`view-meta-${n.value}`)};return(a,g)=>{const u=Oe;return h(),x("div",Il,[o(u,{visible:e(p)==="pending"},null,8,["visible"]),e(s)?(h(),x("div",kl,[o(e(je),{variant:"destructive"},{default:m(()=>[o(e(He),{class:"flex items-center justify-between gap-2"},{default:m(()=>[y("span",null,B(e(s)),1),o(e(Ce),{variant:"outline",size:"xs",onClick:w},{default:m(()=>g[0]||(g[0]=[A("Retry")])),_:1})]),_:1})]),_:1})])):e(i)?(h(),x("div",Ol,[y("div",El,[o(e($t),{variant:"secondary",class:"h-5 px-1.5 text-xxs"},{default:m(()=>[A(B(e(_)),1)]),_:1}),o(e($t),{variant:e(b).variant,class:"h-5 px-1.5 text-xxs"},{default:m(()=>[A(B(e(b).label),1)]),_:1},8,["variant"])]),e(f).length?(h(),x("div",Al,[(h(!0),x(fe,null,ke(e(f),S=>(h(),x("div",{key:S.label,class:"inline-flex items-center gap-1 rounded-md border bg-muted/20 px-1.5 py-0.5"},[y("span",Fl,B(S.label),1),y("span",{class:De(["text-[11px] leading-none text-foreground",S.mono?"font-mono":"font-medium"])},B(S.value),3)]))),128))])):U("",!0)])):U("",!0)])}}}),Pl=Y({__name:"VirtualTableDefinition",props:{schema:{},connectionId:{},viewName:{},viewId:{}},setup(c){const t=c,r=$e(),n=C(()=>t.connectionId?r.connections.find(i=>i.id===t.connectionId):r.selectedConnection),{data:s,status:v}=xe("/api/views/definition",{method:"POST",body:C(()=>({...we(n.value),viewId:t.viewId,schemaName:t.schema,viewName:t.viewName})),key:`${t.schema}.${t.viewId}`},"$ssZRsSgd3z"),d=C(()=>{var i;return(i=s.value)!=null&&i.definition?Sa(s.value.definition):""});return(i,p)=>{const l=Oe,_=Dt,b=Pe;return h(),x("div",{key:`${t.viewId}-${t.viewName}-${t.schema}`,class:"relative"},[o(l,{visible:e(v)==="pending"},null,8,["visible"]),e(d)?(h(),D(_,{key:0,code:e(d),"show-copy-button":"","max-height":"24rem"},null,8,["code"])):e(v)!=="pending"?(h(),D(b,{key:1,title:"No Definition",desc:"No SQL definition is available for this view."})):U("",!0)])}}}),Ml={class:"h-full overflow-y-auto p-1.5"},Ll={class:"space-y-3 pb-2"},Bl={key:0,class:"space-y-1"},Ul={key:1,class:"space-y-1"},Vl={class:"space-y-1"},Kl={class:"space-y-1"},ql={class:"rounded-md border"},Ql={class:"space-y-1"},zl={class:"flex items-center gap-2"},jl={class:"rounded-md border"},Hl={class:"space-y-1"},Wl={class:"rounded-md border"},Gl={class:"space-y-1"},Yl={class:"rounded-md border"},Jl={key:0,class:"space-y-1"},Xl={key:1,class:"space-y-1"},Zl={class:"rounded-md border"},er={class:"space-y-1"},tr={class:"rounded-md border"},ao=Y({__name:"StructureTable",props:{schema:{},tableName:{},connectionId:{},isVirtualTable:{type:Boolean},virtualTableId:{}},setup(c){const t=c,r=["column_name","data_type","is_nullable","default_value","foreign_keys","on_update","on_delete","column_comment"],n=$e(),s=C(()=>t.connectionId?n.connections.find(a=>a.id===t.connectionId):n.selectedConnection),{data:v,status:d}=xe("/api/tables/structure",{method:"POST",body:C(()=>({...we(s.value),schema:t.schema,tableName:t.tableName})),key:`${t.schema}.${t.tableName}`},"$ALIsatagCk"),i=C(()=>{const a=v.value||[];return a.length>0?tt(a):nt(r)}),p=Qe(),l=C(()=>`${t.schema}.${t.tableName}`),{data:_}=xe("/api/tables/rls",{method:"POST",body:C(()=>({...we(s.value),schema:t.schema,table:t.tableName})),key:`rls-${l.value}`,immediate:!t.isVirtualTable},"$SfWGG2Nw15"),{data:b}=xe("/api/views/meta",{method:"POST",body:C(()=>({...we(s.value),schema:t.schema,viewName:t.tableName})),key:`view-meta-struct-${l.value}`,immediate:!!t.isVirtualTable,getCachedData:()=>{if(t.isVirtualTable)return p.viewMetaMap[l.value]},onResponse({response:a}){a._data&&t.isVirtualTable&&(p.viewMetaMap[l.value]=a._data)}},"$Et5thcVWGM"),f=C(()=>{var a;return((a=b.value)==null?void 0:a.type)==="materialized"}),w=C(()=>{const a=(v.value||[]).length;return`${ot(a)}px`});return(a,g)=>{const u=Oe;return h(),x("div",Ml,[y("div",Ll,[a.isVirtualTable?(h(),x("section",Ul,[g[1]||(g[1]=y("div",null,[y("h3",{class:"text-sm font-medium"},"Meta Info"),y("p",{class:"text-xs text-muted-foreground"}," View type and storage metadata ")],-1)),o(Dl,{connectionId:a.connectionId,schema:a.schema,viewName:a.tableName},null,8,["connectionId","schema","viewName"])])):(h(),x("section",Bl,[g[0]||(g[0]=y("div",null,[y("h3",{class:"text-sm font-medium"},"Meta Info"),y("p",{class:"text-xs text-muted-foreground"}," Table type and storage metadata ")],-1)),o(yl,{schema:a.schema,tableName:a.tableName,connectionId:a.connectionId},null,8,["schema","tableName","connectionId"])])),y("section",Vl,[g[2]||(g[2]=y("div",null,[y("h3",{class:"text-sm font-medium"},"Columns"),y("p",{class:"text-xs text-muted-foreground"}," Table column structure and constraints ")],-1)),y("div",{class:"relative",style:Ae({maxHeight:`${e(We)}px`,height:e(w)})},[o(u,{visible:e(d)==="pending"},null,8,["visible"]),o(e(et),{columns:e(i),data:e(v)||[],class:"h-full border rounded-md",columnKeyBy:"field"},null,8,["columns","data"])],4)]),a.isVirtualTable?(h(),x(fe,{key:3},[a.virtualTableId?(h(),x("section",Jl,[g[8]||(g[8]=y("div",null,[y("h3",{class:"text-sm font-medium"},"Definition"),y("p",{class:"text-xs text-muted-foreground"},"View SQL definition")],-1)),o(Pl,{connectionId:a.connectionId,schema:a.schema,viewName:a.tableName,viewId:a.virtualTableId},null,8,["connectionId","schema","viewName","viewId"])])):U("",!0),e(f)?(h(),x("section",Xl,[g[9]||(g[9]=y("div",null,[y("h3",{class:"text-sm font-medium"},"Indexes"),y("p",{class:"text-xs text-muted-foreground"}," Indexes on materialized view ")],-1)),y("div",Zl,[o($l,{schema:a.schema,viewName:a.tableName,connectionId:a.connectionId},null,8,["schema","viewName","connectionId"])])])):U("",!0),y("section",er,[g[10]||(g[10]=y("div",null,[y("h3",{class:"text-sm font-medium"},"Dependencies"),y("p",{class:"text-xs text-muted-foreground"}," Objects referenced by this view ")],-1)),y("div",tr,[o(xl,{schema:a.schema,viewName:a.tableName,connectionId:a.connectionId},null,8,["schema","viewName","connectionId"])])])],64)):(h(),x(fe,{key:2},[y("section",Kl,[g[3]||(g[3]=y("div",null,[y("h3",{class:"text-sm font-medium"},"Indexes"),y("p",{class:"text-xs text-muted-foreground"}," Available indexes and definitions ")],-1)),y("div",ql,[o(Zs,{schema:a.schema,tableName:a.tableName,connectionId:a.connectionId},null,8,["schema","tableName","connectionId"])])]),y("section",Ql,[y("div",null,[y("div",zl,[g[4]||(g[4]=y("h3",{class:"text-sm font-medium"},"RLS",-1)),e(_)?(h(),D(e($t),{key:0,variant:e(_).enabled?"default":"secondary",class:"h-5 px-1.5 text-xxs"},{default:m(()=>[A(B(e(_).enabled?"Enabled":"Disabled"),1)]),_:1},8,["variant"])):U("",!0)]),g[5]||(g[5]=y("p",{class:"text-xs text-muted-foreground"}," Row-level security status and policies ",-1))]),y("div",jl,[o(ol,{schema:a.schema,tableName:a.tableName,connectionId:a.connectionId},null,8,["schema","tableName","connectionId"])])]),y("section",Hl,[g[6]||(g[6]=y("div",null,[y("h3",{class:"text-sm font-medium"},"Rules"),y("p",{class:"text-xs text-muted-foreground"}," Rewrite rules configured on this table ")],-1)),y("div",Wl,[o(rl,{schema:a.schema,tableName:a.tableName,connectionId:a.connectionId},null,8,["schema","tableName","connectionId"])])]),y("section",Gl,[g[7]||(g[7]=y("div",null,[y("h3",{class:"text-sm font-medium"},"Triggers"),y("p",{class:"text-xs text-muted-foreground"}," Trigger status and trigger definitions ")],-1)),y("div",Yl,[o(_l,{schema:a.schema,tableName:a.tableName,connectionId:a.connectionId},null,8,["schema","tableName","connectionId"])])])],64))])])}}}),nr={class:"px-2"},or={class:"px-2"},ar={class:"flex-1 overflow-hidden px-2 mb-0.5"},sr={key:1,class:"h-full"},so=Y({__name:"ReferencedTable",props:{tableName:{},schemaName:{},initFilters:{},connectionId:{},workspaceId:{}},emits:["onOpenBackReferencedTableModal","onOpenForwardReferencedTableModal"],setup(c,{emit:t}){const r=c,n=P(),s=t,{quickQueryFilterRef:v,quickQueryTableRef:d,selectedRows:i,focusedCell:p}=Wn(),l=yt(),_=$e(),{onRequestSafeModeConfirm:b,onSafeModeCancel:f,onSafeModeConfirm:w,safeModeDialogOpen:a,safeModeDialogSql:g,safeModeDialogType:u}=Zn(),S=C(()=>_.connections.find(X=>X.id===r.connectionId)),N=C(()=>{var X;return((X=S.value)==null?void 0:X.type)||ye.POSTGRES}),{columnNames:Z,foreignKeys:ie,primaryKeyColumns:J,tableMetaData:ue,columnTypes:me,foreignKeyColumns:pe}=Jn({tableName:r.tableName,schemaName:r.schemaName,connectionId:r.connectionId,tabViewType:Nt.TableDetail}),{onApplyNewFilter:oe,data:de,baseQueryString:Ne,refreshTableData:T,refreshCount:E,isAllowNextPage:H,isAllowPreviousPage:I,onNextPage:V,onPreviousPage:K,onUpdatePagination:R,totalRows:$,pagination:F,errorMessage:M,openErrorModal:O,orderBy:Q,onUpdateOrderBy:ae,addHistoryLog:ne,filters:ee,isShowFilters:ce,composeWith:ge,onChangeComposeWith:k,isFetchingTableData:L}=Hn({connection:S,primaryKeys:J,columns:Z,connectionId:C(()=>r.connectionId),workspaceId:C(()=>r.workspaceId),tableName:r.tableName,schemaName:r.schemaName,isPersist:!1,initFilters:(r==null?void 0:r.initFilters)||[],initComposeWith:ft.OR});Fe(ue,X=>{X&&(ee.value=(r==null?void 0:r.initFilters)||[],E(),T())},{deep:!0,immediate:!0});const{isMutating:q,onAddEmptyRow:te,onDiscardChanges:Ie,onDeleteRows:Se,onSaveData:Ge,hasEditedRows:Me,pendingChangesCount:rt,onCopyRows:gt,onPasteRows:ht,onRefresh:bt,onSelectedRowsChange:_t,onCopySelectedCell:it,onFocusedCellChange:Ot,onDeselectAll:wt}=Yn({tableName:r.tableName,schemaName:r.schemaName,primaryKeys:J,refreshTableData:T,columnNames:Z,data:de,addHistoryLog:ne,errorMessage:M,openErrorModal:O,selectedRows:i,pagination:F,quickQueryTableRef:d,refreshCount:E,focusedCell:p,connection:S,safeModeEnabled:Tt(l,"quickQuerySafeModeEnabled"),onRequestSafeModeConfirm:b}),{quickQueryTabView:Le,openedQuickQueryTab:Ct}=Xn(),{onAddFilterByContextCell:St}=Gn({quickQueryFilterRef:v,quickQueryTableRef:d,filters:ee,onApplyNewFilter:oe}),{isHaveRelationByFieldName:Et}=Yt({schemaName:r.schemaName,tableName:r.tableName});return vt([{key:"meta+a",callback:()=>{var X,se;(se=(X=d.value)==null?void 0:X.gridApi)==null||se.selectAll()},excludeInput:!0,isPreventDefault:!0},{key:"meta+c",callback:()=>{it()},excludeInput:!0},{key:"meta+v",callback:()=>ht(),excludeInput:!0},{key:"meta+s",callback:()=>Ge(),isPreventDefault:!0},{key:"meta+alt+backspace",callback:()=>{Se()},isPreventDefault:!0}],{target:n}),(X,se)=>{var Ye,ct;return h(),x(fe,null,[o(Bn,{open:e(O),"onUpdate:open":se[0]||(se[0]=ve=>Ee(O)?O.value=ve:null),message:e(M)||""},null,8,["open","message"]),o(Un,{open:e(a),"onUpdate:open":se[1]||(se[1]=ve=>Ee(a)?a.value=ve:null),sql:e(g),type:e(u),onConfirm:e(w),onCancel:e(f)},null,8,["open","sql","type","onConfirm","onCancel"]),y("div",{ref_key:"containerRef",ref:n,class:"flex flex-col h-full w-full relative",tabindex:"0"},[o(e(Oe),{visible:e(q)||e(L)},null,8,["visible"]),y("div",nr,[o(eo,{"total-selected-rows":(Ye=e(i))==null?void 0:Ye.length,isAllowNextPage:e(H),isAllowPreviousPage:e(I),totalRows:e($),limit:e(F).limit,currentTotalRows:((ct=e(de))==null?void 0:ct.length)||0,offset:e(F).offset,"has-edited-rows":e(Me),"pending-changes-count":e(rt),onOnPaginate:e(R),onOnNextPage:e(V),onOnPreviousPage:e(K),onOnRefresh:e(bt),onOnDiscardChanges:e(Ie),onOnSaveData:e(Ge),onOnDeleteRows:e(Se),onOnAddEmptyRow:e(te),onOnShowFilter:se[2]||(se[2]=async()=>{var ve;await((ve=e(v))==null?void 0:ve.onShowSearch())}),tabView:e(Le),"onUpdate:tabView":se[3]||(se[3]=ve=>Ee(Le)?Le.value=ve:null)},null,8,["total-selected-rows","isAllowNextPage","isAllowPreviousPage","totalRows","limit","currentTotalRows","offset","has-edited-rows","pending-changes-count","onOnPaginate","onOnNextPage","onOnPreviousPage","onOnRefresh","onOnDiscardChanges","onOnSaveData","onOnDeleteRows","onOnAddEmptyRow","tabView"])]),y("div",or,[e(Le)===e(re).Data?(h(),D(to,{key:0,ref_key:"quickQueryFilterRef",ref:v,onOnSearch:se[4]||(se[4]=()=>{e(oe)()}),onOnUpdateFilters:se[5]||(se[5]=ve=>{ee.value=ve}),isShowFilters:e(ce),"onUpdate:isShowFilters":se[6]||(se[6]=ve=>Ee(ce)?ce.value=ve:null),initFilters:e(ee),baseQuery:e(Ne),columns:e(Z),dbType:e(N),composeWith:e(ge),onOnChangeComposeWith:e(k)},null,8,["isShowFilters","initFilters","baseQuery","columns","dbType","composeWith","onOnChangeComposeWith"])):U("",!0)]),y("div",ar,[e(Ct)[e(re).Erd]?qe((h(),D(Ln,{key:0,tableId:e(On)({tableName:X.tableName,schemaName:X.schemaName})},null,8,["tableId"])),[[Ze,e(Le)===e(re).Erd]]):U("",!0),e(Ct)[e(re).Structure]?qe((h(),x("div",sr,[o(ao,{schema:X.schemaName,tableName:X.tableName,connectionId:X.connectionId},null,8,["schema","tableName","connectionId"])],512)),[[Ze,e(Le)===e(re).Structure]]):U("",!0),qe(o(no,{"total-selected-rows":e(i).length,"has-edited-rows":e(Me),selectedRows:e(i),"table-name":X.tableName,"schema-name":X.schemaName,isReferencedTable:"",onOnPaginate:e(R),onOnNextPage:e(V),onOnPreviousPage:e(K),onOnRefresh:e(bt),onOnSaveData:e(Ge),onOnDeleteRows:e(Se),onOnAddEmptyRow:e(te),onOnFilterByValue:e(St),onOnCopyRows:e(gt),onOnPasteRows:e(ht),onOnCopySelectedCell:e(it)},{default:m(()=>[o(oo,{class:"h-full border rounded-md",ref_key:"quickQueryTableRef",ref:d,"selected-rows":e(i),data:e(de)||[],orderBy:e(Q),onOnSelectedRows:e(_t),"onUpdate:orderBy":e(ae),onOnOpenBackReferencedTableModal:se[7]||(se[7]=ve=>s("onOpenBackReferencedTableModal",ve)),onOnOpenForwardReferencedTableModal:se[8]||(se[8]=ve=>s("onOpenForwardReferencedTableModal",ve)),isHaveRelationByFieldName:e(Et),foreignKeyColumns:e(pe),foreignKeys:e(ie),primaryKeyColumns:e(J),columnTypes:e(me),defaultPageSize:e(kt),offset:e(F).offset,onOnFocusCell:e(Ot),"current-schema-name":X.schemaName,"current-table-name":X.tableName,onOnClickOutSide:e(wt)},null,8,["selected-rows","data","orderBy","onOnSelectedRows","onUpdate:orderBy","isHaveRelationByFieldName","foreignKeyColumns","foreignKeys","primaryKeyColumns","columnTypes","defaultPageSize","offset","onOnFocusCell","current-schema-name","current-table-name","onOnClickOutSide"])]),_:1},8,["total-selected-rows","has-edited-rows","selectedRows","table-name","schema-name","onOnPaginate","onOnNextPage","onOnPreviousPage","onOnRefresh","onOnSaveData","onOnDeleteRows","onOnAddEmptyRow","onOnFilterByValue","onOnCopyRows","onOnPasteRows","onOnCopySelectedCell"]),[[Ze,e(Le)===e(re).Data]])])],512)],64)}}}),lr={class:"flex justify-between items-center gap-2 w-full"},rr={class:"relative w-full"},ir={class:"flex flex-1"},cr=Y({__name:"BackReferencedTable",props:{tableName:{},schemaName:{},columnName:{},recordId:{},selectedTab:{},connectionId:{},workspaceId:{},rootSchemaName:{}},emits:["onOpenBackReferencedTableModal","onOpenForwardReferencedTableModal","update:selectedTab"],setup(c,{emit:t}){const r=c,n=t,{reverseTables:s}=Yt({schemaName:r.schemaName,tableName:r.tableName}),v=P(""),d=C(()=>{var g;const f=new Map,w=fn((g=s.value)==null?void 0:g.used_by)||[];for(const u of w)u.referenced_column===r.columnName&&f.set(u.referencing_table,{table:u.referencing_table,schema:u.referencing_schema});let a=[...f.values()].sort((u,S)=>u.table.localeCompare(S.table));if(v.value){const u=v.value.toLowerCase();a=a.filter(S=>S.table.toLowerCase().includes(u))}return a});Tn(()=>{!r.selectedTab&&d.value.length>0&&n("update:selectedTab",d.value[0].table,d.value[0].schema)});const i=f=>{var g;if(!f)return[];const w=[],a=fn((g=s.value)==null?void 0:g.used_by)||[];for(const u of a)if(u.referencing_table===f){const S={fieldName:u.fk_column,operator:W.EQUAL,search:r.recordId,isSelect:!0};w.push(S)}return w},p=f=>{const{schemaName:w,tableName:a}=b(f);n("update:selectedTab",a,w)},l=f=>{const w=f.target;w instanceof HTMLElement&&w.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},_=f=>`${f.schema}.${f.table}`,b=f=>{const[w,a]=f.split(".");return{schemaName:w,tableName:a}};return(f,w)=>{const a=Ut,g=Bt,u=le,S=Lt;return h(),D(S,{"model-value":_({table:f.selectedTab||"",schema:f.schemaName}),"onUpdate:modelValue":w[4]||(w[4]=N=>p(N)),class:"flex-1 flex-wrap h-full w-full"},{default:m(()=>[y("div",lr,[o(g,{class:"overflow-x-auto w-full justify-start!"},{default:m(()=>[(h(!0),x(fe,null,ke(e(d),N=>(h(),D(a,{class:"cursor-pointer font-normal! flex-none!",onClick:l,value:_(N),key:_(N)},{default:m(()=>[A(B(f.rootSchemaName===N.schema?null:`${N.schema}.`)+B(N.table),1)]),_:2},1032,["value"]))),128))]),_:1}),y("div",null,[y("div",rr,[o(e(lt),{type:"text",placeholder:"Search tables",class:"pr-6 w-48 h-8",modelValue:e(v),"onUpdate:modelValue":w[0]||(w[0]=N=>Ee(v)?v.value=N:null)},null,8,["modelValue"]),e(v)?(h(),x("div",{key:0,class:"absolute right-2 top-1.5 w-4 cursor-pointer hover:bg-accent",onClick:w[1]||(w[1]=N=>v.value="")},[o(u,{name:"lucide:x",class:"stroke-3! text-muted-foreground"})])):U("",!0)])])]),y("div",ir,[(h(),D(En,null,[(h(),D(so,{key:f.selectedTab,tableName:f.selectedTab||"","schema-name":f.schemaName,"init-filters":i(f.selectedTab),connectionId:r.connectionId,workspaceId:r.workspaceId,onOnOpenBackReferencedTableModal:w[2]||(w[2]=N=>n("onOpenBackReferencedTableModal",N)),onOnOpenForwardReferencedTableModal:w[3]||(w[3]=N=>n("onOpenForwardReferencedTableModal",N))},null,8,["tableName","schema-name","init-filters","connectionId","workspaceId"]))],1024))])]),_:1},8,["model-value"])}}}),ur={class:"flex flex-1"},dr=Y({__name:"ForwardReferencedTable",props:{tableName:{},schemaName:{},columnName:{},recordId:{},connectionId:{},workspaceId:{}},emits:["onOpenBackReferencedTableModal","onOpenForwardReferencedTableModal"],setup(c,{emit:t}){const r=c,n=t,s=()=>[{fieldName:r.columnName,operator:W.EQUAL,search:r.recordId,isSelect:!0}];return(v,d)=>(h(),x("div",ur,[(h(),D(so,{key:e(pt)(),tableName:v.tableName,"schema-name":v.schemaName,"init-filters":s(),connectionId:r.connectionId,workspaceId:r.workspaceId,onOnOpenBackReferencedTableModal:d[0]||(d[0]=i=>n("onOpenBackReferencedTableModal",i)),onOnOpenForwardReferencedTableModal:d[1]||(d[1]=i=>n("onOpenForwardReferencedTableModal",i))},null,8,["tableName","schema-name","init-filters","connectionId","workspaceId"]))]))}}),mr={class:"flex items-center"},pr=Y({__name:"PreviewRelationTable",props:{open:{type:Boolean},breadcrumbs:{},currentTableName:{},connectionId:{},workspaceId:{},rootSchemaName:{}},emits:["onBackPreviousBreadcrumbByIndex","onBackPreviousBreadcrumb","clearBreadcrumb","onUpdateSelectedTabInBreadcrumb","onOpenBackReferencedTableModal","onOpenForwardReferencedTableModal"],setup(c,{emit:t}){const r=t,n=c,s=C(()=>n.breadcrumbs.length?n.breadcrumbs[n.breadcrumbs.length-1]:null),v=(i,p)=>{r("onUpdateSelectedTabInBreadcrumb",n.breadcrumbs.length-1,i,p)},d=i=>i.type==="backReferenced"?n.rootSchemaName===i.schemaName?i.selectedTab:`${i.schemaName}.${i.selectedTab}`:`${i.schemaName}.${i.tableName}`;return(i,p)=>{const l=le,_=Ce,b=qo,f=Ko,w=Vo,a=Uo,g=Bo;return h(),D(e(Lo),{open:i.open,"onUpdate:open":p[4]||(p[4]=u=>i.$emit("clearBreadcrumb"))},{default:m(()=>[o(e(Ho),{class:"w-[98dvw]! max-w-[98dvw]! max-h-[95dvh] h-[95dvh] gap-1 p-3 flex flex-col flex-1 flex-wrap overflow-hidden"},{default:m(()=>{var u;return[o(g,null,{default:m(()=>[o(a,null,{default:m(()=>[y("div",mr,[o(_,{onClick:p[0]||(p[0]=S=>i.$emit("onBackPreviousBreadcrumb")),size:"iconMd",variant:"secondary"},{default:m(()=>[o(l,{name:"hugeicons:arrow-left-02",class:"size-4!"})]),_:1}),o(w,null,{default:m(()=>[o(f,{class:"gap-0.5!"},{default:m(()=>[o(e(vn),{class:"hover:cursor-pointer"},{default:m(()=>[o(e(gn),{onClick:p[1]||(p[1]=S=>r("clearBreadcrumb"))},{default:m(()=>[A(B(i.currentTableName),1)]),_:1})]),_:1}),o(b),(h(!0),x(fe,null,ke(i.breadcrumbs,(S,N)=>(h(),x(fe,null,[o(e(vn),{class:De([N!==i.breadcrumbs.length-1&&"hover:cursor-pointer"])},{default:m(()=>[N===i.breadcrumbs.length-1?(h(),D(e(Qo),{key:0},{default:m(()=>[A(B(d(S)),1)]),_:2},1024)):(h(),D(e(gn),{key:1,onClick:Z=>r("onBackPreviousBreadcrumbByIndex",N)},{default:m(()=>[A(B(d(S)),1)]),_:2},1032,["onClick"]))]),_:2},1032,["class"]),N<i.breadcrumbs.length-1?(h(),D(b,{key:0})):U("",!0)],64))),256))]),_:1})]),_:1})])]),_:1})]),_:1}),(h(),D(En,null,[e(s)?(h(),D(zo(((u=e(s))==null?void 0:u.type)==="backReferenced"?cr:dr),jo({key:e(s).id},{columnName:e(s).columnName,recordId:e(s).recordId,schemaName:e(s).schemaName,tableName:e(s).tableName,selectedTab:e(s).selectedTab,connectionId:n.connectionId,workspaceId:n.workspaceId,rootSchemaName:n.rootSchemaName},{onOnOpenBackReferencedTableModal:p[2]||(p[2]=S=>r("onOpenBackReferencedTableModal",S)),onOnOpenForwardReferencedTableModal:p[3]||(p[3]=S=>r("onOpenForwardReferencedTableModal",S)),"onUpdate:selectedTab":v}),null,16)):U("",!0)],1024))]}),_:1})]),_:1},8,["open"])}}}),fr=["innerHTML"],vr=Y({__name:"QuickQueryHistoryLogItem",props:{log:{},highlighter:{}},setup(c){const t=c,r=P("");return Fe([()=>t.log,()=>t.highlighter],async()=>{const n=(t.log||"").trim();t.highlighter&&(r.value=t.highlighter.codeToHtml(n,{lang:"plsql",theme:"catppuccin-latte"}))},{immediate:!0}),(n,s)=>(h(),x("div",{class:"[&_code]:text-wrap w-full [&>.catppuccin-latte]:bg-background!",innerHTML:r.value},null,8,fr))}}),yr={class:"flex flex-1 flex-col h-full"},gr={class:"flex flex-1 h-full items-center justify-between"},hr={class:"flex items-center gap-1"},br={key:0,class:"flex items-center justify-center h-full w-full"},_r=["data-index"],wr={class:"pb-2 leading-relaxed text-xs"},Cr={class:"text-xxs"},Sr={class:"text-xxs"},xr=Y({__name:"QuickQueryHistoryLogsPanel",props:{tableName:{},schemaName:{}},setup(c){const t=c,r=P("all"),n=Kn(),{qqLogs:s}=Mt(n),v=C(()=>r.value==="all"?s.value:n.getLogsByTableId(t)),d=Ht("wrapperRef"),{height:i}=Wo(d),p=P(null),l=Go({get count(){return v.value.length},getScrollElement:()=>p.value,estimateSize:()=>39}),_=C(()=>l.value.getVirtualItems()),b=C(()=>l.value.getTotalSize()),f=g=>{g&&l.value.measureElement(g)},w=g=>new Date(g).toLocaleString(),a=P();return Yo(async()=>{const g=xa({themes:[Ra],langs:[Ta],engine:Na()});a.value=await g}),Jo(async()=>{l.value&&(await Be(),l.value.scrollToIndex(v.value.length-1))}),Fe(()=>v.value,async()=>{l.value&&(await Be(),l.value.scrollToIndex(v.value.length-1))},{deep:!0}),(g,u)=>{const S=Ut,N=Bt,Z=Lt,ie=le,J=Ce,ue=Pe,me=An,pe=Fn;return h(),x("div",yr,[y("div",gr,[o(Z,{modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=oe=>r.value=oe),class:"pt-1"},{default:m(()=>[o(N,{class:"h-7!"},{default:m(()=>[o(S,{value:"all",class:"h-5! font-medium text-xs cursor-pointer text-primary/80"},{default:m(()=>u[2]||(u[2]=[A(" All logs ")])),_:1},8,["value"]),o(S,{value:"one-table",class:"h-5! font-medium text-xs cursor-pointer text-primary/80"},{default:m(()=>u[3]||(u[3]=[A(" Only this table ")])),_:1},8,["value"])]),_:1})]),_:1},8,["modelValue"]),u[8]||(u[8]=y("div",null,[y("p",{class:"font-medium text-xs"},"Logs history")],-1)),y("div",hr,[r.value==="all"?(h(),D(e(he),{key:0},{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(J,{variant:"outline",size:"xxs",onClick:e(n).deleteAllLogs},{default:m(()=>[o(ie,{name:"lucide:trash"}),u[4]||(u[4]=y("p",{class:"font-normal"},"Delete all logs",-1))]),_:1},8,["onClick"])]),_:1}),o(e(_e),null,{default:m(()=>u[5]||(u[5]=[y("p",null,"Delete all logs",-1)])),_:1})]),_:1})):(h(),D(e(he),{key:1},{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(J,{variant:"outline",size:"xxs",onClick:u[1]||(u[1]=oe=>e(n).deleteLogsOfTable(t))},{default:m(()=>[o(ie,{name:"lucide:trash"}),u[6]||(u[6]=y("p",{class:"font-normal"},"Delete logs",-1))]),_:1})]),_:1}),o(e(_e),null,{default:m(()=>u[7]||(u[7]=[y("p",null,"Delete logs for this table",-1)])),_:1})]),_:1}))])]),v.value.length?(h(),D(pe,{key:1,class:"py-0 mt-1 h-full rounded-none shadow-none border-none overflow-auto",ref_key:"wrapperRef",ref:d},{default:m(()=>[o(me,{class:"p-0"},{default:m(()=>{var oe;return[y("div",{ref_key:"parentRef",ref:p,style:Ae({height:`${e(i)}px`}),class:"w-full overflow-y-auto contain-strict h-full"},[y("div",{style:Ae({height:`${b.value}px`,width:"100%",position:"relative"})},[y("div",{style:Ae({position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${((oe=_.value[0])==null?void 0:oe.start)??0}px)`})},[(h(!0),x(fe,null,ke(_.value,de=>(h(),x("div",{key:de.key.toString(),"data-index":de.index,ref_for:!0,ref:f},[y("div",wr,[y("span",Cr,"["+B(w(v.value[de.index].createdAt))+"] ",1),y("span",Sr," : "+B(e($a)(v.value[de.index].queryTime||0)),1),o(vr,{highlighter:a.value,log:v.value[de.index].logs},null,8,["highlighter","log"])])],8,_r))),128))],4)],4)],4)]}),_:1})]),_:1},512)):(h(),x("div",br,[o(ue,{title:"No logs found",desc:"There are no execution logs to display for this table."})]))])}}}),Nr=({quickQueryTableRef:c})=>{const t=P(void 0),r=()=>{var v,d,i,p,l,_,b;t.value=void 0,(i=(d=(v=c.value)==null?void 0:v.gridApi)==null?void 0:d.ensureIndexVisible)==null||i.call(d,0,"top"),(l=(p=c.value)==null?void 0:p.gridApi)==null||l.refreshHeader(),(b=(_=c.value)==null?void 0:_.gridApi)==null||b.refreshCells({force:!0})},n=v=>{var d,i,p,l,_,b;v&&((i=(d=c.value)==null?void 0:d.gridApi)==null||i.ensureColumnVisible(v,"middle"),(l=(p=c.value)==null?void 0:p.gridApi)==null||l.refreshCells({force:!0}),(b=(_=c.value)==null?void 0:_.gridApi)==null||b.refreshHeader())};return{resetGridState:r,selectedColumnFieldId:t,handleSelectColumn:v=>{t.value=v,n(v)}}},Tr={class:"px-1"},Rr={class:"px-2"},$r={class:"flex-1 overflow-hidden px-1 mb-0.5"},Ir={key:1,class:"h-full"},ei=Y({__name:"QuickQuery",props:{connectionId:{},workspaceId:{},tableName:{},schemaName:{},tabViewType:{},virtualTableId:{}},setup(c){const t=c,r=yt(),n=$e(),s=C(()=>{const z=n.connections.find(G=>G.id===t.connectionId);return(z==null?void 0:z.connectionString)||""}),v=C(()=>{var z;return((z=n.selectedConnection)==null?void 0:z.type)||ye.POSTGRES}),d=C(()=>t.tableName),i=C(()=>t.schemaName),p=P([]),l=P(),{onRequestSafeModeConfirm:_,onSafeModeCancel:b,onSafeModeConfirm:f,safeModeDialogOpen:w,safeModeDialogSql:a,safeModeDialogType:g}=Zn(),{quickQueryFilterRef:u,quickQueryTableRef:S,selectedRows:N,focusedCell:Z}=Wn(),{columnNames:ie,foreignKeys:J,primaryKeyColumns:ue,tableMetaData:me,columnTypes:pe,foreignKeyColumns:oe,isVirtualTable:de}=Jn({tableName:d.value,schemaName:i.value,connectionId:t.connectionId,tabViewType:t.tabViewType}),{onApplyNewFilter:Ne,data:T,baseQueryString:E,refreshTableData:H,refreshCount:I,isAllowNextPage:V,isAllowPreviousPage:K,onNextPage:R,onPreviousPage:$,onUpdatePagination:F,totalRows:M,pagination:O,errorMessage:Q,openErrorModal:ae,orderBy:ne,onUpdateOrderBy:ee,addHistoryLog:ce,filters:ge,isShowFilters:k,onChangeComposeWith:L,composeWith:q,isFetchingTableData:te}=Hn({connection:Tt(n,"selectedConnection"),primaryKeys:ue,columns:ie,connectionId:C(()=>t.connectionId),workspaceId:C(()=>t.workspaceId),tableName:d.value,schemaName:i.value});Fe(me,z=>{z!=null&&z.columns&&z.columns.length>0&&(I(),H())},{deep:!0,immediate:!0});const{isMutating:Ie,onAddEmptyRow:Se,onDiscardChanges:Ge,onDeleteRows:Me,onSaveData:rt,hasEditedRows:gt,pendingChangesCount:ht,onCopyRows:bt,onPasteRows:_t,onRefresh:it,onSelectedRowsChange:Ot,onCopySelectedCell:wt,onFocusedCellChange:Le}=Yn({tableName:d.value,schemaName:i.value,primaryKeys:ue,refreshTableData:H,columnNames:ie,data:T,addHistoryLog:ce,errorMessage:Q,openErrorModal:ae,selectedRows:N,pagination:O,quickQueryTableRef:S,refreshCount:I,focusedCell:Z,safeModeEnabled:Tt(r,"quickQuerySafeModeEnabled"),onRequestSafeModeConfirm:_,connection:Tt(n,"selectedConnection")}),{handleSelectColumn:Ct,selectedColumnFieldId:St,resetGridState:Et}=Nr({quickQueryTableRef:S}),{quickQueryTabView:X,openedQuickQueryTab:se}=Xn({onTabChanged:z=>{z!==re.Data&&r.onCloseBottomPanel()}}),Ye=P(!0);kn(()=>{Ye.value=!0}),Xo(()=>{Ye.value=!1});const ct=({id:z,tableName:G,columnName:Ue,schemaName:Ve})=>{p.value.push({id:pt(),type:"backReferenced",schemaName:Ve,tableName:G,columnName:Ue,recordId:z})},ve=({id:z,tableName:G,columnName:Ue,schemaName:Ve})=>{p.value.push({id:pt(),type:"forwardReferenced",schemaName:Ve,tableName:G,columnName:Ue,recordId:z})},{onAddFilterByContextCell:lo}=Gn({quickQueryFilterRef:u,quickQueryTableRef:S,filters:ge,onApplyNewFilter:Ne}),{isHaveRelationByFieldName:ro}=Yt({schemaName:i.value,tableName:d.value}),at=C(()=>p.value.length>0),At=C(()=>de.value);vt([{key:"meta+a",callback:()=>{var z,G;at.value||(G=(z=S.value)==null?void 0:z.gridApi)==null||G.selectAll()},excludeInput:!0,isPreventDefault:!0},{key:"meta+c",callback:()=>{at.value||wt()},excludeInput:!0},{key:"meta+v",callback:()=>{at.value||_t()},excludeInput:!0},{key:"meta+s",callback:()=>{at.value||At.value||rt()},isPreventDefault:!0},{key:"meta+alt+backspace",callback:()=>{at.value||At.value||Me()},isPreventDefault:!0}],{target:l}),vt([{key:"meta+f",callback:async()=>{var z;at.value||await((z=u.value)==null?void 0:z.onShowSearch())}}]);const Jt=P();Fe(()=>{var z;return(z=S.value)==null?void 0:z.columnDefs},()=>{var z,G;(z=S.value)!=null&&z.columnDefs&&(Jt.value=(G=S.value)==null?void 0:G.columnDefs)},{immediate:!0,deep:!0});const io=(z,G,Ue)=>{p.value[z]&&(p.value[z].selectedTab=G,p.value[z].schemaName=Ue)},co=()=>{p.value=[]},uo=()=>{p.value.pop()},mo=z=>{const G=p.value.filter((Ue,Ve)=>Ve<=z);p.value=G};return(z,G)=>{var Ve,Xt,Zt,en,tn,nn;const Ue=Oe;return h(),x(fe,null,[e(p).length?(h(),D(pr,{key:0,open:e(p).length>0,breadcrumbs:e(p),currentTableName:e(d),connectionId:z.connectionId,workspaceId:z.workspaceId,rootSchemaName:e(i),onClearBreadcrumb:co,onOnOpenBackReferencedTableModal:ct,onOnOpenForwardReferencedTableModal:ve,onOnUpdateSelectedTabInBreadcrumb:io,onOnBackPreviousBreadcrumb:uo,onOnBackPreviousBreadcrumbByIndex:mo},null,8,["open","breadcrumbs","currentTableName","connectionId","workspaceId","rootSchemaName"])):U("",!0),o(Un,{open:e(w),"onUpdate:open":G[0]||(G[0]=Re=>Ee(w)?w.value=Re:null),sql:e(a),type:e(g),onConfirm:e(f),onCancel:e(b)},null,8,["open","sql","type","onConfirm","onCancel"]),e(Ye)?(h(),D(yn,{key:1,defer:"",to:"#preview-select-row"},[((Ve=e(N))==null?void 0:Ve.length)!==1||e(X)!==e(re).Data?(h(),D(za,{key:0,"table-name":e(d),"schema-name":e(i),columns:e(Jt),columnTypes:e(pe),selectedColumnFieldId:e(St),handleSelectColumn:e(Ct),onResetSelectedCol:e(Et)},null,8,["table-name","schema-name","columns","columnTypes","selectedColumnFieldId","handleSelectColumn","onResetSelectedCol"])):(h(),D(cs,{key:1,columnTypes:e(pe),selectedRow:(Xt=e(N))!=null&&Xt.length?e(N)[0]:null},null,8,["columnTypes","selectedRow"]))])):U("",!0),e(Ye)?(h(),D(yn,{key:2,defer:"",to:"#bottom-panel"},[o(xr,{tableName:e(d),"schema-name":e(i)},null,8,["tableName","schema-name"])])):U("",!0),o(Bn,{open:e(ae),"onUpdate:open":G[1]||(G[1]=Re=>Ee(ae)?ae.value=Re:null),message:e(Q)||""},null,8,["open","message"]),y("div",{ref_key:"containerRef",ref:l,class:"flex flex-col h-full w-full relative",tabindex:"0"},[o(Ue,{visible:e(Ie)||e(te)},null,8,["visible"]),y("div",Tr,[o(eo,{"total-selected-rows":(Zt=e(N))==null?void 0:Zt.length,isAllowNextPage:e(V),isAllowPreviousPage:e(K),totalRows:e(M),limit:e(O).limit,currentTotalRows:((en=e(T))==null?void 0:en.length)||0,offset:e(O).offset,"has-edited-rows":e(gt),"pending-changes-count":e(ht),isViewVirtualTable:e(de),onOnPaginate:e(F),onOnNextPage:e(R),onOnPreviousPage:e($),onOnRefresh:e(it),onOnDiscardChanges:e(Ge),onOnSaveData:e(rt),onOnDeleteRows:e(Me),onOnAddEmptyRow:e(Se),onOnShowFilter:G[2]||(G[2]=()=>{var Re;(Re=e(u))==null||Re.onShowSearch()}),onOnToggleHistoryPanel:e(r).onToggleBottomPanel,tabView:e(X),"onUpdate:tabView":G[3]||(G[3]=Re=>Ee(X)?X.value=Re:null)},null,8,["total-selected-rows","isAllowNextPage","isAllowPreviousPage","totalRows","limit","currentTotalRows","offset","has-edited-rows","pending-changes-count","isViewVirtualTable","onOnPaginate","onOnNextPage","onOnPreviousPage","onOnRefresh","onOnDiscardChanges","onOnSaveData","onOnDeleteRows","onOnAddEmptyRow","onOnToggleHistoryPanel","tabView"])]),y("div",Rr,[e(X)===e(re).Data?(h(),D(to,{key:0,ref_key:"quickQueryFilterRef",ref:u,onOnSearch:G[4]||(G[4]=()=>{e(Ne)()}),onOnUpdateFilters:G[5]||(G[5]=Re=>{ge.value=Re}),isShowFilters:e(k),"onUpdate:isShowFilters":G[6]||(G[6]=Re=>Ee(k)?k.value=Re:null),initFilters:e(ge),baseQuery:e(E),columns:e(ie),dbType:e(v),composeWith:e(q),onOnChangeComposeWith:e(L)},null,8,["isShowFilters","initFilters","baseQuery","columns","dbType","composeWith","onOnChangeComposeWith"])):U("",!0)]),y("div",$r,[e(se)[e(re).Erd]?qe((h(),D(Ln,{key:0,tableId:e(On)({tableName:e(d),schemaName:e(i)})},null,8,["tableId"])),[[Ze,e(X)===e(re).Erd]]):U("",!0),e(se)[e(re).Structure]?qe((h(),x("div",Ir,[o(ao,{isVirtualTable:e(de),schema:e(i),tableName:e(d),connectionString:e(s),virtualTableId:t.virtualTableId},null,8,["isVirtualTable","schema","tableName","connectionString","virtualTableId"])],512)),[[Ze,e(X)===e(re).Structure]]):U("",!0),qe(o(no,{data:e(T),"total-selected-rows":e(N).length,"has-edited-rows":e(gt),cellContextMenu:(tn=e(S))==null?void 0:tn.cellContextMenu,cellHeaderContextMenu:(nn=e(S))==null?void 0:nn.cellHeaderContextMenu,selectedRows:e(N),"table-name":e(d),"schema-name":e(i),onOnClearContextMenu:G[7]||(G[7]=Re=>{var on;return(on=e(S))==null?void 0:on.clearCellContextMenu()}),onOnPaginate:e(F),onOnNextPage:e(R),onOnPreviousPage:e($),onOnRefresh:e(it),onOnSaveData:e(rt),onOnDeleteRows:e(Me),onOnAddEmptyRow:e(Se),onOnFilterByValue:e(lo),onOnCopyRows:e(bt),onOnPasteRows:e(_t),onOnCopySelectedCell:e(wt)},{default:m(()=>[o(oo,{class:"h-full border rounded-md",ref_key:"quickQueryTableRef",ref:S,"selected-rows":e(N),data:e(T)||[],orderBy:e(ne),onOnSelectedRows:e(Ot),"onUpdate:orderBy":e(ee),onOnOpenBackReferencedTableModal:ct,onOnOpenForwardReferencedTableModal:ve,isHaveRelationByFieldName:e(ro),foreignKeyColumns:e(oe),foreignKeys:e(J),primaryKeyColumns:e(ue),columnTypes:e(pe),defaultPageSize:e(kt),offset:e(O).offset,onOnFocusCell:e(Le),selectedColumnFieldId:e(St),"current-schema-name":e(i),"current-table-name":e(d),isViewOnly:e(At)},null,8,["selected-rows","data","orderBy","onOnSelectedRows","onUpdate:orderBy","isHaveRelationByFieldName","foreignKeyColumns","foreignKeys","primaryKeyColumns","columnTypes","defaultPageSize","offset","onOnFocusCell","selectedColumnFieldId","current-schema-name","current-table-name","isViewOnly"])]),_:1},8,["data","total-selected-rows","has-edited-rows","cellContextMenu","cellHeaderContextMenu","selectedRows","table-name","schema-name","onOnPaginate","onOnNextPage","onOnPreviousPage","onOnRefresh","onOnSaveData","onOnDeleteRows","onOnAddEmptyRow","onOnFilterByValue","onOnCopyRows","onOnPasteRows","onOnCopySelectedCell"]),[[Ze,e(X)===e(re).Data]])])],512)],64)}}});export{ei as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as s}from"./
|
|
1
|
+
import{_ as s}from"./B_ERKujF.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{d as D,aa as ht,r as O,aK as _t,k as A,l as V,g as o,o as S,w as l,D as R,ak as kt,aJ as yt,e as B,m as I,n as j,j as z,u as Ie,a as je,dT as Ve,az as bt,A as L,c as oe,b as We,aq as Ke,f as i,a0 as F,z as W,F as Y,s as ne,q as Ye,t as U,aY as Ct,a_ as xt,a$ as $t,v as Ge,N as St,O as Et,Q as Tt,R as It,S as Wt,T as Mt,U as At,V as Bt,a5 as ge,dU as Dt,a6 as Lt,a3 as Me,a1 as ve,W as we,p as $e,aS as Ne,dV as Nt,at as Pt,aT as Ot,bn as Rt,aN as Ht,cz as Ft,cu as he,dW as Ae,K as Pe,aG as Q,aH as Qe,X as Be,Y as De,bo as Xe,$ as Ze,dX as zt,bt as qt,Z as Ut,i as te,_ as jt,bk as Vt,x as Kt,y as Yt,C as Gt,B as Qt,dY as Xt,dZ as Zt,d_ as Jt,aP as eo,dg as to,dL as oo}from"./D0lW43G8.js";import{i as Je,g as et,a as se}from"./Chx1IK9D.js";import{_ as tt}from"./CfseWBL0.js";import{i as no,_ as Se}from"./BdZsZgcB.js";import{F as so,u as ro,a as io,b as ao,c as lo,E as co,d as uo,t as po,e as _e}from"./CCmd8DpQ.js";import{_ as mo,a as fo,b as vo,e as wo,c as go}from"./CRqiHVA4.js";import{_ as ho}from"./BMLhg7hE.js";import{_ as _o,j as ko,k as yo}from"./Dunt8-TF.js";import{_ as bo}from"./CkjXKCQH.js";import"./Db3rTgnd.js";import"./C-Pa1rIR.js";var Co=D({__name:"AvatarFallback",props:{delayMs:{type:Number,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,s=no();ht();const r=O(t.delayMs===void 0);return _t(n=>{if(t.delayMs&&yt){const a=window.setTimeout(()=>{r.value=!0},t.delayMs);n(()=>{window.clearTimeout(a)})}}),(n,a)=>r.value&&o(s).imageLoadingStatus.value!=="loaded"?(S(),A(o(kt),{key:0,"as-child":n.asChild,as:n.as},{default:l(()=>[R(n.$slots,"default")]),_:3},8,["as-child","as"])):V("v-if",!0)}}),xo=Co;const $o={"data-slot":"table-container",class:"relative w-full overflow-auto"},So=D({__name:"Table",props:{class:{}},setup(e){const t=e;return(s,r)=>(S(),B("div",$o,[I("table",{"data-slot":"table",class:j(o(z)("w-full caption-bottom text-sm",t.class))},[R(s.$slots,"default")],2)]))}}),Eo=D({__name:"TableBody",props:{class:{}},setup(e){const t=e;return(s,r)=>(S(),B("tbody",{"data-slot":"table-body",class:j(o(z)("[&_tr:last-child]:border-0",t.class))},[R(s.$slots,"default")],2))}}),ae=D({__name:"TableCell",props:{class:{}},setup(e){const t=e;return(s,r)=>(S(),B("td",{"data-slot":"table-cell",class:j(o(z)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t.class))},[R(s.$slots,"default")],2))}}),Oe=D({__name:"TableRow",props:{class:{}},setup(e){const t=e;return(s,r)=>(S(),B("tr",{"data-slot":"table-row",class:j(o(z)("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",t.class))},[R(s.$slots,"default")],2))}}),le=D({__name:"TableHead",props:{class:{}},setup(e){const t=e;return(s,r)=>(S(),B("th",{"data-slot":"table-head",class:j(o(z)("text-muted-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t.class))},[R(s.$slots,"default")],2))}}),To=D({__name:"TableHeader",props:{class:{}},setup(e){const t=e;return(s,r)=>(S(),B("thead",{"data-slot":"table-header",class:j(o(z)("[&_tr]:border-b",t.class))},[R(s.$slots,"default")],2))}}),Io={key:1,class:"rounded-md border border-border w-full"},Wo={class:"flex items-center gap-2 truncate"},Mo={class:"w-80"},Ao={class:"text-muted-foreground truncate"},Bo={class:"flex flex-wrap gap-1"},Do={class:"flex items-center justify-end gap-1"},Lo=D({__name:"ConnectionsList",props:{connections:{}},emits:["edit","delete","create"],setup(e,{emit:t}){const{openWorkspaceWithConnection:s}=Ie(),r=je(),{checkAndConfirm:n}=Ve(),a=We(),v=e,w=t,u=O(null),d=bt(L,{name:"hugeicons:database"}),c=oe(()=>Je(a.public.sqlite3ConnectionsEnabled)),E=_=>{if(_.method!==ge.STRING||!_.connectionString)return null;try{return Dt(_.connectionString)}catch{return null}},p=_=>_.type===Lt.ORACLE?_.serviceName:_.database,g=_=>{if(_.method===ge.FILE){const k=_.filePath||"SQLite file not selected";return{summary:k,tooltip:k}}if(_.method===ge.STRING){const k=E(_),T=_.connectionString||"Invalid connection string";return k?{summary:`${k.host}${k.database?`:${k.database}`:""}`,tooltip:`${k.host}${k.port?`:${k.port}`:""}${k.database?`/${k.database}`:""}`}:{summary:T,tooltip:T}}const m=_.host||"Host not set",x=p(_);return{summary:`${m}${x?`:${x}`:""}`,tooltip:`${m}${_.port?`:${_.port}`:""}${x?`/${x}`:""}`}},f=oe(()=>v.connections.map(_=>{var m;return{connection:_,details:g(_),icon:((m=et(_.type))==null?void 0:m.icon)??d}})),$=_=>{u.value=_},b=()=>{u.value&&(w("delete",u.value),u.value=null)},C=async _=>{se(_,c.value)||!await n(_)||s({connId:_.id,wsId:_.workspaceId})};return(_,m)=>{const x=Ke;return v.connections.length===0?(S(),A(x,{key:0,title:"No connections yet",desc:"Click Add Connection to create your first database connection."},{default:l(()=>[i(o(F),{size:"sm",variant:"outline",onClick:m[0]||(m[0]=k=>w("create"))},{default:l(()=>[i(o(L),{name:"hugeicons:plus-sign",class:"size-4!"}),m[3]||(m[3]=W(" Add Connection "))]),_:1})]),_:1})):(S(),B("div",Io,[i(o(So),null,{default:l(()=>[i(o(To),null,{default:l(()=>[i(o(Oe),{class:"hover:bg-transparent"},{default:l(()=>[i(o(le),null,{default:l(()=>m[4]||(m[4]=[W("Name")])),_:1}),i(o(le),null,{default:l(()=>m[5]||(m[5]=[W("Connection Details")])),_:1}),i(o(le),null,{default:l(()=>m[6]||(m[6]=[W("Tag Envs")])),_:1}),i(o(le),{class:"text-right"},{default:l(()=>m[7]||(m[7]=[W("Actions")])),_:1})]),_:1})]),_:1}),i(o(Eo),null,{default:l(()=>[(S(!0),B(Y,null,ne(f.value,k=>(S(),A(o(Oe),{key:k.connection.id,class:"hover:bg-muted/30 w-full"},{default:l(()=>[i(o(ae),null,{default:l(()=>[I("div",Wo,[(S(),A(Ye(k.icon),{class:"size-5!"})),W(" "+U(k.connection.name),1)])]),_:2},1024),i(o(ae),null,{default:l(()=>[i(o(Ct),null,{default:l(()=>[i(o(xt),{"as-child":""},{default:l(()=>[I("div",Mo,[I("div",Ao,U(k.details.summary),1)])]),_:2},1024),i(o($t),null,{default:l(()=>[I("p",null,U(k.details.tooltip),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),i(o(ae),null,{default:l(()=>[I("div",Bo,[(S(!0),B(Y,null,ne(o(r).getTagsByIds(k.connection.tagIds??[]),T=>(S(),A(o(Ge),{key:T.id,tag:T},null,8,["tag"]))),128))])]),_:2},1024),i(o(ae),{class:"text-right"},{default:l(()=>[I("div",Do,[i(o(F),{variant:"outline",size:"iconMd",onClick:T=>_.$emit("edit",k.connection)},{default:l(()=>[i(o(L),{name:"hugeicons:edit-02"})]),_:2},1032,["onClick"]),i(o(F),{variant:"outline",size:"iconMd",onClick:T=>$(k.connection.id)},{default:l(()=>[i(o(L),{name:"hugeicons:delete-02"})]),_:2},1032,["onClick"]),i(o(F),{variant:"default",size:"sm",disabled:o(se)(k.connection,c.value),onClick:T=>C(k.connection)},{default:l(()=>[i(o(L),{name:"hugeicons:square-arrow-up-right"}),W(" "+U(o(se)(k.connection,c.value)?"Disabled":"Connect"),1)]),_:2},1032,["disabled","onClick"])])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1}),i(o(St),{open:!!u.value,"onUpdate:open":m[2]||(m[2]=k=>!k)},{default:l(()=>[i(o(Et),{class:"border"},{default:l(()=>[i(o(Tt),null,{default:l(()=>[i(o(It),null,{default:l(()=>m[8]||(m[8]=[W("Are you sure?")])),_:1}),i(o(Wt),null,{default:l(()=>m[9]||(m[9]=[W(" This will permanently delete this database connection. This action cannot be undone. ")])),_:1})]),_:1}),i(o(Mt),null,{default:l(()=>[i(o(At),{class:"border",onClick:m[1]||(m[1]=k=>u.value=null)},{default:l(()=>m[10]||(m[10]=[W("Cancel")])),_:1}),i(o(Bt),{class:"border bg-red-600 hover:bg-red-700",onClick:b},{default:l(()=>m[11]||(m[11]=[W(" Delete ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"])]))}}}),No=D({__name:"CardFooter",props:{class:{}},setup(e){const t=e;return(s,r)=>(S(),B("div",{"data-slot":"card-footer",class:j(o(z)("flex items-center px-6 [.border-t]:pt-6",t.class))},[R(s.$slots,"default")],2))}}),Po=D({__name:"CardHeader",props:{class:{}},setup(e){const t=e;return(s,r)=>(S(),B("div",{"data-slot":"card-header",class:j(o(z)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t.class))},[R(s.$slots,"default")],2))}}),Oo=D({__name:"CardTitle",props:{class:{}},setup(e){const t=e;return(s,r)=>(S(),B("h3",{"data-slot":"card-title",class:j(o(z)("leading-none font-semibold",t.class))},[R(s.$slots,"default")],2))}}),Ro={class:"flex flex-col items-center"},Ho={class:"w-full"},Fo={class:"flex items-center justify-between rounded-md bg-card py-4"},zo=D({__name:"ManagementConnection",props:{connections:{},workspaceId:{}},setup(e){const t=O(!1),{createConnection:s}=Ie(),r=Me(),n=O(null),a=()=>{n.value=null,t.value=!0},v=c=>{s(c)},w=c=>{r.updateConnection(c)},u=c=>{n.value=c,t.value=!0},d=c=>{r.onDeleteConnection(c)};return(c,E)=>{const p=L;return S(),B("div",Ro,[I("div",Ho,[I("div",Fo,[E[2]||(E[2]=I("div",null,[I("h1",{class:"text-xl font-medium"},"Management Connections"),I("p",{class:"text-muted-foreground"}," Manage your database connections in one place ")],-1)),i(o(F),{id:"tour-add-connection-btn",size:"sm",variant:"outline",onClick:a},{default:l(()=>[i(p,{name:"lucide:plus",class:"size-4!"}),E[1]||(E[1]=W(" Add Connection "))]),_:1})]),i(Lo,{connections:c.connections,onEdit:u,onDelete:d,onCreate:a},null,8,["connections"]),i(tt,{open:t.value,"editing-connection":n.value,"onUpdate:open":E[0]||(E[0]=g=>t.value=g),onAddNew:v,onUpdate:w,workspaceId:c.workspaceId},null,8,["open","editing-connection","workspaceId"])])])}}}),qo={class:"w-full overflow-x-auto"},Uo=D({__name:"ManagementConnectionModal",props:{open:{},connections:{},workspaceId:{}},emits:["update:open"],setup(e,{emit:t}){const s=t;return(r,n)=>(S(),A(o(ve),{open:!!r.open,"onUpdate:open":n[0]||(n[0]=a=>s("update:open",a))},{default:l(()=>[i(o(we),{class:"w-[95vw]! max-w-[55vw]!"},{default:l(()=>[I("div",qo,[i(zo,{connections:r.connections,"workspace-id":r.workspaceId},null,8,["connections","workspace-id"])])]),_:1})]),_:1},8,["open"]))}}),Ee=D({__name:"AvatarFallback",props:{delayMs:{},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,s=oe(()=>{const{class:r,...n}=t;return n});return(r,n)=>(S(),A(o(xo),$e({"data-slot":"avatar-fallback"},s.value,{class:o(z)("bg-muted flex size-full items-center justify-center rounded-full",t.class)}),{default:l(()=>[R(r.$slots,"default")]),_:3},16,["class"]))}}),ot=Symbol();function Le(){const e=Ne(so),t=Ne(ot);if(!e)throw new Error("useFormField should be used within <FormField>");const{name:s}=e,r=t,n={valid:lo(s),isDirty:ao(s),isTouched:io(s),error:ro(s)};return{id:r,name:s,formItemId:`${r}-form-item`,formDescriptionId:`${r}-form-item-description`,formMessageId:`${r}-form-item-message`,...n}}const ke=D({__name:"FormControl",setup(e){const{error:t,formItemId:s,formDescriptionId:r,formMessageId:n}=Le();return(a,v)=>(S(),A(o(Nt),{id:o(s),"data-slot":"form-control","aria-describedby":o(t)?`${o(r)} ${o(n)}`:`${o(r)}`,"aria-invalid":!!o(t)},{default:l(()=>[R(a.$slots,"default")]),_:3},8,["id","aria-describedby","aria-invalid"]))}}),ye=D({__name:"FormItem",props:{class:{}},setup(e){const t=e,s=Pt();return Ot(ot,s),(r,n)=>(S(),B("div",{"data-slot":"form-item",class:j(o(z)("grid gap-2",t.class))},[R(r.$slots,"default")],2))}}),be=D({__name:"FormLabel",props:{for:{},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,{error:s,formItemId:r}=Le();return(n,a)=>(S(),A(o(Rt),{"data-slot":"form-label","data-error":!!o(s),class:j(o(z)("data-[error=true]:text-destructive-foreground",t.class)),for:o(r)},{default:l(()=>[R(n.$slots,"default")]),_:3},8,["data-error","class","for"]))}}),Ce=D({__name:"FormMessage",props:{class:{}},setup(e){const t=e,{name:s,formMessageId:r}=Le();return(n,a)=>(S(),A(o(co),{id:o(r),"data-slot":"form-message",as:"p",name:Ht(o(s)),class:j(o(z)("text-destructive-foreground text-sm",t.class))},null,8,["id","name","class"]))}}),nt=["lucide:badge","lucide:building-2","lucide:bone","lucide:book","hugeicons:ai-brain-05","lucide:circle-dashed","lucide:chess-bishop","lucide:chess-king","lucide:chess-pawn","lucide:chess-queen","lucide:chess-rook","lucide:fan","lucide:skull","lucide:ship-wheel","lucide:bug","lucide:hamburger"],pe=nt[0],jo=Ft({name:he({message:"Workspace name is required."}),desc:he().optional(),icon:he().default(pe)});function Vo(e){const t=Ae(),s=uo({validationSchema:po(jo),initialValues:e.workspace?{name:e.workspace.name,desc:e.workspace.desc,icon:e.workspace.icon||pe}:{name:`My workspace ${(e==null?void 0:e.workspaceSeq)||0}`,icon:pe},name:"workspace-form"}),r=s.handleSubmit(n=>{!!e.workspace?(t.updateWorkspace({...e.workspace,desc:(n==null?void 0:n.desc)||void 0,name:n.name,icon:n.icon}),Pe("Workspace has been updated",{description:Q().toString()})):(t.createWorkspace({desc:(n==null?void 0:n.desc)||void 0,id:Qe(),name:n.name,icon:n.icon,createdAt:Q().toISOString()}),Pe("Workspace has been created",{description:Q().toString()})),e.onClose()});return{form:s,onSubmit:r}}const Ko={class:"grid grid-cols-8 gap-2"},st=D({__name:"CreateWorkspaceModal",props:{open:{},workspace:{},workspaceSeq:{}},emits:["update:open"],setup(e,{emit:t}){const s=e,r=t,n=()=>{r("update:open",!1)},{onSubmit:a}=Vo({workspace:s.workspace,workspaceSeq:s.workspaceSeq,onClose:n});return(v,w)=>{const u=L;return S(),A(o(ve),{open:!!v.open,"onUpdate:open":w[1]||(w[1]=d=>r("update:open",d))},{default:l(()=>[i(o(we),null,{default:l(()=>[i(o(Be),null,{default:l(()=>[i(o(De),null,{default:l(()=>[W(U(v.workspace?"Update workspace":"New workspace"),1)]),_:1})]),_:1}),I("form",{class:"space-y-4",onSubmit:w[0]||(w[0]=(...d)=>o(a)&&o(a)(...d))},[i(o(_e),{name:"icon"},{default:l(({componentField:d})=>[i(o(ye),null,{default:l(()=>[i(o(be),null,{default:l(()=>w[2]||(w[2]=[W("Icon")])),_:1}),i(o(ke),null,{default:l(()=>[i(o(mo),null,{default:l(()=>[i(o(fo),{"as-child":""},{default:l(()=>[i(o(Se),{id:"tour-workspace-icon",class:"cursor-pointer focus:ring-2 focus:ring-primary focus:outline-none",tabindex:"0",role:"button","aria-label":"Select workspace icon"},{default:l(()=>[i(o(Ee),null,{default:l(()=>[i(u,{name:d.modelValue||"hugeicons:folder-01",class:"size-5!"},null,8,["name"])]),_:2},1024)]),_:2},1024)]),_:2},1024),i(o(vo),{class:"w-full p-4"},{default:l(()=>[I("div",Ko,[(S(!0),B(Y,null,ne(o(nt),c=>(S(),A(o(Se),{onClick:E=>d.onChange(c),key:c,class:"cursor-pointer"},{default:l(()=>[i(o(Ee),null,{default:l(()=>[i(u,{name:c,class:"size-5!"},null,8,["name"])]),_:2},1024)]),_:2},1032,["onClick"]))),128))])]),_:2},1024)]),_:2},1024)]),_:2},1024),i(o(Ce))]),_:2},1024)]),_:1}),i(o(_e),{name:"name"},{default:l(({componentField:d})=>[i(o(ye),null,{default:l(()=>[i(o(be),{class:"gap-1"},{default:l(()=>w[3]||(w[3]=[W("Name "),I("span",{class:"text-red-500"},"*",-1)])),_:1}),i(o(ke),null,{default:l(()=>[i(o(Xe),$e({id:"tour-workspace-name",type:"text",placeholder:"Workspace name"},d),null,16)]),_:2},1024),i(o(Ce))]),_:2},1024)]),_:1}),i(o(_e),{name:"desc"},{default:l(({componentField:d})=>[i(o(ye),null,{default:l(()=>[i(o(be),null,{default:l(()=>w[4]||(w[4]=[W("Description")])),_:1}),i(o(ke),null,{default:l(()=>[i(o(ho),$e({id:"tour-workspace-desc",placeholder:"Workspace description ..."},d),null,16)]),_:2},1024),i(o(Ce))]),_:2},1024)]),_:1}),i(o(Ze),{class:"mt-4"},{default:l(()=>[i(o(F),{id:"tour-workspace-create",type:"submit"},{default:l(()=>[W(U(v.workspace?"Update":"Create"),1)]),_:1})]),_:1})],32)]),_:1})]),_:1},8,["open"])}}}),Yo=D({__name:"RestoreDataModal",props:{open:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const s=t,r=O(null),n=()=>{var a;r.value&&!r.value.canClose()||((a=r.value)==null||a.resetState(),s("update:open",!1))};return(a,v)=>{const w=L;return S(),A(o(ve),{open:a.open,"onUpdate:open":n},{default:l(()=>[i(o(we),{class:"sm:max-w-2xl flex flex-col"},{default:l(()=>[i(o(Be),null,{default:l(()=>[i(o(De),{class:"flex items-center gap-2"},{default:l(()=>[i(w,{name:"hugeicons:file-download",class:"size-4!"}),v[0]||(v[0]=W(" Restore Data "))]),_:1})]),_:1}),i(o(zt),{ref_key:"importPanelRef",ref:r,layout:"modal","success-action-label":"Close","success-action-mode":"emit",onSuccessAction:n},null,512)]),_:1})]),_:1},8,["open"])}}});var ue={exports:{}},Go=ue.exports,Re;function Qo(){return Re||(Re=1,function(e,t){(function(s,r){e.exports=r()})(Go,function(){return function(s,r,n){s=s||{};var a=r.prototype,v={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function w(d,c,E,p){return a.fromToBase(d,c,E,p)}n.en.relativeTime=v,a.fromToBase=function(d,c,E,p,g){for(var f,$,b,C=E.$locale().relativeTime||v,_=s.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],m=_.length,x=0;x<m;x+=1){var k=_[x];k.d&&(f=p?n(d).diff(E,k.d,!0):E.diff(d,k.d,!0));var T=(s.rounding||Math.round)(Math.abs(f));if(b=f>0,T<=k.r||!k.r){T<=1&&x>0&&(k=_[x-1]);var P=C[k.l];g&&(T=g(""+T)),$=typeof P=="string"?P.replace("%d",T):P(T,c,k.l,b);break}}if(c)return $;var q=b?C.future:C.past;return typeof q=="function"?q($):q.replace("%s",$)},a.to=function(d,c){return w(d,c,this,!0)},a.from=function(d,c){return w(d,c,this)};var u=function(d){return d.$u?n.utc():n()};a.toNow=function(d){return this.to(u(this),d)},a.fromNow=function(d){return this.from(u(this),d)}}})}(ue)),ue.exports}var Xo=Qo();const Zo=qt(Xo);function Jo(e){const{createConnection:t,openWorkspaceWithConnection:s}=Ie(),r=Ae(),n=Me(),{checkAndConfirm:a}=Ve(),v=O(!1),w=O(!1),u=O(!1),d=O(),c=O(!1),E=()=>{w.value=!1,r.deleteWorkspace(e.workspace.id)},p=oe(()=>n.getConnectionsByWorkspaceId(e.workspace.id));return{workspaceStore:r,isOpenEditModal:v,isOpenDeleteModal:w,isOpenConnectionSelector:u,dropdownTriggerRef:d,isModalCreateConnectionOpen:c,connections:p,onConfirmDelete:E,onOpenWorkspace:()=>{var C;(C=e.onSelectWorkspace)==null||C.call(e,e.workspace.id)},onOpenConnectionSelector:()=>{u.value=!0},onOpenWorkspaceWithConnection:async C=>{u.value=!1;const _=p.value.find(m=>m.id===C);_&&!await a(_)||await s({connId:C,wsId:e.workspace.id})},handleAddConnection:C=>{t(C)}}}const en=D({__name:"DeleteWorkspaceModal",props:{open:{},onConfirm:{type:Function}},emits:["update:open"],setup(e,{emit:t}){const s=t;return(r,n)=>{const a=F,v=we;return S(),A(o(ve),{open:!!r.open,"onUpdate:open":n[0]||(n[0]=w=>s("update:open",w))},{default:l(()=>[i(v,null,{default:l(()=>[i(o(Be),null,{default:l(()=>[i(o(De),null,{default:l(()=>n[1]||(n[1]=[W("Delete workspace")])),_:1}),i(o(Ut),null,{default:l(()=>n[2]||(n[2]=[W(" Are you sure you want to delete this workspace? "),I("br",null,null,-1),W(" All data will be permanently deleted this action cannot be undone. ")])),_:1})]),_:1}),i(o(Ze),null,{default:l(()=>[i(a,{type:"submit",onClick:r.onConfirm,variant:"default"},{default:l(()=>n[3]||(n[3]=[W(" Delete ")])),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["open"])}}}),tn={class:"flex items-center space-x-2"},on={class:"space-y-1"},nn={class:"text-sm line-clamp-2 break-words break-all text-left"},sn={class:"flex items-center pt-2"},rn={class:"text-xs text-muted-foreground"},an={class:"flex items-center pt-2"},ln={key:0,class:"text-xs text-muted-foreground"},cn={key:1,class:"text-xs text-muted-foreground"},dn={class:"flex items-center pt-2"},un={class:"text-xs text-muted-foreground"},pn={class:"flex items-center gap-1"},mn={class:"flex items-center gap-2 min-w-0"},fn={class:"truncate"},vn={key:0,class:"flex items-center gap-1 ml-auto flex-shrink-0"},wn={key:1,class:"ml-auto text-xs text-muted-foreground"},gn=D({__name:"WorkspaceCard",props:{workspace:{},onOpenWorkspace:{type:Function}},emits:["onSelectWorkspace"],setup(e,{emit:t}){Q.extend(Zo);const s=je(),r=We(),n=oe(()=>Je(r.public.sqlite3ConnectionsEnabled)),a=e,v=t,{workspaceStore:w,isOpenEditModal:u,isOpenDeleteModal:d,isOpenConnectionSelector:c,dropdownTriggerRef:E,isModalCreateConnectionOpen:p,connections:g,onConfirmDelete:f,onOpenWorkspace:$,onOpenConnectionSelector:b,onOpenWorkspaceWithConnection:C,handleAddConnection:_}=Jo({workspace:a.workspace,onSelectWorkspace:m=>v("onSelectWorkspace",m)});return(m,x)=>{const k=Ee,T=Se,P=ko,q=bo,Z=yo,J=_o,G=Gt,ee=Yt;return S(),B(Y,null,[o(p)?(S(),A(o(tt),{key:0,open:o(p),"editing-connection":null,"onUpdate:open":x[0]||(x[0]=M=>p.value=M),onAddNew:o(_),workspaceId:m.workspace.id},null,8,["open","onAddNew","workspaceId"])):V("",!0),o(u)?(S(),A(st,{key:1,open:o(u),"onUpdate:open":x[1]||(x[1]=M=>te(u)?u.value=M:null),workspace:m.workspace,workspaceSeq:o(w).workspaces.length},null,8,["open","workspace","workspaceSeq"])):V("",!0),o(d)?(S(),A(en,{key:2,open:o(d),"onUpdate:open":x[2]||(x[2]=M=>te(d)?d.value=M:null),onConfirm:o(f)},null,8,["open","onConfirm"])):V("",!0),i(o(go),{class:"gap-4 justify-between!"},{default:l(()=>[i(o(Po),{class:"flex justify-between px-4"},{default:l(()=>[I("div",tn,[i(T,null,{default:l(()=>[i(k,null,{default:l(()=>[i(o(L),{name:m.workspace.icon,class:"size-5!"},null,8,["name"])]),_:1})]),_:1}),I("div",null,[i(o(Oo),{class:"line-clamp-1"},{default:l(()=>[W(U(m.workspace.name),1)]),_:1})])]),i(J,null,{default:l(()=>[i(P,null,{default:l(()=>[i(o(F),{size:"icon",variant:"ghost"},{default:l(()=>[i(o(L),{name:"hugeicons:more-vertical-circle-01",class:"size-4!"})]),_:1})]),_:1}),i(Z,null,{default:l(()=>[i(q,{class:"cursor-pointer flex items-center",onClick:x[3]||(x[3]=M=>u.value=!0)},{default:l(()=>[i(o(L),{name:"hugeicons:pencil-edit-02",class:"size-4! min-w-4"}),x[9]||(x[9]=W(" Edit workspace "))]),_:1}),i(q,{class:"cursor-pointer flex items-center",disabled:""},{default:l(()=>[i(o(L),{name:"hugeicons:link-04",class:"size-4! min-w-4"}),x[10]||(x[10]=W(" Invite "))]),_:1}),i(q,{class:"cursor-pointer flex items-center",onClick:x[4]||(x[4]=M=>d.value=!0)},{default:l(()=>[i(o(L),{name:"hugeicons:delete-02",class:"size-4! min-w-4"}),x[11]||(x[11]=W(" Delete workspace "))]),_:1})]),_:1})]),_:1})]),_:1}),i(o(wo),{class:"grid gap-4 overflow-hidden px-4"},{default:l(()=>[I("div",on,[I("p",nn,U(m.workspace.desc),1),I("div",sn,[i(o(L),{name:"hugeicons:connect",class:"mr-2 h-4 w-4 opacity-70"}),I("span",rn," Connection : "+U(o(g).length),1)]),I("div",an,[i(o(L),{name:"hugeicons:clock-05",class:"mr-2 h-4 w-4 opacity-70"}),m.workspace.lastOpened?(S(),B("span",ln," Last opened : "+U(o(Q)(m.workspace.lastOpened).fromNow()),1)):(S(),B("span",cn," Last opened : -/- "))]),I("div",dn,[i(o(L),{name:"hugeicons:clock-01",class:"mr-2 h-4 w-4 opacity-70"}),I("span",un," Created : "+U(o(Q)(m.workspace.createdAt).fromNow()),1)])])]),_:1}),i(o(No),{class:"px-4"},{default:l(()=>[i(o(jt),{open:o(c),"onUpdate:open":x[8]||(x[8]=M=>te(c)?c.value=M:null)},{default:l(()=>[i(o(F),{id:`tour-open-workspace-${m.workspace.id}`,ref_key:"dropdownTriggerRef",ref:E,variant:"default",class:"w-full flex items-center justify-between",onClick:x[6]||(x[6]=M=>o($)()),size:"sm"},{default:l(()=>[I("div",pn,[i(o(L),{name:"hugeicons:square-arrow-up-right",class:"h-4 w-4"}),x[12]||(x[12]=W(" Open workspace "))]),i(o(F),{size:"iconSm",variant:"ghost",onClick:x[5]||(x[5]=Vt(M=>o(b)(),["stop"]))},{default:l(()=>[i(o(L),{name:"hugeicons:arrow-down-01",class:"size-5!"})]),_:1})]),_:1},8,["id"]),i(o(Kt),{reference:o(E)},{default:l(()=>[i(ee,null,{default:l(()=>[I("div",{class:"flex px-2 py-0.5 h-8 hover:bg-muted rounded-md font-normal text-sm items-center gap-1 cursor-pointer",onClick:x[7]||(x[7]=M=>p.value=!0)},[i(o(L),{name:"hugeicons:plus-sign"}),x[13]||(x[13]=W(" Add new connection "))]),o(g).length?(S(),A(G,{key:0})):V("",!0),(S(!0),B(Y,null,ne(o(g),M=>(S(),A(o(Qt),{class:"cursor-pointer",value:M.id,key:M.id,disabled:o(se)(M,o(n)),onSelect:K=>o(C)(M.id)},{default:l(()=>{var K;return[I("div",mn,[(S(),A(Ye((K=o(et)(M.type))==null?void 0:K.icon),{class:"size-4! shrink-0"})),I("span",fn,U(M.name),1),(M.tagIds??[]).length?(S(),B("div",vn,[(S(!0),B(Y,null,ne(o(s).getTagsByIds(M.tagIds??[]),ie=>(S(),A(o(Ge),{key:ie.id,tag:ie},null,8,["tag"]))),128))])):V("",!0),o(se)(M,o(n))?(S(),B("span",wn," Disabled ")):V("",!0)])]}),_:2},1032,["value","disabled","onSelect"]))),128))]),_:1})]),_:1},8,["reference"])]),_:1},8,["open"])]),_:1})]),_:1})],64)}}}),hn={class:"flex items-center justify-between mt-2"},_n={class:"container flex flex-col items-start gap-1 py-2"},kn={class:"text-3xl flex items-center gap-2 font-bold leading-tight tracking-tighter lg:leading-[1.1]"},yn={class:"flex items-center gap-2 shrink-0"},bn=D({__name:"WorkspaceHeader",props:{isShowButtonCreate:{type:Boolean},isShowButtonRestore:{type:Boolean}},emits:["create","restore"],setup(e,{emit:t}){const s=t;return(r,n)=>{const a=L;return S(),B("div",hn,[I("div",_n,[I("h1",kn,[n[2]||(n[2]=W(" Hello ")),i(a,{name:"hugeicons:waving-hand-01"})]),n[3]||(n[3]=I("p",{class:"max-w-2xl text-lg font-light text-foreground"}," Welcome to your workspaces ",-1))]),I("div",yn,[r.isShowButtonRestore?(S(),A(o(F),{key:0,type:"button",variant:"outline",size:"sm",onClick:n[0]||(n[0]=v=>s("restore"))},{default:l(()=>[i(a,{name:"lucide:upload"}),n[4]||(n[4]=W(" Restore Data "))]),_:1})):V("",!0),r.isShowButtonCreate?(S(),A(o(F),{key:1,id:"tour-new-workspace-btn",variant:"outline",size:"sm",onClick:n[1]||(n[1]=v=>s("create"))},{default:l(()=>[i(a,{name:"lucide:plus"}),n[5]||(n[5]=W(" New Workspace "))]),_:1})):V("",!0)])])}}});let Te={},rt;function xe(e={}){Te={animate:!0,allowClose:!0,overlayClickBehavior:"close",overlayOpacity:.7,smoothScroll:!1,disableActiveInteraction:!1,showProgress:!1,stagePadding:10,stageRadius:5,popoverOffset:10,showButtons:["next","previous","close"],disableButtons:[],overlayColor:"#000",...e}}function h(e){return e?Te[e]:Te}function Cn(e){rt=e}function H(){return rt}let me={};function ce(e,t){me[e]=t}function X(e){var t;(t=me[e])==null||t.call(me)}function xn(){me={}}function de(e,t,s,r){return(e/=r/2)<1?s/2*e*e+t:-s/2*(--e*(e-2)-1)+t}function it(e){const t='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return e.flatMap(s=>{const r=s.matches(t),n=Array.from(s.querySelectorAll(t));return[...r?[s]:[],...n]}).filter(s=>getComputedStyle(s).pointerEvents!=="none"&&En(s))}function at(e){if(!e||Sn(e))return;const t=h("smoothScroll"),s=e.offsetHeight>window.innerHeight;e.scrollIntoView({behavior:!t||$n(e)?"auto":"smooth",inline:"center",block:s?"start":"center"})}function $n(e){if(!e||!e.parentElement)return;const t=e.parentElement;return t.scrollHeight>t.clientHeight}function Sn(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function En(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}let fe={};function N(e,t){fe[e]=t}function y(e){return e?fe[e]:fe}function He(){fe={}}function Tn(e,t,s,r){let n=y("__activeStagePosition");const a=n||s.getBoundingClientRect(),v=r.getBoundingClientRect(),w=de(e,a.x,v.x-a.x,t),u=de(e,a.y,v.y-a.y,t),d=de(e,a.width,v.width-a.width,t),c=de(e,a.height,v.height-a.height,t);n={x:w,y:u,width:d,height:c},ct(n),N("__activeStagePosition",n)}function lt(e){if(!e)return;const t=e.getBoundingClientRect(),s={x:t.x,y:t.y,width:t.width,height:t.height};N("__activeStagePosition",s),ct(s)}function In(){const e=y("__activeStagePosition"),t=y("__overlaySvg");if(!e)return;if(!t){console.warn("No stage svg found.");return}const s=window.innerWidth,r=window.innerHeight;t.setAttribute("viewBox",`0 0 ${s} ${r}`)}function Wn(e){const t=Mn(e);document.body.appendChild(t),pt(t,s=>{s.target.tagName==="path"&&X("overlayClick")}),N("__overlaySvg",t)}function ct(e){const t=y("__overlaySvg");if(!t){Wn(e);return}const s=t.firstElementChild;if((s==null?void 0:s.tagName)!=="path")throw new Error("no path element found in stage svg");s.setAttribute("d",dt(e))}function Mn(e){const t=window.innerWidth,s=window.innerHeight,r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.classList.add("driver-overlay","driver-overlay-animated"),r.setAttribute("viewBox",`0 0 ${t} ${s}`),r.setAttribute("xmlSpace","preserve"),r.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),r.setAttribute("version","1.1"),r.setAttribute("preserveAspectRatio","xMinYMin slice"),r.style.fillRule="evenodd",r.style.clipRule="evenodd",r.style.strokeLinejoin="round",r.style.strokeMiterlimit="2",r.style.zIndex="10000",r.style.position="fixed",r.style.top="0",r.style.left="0",r.style.width="100%",r.style.height="100%";const n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("d",dt(e)),n.style.fill=h("overlayColor")||"rgb(0,0,0)",n.style.opacity=`${h("overlayOpacity")}`,n.style.pointerEvents="auto",n.style.cursor="auto",r.appendChild(n),r}function dt(e){const t=window.innerWidth,s=window.innerHeight,r=h("stagePadding")||0,n=h("stageRadius")||0,a=e.width+r*2,v=e.height+r*2,w=Math.min(n,a/2,v/2),u=Math.floor(Math.max(w,0)),d=e.x-r+u,c=e.y-r,E=a-u*2,p=v-u*2;return`M${t},0L0,0L0,${s}L${t},${s}L${t},0Z
|
|
2
|
+
M${d},${c} h${E} a${u},${u} 0 0 1 ${u},${u} v${p} a${u},${u} 0 0 1 -${u},${u} h-${E} a${u},${u} 0 0 1 -${u},-${u} v-${p} a${u},${u} 0 0 1 ${u},-${u} z`}function An(){const e=y("__overlaySvg");e&&e.remove()}function Bn(){const e=document.getElementById("driver-dummy-element");if(e)return e;let t=document.createElement("div");return t.id="driver-dummy-element",t.style.width="0",t.style.height="0",t.style.pointerEvents="none",t.style.opacity="0",t.style.position="fixed",t.style.top="50%",t.style.left="50%",document.body.appendChild(t),t}function Fe(e){const{element:t}=e;let s=typeof t=="function"?t():typeof t=="string"?document.querySelector(t):t;s||(s=Bn()),Ln(s,e)}function Dn(){const e=y("__activeElement"),t=y("__activeStep");e&&(lt(e),In(),ft(e,t))}function Ln(e,t){var s;const r=Date.now(),n=y("__activeStep"),a=y("__activeElement")||e,v=!a||a===e,w=e.id==="driver-dummy-element",u=a.id==="driver-dummy-element",d=h("animate"),c=t.onHighlightStarted||h("onHighlightStarted"),E=(t==null?void 0:t.onHighlighted)||h("onHighlighted"),p=(n==null?void 0:n.onDeselected)||h("onDeselected"),g=h(),f=y();!v&&p&&p(u?void 0:a,n,{config:g,state:f,driver:H()}),c&&c(w?void 0:e,t,{config:g,state:f,driver:H()});const $=!v&&d;let b=!1;Hn(),N("previousStep",n),N("previousElement",a),N("activeStep",t),N("activeElement",e);const C=()=>{if(y("__transitionCallback")!==C)return;const _=Date.now()-r,m=400-_<=400/2;t.popover&&m&&!b&&$&&(ze(e,t),b=!0),h("animate")&&_<400?Tn(_,400,a,e):(lt(e),E&&E(w?void 0:e,t,{config:h(),state:y(),driver:H()}),N("__transitionCallback",void 0),N("__previousStep",n),N("__previousElement",a),N("__activeStep",t),N("__activeElement",e)),window.requestAnimationFrame(C)};N("__transitionCallback",C),window.requestAnimationFrame(C),at(e),!$&&t.popover&&ze(e,t),a.classList.remove("driver-active-element","driver-no-interaction"),a.removeAttribute("aria-haspopup"),a.removeAttribute("aria-expanded"),a.removeAttribute("aria-controls"),((s=t.disableActiveInteraction)!=null?s:h("disableActiveInteraction"))&&e.classList.add("driver-no-interaction"),e.classList.add("driver-active-element"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded","true"),e.setAttribute("aria-controls","driver-popover-content")}function Nn(){var e;(e=document.getElementById("driver-dummy-element"))==null||e.remove(),document.querySelectorAll(".driver-active-element").forEach(t=>{t.classList.remove("driver-active-element","driver-no-interaction"),t.removeAttribute("aria-haspopup"),t.removeAttribute("aria-expanded"),t.removeAttribute("aria-controls")})}function re(){const e=y("__resizeTimeout");e&&window.cancelAnimationFrame(e),N("__resizeTimeout",window.requestAnimationFrame(Dn))}function Pn(e){var t;if(!y("isInitialized")||!(e.key==="Tab"||e.keyCode===9))return;const s=y("__activeElement"),r=(t=y("popover"))==null?void 0:t.wrapper,n=it([...r?[r]:[],...s?[s]:[]]),a=n[0],v=n[n.length-1];if(e.preventDefault(),e.shiftKey){const w=n[n.indexOf(document.activeElement)-1]||v;w==null||w.focus()}else{const w=n[n.indexOf(document.activeElement)+1]||a;w==null||w.focus()}}function ut(e){var t;((t=h("allowKeyboardControl"))==null||t)&&(e.key==="Escape"?X("escapePress"):e.key==="ArrowRight"?X("arrowRightPress"):e.key==="ArrowLeft"&&X("arrowLeftPress"))}function pt(e,t,s){const r=(n,a)=>{const v=n.target;e.contains(v)&&((!s||s(v))&&(n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation()),a==null||a(n))};document.addEventListener("pointerdown",r,!0),document.addEventListener("mousedown",r,!0),document.addEventListener("pointerup",r,!0),document.addEventListener("mouseup",r,!0),document.addEventListener("click",n=>{r(n,t)},!0)}function On(){window.addEventListener("keyup",ut,!1),window.addEventListener("keydown",Pn,!1),window.addEventListener("resize",re),window.addEventListener("scroll",re)}function Rn(){window.removeEventListener("keyup",ut),window.removeEventListener("resize",re),window.removeEventListener("scroll",re)}function Hn(){const e=y("popover");e&&(e.wrapper.style.display="none")}function ze(e,t){var s,r;let n=y("popover");n&&document.body.removeChild(n.wrapper),n=zn(),document.body.appendChild(n.wrapper);const{title:a,description:v,showButtons:w,disableButtons:u,showProgress:d,nextBtnText:c=h("nextBtnText")||"Next →",prevBtnText:E=h("prevBtnText")||"← Previous",progressText:p=h("progressText")||"{current} of {total}"}=t.popover||{};n.nextButton.innerHTML=c,n.previousButton.innerHTML=E,n.progress.innerHTML=p,a?(n.title.innerHTML=a,n.title.style.display="block"):n.title.style.display="none",v?(n.description.innerHTML=v,n.description.style.display="block"):n.description.style.display="none";const g=w||h("showButtons"),f=d||h("showProgress")||!1,$=(g==null?void 0:g.includes("next"))||(g==null?void 0:g.includes("previous"))||f;n.closeButton.style.display=g.includes("close")?"block":"none",$?(n.footer.style.display="flex",n.progress.style.display=f?"block":"none",n.nextButton.style.display=g.includes("next")?"block":"none",n.previousButton.style.display=g.includes("previous")?"block":"none"):n.footer.style.display="none";const b=u||h("disableButtons")||[];b!=null&&b.includes("next")&&(n.nextButton.disabled=!0,n.nextButton.classList.add("driver-popover-btn-disabled")),b!=null&&b.includes("previous")&&(n.previousButton.disabled=!0,n.previousButton.classList.add("driver-popover-btn-disabled")),b!=null&&b.includes("close")&&(n.closeButton.disabled=!0,n.closeButton.classList.add("driver-popover-btn-disabled"));const C=n.wrapper;C.style.display="block",C.style.left="",C.style.top="",C.style.bottom="",C.style.right="",C.id="driver-popover-content",C.setAttribute("role","dialog"),C.setAttribute("aria-labelledby","driver-popover-title"),C.setAttribute("aria-describedby","driver-popover-description");const _=n.arrow;_.className="driver-popover-arrow";const m=((s=t.popover)==null?void 0:s.popoverClass)||h("popoverClass")||"";C.className=`driver-popover ${m}`.trim(),pt(n.wrapper,P=>{var q,Z,J;const G=P.target,ee=((q=t.popover)==null?void 0:q.onNextClick)||h("onNextClick"),M=((Z=t.popover)==null?void 0:Z.onPrevClick)||h("onPrevClick"),K=((J=t.popover)==null?void 0:J.onCloseClick)||h("onCloseClick");if(G.closest(".driver-popover-next-btn"))return ee?ee(e,t,{config:h(),state:y(),driver:H()}):X("nextClick");if(G.closest(".driver-popover-prev-btn"))return M?M(e,t,{config:h(),state:y(),driver:H()}):X("prevClick");if(G.closest(".driver-popover-close-btn"))return K?K(e,t,{config:h(),state:y(),driver:H()}):X("closeClick")},P=>!(n!=null&&n.description.contains(P))&&!(n!=null&&n.title.contains(P))&&typeof P.className=="string"&&P.className.includes("driver-popover")),N("popover",n);const x=((r=t.popover)==null?void 0:r.onPopoverRender)||h("onPopoverRender");x&&x(n,{config:h(),state:y(),driver:H()}),ft(e,t),at(C);const k=e.classList.contains("driver-dummy-element"),T=it([C,...k?[]:[e]]);T.length>0&&T[0].focus()}function mt(){const e=y("popover");if(!(e!=null&&e.wrapper))return;const t=e.wrapper.getBoundingClientRect(),s=h("stagePadding")||0,r=h("popoverOffset")||0;return{width:t.width+s+r,height:t.height+s+r,realWidth:t.width,realHeight:t.height}}function qe(e,t){const{elementDimensions:s,popoverDimensions:r,popoverPadding:n,popoverArrowDimensions:a}=t;return e==="start"?Math.max(Math.min(s.top-n,window.innerHeight-r.realHeight-a.width),a.width):e==="end"?Math.max(Math.min(s.top-(r==null?void 0:r.realHeight)+s.height+n,window.innerHeight-(r==null?void 0:r.realHeight)-a.width),a.width):e==="center"?Math.max(Math.min(s.top+s.height/2-(r==null?void 0:r.realHeight)/2,window.innerHeight-(r==null?void 0:r.realHeight)-a.width),a.width):0}function Ue(e,t){const{elementDimensions:s,popoverDimensions:r,popoverPadding:n,popoverArrowDimensions:a}=t;return e==="start"?Math.max(Math.min(s.left-n,window.innerWidth-r.realWidth-a.width),a.width):e==="end"?Math.max(Math.min(s.left-(r==null?void 0:r.realWidth)+s.width+n,window.innerWidth-(r==null?void 0:r.realWidth)-a.width),a.width):e==="center"?Math.max(Math.min(s.left+s.width/2-(r==null?void 0:r.realWidth)/2,window.innerWidth-(r==null?void 0:r.realWidth)-a.width),a.width):0}function ft(e,t){const s=y("popover");if(!s)return;const{align:r="start",side:n="left"}=(t==null?void 0:t.popover)||{},a=r,v=e.id==="driver-dummy-element"?"over":n,w=h("stagePadding")||0,u=mt(),d=s.arrow.getBoundingClientRect(),c=e.getBoundingClientRect(),E=c.top-u.height;let p=E>=0;const g=window.innerHeight-(c.bottom+u.height);let f=g>=0;const $=c.left-u.width;let b=$>=0;const C=window.innerWidth-(c.right+u.width);let _=C>=0;const m=!p&&!f&&!b&&!_;let x=v;if(v==="top"&&p?_=b=f=!1:v==="bottom"&&f?_=b=p=!1:v==="left"&&b?_=p=f=!1:v==="right"&&_&&(b=p=f=!1),v==="over"){const k=window.innerWidth/2-u.realWidth/2,T=window.innerHeight/2-u.realHeight/2;s.wrapper.style.left=`${k}px`,s.wrapper.style.right="auto",s.wrapper.style.top=`${T}px`,s.wrapper.style.bottom="auto"}else if(m){const k=window.innerWidth/2-(u==null?void 0:u.realWidth)/2,T=10;s.wrapper.style.left=`${k}px`,s.wrapper.style.right="auto",s.wrapper.style.bottom=`${T}px`,s.wrapper.style.top="auto"}else if(b){const k=Math.min($,window.innerWidth-(u==null?void 0:u.realWidth)-d.width),T=qe(a,{elementDimensions:c,popoverDimensions:u,popoverPadding:w,popoverArrowDimensions:d});s.wrapper.style.left=`${k}px`,s.wrapper.style.top=`${T}px`,s.wrapper.style.bottom="auto",s.wrapper.style.right="auto",x="left"}else if(_){const k=Math.min(C,window.innerWidth-(u==null?void 0:u.realWidth)-d.width),T=qe(a,{elementDimensions:c,popoverDimensions:u,popoverPadding:w,popoverArrowDimensions:d});s.wrapper.style.right=`${k}px`,s.wrapper.style.top=`${T}px`,s.wrapper.style.bottom="auto",s.wrapper.style.left="auto",x="right"}else if(p){const k=Math.min(E,window.innerHeight-u.realHeight-d.width);let T=Ue(a,{elementDimensions:c,popoverDimensions:u,popoverPadding:w,popoverArrowDimensions:d});s.wrapper.style.top=`${k}px`,s.wrapper.style.left=`${T}px`,s.wrapper.style.bottom="auto",s.wrapper.style.right="auto",x="top"}else if(f){const k=Math.min(g,window.innerHeight-(u==null?void 0:u.realHeight)-d.width);let T=Ue(a,{elementDimensions:c,popoverDimensions:u,popoverPadding:w,popoverArrowDimensions:d});s.wrapper.style.left=`${T}px`,s.wrapper.style.bottom=`${k}px`,s.wrapper.style.top="auto",s.wrapper.style.right="auto",x="bottom"}m?s.arrow.classList.add("driver-popover-arrow-none"):Fn(a,x,e)}function Fn(e,t,s){const r=y("popover");if(!r)return;const n=s.getBoundingClientRect(),a=mt(),v=r.arrow,w=a.width,u=window.innerWidth,d=n.width,c=n.left,E=a.height,p=window.innerHeight,g=n.top,f=n.height;v.className="driver-popover-arrow";let $=t,b=e;if(t==="top"?(c+d<=0?($="right",b="end"):c+d-w<=0&&($="top",b="start"),c>=u?($="left",b="end"):c+w>=u&&($="top",b="end")):t==="bottom"?(c+d<=0?($="right",b="start"):c+d-w<=0&&($="bottom",b="start"),c>=u?($="left",b="start"):c+w>=u&&($="bottom",b="end")):t==="left"?(g+f<=0?($="bottom",b="end"):g+f-E<=0&&($="left",b="start"),g>=p?($="top",b="end"):g+E>=p&&($="left",b="end")):t==="right"&&(g+f<=0?($="bottom",b="start"):g+f-E<=0&&($="right",b="start"),g>=p?($="top",b="start"):g+E>=p&&($="right",b="end")),!$)v.classList.add("driver-popover-arrow-none");else{v.classList.add(`driver-popover-arrow-side-${$}`),v.classList.add(`driver-popover-arrow-align-${b}`);const C=s.getBoundingClientRect(),_=v.getBoundingClientRect(),m=h("stagePadding")||0,x=C.left-m<window.innerWidth&&C.right+m>0&&C.top-m<window.innerHeight&&C.bottom+m>0;t==="bottom"&&x&&(_.x>C.x&&_.x+_.width<C.x+C.width?r.wrapper.style.transform="translateY(0)":(v.classList.remove(`driver-popover-arrow-align-${b}`),v.classList.add("driver-popover-arrow-none"),r.wrapper.style.transform=`translateY(-${m/2}px)`))}}function zn(){const e=document.createElement("div");e.classList.add("driver-popover");const t=document.createElement("div");t.classList.add("driver-popover-arrow");const s=document.createElement("header");s.id="driver-popover-title",s.classList.add("driver-popover-title"),s.style.display="none",s.innerText="Popover Title";const r=document.createElement("div");r.id="driver-popover-description",r.classList.add("driver-popover-description"),r.style.display="none",r.innerText="Popover description is here";const n=document.createElement("button");n.type="button",n.classList.add("driver-popover-close-btn"),n.setAttribute("aria-label","Close"),n.innerHTML="×";const a=document.createElement("footer");a.classList.add("driver-popover-footer");const v=document.createElement("span");v.classList.add("driver-popover-progress-text"),v.innerText="";const w=document.createElement("span");w.classList.add("driver-popover-navigation-btns");const u=document.createElement("button");u.type="button",u.classList.add("driver-popover-prev-btn"),u.innerHTML="← Previous";const d=document.createElement("button");return d.type="button",d.classList.add("driver-popover-next-btn"),d.innerHTML="Next →",w.appendChild(u),w.appendChild(d),a.appendChild(v),a.appendChild(w),e.appendChild(n),e.appendChild(t),e.appendChild(s),e.appendChild(r),e.appendChild(a),{wrapper:e,arrow:t,title:s,description:r,footer:a,previousButton:u,nextButton:d,closeButton:n,footerButtons:w,progress:v}}function qn(){var e;const t=y("popover");t&&((e=t.wrapper.parentElement)==null||e.removeChild(t.wrapper))}function Un(e={}){xe(e);function t(){h("allowClose")&&c()}function s(){const p=h("overlayClickBehavior");if(h("allowClose")&&p==="close"){c();return}if(typeof p=="function"){const g=y("__activeStep"),f=y("__activeElement");p(f,g,{config:h(),state:y(),driver:H()});return}p==="nextStep"&&r()}function r(){const p=y("activeIndex"),g=h("steps")||[];if(typeof p>"u")return;const f=p+1;g[f]?d(f):c()}function n(){const p=y("activeIndex"),g=h("steps")||[];if(typeof p>"u")return;const f=p-1;g[f]?d(f):c()}function a(p){(h("steps")||[])[p]?d(p):c()}function v(){var p;if(y("__transitionCallback"))return;const g=y("activeIndex"),f=y("__activeStep"),$=y("__activeElement");if(typeof g>"u"||typeof f>"u"||typeof y("activeIndex")>"u")return;const b=((p=f.popover)==null?void 0:p.onPrevClick)||h("onPrevClick");if(b)return b($,f,{config:h(),state:y(),driver:H()});n()}function w(){var p;if(y("__transitionCallback"))return;const g=y("activeIndex"),f=y("__activeStep"),$=y("__activeElement");if(typeof g>"u"||typeof f>"u")return;const b=((p=f.popover)==null?void 0:p.onNextClick)||h("onNextClick");if(b)return b($,f,{config:h(),state:y(),driver:H()});r()}function u(){y("isInitialized")||(N("isInitialized",!0),document.body.classList.add("driver-active",h("animate")?"driver-fade":"driver-simple"),On(),ce("overlayClick",s),ce("escapePress",t),ce("arrowLeftPress",v),ce("arrowRightPress",w))}function d(p=0){var g,f,$,b,C,_,m,x;const k=h("steps");if(!k){console.error("No steps to drive through"),c();return}if(!k[p]){c();return}N("__activeOnDestroyed",document.activeElement),N("activeIndex",p);const T=k[p],P=k[p+1],q=k[p-1],Z=((g=T.popover)==null?void 0:g.doneBtnText)||h("doneBtnText")||"Done",J=h("allowClose"),G=typeof((f=T.popover)==null?void 0:f.showProgress)<"u"?($=T.popover)==null?void 0:$.showProgress:h("showProgress"),ee=(((b=T.popover)==null?void 0:b.progressText)||h("progressText")||"{{current}} of {{total}}").replace("{{current}}",`${p+1}`).replace("{{total}}",`${k.length}`),M=((C=T.popover)==null?void 0:C.showButtons)||h("showButtons"),K=["next","previous",...J?["close"]:[]].filter(gt=>!(M!=null&&M.length)||M.includes(gt)),ie=((_=T.popover)==null?void 0:_.onNextClick)||h("onNextClick"),vt=((m=T.popover)==null?void 0:m.onPrevClick)||h("onPrevClick"),wt=((x=T.popover)==null?void 0:x.onCloseClick)||h("onCloseClick");Fe({...T,popover:{showButtons:K,nextBtnText:P?void 0:Z,disableButtons:[...q?[]:["previous"]],showProgress:G,progressText:ee,onNextClick:ie||(()=>{P?d(p+1):c()}),onPrevClick:vt||(()=>{d(p-1)}),onCloseClick:wt||(()=>{c()}),...(T==null?void 0:T.popover)||{}}})}function c(p=!0){const g=y("__activeElement"),f=y("__activeStep"),$=y("__activeOnDestroyed"),b=h("onDestroyStarted");if(p&&b){const m=!g||(g==null?void 0:g.id)==="driver-dummy-element";b(m?void 0:g,f,{config:h(),state:y(),driver:H()});return}const C=(f==null?void 0:f.onDeselected)||h("onDeselected"),_=h("onDestroyed");if(document.body.classList.remove("driver-active","driver-fade","driver-simple"),Rn(),qn(),Nn(),An(),xn(),He(),g&&f){const m=g.id==="driver-dummy-element";C&&C(m?void 0:g,f,{config:h(),state:y(),driver:H()}),_&&_(m?void 0:g,f,{config:h(),state:y(),driver:H()})}$&&$.focus()}const E={isActive:()=>y("isInitialized")||!1,refresh:re,drive:(p=0)=>{u(),d(p)},setConfig:xe,setSteps:p=>{He(),xe({...h(),steps:p})},getConfig:h,getState:y,getActiveIndex:()=>y("activeIndex"),isFirstStep:()=>y("activeIndex")===0,isLastStep:()=>{const p=h("steps")||[],g=y("activeIndex");return g!==void 0&&g===p.length-1},getActiveStep:()=>y("activeStep"),getActiveElement:()=>y("activeElement"),getPreviousElement:()=>y("previousElement"),getPreviousStep:()=>y("previousStep"),moveNext:r,movePrevious:n,moveTo:a,hasNextStep:()=>{const p=h("steps")||[],g=y("activeIndex");return g!==void 0&&!!p[g+1]},hasPreviousStep:()=>{const p=h("steps")||[],g=y("activeIndex");return g!==void 0&&!!p[g-1]},highlight:p=>{u(),Fe({...p,popover:p.popover?{showButtons:[],showProgress:!1,progressText:"",...p.popover}:void 0})},destroy:()=>{c(!1)}};return Cn(E),E}function jn({isOpenCreateWSModal:e,isOpenSelectConnectionModal:t,workspaceId:s,workspaceStore:r,onSelectWorkspace:n}){const a=Xt(Zt.HAS_SEEN_TOUR,!1,Jt());return{startTour:()=>{a.value=!0;const w=document.getElementById("tour-new-workspace-btn")?"#tour-new-workspace-btn":"#tour-new-workspace-btn-empty",d=Un({popoverClass:"driver-theme-system",showProgress:!0,allowClose:!0,steps:[{popover:{title:"Welcome to OrcaQ!",description:"Let us take a quick tour to get you familiar with the app."}},{element:"#tour-workspace-area",popover:{title:"Workspaces",description:"This is where you manage your workspaces."}},{element:w,popover:{title:"Create Workspace",description:"Click here to create a new workspace.",onNextClick:()=>{e.value=!0,setTimeout(()=>d.moveNext(),500)}}},{element:"#tour-workspace-icon",popover:{title:"Workspace Icon",description:"Choose an icon to identify your workspace."}},{element:"#tour-workspace-name",popover:{title:"Workspace Name",description:"Enter a unique name for your workspace."}},{element:"#tour-workspace-desc",popover:{title:"Workspace Description",description:"Provide a brief description."}},{element:"#tour-workspace-create",popover:{title:"Save Workspace",description:"After filling out the form, click here to create it.",onNextClick:()=>{const c=Qe();r.createWorkspace({desc:"My first workspace created from tour",id:c,name:"My Tour Workspace",icon:pe,createdAt:Q().toISOString()}),e.value=!1,s.value=c,setTimeout(()=>{d.moveNext()},600)}}},{element:document.getElementById(`tour-open-workspace-${s.value}`)||"#tour-workspace-area",popover:{title:"New Workspace Card",description:'Your new workspace appears here. Click "Open workspace" to manage its connections.',onNextClick:()=>{const c=document.getElementById(`tour-open-workspace-${s.value}`);c?c.click():(n(s.value),t.value=!0),setTimeout(()=>{d.moveNext()},800)}}},{element:"#tour-add-connection-btn",popover:{title:"Add Connection",description:"Inside a workspace, you can manage and add database connections.",onNextClick:()=>{var c;(c=document.getElementById("tour-add-connection-btn"))==null||c.click(),setTimeout(()=>d.moveNext(),600)}}},{element:"#tour-database-type-cards",popover:{title:"Select Database",description:"First, choose the database engine you want to connect to."}},{element:"#tour-database-type-next",popover:{title:"Next Step",description:"Click Next after selecting your database engine.",onNextClick:()=>{const c=document.querySelector("#tour-database-type-cards > div");c?(c.click(),setTimeout(()=>{var E;(E=document.getElementById("tour-database-type-next"))==null||E.click(),setTimeout(()=>d.moveNext(),600)},100)):d.moveNext()}}},{element:"#tour-connection-method-tabs",popover:{title:"Connection Method",description:"You can choose between connection string or form based setup."}},{element:"#tour-connection-string-tab",popover:{title:"Connection String Method",description:"Click here to use the connection string option.",onNextClick:()=>{var c;(c=document.getElementById("tour-connection-string-tab"))==null||c.click(),setTimeout(()=>d.moveNext(),300)}}},{element:"#connection-string",popover:{title:"Enter URI",description:"Paste your database URI here for quick access."}},{element:"#tour-connection-form-tab",popover:{title:"Connection Form Method",description:"Or click here to manually enter host, port, username, and password.",onNextClick:()=>{var c;(c=document.getElementById("tour-connection-form-tab"))==null||c.click(),setTimeout(()=>d.moveNext(),300)}}},{element:"#tour-create-update-connection-btn",popover:{title:"Create Connection",description:"After filling out the connection details, click here to save it."}},{popover:{title:"Tour Completed!",description:"You are now ready to use OrcaQ! Happy querying.",onNextClick:()=>{d.destroy()}}}],onDestroyStarted:()=>{e.value=!1,t.value=!1,document.querySelectorAll('[role="dialog"]').forEach(E=>{const p=E.querySelector('button[aria-label="Close"]');p&&p.click()}),document.dispatchEvent(new KeyboardEvent("keydown",{key:"Escape"})),d.destroy()}});d.drive()}}}function Vn(){const e=Ae(),t=Me(),s=eo(""),r=O(""),n=to(s,oo),a=oe(()=>(e.workspaces||[]).filter(d=>d.name.toLowerCase().includes(n.value.toLowerCase()))),v=O(!1),w=O(!1);return{workspaceStore:e,connectionStore:t,search:s,workspaceId:r,mappedWorkspaces:a,isOpenSelectConnectionModal:v,isOpenCreateWSModal:w,onSelectWorkspace:d=>{v.value=!0,r.value=d}}}const Kn={id:"tour-workspace-area",class:"flex flex-col h-full overflow-y-auto p-4 pt-0 space-y-4 relative"},Yn={class:"flex items-center gap-2"},Gn={class:"relative flex-1"},Qn={key:0,class:"grid grid-cols-3 gap-4 overflow-y-auto"},Xn={class:"flex items-center gap-2"},Zn=["href"],Jn=D({__name:"Workspaces",setup(e){const{workspaceStore:t,connectionStore:s,search:r,workspaceId:n,mappedWorkspaces:a,isOpenSelectConnectionModal:v,isOpenCreateWSModal:w,onSelectWorkspace:u}=Vn(),{startTour:d}=jn({isOpenCreateWSModal:w,isOpenSelectConnectionModal:v,workspaceId:n,workspaceStore:t,onSelectWorkspace:u}),c=O(!1),p=We().public.ggFormLink;return(g,f)=>{const $=L,b=Xe,C=F,_=Ke;return S(),B(Y,null,[o(w)?(S(),A(st,{key:0,open:o(w),"onUpdate:open":f[0]||(f[0]=m=>te(w)?w.value=m:null),workspaceSeq:o(t).workspaces.length},null,8,["open","workspaceSeq"])):V("",!0),i(Yo,{open:c.value,"onUpdate:open":f[1]||(f[1]=m=>c.value=m)},null,8,["open"]),i(o(Uo),{open:o(v),"onUpdate:open":f[2]||(f[2]=m=>te(v)?v.value=m:null),connections:o(s).getConnectionsByWorkspaceId(o(n)),"workspace-id":o(n)},null,8,["open","connections","workspace-id"]),I("div",Kn,[i(bn,{onCreate:f[3]||(f[3]=m=>w.value=!0),onRestore:f[4]||(f[4]=m=>c.value=!0),"is-show-button-create":!!o(a).length,"is-show-button-restore":!!o(a).length},null,8,["is-show-button-create","is-show-button-restore"]),I("div",Yn,[I("div",Gn,[i($,{name:"hugeicons:search-01",class:"absolute left-2.5 -translate-y-1/2 top-1/2 size-4"}),i(b,{type:"text",modelValue:o(r),"onUpdate:modelValue":f[5]||(f[5]=m=>te(r)?r.value=m:null),placeholder:"Search workspaces...",class:"pl-10 w-full"},null,8,["modelValue"])])]),o(a).length?(S(),B("div",Qn,[(S(!0),B(Y,null,ne(o(a),m=>(S(),A(gn,{workspace:m,onOnSelectWorkspace:o(u)},null,8,["workspace","onOnSelectWorkspace"]))),256))])):(S(),A(_,{key:1,title:"No workspaces found",desc:"There is nothing here to show. Let's create your first workspace."},{default:l(()=>[I("div",Xn,[i(C,{id:"tour-new-workspace-btn-empty",variant:"default",size:"sm",onClick:f[6]||(f[6]=m=>w.value=!0)},{default:l(()=>[i($,{name:"hugeicons:plus-sign"}),f[8]||(f[8]=W(" New Workspace "))]),_:1}),i(C,{variant:"outline",size:"sm",onClick:f[7]||(f[7]=m=>c.value=!0)},{default:l(()=>[i($,{name:"lucide:upload"}),f[9]||(f[9]=W(" Restore Data "))]),_:1}),i(C,{variant:"secondary",size:"sm",onClick:o(d)},{default:l(()=>[i($,{name:"hugeicons:book-open-02"}),f[10]||(f[10]=W(" Take a tour "))]),_:1},8,["onClick"])])]),_:1})),i(C,{class:"fixed bottom-0 right-4 z-10",variant:"secondary"},{default:l(()=>[I("a",{href:o(p),target:"_blank"},[i($,{name:"hugeicons:chat-feedback-01"}),f[11]||(f[11]=W(" Give me Feedback "))],8,Zn)]),_:1}),i(C,{class:"fixed bottom-16 right-4",variant:"secondary",onClick:o(d),title:"Start Tour"},{default:l(()=>[i($,{name:"hugeicons:book-open-02"}),f[12]||(f[12]=W(" Take a tour "))]),_:1},8,["onClick"])])],64)}}}),us=D({__name:"index",setup(e){return(t,s)=>(S(),A(o(Jn)))}});export{us as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-adapter.mjs","sources":["../../../../server/infrastructure/database/adapters/shared/base-domain-adapter.ts","../../../../server/infrastructure/database/adapters/shared/types.ts","../../../../server/infrastructure/database/adapters/shared/create-adapter.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;AAKO,MAAe,iBAAkB,CAAA;AAAA,EAG5B,YAAY,OAA2B,EAAA;AAFjD,IAAmB,aAAA,CAAA,IAAA,EAAA,SAAA,CAAA;AAGjB,IAAA,IAAA,CAAK,OAAU,GAAA,OAAA;AAAA;AACjB,EAEA,aAAuB,cACrB,CAAA,MAAA,EACA,MAC2B,EAAA;AAC3B,IAAA,OAAO,iBAAkB,CAAA;AAAA,MACvB,oBAAoB,MAAO,CAAA,kBAAA;AAAA,MAC3B,IAAM,EAAA,MAAA;AAAA,MACN,MAAM,MAAO,CAAA,IAAA;AAAA,MACb,MAAM,MAAO,CAAA,IAAA;AAAA,MACb,UAAU,MAAO,CAAA,QAAA;AAAA,MACjB,UAAU,MAAO,CAAA,QAAA;AAAA,MACjB,UAAU,MAAO,CAAA,QAAA;AAAA,MACjB,aAAa,MAAO,CAAA,WAAA;AAAA,MACpB,UAAU,MAAO,CAAA,QAAA;AAAA,MACjB,KAAK,MAAO,CAAA,GAAA;AAAA,MACZ,KAAK,MAAO,CAAA;AAAA,KACb,CAAA;AAAA;AACH,EAEA,MAAgB,WAAc,SAG3B,EAAA;AACD,IAAM,MAAA,SAAA,GAAY,YAAY,GAAI,EAAA;AAClC,IAAM,MAAA,MAAA,GAAS,MAAM,SAAU,EAAA;AAC/B,IAAM,MAAA,OAAA,GAAU,YAAY,GAAI,EAAA;AAEhC,IAAO,OAAA;AAAA,MACL,MAAA;AAAA,MACA,WAAW,MAAQ,CAAA,CAAA,OAAA,GAAU,SAAW,EAAA,OAAA,CAAQ,CAAC,CAAC;AAAA,KACpD;AAAA;AAEJ;;
|
|
1
|
+
{"version":3,"file":"create-adapter.mjs","sources":["../../../../server/infrastructure/database/adapters/shared/base-domain-adapter.ts","../../../../server/infrastructure/database/adapters/shared/types.ts","../../../../server/infrastructure/database/adapters/shared/create-adapter.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;AAKO,MAAe,iBAAkB,CAAA;AAAA,EAG5B,YAAY,OAA2B,EAAA;AAFjD,IAAmB,aAAA,CAAA,IAAA,EAAA,SAAA,CAAA;AAGjB,IAAA,IAAA,CAAK,OAAU,GAAA,OAAA;AAAA;AACjB,EAEA,aAAuB,cACrB,CAAA,MAAA,EACA,MAC2B,EAAA;AAC3B,IAAA,OAAO,iBAAkB,CAAA;AAAA,MACvB,oBAAoB,MAAO,CAAA,kBAAA;AAAA,MAC3B,IAAM,EAAA,MAAA;AAAA,MACN,MAAM,MAAO,CAAA,IAAA;AAAA,MACb,MAAM,MAAO,CAAA,IAAA;AAAA,MACb,UAAU,MAAO,CAAA,QAAA;AAAA,MACjB,UAAU,MAAO,CAAA,QAAA;AAAA,MACjB,UAAU,MAAO,CAAA,QAAA;AAAA,MACjB,aAAa,MAAO,CAAA,WAAA;AAAA,MACpB,UAAU,MAAO,CAAA,QAAA;AAAA,MACjB,cAAc,MAAO,CAAA,YAAA;AAAA,MACrB,eAAe,MAAO,CAAA,aAAA;AAAA,MACtB,KAAK,MAAO,CAAA,GAAA;AAAA,MACZ,KAAK,MAAO,CAAA;AAAA,KACb,CAAA;AAAA;AACH,EAEA,MAAgB,WAAc,SAG3B,EAAA;AACD,IAAM,MAAA,SAAA,GAAY,YAAY,GAAI,EAAA;AAClC,IAAM,MAAA,MAAA,GAAS,MAAM,SAAU,EAAA;AAC/B,IAAM,MAAA,OAAA,GAAU,YAAY,GAAI,EAAA;AAEhC,IAAO,OAAA;AAAA,MACL,MAAA;AAAA,MACA,WAAW,MAAQ,CAAA,CAAA,OAAA,GAAU,SAAW,EAAA,OAAA,CAAQ,CAAC,CAAC;AAAA,KACpD;AAAA;AAEJ;;ACrCA,MAAM,eACJ,GAAA;AAAA,EACE,CAAC,kBAAA,CAAmB,MAAM,GAAG,kBAAmB,CAAA;AAClD,CAAA;AAEK,SAAS,+BACd,MACoB,EAAA;AAhBtB,EAAA,IAAA,EAAA;AAiBE,EAAO,OAAA,CAAA,EAAA,GAAA,eAAA,CAAgB,MAAM,CAAA,KAAtB,IAA2B,GAAA,EAAA,GAAA,MAAA;AACpC;;ACRA,SAAS,iBAAiB,MAAoC,EAAA;AAC5D,EAAA,QAAQ,MAAQ;AAAA,IACd,KAAK,kBAAmB,CAAA,KAAA;AACtB,MAAO,OAAA,OAAA;AAAA,IACT,KAAK,kBAAmB,CAAA,OAAA;AACtB,MAAO,OAAA,SAAA;AAAA,IACT,KAAK,kBAAmB,CAAA,MAAA;AACtB,MAAO,OAAA,QAAA;AAAA,IACT,KAAK,kBAAmB,CAAA,OAAA;AACtB,MAAO,OAAA,QAAA;AAAA,IACT;AACE,MAAO,OAAA,MAAA;AAAA;AAEb;AAEA,eAAsB,mBAIpB,CAAA,MAAA,EACA,MACA,EAAA,WAAA,EACA,SACmB,EAAA;AACnB,EAAM,MAAA,gBAAA,GAAmB,+BAA+B,MAAM,CAAA;AAC9D,EAAM,MAAA,OAAA,GAAU,UAAU,gBAAgB,CAAA;AAE1C,EAAA,IAAI,OAAS,EAAA;AACX,IAAA,OAAO,QAAQ,MAAM,CAAA;AAAA;AAGvB,EAAI,IAAA,gBAAA,KAAqB,mBAAmB,KAAO,EAAA;AACjD,IAAA,MAAM,WAAY,CAAA;AAAA,MAChB,UAAY,EAAA,GAAA;AAAA,MACZ,eAAe,CAAG,EAAA,gBAAA,CAAiB,gBAAgB,CAAC,IAAI,WAAW,CAAA,yBAAA;AAAA,KACpE,CAAA;AAAA;AAGH,EAAI,IAAA,gBAAA,KAAqB,mBAAmB,OAAS,EAAA;AACnD,IAAA,MAAM,WAAY,CAAA;AAAA,MAChB,UAAY,EAAA,GAAA;AAAA,MACZ,eAAe,CAAG,EAAA,gBAAA,CAAiB,gBAAgB,CAAC,IAAI,WAAW,CAAA,yBAAA;AAAA,KACpE,CAAA;AAAA;AAGH,EAAI,IAAA,gBAAA,KAAqB,mBAAmB,MAAQ,EAAA;AAClD,IAAA,MAAM,WAAY,CAAA;AAAA,MAChB,UAAY,EAAA,GAAA;AAAA,MACZ,eAAe,CAAG,EAAA,gBAAA,CAAiB,gBAAgB,CAAC,IAAI,WAAW,CAAA,yBAAA;AAAA,KACpE,CAAA;AAAA;AAGH,EAAI,IAAA,gBAAA,KAAqB,mBAAmB,OAAS,EAAA;AACnD,IAAA,MAAM,WAAY,CAAA;AAAA,MAChB,UAAY,EAAA,GAAA;AAAA,MACZ,eAAe,CAAG,EAAA,gBAAA,CAAiB,gBAAgB,CAAC,IAAI,WAAW,CAAA,yBAAA;AAAA,KACpE,CAAA;AAAA;AAGH,EAAA,MAAM,WAAY,CAAA;AAAA,IAChB,UAAY,EAAA,GAAA;AAAA,IACZ,aAAA,EAAe,8BAA8B,gBAAgB,CAAA;AAAA,GAC9D,CAAA;AACH;;;;"}
|