@bagelink/vue 1.15.178 → 1.15.182

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.
Files changed (36) hide show
  1. package/dist/components/Card.vue.d.ts +1 -1
  2. package/dist/components/Card.vue.d.ts.map +1 -1
  3. package/dist/components/calendar/CalendarPopover.vue.d.ts +6 -6
  4. package/dist/components/dataTable/DataTable.vue.d.ts +3 -1
  5. package/dist/components/dataTable/DataTable.vue.d.ts.map +1 -1
  6. package/dist/components/form/inputs/ArrayInput.vue.d.ts.map +1 -1
  7. package/dist/form-flow/FlowDesigner.vue.d.ts +13 -0
  8. package/dist/form-flow/FlowDesigner.vue.d.ts.map +1 -0
  9. package/dist/form-flow/FlowEdge.vue.d.ts +21 -0
  10. package/dist/form-flow/FlowEdge.vue.d.ts.map +1 -0
  11. package/dist/form-flow/FlowNode.vue.d.ts +30 -0
  12. package/dist/form-flow/FlowNode.vue.d.ts.map +1 -0
  13. package/dist/form-flow/FormFlowPlayer.vue.d.ts +62 -0
  14. package/dist/form-flow/FormFlowPlayer.vue.d.ts.map +1 -0
  15. package/dist/form-flow/structure.d.ts +66 -0
  16. package/dist/form-flow/structure.d.ts.map +1 -0
  17. package/dist/index.cjs +104 -104
  18. package/dist/index.d.ts +5 -0
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.mjs +10076 -9391
  21. package/dist/style.css +1 -1
  22. package/dist/types/TableSchema.d.ts +7 -1
  23. package/dist/types/TableSchema.d.ts.map +1 -1
  24. package/package.json +1 -1
  25. package/src/components/Card.vue +1 -1
  26. package/src/components/dataTable/DataTable.vue +13 -0
  27. package/src/components/form/inputs/ArrayInput.vue +11 -2
  28. package/src/form-flow/FlowDesigner.vue +462 -0
  29. package/src/form-flow/FlowEdge.vue +117 -0
  30. package/src/form-flow/FlowNode.vue +188 -0
  31. package/src/form-flow/FormFlowPlayer.vue +243 -0
  32. package/src/form-flow/structure.ts +123 -0
  33. package/src/index.ts +6 -0
  34. package/src/styles/layout.css +4 -0
  35. package/src/styles/mobilLayout.css +4 -0
  36. package/src/types/TableSchema.ts +7 -1
