@powerhousedao/vetra 6.0.2-staging.8 → 6.1.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-module-D_cAVvt0.js +48 -0
- package/dist/app-module-D_cAVvt0.js.map +1 -0
- package/dist/codegen/index.d.ts +117 -0
- package/dist/codegen/index.d.ts.map +1 -0
- package/dist/codegen/index.js +793 -0
- package/dist/codegen/index.js.map +1 -0
- package/dist/connect-BRlVKs1s.js +6 -0
- package/dist/connect-BRlVKs1s.js.map +1 -0
- package/dist/document-editor-1NFr9t3a.js +48 -0
- package/dist/document-editor-1NFr9t3a.js.map +1 -0
- package/dist/document-models/app-module/index.d.ts +12 -2
- package/dist/document-models/app-module/index.d.ts.map +1 -0
- package/dist/document-models/app-module/index.js +5 -2
- package/dist/document-models/document-editor/index.d.ts +12 -2
- package/dist/document-models/document-editor/index.d.ts.map +1 -0
- package/dist/document-models/document-editor/index.js +5 -2
- package/dist/document-models/index.d.ts +6 -29
- package/dist/document-models/index.js +6 -2
- package/dist/document-models/processor-module/index.d.ts +12 -2
- package/dist/document-models/processor-module/index.d.ts.map +1 -0
- package/dist/document-models/processor-module/index.js +5 -2
- package/dist/document-models/subgraph-module/index.d.ts +12 -2
- package/dist/document-models/subgraph-module/index.d.ts.map +1 -0
- package/dist/document-models/subgraph-module/index.js +5 -2
- package/dist/document-models/vetra-package/index.d.ts +12 -2
- package/dist/document-models/vetra-package/index.d.ts.map +1 -0
- package/dist/document-models/vetra-package/index.js +3 -2
- package/dist/{editor-9B-mf9yE.js → editor-BwbJ65NZ.js} +10 -9
- package/dist/editor-BwbJ65NZ.js.map +1 -0
- package/dist/{editor-CQwD5q6a.js → editor-CJAn9WTA.js} +8 -7
- package/dist/editor-CJAn9WTA.js.map +1 -0
- package/dist/{editor-CwC9mpEu.js → editor-CLERZjRS.js} +11 -11
- package/dist/editor-CLERZjRS.js.map +1 -0
- package/dist/{editor-Bm0GwtcN.js → editor-DWufJcmG.js} +7 -7
- package/dist/editor-DWufJcmG.js.map +1 -0
- package/dist/{editor-ouUpfWQx.js → editor-DabfMxkF.js} +15 -15
- package/dist/editor-DabfMxkF.js.map +1 -0
- package/dist/{editor-BwBHWEmR.js → editor-WWMGVelM.js} +9 -9
- package/dist/editor-WWMGVelM.js.map +1 -0
- package/dist/editors/hooks/index.js +1 -1
- package/dist/editors/index.d.ts +13 -12
- package/dist/editors/index.d.ts.map +1 -1
- package/dist/editors/index.js +2 -2
- package/dist/factory-Bd_0OaF8.js +79 -0
- package/dist/factory-Bd_0OaF8.js.map +1 -0
- package/dist/{codegen-PnsnCMkw.js → factory-CEzh-u5J.js} +55 -7
- package/dist/factory-CEzh-u5J.js.map +1 -0
- package/dist/{hooks-Vx4YtE1e.js → hooks-Btogj1f0.js} +1 -1
- package/dist/{hooks-Vx4YtE1e.js.map → hooks-Btogj1f0.js.map} +1 -1
- package/dist/index-BPoF8P3O.d.ts +357 -0
- package/dist/index-BPoF8P3O.d.ts.map +1 -0
- package/dist/index-BoGed4Fa.d.ts +437 -0
- package/dist/index-BoGed4Fa.d.ts.map +1 -0
- package/dist/index-C4s0aLv3.d.ts +424 -0
- package/dist/index-C4s0aLv3.d.ts.map +1 -0
- package/dist/index-ClaOdn_F.d.ts +393 -0
- package/dist/index-ClaOdn_F.d.ts.map +1 -0
- package/dist/index.d.ts +142 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -5
- package/dist/index.js.map +1 -1
- package/dist/{logger-BLNtquAC.js → logger-CYkStoEb.js} +1 -1
- package/dist/{logger-BLNtquAC.js.map → logger-CYkStoEb.js.map} +1 -1
- package/dist/module-DPyV2vUY.js +138 -0
- package/dist/module-DPyV2vUY.js.map +1 -0
- package/dist/module-Drla4Vmn.d.ts +478 -0
- package/dist/module-Drla4Vmn.d.ts.map +1 -0
- package/dist/{vetra-package-VqptqKzx.js → module-dDKBr6QY.js} +186 -236
- package/dist/module-dDKBr6QY.js.map +1 -0
- package/dist/{module-DWvO3WCv.js → module-jWN6gsmi.js} +15 -11
- package/dist/module-jWN6gsmi.js.map +1 -0
- package/dist/module-pK0hpO6c.js +131 -0
- package/dist/module-pK0hpO6c.js.map +1 -0
- package/dist/module-ryHOwQp-.js +105 -0
- package/dist/module-ryHOwQp-.js.map +1 -0
- package/dist/module-x2Liyk0-.js +80 -0
- package/dist/module-x2Liyk0-.js.map +1 -0
- package/dist/ph-factories-B0_E6LY6.js +53 -0
- package/dist/ph-factories-B0_E6LY6.js.map +1 -0
- package/dist/ph-factories-B6PSPkPQ.js +52 -0
- package/dist/ph-factories-B6PSPkPQ.js.map +1 -0
- package/dist/ph-factories-Bn_HTUfT.js +50 -0
- package/dist/ph-factories-Bn_HTUfT.js.map +1 -0
- package/dist/ph-factories-CJXfT_Z1.js +51 -0
- package/dist/ph-factories-CJXfT_Z1.js.map +1 -0
- package/dist/powerhouse.manifest.d.ts +8 -5
- package/dist/powerhouse.manifest.d.ts.map +1 -1
- package/dist/powerhouse.manifest.js +19 -12
- package/dist/processor-module-B7IAItXQ.js +48 -0
- package/dist/processor-module-B7IAItXQ.js.map +1 -0
- package/dist/processors/codegen/index.d.ts +7 -4
- package/dist/processors/codegen/index.d.ts.map +1 -1
- package/dist/processors/codegen/index.js +2 -2
- package/dist/processors/index.d.ts +4 -15
- package/dist/processors/index.d.ts.map +1 -1
- package/dist/processors/index.js +8 -81
- package/dist/processors/index.js.map +1 -1
- package/dist/processors/vetra-read-model/index.d.ts +18599 -2
- package/dist/processors/vetra-read-model/index.d.ts.map +1 -0
- package/dist/processors/vetra-read-model/index.js +2 -54
- package/dist/style.css +7 -8
- package/dist/subgraph-module-CfzSZTNC.js +48 -0
- package/dist/subgraph-module-CfzSZTNC.js.map +1 -0
- package/dist/switchboard-CIUZkhea.js +8 -0
- package/dist/switchboard-CIUZkhea.js.map +1 -0
- package/dist/{useVetraDocument-DF0teXXM.js → useVetraDocument-BQKyels4.js} +1 -1
- package/dist/{useVetraDocument-DF0teXXM.js.map → useVetraDocument-BQKyels4.js.map} +1 -1
- package/dist/{app-module-BbhoykB5.js → utils-BRx88WW3.js} +70 -235
- package/dist/utils-BRx88WW3.js.map +1 -0
- package/dist/{processor-module-CkuQiq7B.js → utils-Byjf33qt.js} +63 -240
- package/dist/utils-Byjf33qt.js.map +1 -0
- package/dist/utils-CWO5kDus.js +162 -0
- package/dist/utils-CWO5kDus.js.map +1 -0
- package/dist/utils-CnZc-0E4.js +202 -0
- package/dist/utils-CnZc-0E4.js.map +1 -0
- package/dist/vetra-package-BgTjv343.js +100 -0
- package/dist/vetra-package-BgTjv343.js.map +1 -0
- package/package.json +19 -14
- package/dist/app-module-BbhoykB5.js.map +0 -1
- package/dist/codegen-PnsnCMkw.js.map +0 -1
- package/dist/document-editor-CHM7Pu4m.js +0 -344
- package/dist/document-editor-CHM7Pu4m.js.map +0 -1
- package/dist/document-models/index.d.ts.map +0 -1
- package/dist/editor-9B-mf9yE.js.map +0 -1
- package/dist/editor-Bm0GwtcN.js.map +0 -1
- package/dist/editor-BwBHWEmR.js.map +0 -1
- package/dist/editor-CD3KcVf6.js +0 -2
- package/dist/editor-CQwD5q6a.js.map +0 -1
- package/dist/editor-CwC9mpEu.js.map +0 -1
- package/dist/editor-ouUpfWQx.js.map +0 -1
- package/dist/index-CHfOF-Et.d.ts +0 -363
- package/dist/index-CHfOF-Et.d.ts.map +0 -1
- package/dist/index-CL_CHW_Z.d.ts +0 -330
- package/dist/index-CL_CHW_Z.d.ts.map +0 -1
- package/dist/index-COsHJRmm.d.ts +0 -37
- package/dist/index-COsHJRmm.d.ts.map +0 -1
- package/dist/index-C_kUPMNf.d.ts +0 -298
- package/dist/index-C_kUPMNf.d.ts.map +0 -1
- package/dist/index-Qr_rU6VS.d.ts +0 -271
- package/dist/index-Qr_rU6VS.d.ts.map +0 -1
- package/dist/index-cBMMID-w.d.ts +0 -323
- package/dist/index-cBMMID-w.d.ts.map +0 -1
- package/dist/module-DWvO3WCv.js.map +0 -1
- package/dist/module-XCoMwFat.js +0 -59
- package/dist/module-XCoMwFat.js.map +0 -1
- package/dist/processor-module-CkuQiq7B.js.map +0 -1
- package/dist/processors/vetra-read-model/index.js.map +0 -1
- package/dist/subgraph-module-CU_-umq2.js +0 -278
- package/dist/subgraph-module-CU_-umq2.js.map +0 -1
- package/dist/vetra-package-VqptqKzx.js.map +0 -1
|
@@ -1,54 +1,2 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
|
|
3
|
-
var VetraReadModelProcessor = class {
|
|
4
|
-
relationalDb;
|
|
5
|
-
constructor(relationalDb) {
|
|
6
|
-
this.relationalDb = relationalDb;
|
|
7
|
-
}
|
|
8
|
-
async onOperations(operations) {
|
|
9
|
-
logger.info(">>> VetraReadModelProcessor.onOperations()");
|
|
10
|
-
if (operations.length === 0) return;
|
|
11
|
-
for (const { operation, context } of operations) {
|
|
12
|
-
if (context.documentType !== "powerhouse/package") continue;
|
|
13
|
-
const state = context.resultingState ? JSON.parse(context.resultingState) : void 0;
|
|
14
|
-
const getString = (val) => typeof val === "string" ? val : null;
|
|
15
|
-
const now = /* @__PURE__ */ new Date();
|
|
16
|
-
const operationTimestamp = new Date(parseInt(operation.timestampUtcMs, 10));
|
|
17
|
-
await this.relationalDb.insertInto("vetra_package").values({
|
|
18
|
-
document_id: context.documentId,
|
|
19
|
-
name: getString(state?.name),
|
|
20
|
-
description: getString(state?.description),
|
|
21
|
-
category: getString(state?.category),
|
|
22
|
-
author_name: getString(state?.author?.name),
|
|
23
|
-
author_website: getString(state?.author?.website),
|
|
24
|
-
keywords: state?.keywords ? JSON.stringify(state.keywords) : null,
|
|
25
|
-
github_url: getString(state?.githubUrl),
|
|
26
|
-
npm_url: getString(state?.npmUrl),
|
|
27
|
-
last_operation_index: operation.index,
|
|
28
|
-
last_operation_hash: operation.hash,
|
|
29
|
-
last_operation_timestamp: operationTimestamp,
|
|
30
|
-
drive_id: "",
|
|
31
|
-
created_at: now,
|
|
32
|
-
updated_at: now
|
|
33
|
-
}).onConflict((oc) => oc.column("document_id").doUpdateSet({
|
|
34
|
-
name: getString(state?.name),
|
|
35
|
-
description: getString(state?.description),
|
|
36
|
-
category: getString(state?.category),
|
|
37
|
-
author_name: getString(state?.author?.name),
|
|
38
|
-
author_website: getString(state?.author?.website),
|
|
39
|
-
keywords: state?.keywords ? JSON.stringify(state.keywords) : null,
|
|
40
|
-
github_url: getString(state?.githubUrl),
|
|
41
|
-
npm_url: getString(state?.npmUrl),
|
|
42
|
-
last_operation_index: operation.index,
|
|
43
|
-
last_operation_hash: operation.hash,
|
|
44
|
-
last_operation_timestamp: operationTimestamp,
|
|
45
|
-
updated_at: now
|
|
46
|
-
})).execute();
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
async onDisconnect() {}
|
|
50
|
-
};
|
|
51
|
-
//#endregion
|
|
52
|
-
export { VetraReadModelProcessor };
|
|
53
|
-
|
|
54
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { n as VetraReadModelProcessor, t as vetraReadModelFactoryBuilder } from "../../factory-Bd_0OaF8.js";
|
|
2
|
+
export { VetraReadModelProcessor, vetraReadModelFactoryBuilder };
|
package/dist/style.css
CHANGED
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
--font-weight-normal: 400;
|
|
47
47
|
--font-weight-medium: 500;
|
|
48
48
|
--font-weight-semibold: 600;
|
|
49
|
+
--radius-sm: 0.25rem;
|
|
49
50
|
--radius-md: 0.375rem;
|
|
50
51
|
--radius-lg: 0.5rem;
|
|
51
52
|
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -300,7 +301,8 @@
|
|
|
300
301
|
.table {
|
|
301
302
|
display: table;
|
|
302
303
|
}
|
|
303
|
-
.
|
|
304
|
+
.size-4 {
|
|
305
|
+
width: calc(var(--spacing) * 4);
|
|
304
306
|
height: calc(var(--spacing) * 4);
|
|
305
307
|
}
|
|
306
308
|
.h-8 {
|
|
@@ -318,9 +320,6 @@
|
|
|
318
320
|
.min-h-screen {
|
|
319
321
|
min-height: 100vh;
|
|
320
322
|
}
|
|
321
|
-
.w-4 {
|
|
322
|
-
width: calc(var(--spacing) * 4);
|
|
323
|
-
}
|
|
324
323
|
.w-\[300px\] {
|
|
325
324
|
width: 300px;
|
|
326
325
|
}
|
|
@@ -339,7 +338,7 @@
|
|
|
339
338
|
.flex-1 {
|
|
340
339
|
flex: 1;
|
|
341
340
|
}
|
|
342
|
-
.
|
|
341
|
+
.shrink-0 {
|
|
343
342
|
flex-shrink: 0;
|
|
344
343
|
}
|
|
345
344
|
.rotate-90 {
|
|
@@ -428,9 +427,6 @@
|
|
|
428
427
|
.overflow-hidden {
|
|
429
428
|
overflow: hidden;
|
|
430
429
|
}
|
|
431
|
-
.rounded {
|
|
432
|
-
border-radius: 0.25rem;
|
|
433
|
-
}
|
|
434
430
|
.rounded-full {
|
|
435
431
|
border-radius: calc(infinity * 1px);
|
|
436
432
|
}
|
|
@@ -440,6 +436,9 @@
|
|
|
440
436
|
.rounded-md {
|
|
441
437
|
border-radius: var(--radius-md);
|
|
442
438
|
}
|
|
439
|
+
.rounded-sm {
|
|
440
|
+
border-radius: var(--radius-sm);
|
|
441
|
+
}
|
|
443
442
|
.border {
|
|
444
443
|
border-style: var(--tw-border-style);
|
|
445
444
|
border-width: 1px;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { l as isSubgraphModuleDocument, s as assertIsSubgraphModuleDocument } from "./utils-CWO5kDus.js";
|
|
2
|
+
import { t as SubgraphModule } from "./module-x2Liyk0-.js";
|
|
3
|
+
import { PHDocumentController } from "document-model";
|
|
4
|
+
import { useDocumentById, useDocumentsInSelectedDrive, useDocumentsInSelectedFolder, useSelectedDocument } from "@powerhousedao/reactor-browser";
|
|
5
|
+
//#region document-models/subgraph-module/v1/gen/controller.ts
|
|
6
|
+
/**
|
|
7
|
+
* WARNING: DO NOT EDIT
|
|
8
|
+
* This file is auto-generated and updated by codegen
|
|
9
|
+
*/
|
|
10
|
+
const SubgraphModuleController = PHDocumentController.forDocumentModel(SubgraphModule);
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region document-models/subgraph-module/v1/hooks.ts
|
|
13
|
+
/** Hook to get a SubgraphModule document by its id */
|
|
14
|
+
function useSubgraphModuleDocumentById(documentId) {
|
|
15
|
+
const [document, dispatch] = useDocumentById(documentId);
|
|
16
|
+
if (!isSubgraphModuleDocument(document)) return [void 0, void 0];
|
|
17
|
+
return [document, dispatch];
|
|
18
|
+
}
|
|
19
|
+
/** Hook to get the selected SubgraphModule document */
|
|
20
|
+
function useSelectedSubgraphModuleDocument() {
|
|
21
|
+
const [document, dispatch] = useSelectedDocument();
|
|
22
|
+
assertIsSubgraphModuleDocument(document);
|
|
23
|
+
return [document, dispatch];
|
|
24
|
+
}
|
|
25
|
+
/** Hook to get all SubgraphModule documents in the selected drive */
|
|
26
|
+
function useSubgraphModuleDocumentsInSelectedDrive() {
|
|
27
|
+
return useDocumentsInSelectedDrive()?.filter(isSubgraphModuleDocument);
|
|
28
|
+
}
|
|
29
|
+
/** Hook to get all SubgraphModule documents in the selected folder */
|
|
30
|
+
function useSubgraphModuleDocumentsInSelectedFolder() {
|
|
31
|
+
return useDocumentsInSelectedFolder()?.filter(isSubgraphModuleDocument);
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region document-models/subgraph-module/upgrades/versions.ts
|
|
35
|
+
const supportedVersions = [1];
|
|
36
|
+
const latestVersion = supportedVersions[0];
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region document-models/subgraph-module/upgrades/upgrade-manifest.ts
|
|
39
|
+
const subgraphModuleUpgradeManifest = {
|
|
40
|
+
documentType: "powerhouse/subgraph",
|
|
41
|
+
latestVersion,
|
|
42
|
+
supportedVersions,
|
|
43
|
+
upgrades: {}
|
|
44
|
+
};
|
|
45
|
+
//#endregion
|
|
46
|
+
export { useSubgraphModuleDocumentById as a, SubgraphModuleController as c, useSelectedSubgraphModuleDocument as i, latestVersion as n, useSubgraphModuleDocumentsInSelectedDrive as o, supportedVersions as r, useSubgraphModuleDocumentsInSelectedFolder as s, subgraphModuleUpgradeManifest as t };
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=subgraph-module-CfzSZTNC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subgraph-module-CfzSZTNC.js","names":[],"sources":["../document-models/subgraph-module/v1/gen/controller.ts","../document-models/subgraph-module/v1/hooks.ts","../document-models/subgraph-module/upgrades/versions.ts","../document-models/subgraph-module/upgrades/upgrade-manifest.ts"],"sourcesContent":["/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { PHDocumentController } from \"document-model\";\nimport { SubgraphModule } from \"../module.js\";\nimport type { SubgraphModuleAction, SubgraphModulePHState } from \"./types.js\";\n\nexport const SubgraphModuleController = PHDocumentController.forDocumentModel<\n SubgraphModulePHState,\n SubgraphModuleAction\n>(SubgraphModule);\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentDispatch } from \"@powerhousedao/reactor-browser\";\nimport {\n useDocumentById,\n useDocumentsInSelectedDrive,\n useDocumentsInSelectedFolder,\n useSelectedDocument,\n} from \"@powerhousedao/reactor-browser\";\nimport type {\n SubgraphModuleAction,\n SubgraphModuleDocument,\n} from \"document-models/subgraph-module/v1\";\nimport {\n assertIsSubgraphModuleDocument,\n isSubgraphModuleDocument,\n} from \"./gen/document-schema.js\";\n\n/** Hook to get a SubgraphModule document by its id */\nexport function useSubgraphModuleDocumentById(\n documentId: string | null | undefined,\n):\n | [SubgraphModuleDocument, DocumentDispatch<SubgraphModuleAction>]\n | [undefined, undefined] {\n const [document, dispatch] = useDocumentById(documentId);\n if (!isSubgraphModuleDocument(document)) return [undefined, undefined];\n return [document, dispatch];\n}\n\n/** Hook to get the selected SubgraphModule document */\nexport function useSelectedSubgraphModuleDocument(): [\n SubgraphModuleDocument,\n DocumentDispatch<SubgraphModuleAction>,\n] {\n const [document, dispatch] = useSelectedDocument();\n\n assertIsSubgraphModuleDocument(document);\n return [document, dispatch] as const;\n}\n\n/** Hook to get all SubgraphModule documents in the selected drive */\nexport function useSubgraphModuleDocumentsInSelectedDrive() {\n const documentsInSelectedDrive = useDocumentsInSelectedDrive();\n return documentsInSelectedDrive?.filter(isSubgraphModuleDocument);\n}\n\n/** Hook to get all SubgraphModule documents in the selected folder */\nexport function useSubgraphModuleDocumentsInSelectedFolder() {\n const documentsInSelectedFolder = useDocumentsInSelectedFolder();\n return documentsInSelectedFolder?.filter(isSubgraphModuleDocument);\n}\n","export const supportedVersions = [1] as const;\n\nexport const latestVersion = supportedVersions[0];\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { UpgradeManifest } from \"document-model\";\nimport { latestVersion, supportedVersions } from \"./versions.js\";\n\nexport const subgraphModuleUpgradeManifest: UpgradeManifest<\n typeof supportedVersions\n> = {\n documentType: \"powerhouse/subgraph\",\n latestVersion,\n supportedVersions,\n upgrades: {},\n};\n"],"mappings":";;;;;;;;;AAQA,MAAa,2BAA2B,qBAAqB,iBAG3D,eAAe;;;;ACUjB,SAAgB,8BACd,YAGyB;CACzB,MAAM,CAAC,UAAU,YAAY,gBAAgB,WAAW;AACxD,KAAI,CAAC,yBAAyB,SAAS,CAAE,QAAO,CAAC,KAAA,GAAW,KAAA,EAAU;AACtE,QAAO,CAAC,UAAU,SAAS;;;AAI7B,SAAgB,oCAGd;CACA,MAAM,CAAC,UAAU,YAAY,qBAAqB;AAElD,gCAA+B,SAAS;AACxC,QAAO,CAAC,UAAU,SAAS;;;AAI7B,SAAgB,4CAA4C;AAE1D,QADiC,6BAA6B,EAC7B,OAAO,yBAAyB;;;AAInE,SAAgB,6CAA6C;AAE3D,QADkC,8BAA8B,EAC9B,OAAO,yBAAyB;;;;ACnDpE,MAAa,oBAAoB,CAAC,EAAE;AAEpC,MAAa,gBAAgB,kBAAkB;;;ACK/C,MAAa,gCAET;CACF,cAAc;CACd;CACA;CACA,UAAU,EAAE;CACb"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { t as codegenFactoryBuilder } from "./factory-CEzh-u5J.js";
|
|
2
|
+
import { t as vetraReadModelFactoryBuilder } from "./factory-Bd_0OaF8.js";
|
|
3
|
+
//#region processors/switchboard.ts
|
|
4
|
+
const processorFactoryBuilders = [vetraReadModelFactoryBuilder, codegenFactoryBuilder];
|
|
5
|
+
//#endregion
|
|
6
|
+
export { processorFactoryBuilders };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=switchboard-CIUZkhea.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switchboard-CIUZkhea.js","names":[],"sources":["../processors/switchboard.ts"],"sourcesContent":["/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { ProcessorFactoryBuilder } from \"@powerhousedao/reactor-browser\";\nimport { codegenFactoryBuilder } from \"./codegen/factory.js\";\nimport { vetraReadModelFactoryBuilder } from \"./vetra-read-model/factory.js\";\n\nexport const processorFactoryBuilders: ProcessorFactoryBuilder[] = [\n vetraReadModelFactoryBuilder,\n codegenFactoryBuilder,\n];\n"],"mappings":";;;AAQA,MAAa,2BAAsD,CACjE,8BACA,sBACD"}
|
|
@@ -27,4 +27,4 @@ function useSelectedDriveVetraPackage() {
|
|
|
27
27
|
//#endregion
|
|
28
28
|
export { useSelectedProcessorModuleDocument as n, useSelectedSubgraphModuleDocument as r, useSelectedDriveVetraPackage as t };
|
|
29
29
|
|
|
30
|
-
//# sourceMappingURL=useVetraDocument-
|
|
30
|
+
//# sourceMappingURL=useVetraDocument-BQKyels4.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useVetraDocument-
|
|
1
|
+
{"version":3,"file":"useVetraDocument-BQKyels4.js","names":[],"sources":["../editors/hooks/useVetraDocument.ts"],"sourcesContent":["import {\n useDocumentOfType,\n useSelectedDocumentId,\n useSelectedDocumentOfType,\n useSelectedDrive,\n} from \"@powerhousedao/reactor-browser\";\nimport { isFileNode } from \"@powerhousedao/shared/document-drive\";\nimport type {\n AppModuleAction,\n AppModuleDocument,\n} from \"../../document-models/app-module/index.js\";\nimport {\n type DocumentEditorAction,\n type DocumentEditorDocument,\n} from \"../../document-models/document-editor/index.js\";\nimport type {\n ProcessorModuleAction,\n ProcessorModuleDocument,\n} from \"../../document-models/processor-module/index.js\";\nimport type {\n SubgraphModuleAction,\n SubgraphModuleDocument,\n} from \"../../document-models/subgraph-module/index.js\";\nimport type {\n VetraPackageAction,\n VetraPackageDocument,\n} from \"../../document-models/vetra-package/index.js\";\n\nconst VETRA_PACKAGE_DOCUMENT_TYPE = \"powerhouse/package\";\nconst DOCUMENT_EDITOR_DOCUMENT_TYPE = \"powerhouse/document-editor\";\nconst SUBGRAPH_MODULE_DOCUMENT_TYPE = \"powerhouse/subgraph\";\nconst PROCESSOR_MODULE_DOCUMENT_TYPE = \"powerhouse/processor\";\n\nexport function useAppModuleDocument(documentId: string | undefined | null) {\n return useDocumentOfType<AppModuleDocument, AppModuleAction>(\n documentId,\n \"powerhouse/app\",\n );\n}\n\nexport function useSelectedAppModuleDocument() {\n const documentId = useSelectedDocumentId();\n return useAppModuleDocument(documentId);\n}\n\nexport function useDocumentEditorDocument(\n documentId: string | undefined | null,\n) {\n return useDocumentOfType<DocumentEditorDocument, DocumentEditorAction>(\n documentId,\n DOCUMENT_EDITOR_DOCUMENT_TYPE,\n );\n}\n\nexport function useSelectedDocumentEditorDocument() {\n const documentId = useSelectedDocumentId();\n return useDocumentEditorDocument(documentId);\n}\n\nexport function useProcessorModuleDocument(\n documentId: string | undefined | null,\n) {\n return useDocumentOfType<ProcessorModuleDocument, ProcessorModuleAction>(\n documentId,\n PROCESSOR_MODULE_DOCUMENT_TYPE,\n );\n}\n\nexport function useSelectedProcessorModuleDocument() {\n const documentId = useSelectedDocumentId();\n return useProcessorModuleDocument(documentId);\n}\n\nexport function useSubgraphModuleDocument(\n documentId: string | undefined | null,\n) {\n return useDocumentOfType<SubgraphModuleDocument, SubgraphModuleAction>(\n documentId,\n SUBGRAPH_MODULE_DOCUMENT_TYPE,\n );\n}\n\nexport function useSelectedSubgraphModuleDocument() {\n const documentId = useSelectedDocumentId();\n return useSubgraphModuleDocument(documentId);\n}\n\nexport function useVetraPackageDocument(documentId: string | undefined | null) {\n return useDocumentOfType<VetraPackageDocument, VetraPackageAction>(\n documentId,\n VETRA_PACKAGE_DOCUMENT_TYPE,\n );\n}\n\nexport function useSelectedVetraPackageDocument() {\n return useSelectedDocumentOfType<VetraPackageDocument, VetraPackageAction>(\n VETRA_PACKAGE_DOCUMENT_TYPE,\n );\n}\n\nexport function useSelectedDriveVetraPackage() {\n const [selectedDrive] = useSelectedDrive();\n const documentId = selectedDrive.state.global.nodes.find(\n (node) =>\n isFileNode(node) && node.documentType === VETRA_PACKAGE_DOCUMENT_TYPE,\n )?.id;\n\n return useVetraPackageDocument(documentId);\n}\n"],"mappings":";;;AA4BA,MAAM,8BAA8B;AAEpC,MAAM,gCAAgC;AACtC,MAAM,iCAAiC;AA4BvC,SAAgB,2BACd,YACA;AACA,QAAO,kBACL,YACA,+BACD;;AAGH,SAAgB,qCAAqC;AAEnD,QAAO,2BADY,uBAAuB,CACG;;AAG/C,SAAgB,0BACd,YACA;AACA,QAAO,kBACL,YACA,8BACD;;AAGH,SAAgB,oCAAoC;AAElD,QAAO,0BADY,uBAAuB,CACE;;AAG9C,SAAgB,wBAAwB,YAAuC;AAC7E,QAAO,kBACL,YACA,4BACD;;AASH,SAAgB,+BAA+B;CAC7C,MAAM,CAAC,iBAAiB,kBAAkB;CAC1C,MAAM,aAAa,cAAc,MAAM,OAAO,MAAM,MACjD,SACC,WAAW,KAAK,IAAI,KAAK,iBAAiB,4BAC7C,EAAE;AAEH,QAAO,wBAAwB,WAAW"}
|
|
@@ -1,114 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-pbuEa-1d.js";
|
|
2
|
-
import { BaseDocumentHeaderSchema, BaseDocumentStateSchema, baseActions, baseCreateDocument, baseLoadFromInput, baseSaveToFileHandle, createAction,
|
|
2
|
+
import { BaseDocumentHeaderSchema, BaseDocumentStateSchema, baseActions, baseCreateDocument, baseLoadFromInput, baseSaveToFileHandle, createAction, createReducer, defaultBaseState, generateId, isDocumentAction } from "document-model";
|
|
3
3
|
import * as z$1 from "zod";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
-
|
|
6
|
-
//#region document-models/app-module/gen/document-model.ts
|
|
7
|
-
const documentModel = {
|
|
8
|
-
id: "powerhouse/app",
|
|
9
|
-
name: "App Module",
|
|
10
|
-
extension: ".phdm",
|
|
11
|
-
description: "",
|
|
12
|
-
author: {
|
|
13
|
-
name: "Powerhouse",
|
|
14
|
-
website: "https://powerhouse.inc"
|
|
15
|
-
},
|
|
16
|
-
specifications: [{
|
|
17
|
-
version: 1,
|
|
18
|
-
changeLog: [],
|
|
19
|
-
state: {
|
|
20
|
-
global: {
|
|
21
|
-
schema: "type AppModuleState {\n name: String!\n status: StatusType!\n allowedDocumentTypes: [String!]\n isDragAndDropEnabled: Boolean!\n}\n\nenum StatusType {\n DRAFT\n CONFIRMED\n}",
|
|
22
|
-
initialValue: "{\n \"name\": \"\",\n \"status\": \"DRAFT\",\n \"allowedDocumentTypes\": null,\n \"isDragAndDropEnabled\": true\n}",
|
|
23
|
-
examples: []
|
|
24
|
-
},
|
|
25
|
-
local: {
|
|
26
|
-
schema: "",
|
|
27
|
-
initialValue: "",
|
|
28
|
-
examples: []
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
modules: [{
|
|
32
|
-
id: "d274599a-ceb5-4f2b-8651-b25787306734",
|
|
33
|
-
name: "base_operations",
|
|
34
|
-
description: "",
|
|
35
|
-
operations: [
|
|
36
|
-
{
|
|
37
|
-
id: "f2ba2ddc-8527-4162-93bd-e045e9932013",
|
|
38
|
-
name: "SET_APP_NAME",
|
|
39
|
-
description: "",
|
|
40
|
-
schema: "input SetAppNameInput {\n name: String!\n}",
|
|
41
|
-
template: "",
|
|
42
|
-
reducer: "",
|
|
43
|
-
errors: [],
|
|
44
|
-
examples: [],
|
|
45
|
-
scope: "global"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
id: "c842efa4-154c-4fd9-9d12-42bec51af4e9",
|
|
49
|
-
name: "SET_APP_STATUS",
|
|
50
|
-
description: "",
|
|
51
|
-
schema: "input SetAppStatusInput {\n status: StatusType!\n}",
|
|
52
|
-
template: "",
|
|
53
|
-
reducer: "",
|
|
54
|
-
errors: [],
|
|
55
|
-
examples: [],
|
|
56
|
-
scope: "global"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
id: "7376f168-695f-4aef-94d0-6e381666358c",
|
|
60
|
-
name: "ADD_DOCUMENT_TYPE",
|
|
61
|
-
description: "",
|
|
62
|
-
schema: "input AddDocumentTypeInput {\n documentType: String!\n}",
|
|
63
|
-
template: "",
|
|
64
|
-
reducer: "",
|
|
65
|
-
errors: [],
|
|
66
|
-
examples: [],
|
|
67
|
-
scope: "global"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
id: "310e4e5b-3f14-4e9a-8e09-5583c7698a65",
|
|
71
|
-
name: "REMOVE_DOCUMENT_TYPE",
|
|
72
|
-
description: "",
|
|
73
|
-
schema: "input RemoveDocumentTypeInput {\n documentType: String!\n}",
|
|
74
|
-
template: "",
|
|
75
|
-
reducer: "",
|
|
76
|
-
errors: [],
|
|
77
|
-
examples: [],
|
|
78
|
-
scope: "global"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
id: "b365727a-7df3-48f0-a4f8-02362f02ad1d",
|
|
82
|
-
name: "SET_DOCUMENT_TYPES",
|
|
83
|
-
description: "",
|
|
84
|
-
schema: "input SetDocumentTypesInput {\n documentTypes: [String!]!\n}",
|
|
85
|
-
template: "",
|
|
86
|
-
reducer: "",
|
|
87
|
-
errors: [],
|
|
88
|
-
examples: [],
|
|
89
|
-
scope: "global"
|
|
90
|
-
}
|
|
91
|
-
]
|
|
92
|
-
}, {
|
|
93
|
-
id: "270faa10-92e9-40d0-b128-2de32704bcb5",
|
|
94
|
-
name: "dnd_operations",
|
|
95
|
-
description: "",
|
|
96
|
-
operations: [{
|
|
97
|
-
id: "077b1ab8-cb32-4b4e-a1fa-76178188c6a1",
|
|
98
|
-
name: "SET_DRAG_AND_DROP_ENABLED",
|
|
99
|
-
description: "",
|
|
100
|
-
schema: "input SetDragAndDropEnabledInput {\n enabled: Boolean!\n}",
|
|
101
|
-
template: "",
|
|
102
|
-
reducer: "",
|
|
103
|
-
errors: [],
|
|
104
|
-
examples: [],
|
|
105
|
-
scope: "global"
|
|
106
|
-
}]
|
|
107
|
-
}]
|
|
108
|
-
}]
|
|
109
|
-
};
|
|
110
|
-
//#endregion
|
|
111
|
-
//#region document-models/app-module/gen/schema/zod.ts
|
|
5
|
+
//#region document-models/app-module/v1/gen/schema/zod.ts
|
|
112
6
|
const isDefinedNonNullAny = (v) => v !== void 0 && v !== null;
|
|
113
7
|
const definedNonNullAnySchema = z$1.any().refine((v) => isDefinedNonNullAny(v));
|
|
114
8
|
const StatusTypeSchema = z$1.enum(["CONFIRMED", "DRAFT"]);
|
|
@@ -140,7 +34,11 @@ function SetDragAndDropEnabledInputSchema() {
|
|
|
140
34
|
return z$1.object({ enabled: z$1.boolean() });
|
|
141
35
|
}
|
|
142
36
|
//#endregion
|
|
143
|
-
//#region document-models/app-module/gen/base-operations/creators.ts
|
|
37
|
+
//#region document-models/app-module/v1/gen/base-operations/creators.ts
|
|
38
|
+
/**
|
|
39
|
+
* WARNING: DO NOT EDIT
|
|
40
|
+
* This file is auto-generated and updated by codegen
|
|
41
|
+
*/
|
|
144
42
|
var creators_exports$1 = /* @__PURE__ */ __exportAll({
|
|
145
43
|
addDocumentType: () => addDocumentType,
|
|
146
44
|
removeDocumentType: () => removeDocumentType,
|
|
@@ -154,41 +52,27 @@ const addDocumentType = (input) => createAction("ADD_DOCUMENT_TYPE", { ...input
|
|
|
154
52
|
const removeDocumentType = (input) => createAction("REMOVE_DOCUMENT_TYPE", { ...input }, void 0, RemoveDocumentTypeInputSchema, "global");
|
|
155
53
|
const setDocumentTypes = (input) => createAction("SET_DOCUMENT_TYPES", { ...input }, void 0, SetDocumentTypesInputSchema, "global");
|
|
156
54
|
//#endregion
|
|
157
|
-
//#region document-models/app-module/gen/dnd-operations/creators.ts
|
|
55
|
+
//#region document-models/app-module/v1/gen/dnd-operations/creators.ts
|
|
56
|
+
/**
|
|
57
|
+
* WARNING: DO NOT EDIT
|
|
58
|
+
* This file is auto-generated and updated by codegen
|
|
59
|
+
*/
|
|
158
60
|
var creators_exports = /* @__PURE__ */ __exportAll({ setDragAndDropEnabled: () => setDragAndDropEnabled });
|
|
159
61
|
const setDragAndDropEnabled = (input) => createAction("SET_DRAG_AND_DROP_ENABLED", { ...input }, void 0, SetDragAndDropEnabledInputSchema, "global");
|
|
160
62
|
//#endregion
|
|
161
|
-
//#region document-models/app-module/
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
initialState: AppModulePHStateSchema
|
|
173
|
-
});
|
|
174
|
-
/** Simple helper function to check if a state object is a AppModule document state object */
|
|
175
|
-
function isAppModuleState(state) {
|
|
176
|
-
return AppModulePHStateSchema.safeParse(state).success;
|
|
177
|
-
}
|
|
178
|
-
/** Simple helper function to assert that a document state object is a AppModule document state object */
|
|
179
|
-
function assertIsAppModuleState(state) {
|
|
180
|
-
AppModulePHStateSchema.parse(state);
|
|
181
|
-
}
|
|
182
|
-
/** Simple helper function to check if a document is a AppModule document */
|
|
183
|
-
function isAppModuleDocument(document) {
|
|
184
|
-
return AppModuleDocumentSchema.safeParse(document).success;
|
|
185
|
-
}
|
|
186
|
-
/** Simple helper function to assert that a document is a AppModule document */
|
|
187
|
-
function assertIsAppModuleDocument(document) {
|
|
188
|
-
AppModuleDocumentSchema.parse(document);
|
|
189
|
-
}
|
|
63
|
+
//#region document-models/app-module/v1/actions.ts
|
|
64
|
+
/**
|
|
65
|
+
* WARNING: DO NOT EDIT
|
|
66
|
+
* This file is auto-generated and updated by codegen
|
|
67
|
+
*/
|
|
68
|
+
/** Actions for the AppModule document model */
|
|
69
|
+
const actions = {
|
|
70
|
+
...baseActions,
|
|
71
|
+
...creators_exports$1,
|
|
72
|
+
...creators_exports
|
|
73
|
+
};
|
|
190
74
|
//#endregion
|
|
191
|
-
//#region document-models/app-module/src/reducers/base-operations.ts
|
|
75
|
+
//#region document-models/app-module/v1/src/reducers/base-operations.ts
|
|
192
76
|
const appModuleBaseOperationsOperations = {
|
|
193
77
|
setAppNameOperation(state, action, dispatch) {
|
|
194
78
|
const trimmedName = action.input.name.trim();
|
|
@@ -213,12 +97,12 @@ const appModuleBaseOperationsOperations = {
|
|
|
213
97
|
}
|
|
214
98
|
};
|
|
215
99
|
//#endregion
|
|
216
|
-
//#region document-models/app-module/src/reducers/dnd-operations.ts
|
|
100
|
+
//#region document-models/app-module/v1/src/reducers/dnd-operations.ts
|
|
217
101
|
const appModuleDndOperationsOperations = { setDragAndDropEnabledOperation(state, action, dispatch) {
|
|
218
102
|
state.isDragAndDropEnabled = action.input.enabled;
|
|
219
103
|
} };
|
|
220
104
|
//#endregion
|
|
221
|
-
//#region document-models/app-module/gen/reducer.ts
|
|
105
|
+
//#region document-models/app-module/v1/gen/reducer.ts
|
|
222
106
|
const stateReducer = (state, action, dispatch) => {
|
|
223
107
|
if (isDocumentAction(action)) return state;
|
|
224
108
|
switch (action.type) {
|
|
@@ -251,7 +135,45 @@ const stateReducer = (state, action, dispatch) => {
|
|
|
251
135
|
};
|
|
252
136
|
const reducer = createReducer(stateReducer);
|
|
253
137
|
//#endregion
|
|
254
|
-
//#region document-models/app-module/gen/
|
|
138
|
+
//#region document-models/app-module/v1/gen/document-type.ts
|
|
139
|
+
/**
|
|
140
|
+
* WARNING: DO NOT EDIT
|
|
141
|
+
* This file is auto-generated and updated by codegen
|
|
142
|
+
*/
|
|
143
|
+
const appModuleDocumentType = "powerhouse/app";
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region document-models/app-module/v1/gen/document-schema.ts
|
|
146
|
+
/**
|
|
147
|
+
* WARNING: DO NOT EDIT
|
|
148
|
+
* This file is auto-generated and updated by codegen
|
|
149
|
+
*/
|
|
150
|
+
/** Schema for validating the header object of a AppModule document */
|
|
151
|
+
const AppModuleDocumentHeaderSchema = BaseDocumentHeaderSchema.extend({ documentType: z.literal(appModuleDocumentType) });
|
|
152
|
+
/** Schema for validating the state object of a AppModule document */
|
|
153
|
+
const AppModulePHStateSchema = BaseDocumentStateSchema.extend({ global: AppModuleStateSchema() });
|
|
154
|
+
const AppModuleDocumentSchema = z.object({
|
|
155
|
+
header: AppModuleDocumentHeaderSchema,
|
|
156
|
+
state: AppModulePHStateSchema,
|
|
157
|
+
initialState: AppModulePHStateSchema
|
|
158
|
+
});
|
|
159
|
+
/** Simple helper function to check if a state object is a AppModule document state object */
|
|
160
|
+
function isAppModuleState(state) {
|
|
161
|
+
return AppModulePHStateSchema.safeParse(state).success;
|
|
162
|
+
}
|
|
163
|
+
/** Simple helper function to assert that a document state object is a AppModule document state object */
|
|
164
|
+
function assertIsAppModuleState(state) {
|
|
165
|
+
AppModulePHStateSchema.parse(state);
|
|
166
|
+
}
|
|
167
|
+
/** Simple helper function to check if a document is a AppModule document */
|
|
168
|
+
function isAppModuleDocument(document) {
|
|
169
|
+
return AppModuleDocumentSchema.safeParse(document).success;
|
|
170
|
+
}
|
|
171
|
+
/** Simple helper function to assert that a document is a AppModule document */
|
|
172
|
+
function assertIsAppModuleDocument(document) {
|
|
173
|
+
AppModuleDocumentSchema.parse(document);
|
|
174
|
+
}
|
|
175
|
+
//#endregion
|
|
176
|
+
//#region document-models/app-module/v1/gen/utils.ts
|
|
255
177
|
const initialGlobalState = {
|
|
256
178
|
name: "",
|
|
257
179
|
status: "DRAFT",
|
|
@@ -259,8 +181,8 @@ const initialGlobalState = {
|
|
|
259
181
|
isDragAndDropEnabled: true
|
|
260
182
|
};
|
|
261
183
|
const initialLocalState = {};
|
|
262
|
-
const utils
|
|
263
|
-
fileExtension: ".
|
|
184
|
+
const utils = {
|
|
185
|
+
fileExtension: ".app",
|
|
264
186
|
createState(state) {
|
|
265
187
|
return {
|
|
266
188
|
...defaultBaseState(),
|
|
@@ -275,7 +197,7 @@ const utils$1 = {
|
|
|
275
197
|
};
|
|
276
198
|
},
|
|
277
199
|
createDocument(state) {
|
|
278
|
-
const document = baseCreateDocument(utils
|
|
200
|
+
const document = baseCreateDocument(utils.createState, state);
|
|
279
201
|
document.header.documentType = appModuleDocumentType;
|
|
280
202
|
document.header.id = generateId();
|
|
281
203
|
return document;
|
|
@@ -300,93 +222,6 @@ const utils$1 = {
|
|
|
300
222
|
}
|
|
301
223
|
};
|
|
302
224
|
//#endregion
|
|
303
|
-
|
|
304
|
-
function defaultGlobalState() {
|
|
305
|
-
return {
|
|
306
|
-
name: "",
|
|
307
|
-
status: "DRAFT",
|
|
308
|
-
allowedDocumentTypes: null,
|
|
309
|
-
isDragAndDropEnabled: true
|
|
310
|
-
};
|
|
311
|
-
}
|
|
312
|
-
function defaultLocalState() {
|
|
313
|
-
return {};
|
|
314
|
-
}
|
|
315
|
-
function defaultPHState() {
|
|
316
|
-
return {
|
|
317
|
-
...defaultBaseState(),
|
|
318
|
-
global: defaultGlobalState(),
|
|
319
|
-
local: defaultLocalState()
|
|
320
|
-
};
|
|
321
|
-
}
|
|
322
|
-
function createGlobalState(state) {
|
|
323
|
-
return {
|
|
324
|
-
...defaultGlobalState(),
|
|
325
|
-
...state || {}
|
|
326
|
-
};
|
|
327
|
-
}
|
|
328
|
-
function createLocalState(state) {
|
|
329
|
-
return {
|
|
330
|
-
...defaultLocalState(),
|
|
331
|
-
...state || {}
|
|
332
|
-
};
|
|
333
|
-
}
|
|
334
|
-
function createState$1(baseState, globalState, localState) {
|
|
335
|
-
return {
|
|
336
|
-
...createBaseState(baseState?.auth, baseState?.document),
|
|
337
|
-
global: createGlobalState(globalState),
|
|
338
|
-
local: createLocalState(localState)
|
|
339
|
-
};
|
|
340
|
-
}
|
|
341
|
-
/**
|
|
342
|
-
* Creates a AppModuleDocument with custom global and local state
|
|
343
|
-
* This properly handles the PHBaseState requirements while allowing
|
|
344
|
-
* document-specific state to be set.
|
|
345
|
-
*/
|
|
346
|
-
function createAppModuleDocument(state) {
|
|
347
|
-
return utils$1.createDocument(state ? createState$1(createBaseState(state.auth, state.document), state.global, state.local) : void 0);
|
|
348
|
-
}
|
|
349
|
-
//#endregion
|
|
350
|
-
//#region document-models/app-module/src/utils.ts
|
|
351
|
-
var utils_exports = /* @__PURE__ */ __exportAll({});
|
|
352
|
-
//#endregion
|
|
353
|
-
//#region document-models/app-module/hooks.ts
|
|
354
|
-
/** Hook to get a AppModule document by its id */
|
|
355
|
-
function useAppModuleDocumentById(documentId) {
|
|
356
|
-
const [document, dispatch] = useDocumentById(documentId);
|
|
357
|
-
if (!isAppModuleDocument(document)) return [void 0, void 0];
|
|
358
|
-
return [document, dispatch];
|
|
359
|
-
}
|
|
360
|
-
/** Hook to get the selected AppModule document */
|
|
361
|
-
function useSelectedAppModuleDocument() {
|
|
362
|
-
const [document, dispatch] = useSelectedDocument();
|
|
363
|
-
assertIsAppModuleDocument(document);
|
|
364
|
-
return [document, dispatch];
|
|
365
|
-
}
|
|
366
|
-
/** Hook to get all AppModule documents in the selected drive */
|
|
367
|
-
function useAppModuleDocumentsInSelectedDrive() {
|
|
368
|
-
return useDocumentsInSelectedDrive()?.filter(isAppModuleDocument);
|
|
369
|
-
}
|
|
370
|
-
/** Hook to get all AppModule documents in the selected folder */
|
|
371
|
-
function useAppModuleDocumentsInSelectedFolder() {
|
|
372
|
-
return useDocumentsInSelectedFolder()?.filter(isAppModuleDocument);
|
|
373
|
-
}
|
|
374
|
-
//#endregion
|
|
375
|
-
//#region document-models/app-module/actions.ts
|
|
376
|
-
/** Actions for the AppModule document model */
|
|
377
|
-
const actions = {
|
|
378
|
-
...baseActions,
|
|
379
|
-
...creators_exports$1,
|
|
380
|
-
...creators_exports
|
|
381
|
-
};
|
|
382
|
-
//#endregion
|
|
383
|
-
//#region document-models/app-module/utils.ts
|
|
384
|
-
/** Utils for the AppModule document model */
|
|
385
|
-
const utils = {
|
|
386
|
-
...utils$1,
|
|
387
|
-
...utils_exports
|
|
388
|
-
};
|
|
389
|
-
//#endregion
|
|
390
|
-
export { setDocumentTypes as A, isDefinedNonNullAny as B, creators_exports as C, removeDocumentType as D, creators_exports$1 as E, SetAppStatusInputSchema as F, SetDocumentTypesInputSchema as I, SetDragAndDropEnabledInputSchema as L, AppModuleStateSchema as M, RemoveDocumentTypeInputSchema as N, setAppName as O, SetAppNameInputSchema as P, StatusTypeSchema as R, appModuleDocumentType as S, addDocumentType as T, documentModel as V, AppModulePHStateSchema as _, useAppModuleDocumentsInSelectedFolder as a, isAppModuleDocument as b, createState$1 as c, defaultPHState as d, initialGlobalState as f, AppModuleDocumentSchema as g, AppModuleDocumentHeaderSchema as h, useAppModuleDocumentsInSelectedDrive as i, AddDocumentTypeInputSchema as j, setAppStatus as k, defaultGlobalState as l, reducer as m, actions as n, useSelectedAppModuleDocument as o, initialLocalState as p, useAppModuleDocumentById as r, createAppModuleDocument as s, utils as t, defaultLocalState as u, assertIsAppModuleDocument as v, setDragAndDropEnabled as w, isAppModuleState as x, assertIsAppModuleState as y, definedNonNullAnySchema as z };
|
|
225
|
+
export { definedNonNullAnySchema as A, AppModuleStateSchema as C, SetDocumentTypesInputSchema as D, SetAppStatusInputSchema as E, SetDragAndDropEnabledInputSchema as O, AddDocumentTypeInputSchema as S, SetAppNameInputSchema as T, creators_exports$1 as _, AppModuleDocumentSchema as a, setAppStatus as b, assertIsAppModuleState as c, appModuleDocumentType as d, reducer as f, addDocumentType as g, setDragAndDropEnabled as h, AppModuleDocumentHeaderSchema as i, isDefinedNonNullAny as j, StatusTypeSchema as k, isAppModuleDocument as l, creators_exports as m, initialLocalState as n, AppModulePHStateSchema as o, actions as p, utils as r, assertIsAppModuleDocument as s, initialGlobalState as t, isAppModuleState as u, removeDocumentType as v, RemoveDocumentTypeInputSchema as w, setDocumentTypes as x, setAppName as y };
|
|
391
226
|
|
|
392
|
-
//# sourceMappingURL=
|
|
227
|
+
//# sourceMappingURL=utils-BRx88WW3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils-BRx88WW3.js","names":["z","appModuleBaseOperationsActions","appModuleDndOperationsActions"],"sources":["../document-models/app-module/v1/gen/schema/zod.ts","../document-models/app-module/v1/gen/base-operations/creators.ts","../document-models/app-module/v1/gen/dnd-operations/creators.ts","../document-models/app-module/v1/actions.ts","../document-models/app-module/v1/src/reducers/base-operations.ts","../document-models/app-module/v1/src/reducers/dnd-operations.ts","../document-models/app-module/v1/gen/reducer.ts","../document-models/app-module/v1/gen/document-type.ts","../document-models/app-module/v1/gen/document-schema.ts","../document-models/app-module/v1/gen/utils.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-object-type */\n/* eslint-disable @typescript-eslint/no-unused-vars */\nimport * as z from \"zod\";\nimport type {\n AddDocumentTypeInput,\n AppModuleState,\n RemoveDocumentTypeInput,\n SetAppNameInput,\n SetAppStatusInput,\n SetDocumentTypesInput,\n SetDragAndDropEnabledInput,\n StatusType,\n} from \"./types.js\";\n\ntype Properties<T> = Required<{\n [K in keyof T]: z.ZodType<T[K]>;\n}>;\n\ntype definedNonNullAny = {};\n\nexport const isDefinedNonNullAny = (v: any): v is definedNonNullAny =>\n v !== undefined && v !== null;\n\nexport const definedNonNullAnySchema = z\n .any()\n .refine((v) => isDefinedNonNullAny(v));\n\nexport const StatusTypeSchema = z.enum([\"CONFIRMED\", \"DRAFT\"]);\n\nexport function AddDocumentTypeInputSchema(): z.ZodObject<\n Properties<AddDocumentTypeInput>\n> {\n return z.object({\n documentType: z.string(),\n });\n}\n\nexport function AppModuleStateSchema(): z.ZodObject<\n Properties<AppModuleState>\n> {\n return z.object({\n __typename: z.literal(\"AppModuleState\").optional(),\n allowedDocumentTypes: z.array(z.string()).nullish(),\n isDragAndDropEnabled: z.boolean(),\n name: z.string(),\n status: StatusTypeSchema,\n });\n}\n\nexport function RemoveDocumentTypeInputSchema(): z.ZodObject<\n Properties<RemoveDocumentTypeInput>\n> {\n return z.object({\n documentType: z.string(),\n });\n}\n\nexport function SetAppNameInputSchema(): z.ZodObject<\n Properties<SetAppNameInput>\n> {\n return z.object({\n name: z.string(),\n });\n}\n\nexport function SetAppStatusInputSchema(): z.ZodObject<\n Properties<SetAppStatusInput>\n> {\n return z.object({\n status: StatusTypeSchema,\n });\n}\n\nexport function SetDocumentTypesInputSchema(): z.ZodObject<\n Properties<SetDocumentTypesInput>\n> {\n return z.object({\n documentTypes: z.array(z.string()),\n });\n}\n\nexport function SetDragAndDropEnabledInputSchema(): z.ZodObject<\n Properties<SetDragAndDropEnabledInput>\n> {\n return z.object({\n enabled: z.boolean(),\n });\n}\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { createAction } from \"document-model\";\nimport {\n AddDocumentTypeInputSchema,\n RemoveDocumentTypeInputSchema,\n SetAppNameInputSchema,\n SetAppStatusInputSchema,\n SetDocumentTypesInputSchema,\n} from \"../schema/zod.js\";\nimport type {\n AddDocumentTypeInput,\n RemoveDocumentTypeInput,\n SetAppNameInput,\n SetAppStatusInput,\n SetDocumentTypesInput,\n} from \"../types.js\";\nimport type {\n AddDocumentTypeAction,\n RemoveDocumentTypeAction,\n SetAppNameAction,\n SetAppStatusAction,\n SetDocumentTypesAction,\n} from \"./actions.js\";\n\nexport const setAppName = (input: SetAppNameInput) =>\n createAction<SetAppNameAction>(\n \"SET_APP_NAME\",\n { ...input },\n undefined,\n SetAppNameInputSchema,\n \"global\",\n );\n\nexport const setAppStatus = (input: SetAppStatusInput) =>\n createAction<SetAppStatusAction>(\n \"SET_APP_STATUS\",\n { ...input },\n undefined,\n SetAppStatusInputSchema,\n \"global\",\n );\n\nexport const addDocumentType = (input: AddDocumentTypeInput) =>\n createAction<AddDocumentTypeAction>(\n \"ADD_DOCUMENT_TYPE\",\n { ...input },\n undefined,\n AddDocumentTypeInputSchema,\n \"global\",\n );\n\nexport const removeDocumentType = (input: RemoveDocumentTypeInput) =>\n createAction<RemoveDocumentTypeAction>(\n \"REMOVE_DOCUMENT_TYPE\",\n { ...input },\n undefined,\n RemoveDocumentTypeInputSchema,\n \"global\",\n );\n\nexport const setDocumentTypes = (input: SetDocumentTypesInput) =>\n createAction<SetDocumentTypesAction>(\n \"SET_DOCUMENT_TYPES\",\n { ...input },\n undefined,\n SetDocumentTypesInputSchema,\n \"global\",\n );\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { createAction } from \"document-model\";\nimport { SetDragAndDropEnabledInputSchema } from \"../schema/zod.js\";\nimport type { SetDragAndDropEnabledInput } from \"../types.js\";\nimport type { SetDragAndDropEnabledAction } from \"./actions.js\";\n\nexport const setDragAndDropEnabled = (input: SetDragAndDropEnabledInput) =>\n createAction<SetDragAndDropEnabledAction>(\n \"SET_DRAG_AND_DROP_ENABLED\",\n { ...input },\n undefined,\n SetDragAndDropEnabledInputSchema,\n \"global\",\n );\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { baseActions } from \"document-model\";\nimport {\n appModuleBaseOperationsActions,\n appModuleDndOperationsActions,\n} from \"./gen/creators.js\";\n\n/** Actions for the AppModule document model */\n\nexport const actions = {\n ...baseActions,\n ...appModuleBaseOperationsActions,\n ...appModuleDndOperationsActions,\n};\n","import type { AppModuleBaseOperationsOperations } from \"document-models/app-module/v1\";\n\nexport const appModuleBaseOperationsOperations: AppModuleBaseOperationsOperations =\n {\n setAppNameOperation(state, action, dispatch) {\n const trimmedName = action.input.name.trim();\n if (trimmedName === \"\") {\n throw new Error(\"App name cannot be empty\");\n }\n state.name = trimmedName;\n },\n setAppStatusOperation(state, action, dispatch) {\n state.status = action.input.status;\n },\n addDocumentTypeOperation(state, action, dispatch) {\n const existingAllowedDocumentTypes = state.allowedDocumentTypes ?? [];\n const newDocumentType = action.input.documentType;\n const newAllowedDocumentTypesSet = new Set(\n existingAllowedDocumentTypes,\n ).add(newDocumentType);\n const newAllowedDocumentTypes = [...newAllowedDocumentTypesSet];\n state.allowedDocumentTypes = newAllowedDocumentTypes;\n },\n removeDocumentTypeOperation(state, action, dispatch) {\n const existingAllowedDocumentTypes = state.allowedDocumentTypes;\n const documentTypeToRemove = action.input.documentType;\n const newAllowedDocumentTypes = existingAllowedDocumentTypes?.filter(\n (dt) => dt !== documentTypeToRemove,\n );\n state.allowedDocumentTypes = newAllowedDocumentTypes ?? [];\n },\n setDocumentTypesOperation(state, action, dispatch) {\n state.allowedDocumentTypes = action.input.documentTypes;\n },\n };\n","import type { AppModuleDndOperationsOperations } from \"document-models/app-module/v1\";\n\nexport const appModuleDndOperationsOperations: AppModuleDndOperationsOperations =\n {\n setDragAndDropEnabledOperation(state, action, dispatch) {\n state.isDragAndDropEnabled = action.input.enabled;\n },\n };\n","/* eslint-disable @typescript-eslint/no-unsafe-member-access */\n/* eslint-disable @typescript-eslint/no-unsafe-argument */\nimport type { Reducer, StateReducer } from \"document-model\";\nimport { createReducer, isDocumentAction } from \"document-model\";\nimport type { AppModulePHState } from \"document-models/app-module/v1\";\n\nimport { appModuleBaseOperationsOperations } from \"../src/reducers/base-operations.js\";\nimport { appModuleDndOperationsOperations } from \"../src/reducers/dnd-operations.js\";\n\nimport {\n AddDocumentTypeInputSchema,\n RemoveDocumentTypeInputSchema,\n SetAppNameInputSchema,\n SetAppStatusInputSchema,\n SetDocumentTypesInputSchema,\n SetDragAndDropEnabledInputSchema,\n} from \"./schema/zod.js\";\n\nconst stateReducer: StateReducer<AppModulePHState> = (\n state,\n action,\n dispatch,\n) => {\n if (isDocumentAction(action)) {\n return state;\n }\n switch (action.type) {\n case \"SET_APP_NAME\": {\n SetAppNameInputSchema().parse(action.input);\n\n appModuleBaseOperationsOperations.setAppNameOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"SET_APP_STATUS\": {\n SetAppStatusInputSchema().parse(action.input);\n\n appModuleBaseOperationsOperations.setAppStatusOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"ADD_DOCUMENT_TYPE\": {\n AddDocumentTypeInputSchema().parse(action.input);\n\n appModuleBaseOperationsOperations.addDocumentTypeOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"REMOVE_DOCUMENT_TYPE\": {\n RemoveDocumentTypeInputSchema().parse(action.input);\n\n appModuleBaseOperationsOperations.removeDocumentTypeOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"SET_DOCUMENT_TYPES\": {\n SetDocumentTypesInputSchema().parse(action.input);\n\n appModuleBaseOperationsOperations.setDocumentTypesOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"SET_DRAG_AND_DROP_ENABLED\": {\n SetDragAndDropEnabledInputSchema().parse(action.input);\n\n appModuleDndOperationsOperations.setDragAndDropEnabledOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n default:\n return state;\n }\n};\n\nexport const reducer: Reducer<AppModulePHState> = createReducer(stateReducer);\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nexport const appModuleDocumentType = \"powerhouse/app\";\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport {\n BaseDocumentHeaderSchema,\n BaseDocumentStateSchema,\n} from \"document-model\";\nimport { z } from \"zod\";\nimport { appModuleDocumentType } from \"./document-type.js\";\nimport { AppModuleStateSchema } from \"./schema/zod.js\";\nimport type { AppModuleDocument, AppModulePHState } from \"./types.js\";\n\n/** Schema for validating the header object of a AppModule document */\nexport const AppModuleDocumentHeaderSchema = BaseDocumentHeaderSchema.extend({\n documentType: z.literal(appModuleDocumentType),\n});\n\n/** Schema for validating the state object of a AppModule document */\nexport const AppModulePHStateSchema = BaseDocumentStateSchema.extend({\n global: AppModuleStateSchema(),\n});\n\nexport const AppModuleDocumentSchema = z.object({\n header: AppModuleDocumentHeaderSchema,\n state: AppModulePHStateSchema,\n initialState: AppModulePHStateSchema,\n});\n\n/** Simple helper function to check if a state object is a AppModule document state object */\nexport function isAppModuleState(state: unknown): state is AppModulePHState {\n return AppModulePHStateSchema.safeParse(state).success;\n}\n\n/** Simple helper function to assert that a document state object is a AppModule document state object */\nexport function assertIsAppModuleState(\n state: unknown,\n): asserts state is AppModulePHState {\n AppModulePHStateSchema.parse(state);\n}\n\n/** Simple helper function to check if a document is a AppModule document */\nexport function isAppModuleDocument(\n document: unknown,\n): document is AppModuleDocument {\n return AppModuleDocumentSchema.safeParse(document).success;\n}\n\n/** Simple helper function to assert that a document is a AppModule document */\nexport function assertIsAppModuleDocument(\n document: unknown,\n): asserts document is AppModuleDocument {\n AppModuleDocumentSchema.parse(document);\n}\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentModelUtils } from \"document-model\";\nimport {\n baseCreateDocument,\n baseLoadFromInput,\n baseSaveToFileHandle,\n defaultBaseState,\n generateId,\n} from \"document-model\";\nimport {\n assertIsAppModuleDocument,\n assertIsAppModuleState,\n isAppModuleDocument,\n isAppModuleState,\n} from \"./document-schema.js\";\nimport { appModuleDocumentType } from \"./document-type.js\";\nimport { reducer } from \"./reducer.js\";\nimport type {\n AppModuleGlobalState,\n AppModuleLocalState,\n AppModulePHState,\n} from \"./types.js\";\n\nexport const initialGlobalState: AppModuleGlobalState = {\n name: \"\",\n status: \"DRAFT\",\n allowedDocumentTypes: null,\n isDragAndDropEnabled: true,\n};\nexport const initialLocalState: AppModuleLocalState = {};\n\nexport const utils: DocumentModelUtils<AppModulePHState> = {\n fileExtension: \".app\",\n createState(state) {\n return {\n ...defaultBaseState(),\n global: { ...initialGlobalState, ...state?.global },\n local: { ...initialLocalState, ...state?.local },\n };\n },\n createDocument(state) {\n const document = baseCreateDocument(utils.createState, state);\n\n document.header.documentType = appModuleDocumentType;\n\n // for backwards compatibility, but this is NOT a valid signed document id\n document.header.id = generateId();\n\n return document;\n },\n saveToFileHandle(document, input) {\n return baseSaveToFileHandle(document, input);\n },\n loadFromInput(input) {\n return baseLoadFromInput(input, reducer);\n },\n isStateOfType(state) {\n return isAppModuleState(state);\n },\n assertIsStateOfType(state) {\n return assertIsAppModuleState(state);\n },\n isDocumentOfType(document) {\n return isAppModuleDocument(document);\n },\n assertIsDocumentOfType(document) {\n return assertIsAppModuleDocument(document);\n },\n};\n"],"mappings":";;;;;AAoBA,MAAa,uBAAuB,MAClC,MAAM,KAAA,KAAa,MAAM;AAE3B,MAAa,0BAA0BA,IACpC,KAAK,CACL,QAAQ,MAAM,oBAAoB,EAAE,CAAC;AAExC,MAAa,mBAAmBA,IAAE,KAAK,CAAC,aAAa,QAAQ,CAAC;AAE9D,SAAgB,6BAEd;AACA,QAAOA,IAAE,OAAO,EACd,cAAcA,IAAE,QAAQ,EACzB,CAAC;;AAGJ,SAAgB,uBAEd;AACA,QAAOA,IAAE,OAAO;EACd,YAAYA,IAAE,QAAQ,iBAAiB,CAAC,UAAU;EAClD,sBAAsBA,IAAE,MAAMA,IAAE,QAAQ,CAAC,CAAC,SAAS;EACnD,sBAAsBA,IAAE,SAAS;EACjC,MAAMA,IAAE,QAAQ;EAChB,QAAQ;EACT,CAAC;;AAGJ,SAAgB,gCAEd;AACA,QAAOA,IAAE,OAAO,EACd,cAAcA,IAAE,QAAQ,EACzB,CAAC;;AAGJ,SAAgB,wBAEd;AACA,QAAOA,IAAE,OAAO,EACd,MAAMA,IAAE,QAAQ,EACjB,CAAC;;AAGJ,SAAgB,0BAEd;AACA,QAAOA,IAAE,OAAO,EACd,QAAQ,kBACT,CAAC;;AAGJ,SAAgB,8BAEd;AACA,QAAOA,IAAE,OAAO,EACd,eAAeA,IAAE,MAAMA,IAAE,QAAQ,CAAC,EACnC,CAAC;;AAGJ,SAAgB,mCAEd;AACA,QAAOA,IAAE,OAAO,EACd,SAASA,IAAE,SAAS,EACrB,CAAC;;;;;;;;;;;;;;;AC3DJ,MAAa,cAAc,UACzB,aACE,gBACA,EAAE,GAAG,OAAO,EACZ,KAAA,GACA,uBACA,SACD;AAEH,MAAa,gBAAgB,UAC3B,aACE,kBACA,EAAE,GAAG,OAAO,EACZ,KAAA,GACA,yBACA,SACD;AAEH,MAAa,mBAAmB,UAC9B,aACE,qBACA,EAAE,GAAG,OAAO,EACZ,KAAA,GACA,4BACA,SACD;AAEH,MAAa,sBAAsB,UACjC,aACE,wBACA,EAAE,GAAG,OAAO,EACZ,KAAA,GACA,+BACA,SACD;AAEH,MAAa,oBAAoB,UAC/B,aACE,sBACA,EAAE,GAAG,OAAO,EACZ,KAAA,GACA,6BACA,SACD;;;;;;;;AC7DH,MAAa,yBAAyB,UACpC,aACE,6BACA,EAAE,GAAG,OAAO,EACZ,KAAA,GACA,kCACA,SACD;;;;;;;;ACJH,MAAa,UAAU;CACrB,GAAG;CACH,GAAGC;CACH,GAAGC;CACJ;;;ACdD,MAAa,oCACX;CACE,oBAAoB,OAAO,QAAQ,UAAU;EAC3C,MAAM,cAAc,OAAO,MAAM,KAAK,MAAM;AAC5C,MAAI,gBAAgB,GAClB,OAAM,IAAI,MAAM,2BAA2B;AAE7C,QAAM,OAAO;;CAEf,sBAAsB,OAAO,QAAQ,UAAU;AAC7C,QAAM,SAAS,OAAO,MAAM;;CAE9B,yBAAyB,OAAO,QAAQ,UAAU;EAChD,MAAM,+BAA+B,MAAM,wBAAwB,EAAE;EACrE,MAAM,kBAAkB,OAAO,MAAM;AAKrC,QAAM,uBAD0B,CAAC,GAHE,IAAI,IACrC,6BACD,CAAC,IAAI,gBAAgB,CACyC;;CAGjE,4BAA4B,OAAO,QAAQ,UAAU;EACnD,MAAM,+BAA+B,MAAM;EAC3C,MAAM,uBAAuB,OAAO,MAAM;AAI1C,QAAM,uBAH0B,8BAA8B,QAC3D,OAAO,OAAO,qBAChB,IACuD,EAAE;;CAE5D,0BAA0B,OAAO,QAAQ,UAAU;AACjD,QAAM,uBAAuB,OAAO,MAAM;;CAE7C;;;AChCH,MAAa,mCACX,EACE,+BAA+B,OAAO,QAAQ,UAAU;AACtD,OAAM,uBAAuB,OAAO,MAAM;GAE7C;;;ACWH,MAAM,gBACJ,OACA,QACA,aACG;AACH,KAAI,iBAAiB,OAAO,CAC1B,QAAO;AAET,SAAQ,OAAO,MAAf;EACE,KAAK;AACH,0BAAuB,CAAC,MAAM,OAAO,MAAM;AAE3C,qCAAkC,oBAC/B,MAAc,OAAO,QACtB,QACA,SACD;AAED;EAGF,KAAK;AACH,4BAAyB,CAAC,MAAM,OAAO,MAAM;AAE7C,qCAAkC,sBAC/B,MAAc,OAAO,QACtB,QACA,SACD;AAED;EAGF,KAAK;AACH,+BAA4B,CAAC,MAAM,OAAO,MAAM;AAEhD,qCAAkC,yBAC/B,MAAc,OAAO,QACtB,QACA,SACD;AAED;EAGF,KAAK;AACH,kCAA+B,CAAC,MAAM,OAAO,MAAM;AAEnD,qCAAkC,4BAC/B,MAAc,OAAO,QACtB,QACA,SACD;AAED;EAGF,KAAK;AACH,gCAA6B,CAAC,MAAM,OAAO,MAAM;AAEjD,qCAAkC,0BAC/B,MAAc,OAAO,QACtB,QACA,SACD;AAED;EAGF,KAAK;AACH,qCAAkC,CAAC,MAAM,OAAO,MAAM;AAEtD,oCAAiC,+BAC9B,MAAc,OAAO,QACtB,QACA,SACD;AAED;EAGF,QACE,QAAO;;;AAIb,MAAa,UAAqC,cAAc,aAAa;;;;;;;ACpG7E,MAAa,wBAAwB;;;;;;;;ACUrC,MAAa,gCAAgC,yBAAyB,OAAO,EAC3E,cAAc,EAAE,QAAQ,sBAAsB,EAC/C,CAAC;;AAGF,MAAa,yBAAyB,wBAAwB,OAAO,EACnE,QAAQ,sBAAsB,EAC/B,CAAC;AAEF,MAAa,0BAA0B,EAAE,OAAO;CAC9C,QAAQ;CACR,OAAO;CACP,cAAc;CACf,CAAC;;AAGF,SAAgB,iBAAiB,OAA2C;AAC1E,QAAO,uBAAuB,UAAU,MAAM,CAAC;;;AAIjD,SAAgB,uBACd,OACmC;AACnC,wBAAuB,MAAM,MAAM;;;AAIrC,SAAgB,oBACd,UAC+B;AAC/B,QAAO,wBAAwB,UAAU,SAAS,CAAC;;;AAIrD,SAAgB,0BACd,UACuC;AACvC,yBAAwB,MAAM,SAAS;;;;AC1BzC,MAAa,qBAA2C;CACtD,MAAM;CACN,QAAQ;CACR,sBAAsB;CACtB,sBAAsB;CACvB;AACD,MAAa,oBAAyC,EAAE;AAExD,MAAa,QAA8C;CACzD,eAAe;CACf,YAAY,OAAO;AACjB,SAAO;GACL,GAAG,kBAAkB;GACrB,QAAQ;IAAE,GAAG;IAAoB,GAAG,OAAO;IAAQ;GACnD,OAAO;IAAE,GAAG;IAAmB,GAAG,OAAO;IAAO;GACjD;;CAEH,eAAe,OAAO;EACpB,MAAM,WAAW,mBAAmB,MAAM,aAAa,MAAM;AAE7D,WAAS,OAAO,eAAe;AAG/B,WAAS,OAAO,KAAK,YAAY;AAEjC,SAAO;;CAET,iBAAiB,UAAU,OAAO;AAChC,SAAO,qBAAqB,UAAU,MAAM;;CAE9C,cAAc,OAAO;AACnB,SAAO,kBAAkB,OAAO,QAAQ;;CAE1C,cAAc,OAAO;AACnB,SAAO,iBAAiB,MAAM;;CAEhC,oBAAoB,OAAO;AACzB,SAAO,uBAAuB,MAAM;;CAEtC,iBAAiB,UAAU;AACzB,SAAO,oBAAoB,SAAS;;CAEtC,uBAAuB,UAAU;AAC/B,SAAO,0BAA0B,SAAS;;CAE7C"}
|