@acorex-platform/framework-client 0.0.57 → 0.0.58

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 (52) hide show
  1. package/fesm2022/acorex-platform-framework-client-common.mjs +31 -33
  2. package/fesm2022/acorex-platform-framework-client-common.mjs.map +1 -1
  3. package/fesm2022/acorex-platform-framework-client-core.mjs +157 -2
  4. package/fesm2022/acorex-platform-framework-client-core.mjs.map +1 -1
  5. package/fesm2022/acorex-platform-framework-client-layout-builder.mjs +55 -19
  6. package/fesm2022/acorex-platform-framework-client-layout-builder.mjs.map +1 -1
  7. package/fesm2022/{acorex-platform-framework-client-layout-components-binding-expression-editor-popup.component-BqPaHKPM.mjs → acorex-platform-framework-client-layout-components-binding-expression-editor-popup.component-CyZpdazq.mjs} +6 -6
  8. package/fesm2022/{acorex-platform-framework-client-layout-components-binding-expression-editor-popup.component-BqPaHKPM.mjs.map → acorex-platform-framework-client-layout-components-binding-expression-editor-popup.component-CyZpdazq.mjs.map} +1 -1
  9. package/fesm2022/acorex-platform-framework-client-layout-components.mjs +639 -212
  10. package/fesm2022/acorex-platform-framework-client-layout-components.mjs.map +1 -1
  11. package/fesm2022/acorex-platform-framework-client-layout-designer.mjs +32 -16
  12. package/fesm2022/acorex-platform-framework-client-layout-designer.mjs.map +1 -1
  13. package/fesm2022/{acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-Cmzwhmjw.mjs → acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-jeOx-Rb8.mjs} +207 -143
  14. package/fesm2022/acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-jeOx-Rb8.mjs.map +1 -0
  15. package/fesm2022/{acorex-platform-framework-client-layout-entity-attachments-page.component-K9HAtqL6.mjs → acorex-platform-framework-client-layout-entity-attachments-page.component-B93uWhea.mjs} +2 -2
  16. package/fesm2022/{acorex-platform-framework-client-layout-entity-attachments-page.component-K9HAtqL6.mjs.map → acorex-platform-framework-client-layout-entity-attachments-page.component-B93uWhea.mjs.map} +1 -1
  17. package/fesm2022/{acorex-platform-framework-client-layout-entity-bulk-entity.command-BZECKfez.mjs → acorex-platform-framework-client-layout-entity-bulk-entity.command-DITHE0f6.mjs} +2 -2
  18. package/fesm2022/{acorex-platform-framework-client-layout-entity-bulk-entity.command-BZECKfez.mjs.map → acorex-platform-framework-client-layout-entity-bulk-entity.command-DITHE0f6.mjs.map} +1 -1
  19. package/fesm2022/{acorex-platform-framework-client-layout-entity-gallery-page.component-BuDpC58x.mjs → acorex-platform-framework-client-layout-entity-gallery-page.component-f5rLdctT.mjs} +2 -2
  20. package/fesm2022/{acorex-platform-framework-client-layout-entity-gallery-page.component-BuDpC58x.mjs.map → acorex-platform-framework-client-layout-entity-gallery-page.component-f5rLdctT.mjs.map} +1 -1
  21. package/fesm2022/acorex-platform-framework-client-layout-entity.mjs +1 -1
  22. package/fesm2022/acorex-platform-framework-client-layout-widget-core.mjs +59 -3
  23. package/fesm2022/acorex-platform-framework-client-layout-widget-core.mjs.map +1 -1
  24. package/fesm2022/{acorex-platform-framework-client-layout-widgets-acorex-platform-framework-client-layout-widgets-D5pndfBW.mjs → acorex-platform-framework-client-layout-widgets-acorex-platform-framework-client-layout-widgets-D9WiRo-_.mjs} +225 -136
  25. package/fesm2022/acorex-platform-framework-client-layout-widgets-acorex-platform-framework-client-layout-widgets-D9WiRo-_.mjs.map +1 -0
  26. package/fesm2022/{acorex-platform-framework-client-layout-widgets-code-editor-widget-column.component-BL621E1r.mjs → acorex-platform-framework-client-layout-widgets-code-editor-widget-column.component-DqJIiEyu.mjs} +9 -3
  27. package/fesm2022/acorex-platform-framework-client-layout-widgets-code-editor-widget-column.component-DqJIiEyu.mjs.map +1 -0
  28. package/fesm2022/{acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-BFgrSnfT.mjs → acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-kwbJdTwe.mjs} +2 -2
  29. package/fesm2022/{acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-BFgrSnfT.mjs.map → acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-kwbJdTwe.mjs.map} +1 -1
  30. package/fesm2022/{acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-Ctjz1PjP.mjs → acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-Bke-Wy-4.mjs} +2 -2
  31. package/fesm2022/{acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-Ctjz1PjP.mjs.map → acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-Bke-Wy-4.mjs.map} +1 -1
  32. package/fesm2022/{acorex-platform-framework-client-layout-widgets-triggers-widget-editor.component-B_OM0T7i.mjs → acorex-platform-framework-client-layout-widgets-triggers-widget-editor.component-C-r7txgg.mjs} +21 -17
  33. package/fesm2022/acorex-platform-framework-client-layout-widgets-triggers-widget-editor.component-C-r7txgg.mjs.map +1 -0
  34. package/fesm2022/acorex-platform-framework-client-layout-widgets.mjs +1 -1
  35. package/fesm2022/acorex-platform-framework-client-themes-shared.mjs +48 -9
  36. package/fesm2022/acorex-platform-framework-client-themes-shared.mjs.map +1 -1
  37. package/fesm2022/acorex-platform-framework-client-workflow.mjs +47 -1
  38. package/fesm2022/acorex-platform-framework-client-workflow.mjs.map +1 -1
  39. package/package.json +2 -2
  40. package/types/acorex-platform-framework-client-common.d.ts +2 -3
  41. package/types/acorex-platform-framework-client-core.d.ts +67 -2
  42. package/types/acorex-platform-framework-client-layout-builder.d.ts +4 -3
  43. package/types/acorex-platform-framework-client-layout-components.d.ts +119 -7
  44. package/types/acorex-platform-framework-client-layout-designer.d.ts +2 -0
  45. package/types/acorex-platform-framework-client-layout-entity.d.ts +16 -9
  46. package/types/acorex-platform-framework-client-layout-widget-core.d.ts +14 -1
  47. package/types/acorex-platform-framework-client-layout-widgets.d.ts +6 -0
  48. package/types/acorex-platform-framework-client-workflow.d.ts +29 -2
  49. package/fesm2022/acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-Cmzwhmjw.mjs.map +0 -1
  50. package/fesm2022/acorex-platform-framework-client-layout-widgets-acorex-platform-framework-client-layout-widgets-D5pndfBW.mjs.map +0 -1
  51. package/fesm2022/acorex-platform-framework-client-layout-widgets-code-editor-widget-column.component-BL621E1r.mjs.map +0 -1
  52. package/fesm2022/acorex-platform-framework-client-layout-widgets-triggers-widget-editor.component-B_OM0T7i.mjs.map +0 -1