@@ -17,7 +17,7 @@ type __VLS_Props = {
17
17
  thin?: boolean;
18
18
  outline?: boolean;
19
19
  h100?: boolean;
20
- to?: string;
20
+ to?: import('vue-router').RouteLocationRaw;
21
21
  href?: string;
22
22
  overflowX?: boolean;
23
23
  overflowY?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"Card.vue.d.ts","sourceRoot":"","sources":["../../src/components/Card.vue"],"names":[],"mappings":"AAkPA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AASlE,KAAK,WAAW,GAAG;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;;;;;;;;6CAWyC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;0CAEsC;IACtC,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;8EAC0E;IAC1E,QAAQ,CAAC,EAAE,YAAY,CAAA;IACvB,yEAAyE;IACzE,WAAW,CAAC,EAAE,eAAe,CAAA;IAC7B,EAAE,CAAC,EACA,MAAM,GACN,OAAO,GACP,MAAM,GACN,SAAS,GACT,WAAW,GACX,SAAS,GACT,QAAQ,GACR,SAAS,GACT,MAAM,GACN,OAAO,GACP,aAAa,CAAA;CAChB,CAAC;AA4CF,iBAAS,cAAc;WAkIT,OAAO,IAA6B;;6BAjBjB,GA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ACP,MAAM,GACN,SAAS,GACT,WAAW,GACX,SAAS,GACT,QAAQ,GACR,SAAS,GACT,MAAM,GACN,OAAO,GACP,aAAa,CAAA;CAChB,CAAC;AA4CF,iBAAS,cAAc;WAkIT,OAAO,IAA6B;;6BAjBjB,GAAG;wBACR,GAAG;2BACA,GAAG;iCACI,GAAG;yBACX,GAAG;gCACI,GAAG;wBACX,GAAG;8BACG,GAAG;;;;EAerC;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -28,7 +28,7 @@ declare function __VLS_template(): {
28
28
  readonly thin?: boolean | undefined;
29
29
  readonly outline?: boolean | undefined;
30
30
  readonly h100?: boolean | undefined;
31
- readonly to?: string | undefined;
31
+ readonly to?: import('vue-router').RouteLocationRaw | undefined;
32
32
  readonly href?: string | undefined;
33
33
  readonly overflowX?: boolean | undefined;
34
34
  readonly overflowY?: boolean | undefined;
@@ -57,7 +57,7 @@ declare function __VLS_template(): {
57
57
  thin?: boolean;
58
58
  outline?: boolean;
59
59
  h100?: boolean;
60
- to?: string;
60
+ to?: import('vue-router').RouteLocationRaw;
61
61
  href?: string;
62
62
  overflowX?: boolean;
63
63
  overflowY?: boolean;
@@ -93,7 +93,7 @@ declare function __VLS_template(): {
93
93
  thin?: boolean;
94
94
  outline?: boolean;
95
95
  h100?: boolean;
96
- to?: string;
96
+ to?: import('vue-router').RouteLocationRaw;
97
97
  href?: string;
98
98
  overflowX?: boolean;
99
99
  overflowY?: boolean;
@@ -135,7 +135,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
135
135
  readonly thin?: boolean | undefined;
136
136
  readonly outline?: boolean | undefined;
137
137
  readonly h100?: boolean | undefined;
138
- readonly to?: string | undefined;
138
+ readonly to?: import('vue-router').RouteLocationRaw | undefined;
139
139
  readonly href?: string | undefined;
140
140
  readonly overflowX?: boolean | undefined;
141
141
  readonly overflowY?: boolean | undefined;
@@ -164,7 +164,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
164
164
  thin?: boolean;
165
165
  outline?: boolean;
166
166
  h100?: boolean;
167
- to?: string;
167
+ to?: import('vue-router').RouteLocationRaw;
168
168
  href?: string;
169
169
  overflowX?: boolean;
170
170
  overflowY?: boolean;
@@ -200,7 +200,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
200
200
  thin?: boolean;
201
201
  outline?: boolean;
202
202
  h100?: boolean;
203
- to?: string;
203
+ to?: import('vue-router').RouteLocationRaw;
204
204
  href?: string;
205
205
  overflowX?: boolean;
206
206
  overflowY?: boolean;
@@ -27,7 +27,9 @@ declare const _default: <T extends {
27
27
  slots: Partial<Record<any, (_: {
28
28
  row: any;
29
29
  field: any;
30
- }) => any>>;
30
+ }) => any>> & {
31
+ empty?(_: {}): any;
32
+ };
31
33
  emit: (((evt: "select", args_0: T) => void) & ((evt: "reorder", args_0: {
32
34
  oldIndex: number;
33
35
  newIndex: number;
@@ -1 +1 @@
1
- {"version":3,"file":"DataTable.vue.d.ts","sourceRoot":"","sources":["../../../src/components/dataTable/DataTable.vue"],"names":[],"mappings":"AAseA,OAAO,KAAK,EAAyB,IAAI,EAAE,MAAM,eAAe,CAAA;AAEhE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAc/D,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,MAAM,CAAA;AAC5C,MAAM,MAAM,UAAU,GAAG,GAAG,MAAM,IAAI,eAAe,EAAE,CAAA;yBAEtC,CAAC,SAAS;IAAE,CAA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"}
@@ -0,0 +1,13 @@
1
+ import { FormStructure } from './structure';
2
+ export interface Props {
3
+ modelValue: FormStructure;
4
+ }
5
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ "update:modelValue": (value: FormStructure) => any;
7
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
8
+ "onUpdate:modelValue"?: ((value: FormStructure) => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
10
+ canvasRef: HTMLDivElement;
11
+ }, HTMLDivElement>;
12
+ export default _default;
13
+ //# sourceMappingURL=FlowDesigner.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FlowDesigner.vue.d.ts","sourceRoot":"","sources":["../../src/form-flow/FlowDesigner.vue"],"names":[],"mappings":"AAgdA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAY,aAAa,EAAY,MAAM,aAAa,CAAA;AAOpE,MAAM,WAAW,KAAK;IACrB,UAAU,EAAE,aAAa,CAAA;CACzB;;;;;;;;AAuoBD,wBASG"}
@@ -0,0 +1,21 @@
1
+ export interface Point {
2
+ x: number;
3
+ y: number;
4
+ }
5
+ export interface Props {
6
+ from: Point;
7
+ to: Point;
8
+ condition?: string | null;
9
+ /** Declared priority (1-based) shown as a small badge. */
10
+ priority?: number;
11
+ selected?: boolean;
12
+ }
13
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
+ select: () => any;
15
+ remove: () => any;
16
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
17
+ onSelect?: (() => any) | undefined;
18
+ onRemove?: (() => any) | undefined;
19
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, SVGGElement>;
20
+ export default _default;
21
+ //# sourceMappingURL=FlowEdge.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FlowEdge.vue.d.ts","sourceRoot":"","sources":["../../src/form-flow/FlowEdge.vue"],"names":[],"mappings":"AAiIA,MAAM,WAAW,KAAK;IAAG,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE;AAE/C,MAAM,WAAW,KAAK;IACrB,IAAI,EAAE,KAAK,CAAA;IACX,EAAE,EAAE,KAAK,CAAA;IACT,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB;;;;;;;;AAmID,wBAQG"}
@@ -0,0 +1,30 @@
1
+ import { FormStep } from './structure';
2
+ export interface Props {
3
+ step: FormStep;
4
+ selected?: boolean;
5
+ isStart?: boolean;
6
+ fieldCount?: number;
7
+ }
8
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ select: () => any;
10
+ remove: () => any;
11
+ move: (pos: {
12
+ x: number;
13
+ y: number;
14
+ }) => any;
15
+ setStart: () => any;
16
+ startEdge: (ev: PointerEvent) => any;
17
+ endEdge: () => any;
18
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
19
+ onSelect?: (() => any) | undefined;
20
+ onRemove?: (() => any) | undefined;
21
+ onMove?: ((pos: {
22
+ x: number;
23
+ y: number;
24
+ }) => any) | undefined;
25
+ onSetStart?: (() => any) | undefined;
26
+ onStartEdge?: ((ev: PointerEvent) => any) | undefined;
27
+ onEndEdge?: (() => any) | undefined;
28
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
29
+ export default _default;
30
+ //# sourceMappingURL=FlowNode.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FlowNode.vue.d.ts","sourceRoot":"","sources":["../../src/form-flow/FlowNode.vue"],"names":[],"mappings":"AAAA,OAyMO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAG3C,MAAM,WAAW,KAAK;IACrB,IAAI,EAAE,QAAQ,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;CACnB;;;;;WAMmB,MAAM;WAAK,MAAM;;;;;;;;;WAAjB,MAAM;WAAK,MAAM;;;;;;AA4KrC,wBAQG"}
@@ -0,0 +1,62 @@
1
+ import { FormStructure } from './structure';
2
+ export interface Props {
3
+ structure: FormStructure;
4
+ modelValue?: Record<string, any>;
5
+ components?: Record<string, any>;
6
+ /** Optional async submit handler; awaited before `complete` is emitted. */
7
+ onComplete?: (data: Record<string, any>) => Promise<void> | void;
8
+ }
9
+ /** Validate the visible current step via the underlying FormFlow. */
10
+ declare function validateStep(): boolean;
11
+ declare function __VLS_template(): {
12
+ attrs: Partial<{}>;
13
+ slots: Partial<Record<string, (_: any) => any>> & {
14
+ step?(_: {
15
+ step: import('./structure').FormStep;
16
+ formData: Record<string, any>;
17
+ stepKey: string | undefined;
18
+ }): any;
19
+ empty?(_: {}): any;
20
+ 'primary-label'?(_: {
21
+ isTerminal: boolean;
22
+ }): any;
23
+ };
24
+ refs: {
25
+ formRef: {
26
+ validate: () => boolean;
27
+ submit: (event?: Event) => Promise<boolean>;
28
+ formState: import('./FormFlow.vue').FormState;
29
+ } | null;
30
+ };
31
+ rootEl: HTMLDivElement;
32
+ };
33
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
34
+ declare const __VLS_component: import('vue').DefineComponent<Props, {
35
+ formData: import('vue').Ref<Record<string, any>, Record<string, any>>;
36
+ currentKey: import('vue').Ref<string | undefined, string | undefined>;
37
+ nextKey: import('vue').ComputedRef<string | null>;
38
+ isTerminal: import('vue').ComputedRef<boolean>;
39
+ validateStep: typeof validateStep;
40
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
41
+ "update:modelValue": (value: Record<string, any>) => any;
42
+ complete: (data: Record<string, any>) => any;
43
+ stepChange: (stepKey: string) => any;
44
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
45
+ "onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
46
+ onComplete?: ((data: Record<string, any>) => any) | undefined;
47
+ onStepChange?: ((stepKey: string) => any) | undefined;
48
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
49
+ formRef: {
50
+ validate: () => boolean;
51
+ submit: (event?: Event) => Promise<boolean>;
52
+ formState: import('./FormFlow.vue').FormState;
53
+ } | null;
54
+ }, HTMLDivElement>;
55
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
56
+ export default _default;
57
+ type __VLS_WithTemplateSlots<T, S> = T & {
58
+ new (): {
59
+ $slots: S;
60
+ };
61
+ };
62
+ //# sourceMappingURL=FormFlowPlayer.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormFlowPlayer.vue.d.ts","sourceRoot":"","sources":["../../src/form-flow/FormFlowPlayer.vue"],"names":[],"mappings":"AAqPA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAQhD,MAAM,WAAW,KAAK;IACrB,SAAS,EAAE,aAAa,CAAA;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAChC,2EAA2E;IAC3E,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;CAChE;AA2DD,qEAAqE;AACrE,iBAAS,YAAY,IAAI,OAAO,CAE/B;AAuCD,iBAAS,cAAc;WAuHT,OAAO,IAA6B;8CAfmC,GAAG;;;;;YAE9D,GAAG;uBACF,GAAG;;;YACQ,GAAG;;;;;;;;;;EAgBxC;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;kBAUnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Decision-tree multi-step form structure (client mirror of the backend
3
+ * `common/form_submission/src/structure.py` model).
4
+ *
5
+ * A multi-step form is a graph of steps connected by directed edges carrying a
6
+ * SCIM 2.0 condition. From a step, edges are evaluated top-to-bottom and the
7
+ * first whose condition passes (against the accumulated form data) wins.
8
+ * `resolveNext` returning `null` means the current step is terminal (the form
9
+ * is complete) — this drives the reactive Next-vs-Submit button in the player.
10
+ *
11
+ * The client owns navigation; the server exposes the same logic via
12
+ * `POST /form/definitions/{id}/resolve-next` for non-authoritative checks.
13
+ */
14
+ /** A single node in the form graph. Owns its own JSON Schema. */
15
+ export interface FormStep {
16
+ key: string;
17
+ title?: string;
18
+ /** JSON Schema for this step's fields (stored under `schema`). */
19
+ schema: Record<string, any>;
20
+ /** Canvas position (designer-only; ignored by the server). */
21
+ x?: number;
22
+ y?: number;
23
+ }
24
+ /** A directed edge between two steps with an optional SCIM condition. */
25
+ export interface StepEdge {
26
+ from: string;
27
+ to: string;
28
+ /** SCIM 2.0 filter over accumulated form data. Empty/undefined => always taken. */
29
+ condition?: string | null;
30
+ label?: string | null;
31
+ }
32
+ /** The decision-tree graph for a multi-step form definition. */
33
+ export interface FormStructure {
34
+ /** Explicit start step key; falls back to the first step. */
35
+ startId?: string | null;
36
+ steps: FormStep[];
37
+ transitions: StepEdge[];
38
+ }
39
+ /** An empty structure (single-step / not-yet-built). */
40
+ export declare function emptyStructure(): FormStructure;
41
+ /** A structure is multi-step iff it has more than one node. */
42
+ export declare function isMultiStep(structure: FormStructure | null | undefined): boolean;
43
+ /** Look up a step by key. */
44
+ export declare function stepByKey(structure: FormStructure, key: string | null | undefined): FormStep | undefined;
45
+ /** Outgoing edges for a step, in declared (priority) order. */
46
+ export declare function edgesFrom(structure: FormStructure, key: string): StepEdge[];
47
+ /** The entry step key: explicit `startId` if valid, else the first step. */
48
+ export declare function entryStepKey(structure: FormStructure): string | undefined;
49
+ /**
50
+ * Resolve the next step key from `currentKey` given the accumulated answers.
51
+ *
52
+ * First outgoing edge whose SCIM `condition` passes wins (unconditional edges
53
+ * always pass, so declare them last as fallbacks). Returns `null` when no edge
54
+ * matches — the current step is terminal and the form is complete.
55
+ *
56
+ * Mirrors `FormStructure.resolve_next` on the backend.
57
+ */
58
+ export declare function resolveNext(structure: FormStructure, currentKey: string, formData: Record<string, any>): string | null;
59
+ /** Whether a step is terminal (a leaf) given the current answers. */
60
+ export declare function isTerminal(structure: FormStructure, currentKey: string, formData: Record<string, any>): boolean;
61
+ /**
62
+ * Union all step schemas into one flat JSON Schema (later steps win on key
63
+ * collisions; `required` is the union). Mirrors `FormStructure.merged_schema`.
64
+ */
65
+ export declare function mergedSchema(structure: FormStructure): Record<string, any>;
66
+ //# sourceMappingURL=structure.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"structure.d.ts","sourceRoot":"","sources":["../../src/form-flow/structure.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,iEAAiE;AACjE,MAAM,WAAW,QAAQ;IACxB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kEAAkE;IAClE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;I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