@@ -1,14 +1,14 @@
1
- import * as i2 from '@acorex/components/button';
1
+ import * as i1$1 from '@acorex/components/button';
2
2
  import { AXButtonModule } from '@acorex/components/button';
3
- import * as i2$1 from '@acorex/components/code-editor';
3
+ import * as i2 from '@acorex/components/code-editor';
4
4
  import { AXCodeEditorModule } from '@acorex/components/code-editor';
5
- import * as i2$2 from '@acorex/components/decorators';
5
+ import * as i2$1 from '@acorex/components/decorators';
6
6
  import { AXDecoratorModule } from '@acorex/components/decorators';
7
7
  import { AXBasePageComponent } from '@acorex/components/page';
8
8
  import * as i3 from '@acorex/core/translation';
9
9
  import { AXTranslationModule } from '@acorex/core/translation';
10
10
  import { setupPopupFooterKeyboardShortcuts } from '@acorex-platform/framework-client/core';
11
- import * as i1$1 from '@angular/common';
11
+ import * as i1$2 from '@angular/common';
12
12
  import { CommonModule } from '@angular/common';
13
13
  import * as i0 from '@angular/core';
14
14
  import { input, linkedSignal, ChangeDetectionStrategy, Component } from '@angular/core';
@@ -88,7 +88,7 @@ class AXPBindingExpressionEditorPopupComponent extends AXBasePageComponent {
88
88
  ></ax-button>
89
89
  </ax-suffix>
90
90
  </ax-footer>
91
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXCodeEditorModule }, { kind: "component", type: i2$1.AXCodeEditorComponent, selector: "ax-code-editor", inputs: ["disabled", "value", "state", "name", "id", "language", "readonly", "placeholder", "lineNumbers", "lineWrapping", "tabSize", "indentWithTab", "theme", "extensions", "ariaLabel", "focusOnReady", "formatOnSave", "minRow", "customCompletions"], outputs: ["onValueChanged", "valueChange", "stateChange", "readonlyChange", "disabledChange", "ready", "save"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2$2.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
91
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1$1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXCodeEditorModule }, { kind: "component", type: i2.AXCodeEditorComponent, selector: "ax-code-editor", inputs: ["disabled", "value", "state", "name", "id", "language", "readonly", "placeholder", "lineNumbers", "lineWrapping", "tabSize", "indentWithTab", "theme", "extensions", "ariaLabel", "focusOnReady", "formatOnSave", "minRow", "customCompletions"], outputs: ["onValueChanged", "valueChange", "stateChange", "readonlyChange", "disabledChange", "ready", "save"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2$1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i1$2.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
92
92
  }
93
93
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPBindingExpressionEditorPopupComponent, decorators: [{
94
94
  type: Component,
@@ -137,4 +137,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
137
137
  }], ctorParameters: () => [], propDecorators: { initialValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialValue", required: true }] }] } });
138
138
 
139
139
  export { AXPBindingExpressionEditorPopupComponent };
140
- //# sourceMappingURL=acorex-platform-framework-client-layout-components-binding-expression-editor-popup.component-BqPaHKPM.mjs.map
140
+ //# sourceMappingURL=acorex-platform-framework-client-layout-components-binding-expression-editor-popup.component-CyZpdazq.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-framework-client-layout-components-binding-expression-editor-popup.component-BqPaHKPM.mjs","sources":["../../../../../libs/framework/client/layout/components/src/lib/property-viewer/binding-expression-editor-popup.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXCodeEditorModule } from '@acorex/components/code-editor';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { setupPopupFooterKeyboardShortcuts } from '@acorex-platform/framework-client/core';\nimport { CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n input,\n linkedSignal,\n WritableSignal,\n} from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\nimport { PROPERTY_VIEWER_EXPRESSION_EDITOR_MIN_LINES } from './property-viewer.types';\n\n/**\n * Popup for editing a binding/expression string (e.g. `{{ context.eval('x') }}`).\n * Mirrors the trigger expression editor UX: code editor with Save/Cancel.\n */\n@Component({\n selector: 'axp-binding-expression-editor-popup',\n template: `\n <div class=\"flex flex-col h-full overflow-hidden\">\n <div class=\"flex-1 p-4 overflow-hidden\" style=\"direction: ltr;\">\n <ax-code-editor\n [ngModel]=\"currentValue()\"\n (ngModelChange)=\"handleValueChange($event)\"\n language=\"javascript\"\n [lineNumbers]=\"true\"\n [minRow]=\"minRow\"\n class=\"w-full h-full min-h-96\"\n ></ax-code-editor>\n </div>\n </div>\n\n <ax-footer>\n <ax-suffix>\n <ax-button\n look=\"solid\"\n [text]=\"'@general:actions.cancel.title' | translate | async\"\n (onClick)=\"handleCancelClick()\"\n ></ax-button>\n <ax-button\n look=\"solid\"\n color=\"primary\"\n [text]=\"'@general:actions.save.title' | translate | async\"\n (onClick)=\"handleSaveClick()\"\n ></ax-button>\n </ax-suffix>\n </ax-footer>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n FormsModule,\n AXButtonModule,\n AXCodeEditorModule,\n AXDecoratorModule,\n AXTranslationModule,\n ],\n})\nexport class AXPBindingExpressionEditorPopupComponent extends AXBasePageComponent {\n //#region ---- Inputs ----\n\n /** Use a distinct name to avoid popup 'data.value' overwriting the input signal. */\n initialValue = input.required<string | null>();\n\n //#endregion\n\n //#region ---- Properties ----\n\n protected readonly minRow = PROPERTY_VIEWER_EXPRESSION_EDITOR_MIN_LINES;\n\n protected readonly currentValue: WritableSignal<string> = linkedSignal(\n () => (this.initialValue() ?? '') as string,\n );\n\n constructor() {\n super();\n setupPopupFooterKeyboardShortcuts(\n () => [\n {\n title: '@general:actions.cancel.title',\n command: 'cancel',\n handler: () => this.handleCancelClick(),\n },\n {\n title: '@general:actions.save.title',\n command: 'submit',\n handler: () => this.handleSaveClick(),\n },\n ],\n { id: 'binding-expression-editor-popup' },\n );\n }\n\n //#endregion\n\n //#region ---- Event Handlers ----\n\n protected handleValueChange(newValue: string): void {\n this.currentValue.set(newValue);\n }\n\n protected handleCancelClick(): void {\n this.close();\n }\n\n protected handleSaveClick(): void {\n this.close({\n value: this.currentValue(),\n });\n }\n\n //#endregion\n}\n"],"names":["i3","i4","i5","i6"],"mappings":";;;;;;;;;;;;;;;;;;AAkBA;;;AAGG;AA2CG,MAAO,wCAAyC,SAAQ,mBAAmB,CAAA;AAgB7E,IAAA,WAAA,GAAA;AACI,QAAA,KAAK,EAAE;;;QAbX,IAAA,CAAA,YAAY,GAAG,KAAK,CAAC,QAAQ;yFAAiB;;;QAM3B,IAAA,CAAA,MAAM,GAAG,2CAA2C;AAEpD,QAAA,IAAA,CAAA,YAAY,GAA2B,YAAY,CAClE,OAAO,IAAI,CAAC,YAAY,EAAE,IAAI,EAAE,CAAW;yFAC9C;QAIG,iCAAiC,CAC7B,MAAM;AACF,YAAA;AACI,gBAAA,KAAK,EAAE,+BAA+B;AACtC,gBAAA,OAAO,EAAE,QAAQ;AACjB,gBAAA,OAAO,EAAE,MAAM,IAAI,CAAC,iBAAiB,EAAE;AAC1C,aAAA;AACD,YAAA;AACI,gBAAA,KAAK,EAAE,6BAA6B;AACpC,gBAAA,OAAO,EAAE,QAAQ;AACjB,gBAAA,OAAO,EAAE,MAAM,IAAI,CAAC,eAAe,EAAE;AACxC,aAAA;AACJ,SAAA,EACD,EAAE,EAAE,E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AA,CAAA;kBA1CpD,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,qCAAqC;AAC/C,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BT,IAAA,CAAA;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,WAAW;wBACX,cAAc;wBACd,kBAAkB;wBAClB,iBAAiB;wBACjB,mBAAmB;AACtB,qBAAA;AACJ,iBAAA;;;"}
1
+ {"version":3,"file":"acorex-platform-framework-client-layout-components-binding-expression-editor-popup.component-CyZpdazq.mjs","sources":["../../../../../libs/framework/client/layout/components/src/lib/property-viewer/binding-expression-editor-popup.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXCodeEditorModule } from '@acorex/components/code-editor';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { setupPopupFooterKeyboardShortcuts } from '@acorex-platform/framework-client/core';\nimport { CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n input,\n linkedSignal,\n WritableSignal,\n} from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\nimport { PROPERTY_VIEWER_EXPRESSION_EDITOR_MIN_LINES } from './property-viewer.types';\n\n/**\n * Popup for editing a binding/expression string (e.g. `{{ context.eval('x') }}`).\n * Mirrors the trigger expression editor UX: code editor with Save/Cancel.\n */\n@Component({\n selector: 'axp-binding-expression-editor-popup',\n template: `\n <div class=\"flex flex-col h-full overflow-hidden\">\n <div class=\"flex-1 p-4 overflow-hidden\" style=\"direction: ltr;\">\n <ax-code-editor\n [ngModel]=\"currentValue()\"\n (ngModelChange)=\"handleValueChange($event)\"\n language=\"javascript\"\n [lineNumbers]=\"true\"\n [minRow]=\"minRow\"\n class=\"w-full h-full min-h-96\"\n ></ax-code-editor>\n </div>\n </div>\n\n <ax-footer>\n <ax-suffix>\n <ax-button\n look=\"solid\"\n [text]=\"'@general:actions.cancel.title' | translate | async\"\n (onClick)=\"handleCancelClick()\"\n ></ax-button>\n <ax-button\n look=\"solid\"\n color=\"primary\"\n [text]=\"'@general:actions.save.title' | translate | async\"\n (onClick)=\"handleSaveClick()\"\n ></ax-button>\n </ax-suffix>\n </ax-footer>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n FormsModule,\n AXButtonModule,\n AXCodeEditorModule,\n AXDecoratorModule,\n AXTranslationModule,\n ],\n})\nexport class AXPBindingExpressionEditorPopupComponent extends AXBasePageComponent {\n //#region ---- Inputs ----\n\n /** Use a distinct name to avoid popup 'data.value' overwriting the input signal. */\n initialValue = input.required<string | null>();\n\n //#endregion\n\n //#region ---- Properties ----\n\n protected readonly minRow = PROPERTY_VIEWER_EXPRESSION_EDITOR_MIN_LINES;\n\n protected readonly currentValue: WritableSignal<string> = linkedSignal(\n () => (this.initialValue() ?? '') as string,\n );\n\n constructor() {\n super();\n setupPopupFooterKeyboardShortcuts(\n () => [\n {\n title: '@general:actions.cancel.title',\n command: 'cancel',\n handler: () => this.handleCancelClick(),\n },\n {\n title: '@general:actions.save.title',\n command: 'submit',\n handler: () => this.handleSaveClick(),\n },\n ],\n { id: 'binding-expression-editor-popup' },\n );\n }\n\n //#endregion\n\n //#region ---- Event Handlers ----\n\n protected handleValueChange(newValue: string): void {\n this.currentValue.set(newValue);\n }\n\n protected handleCancelClick(): void {\n this.close();\n }\n\n protected handleSaveClick(): void {\n this.close({\n value: this.currentValue(),\n });\n }\n\n //#endregion\n}\n"],"names":["i3","i4","i5","i6"],"mappings":";;;;;;;;;;;;;;;;;;AAkBA;;;AAGG;AA2CG,MAAO,wCAAyC,SAAQ,mBAAmB,CAAA;AAgB7E,IAAA,WAAA,GAAA;AACI,QAAA,KAAK,EAAE;;;QAbX,IAAA,CAAA,YAAY,GAAG,KAAK,CAA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