@acorex-platform/module-financial-core-client 0.0.32 → 0.0.37

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 (57) hide show
  1. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-currency.mjs +324 -0
  2. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-currency.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-exchange-rate.mjs +380 -0
  4. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-exchange-rate.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-financial-dimension.mjs +295 -0
  6. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-financial-dimension.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-fiscal-calendar.mjs +343 -0
  8. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-fiscal-calendar.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-payment-method.mjs +351 -0
  10. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-payment-method.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-payment-term.mjs +288 -0
  12. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-payment-term.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-tax-class.mjs +282 -0
  14. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-tax-class.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-tax-region.mjs +272 -0
  16. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-tax-region.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-tax-rule.mjs +364 -0
  18. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-tax-rule.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-acorex-platform-module-financial-core-client-contracts-entity-catalog-DpAVTjcD.mjs +99 -0
  20. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-acorex-platform-module-financial-core-client-contracts-entity-catalog-DpAVTjcD.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-currency.entity-C6VWyRY-.mjs +252 -0
  22. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-currency.entity-C6VWyRY-.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-exchange-rate.entity-D9ZfPYOX.mjs +308 -0
  24. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-exchange-rate.entity-D9ZfPYOX.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-financial-dimension.entity-P6IpxIPP.mjs +223 -0
  26. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-financial-dimension.entity-P6IpxIPP.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-fiscal-calendar.entity-CHFARbBF.mjs +271 -0
  28. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-fiscal-calendar.entity-CHFARbBF.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-payment-method.entity-CWj-4rZX.mjs +279 -0
  30. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-payment-method.entity-CWj-4rZX.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-payment-term.entity-Bpl7usEL.mjs +216 -0
  32. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-payment-term.entity-Bpl7usEL.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-class.entity-l6AYvaaV.mjs +210 -0
  34. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-class.entity-l6AYvaaV.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-region.entity-DVBfpcCF.mjs +200 -0
  36. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-region.entity-DVBfpcCF.mjs.map +1 -0
  37. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-rule.entity-0_Q8paGB.mjs +292 -0
  38. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-rule.entity-0_Q8paGB.mjs.map +1 -0
  39. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog.mjs +2 -0
  40. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog.mjs.map +1 -0
  41. package/fesm2022/acorex-platform-module-financial-core-client-contracts.mjs.map +1 -1
  42. package/fesm2022/acorex-platform-module-financial-core-client-feature-definition.provider-C-GQzLcX.mjs.map +1 -1
  43. package/fesm2022/acorex-platform-module-financial-core-client-local-entities.mjs +37 -0
  44. package/fesm2022/acorex-platform-module-financial-core-client-local-entities.mjs.map +1 -0
  45. package/fesm2022/acorex-platform-module-financial-core-client.mjs.map +1 -1
  46. package/package.json +45 -1
  47. package/types/acorex-platform-module-financial-core-client-contracts-entities-currency.d.ts +5 -0
  48. package/types/acorex-platform-module-financial-core-client-contracts-entities-exchange-rate.d.ts +5 -0
  49. package/types/acorex-platform-module-financial-core-client-contracts-entities-financial-dimension.d.ts +5 -0
  50. package/types/acorex-platform-module-financial-core-client-contracts-entities-fiscal-calendar.d.ts +5 -0
  51. package/types/acorex-platform-module-financial-core-client-contracts-entities-payment-method.d.ts +5 -0
  52. package/types/acorex-platform-module-financial-core-client-contracts-entities-payment-term.d.ts +5 -0
  53. package/types/acorex-platform-module-financial-core-client-contracts-entities-tax-class.d.ts +5 -0
  54. package/types/acorex-platform-module-financial-core-client-contracts-entities-tax-region.d.ts +5 -0
  55. package/types/acorex-platform-module-financial-core-client-contracts-entities-tax-rule.d.ts +5 -0
  56. package/types/acorex-platform-module-financial-core-client-contracts-entity-catalog.d.ts +10 -0
  57. package/types/acorex-platform-module-financial-core-client-local-entities.d.ts +12 -0
@@ -0,0 +1,271 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+ import { R as RootConfig } from './acorex-platform-module-financial-core-client-contracts-entity-catalog-acorex-platform-module-financial-core-client-contracts-entity-catalog-DpAVTjcD.mjs';
4
+
5
+ //#endregion
6
+ //#region ---- Entity Factory ----
7
+ async function fiscalCalendarFactory() {
8
+ const sections = [
9
+ { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
10
+ { id: 'timeline', layout: { positions: { lg: { colSpan: 12 } } } },
11
+ { id: 'controls', layout: { positions: { lg: { colSpan: 12 } } } },
12
+ ];
13
+ const propertyLayouts = [
14
+ { name: 'code', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },
15
+ { name: 'title', layout: { positions: { lg: { colSpan: 8, order: 2 } } } },
16
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
17
+ { name: 'fiscalYear', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },
18
+ { name: 'startDate', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },
19
+ { name: 'endDate', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },
20
+ { name: 'templateCalendarId', layout: { positions: { lg: { colSpan: 6, order: 7 } } } },
21
+ { name: 'closingPeriods', layout: { positions: { lg: { colSpan: 3, order: 8 } } } },
22
+ { name: 'status', layout: { positions: { lg: { colSpan: 3, order: 9 } } } },
23
+ { name: 'isLocked', layout: { positions: { lg: { colSpan: 3, order: 10 } } } },
24
+ ];
25
+ const entityDef = {
26
+ module: RootConfig.module.name,
27
+ name: RootConfig.entities.fiscalCalendar.name,
28
+ title: RootConfig.entities.fiscalCalendar.title,
29
+ icon: RootConfig.entities.fiscalCalendar.icon,
30
+ formats: {
31
+ individual: RootConfig.entities.fiscalCalendar.title,
32
+ plural: RootConfig.entities.fiscalCalendar.titlePlural,
33
+ searchResult: {
34
+ title: '{{ title }}',
35
+ description: '{{ context.eval("fiscalYear") + " (" + context.eval("startDate", { pipes: ["date"] }) + " - " + context.eval("endDate", { pipes: ["date"] }) + ")" }}',
36
+ },
37
+ },
38
+ plugins: [
39
+ { name: 'history' },
40
+ { name: 'lock' },
41
+ { name: 'compare' },
42
+ { name: 'versioning' },
43
+ {
44
+ name: 'default',
45
+ options: {
46
+ title: '@financial-core:calendars.entities.fiscal-calendar.fields.is-default.title',
47
+ },
48
+ },
49
+ ],
50
+ groups: [
51
+ { id: 'basic-info', title: '@financial-core:calendars.entities.fiscal-calendar.groups.basic-info' },
52
+ { id: 'timeline', title: '@financial-core:calendars.entities.fiscal-calendar.groups.timeline' },
53
+ { id: 'controls', title: '@financial-core:calendars.entities.fiscal-calendar.groups.controls' },
54
+ ],
55
+ properties: [
56
+ {
57
+ name: 'id',
58
+ title: '@general:terms.common.id',
59
+ groupId: 'basic-info',
60
+ schema: {
61
+ dataType: 'uuid',
62
+ visible: false,
63
+ readonly: true,
64
+ unique: { enabled: true },
65
+ },
66
+ },
67
+ {
68
+ name: 'code',
69
+ title: '@general:terms.common.code',
70
+ groupId: 'basic-info',
71
+ options: {
72
+ sort: { enabled: true },
73
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
74
+ },
75
+ schema: {
76
+ dataType: 'string',
77
+ interface: {
78
+ type: AXPWidgetsList.Editors.TextBox,
79
+ options: {
80
+ placeholder: '@financial-core:calendars.entities.fiscal-calendar.fields.code.placeholder',
81
+ },
82
+ },
83
+ },
84
+ validations: [{ rule: 'required' }],
85
+ },
86
+ {
87
+ name: 'title',
88
+ title: '@general:terms.common.title',
89
+ groupId: 'basic-info',
90
+ schema: {
91
+ dataType: 'string',
92
+ interface: {
93
+ type: AXPWidgetsList.Editors.TextBox,
94
+ options: {
95
+ placeholder: '@financial-core:calendars.entities.fiscal-calendar.fields.title.placeholder',
96
+ },
97
+ },
98
+ },
99
+ validations: [{ rule: 'required' }],
100
+ },
101
+ {
102
+ name: 'description',
103
+ title: '@general:terms.common.description',
104
+ groupId: 'basic-info',
105
+ schema: {
106
+ dataType: 'string',
107
+ interface: {
108
+ type: AXPWidgetsList.Editors.LargeTextBox,
109
+ options: {
110
+ rows: 4,
111
+ placeholder: '@financial-core:calendars.entities.fiscal-calendar.fields.description.placeholder',
112
+ },
113
+ },
114
+ },
115
+ },
116
+ {
117
+ name: 'fiscalYear',
118
+ title: '@financial-core:calendars.entities.fiscal-calendar.fields.fiscal-year.title',
119
+ groupId: 'timeline',
120
+ schema: {
121
+ dataType: 'number',
122
+ interface: {
123
+ type: AXPWidgetsList.Editors.NumberBox,
124
+ options: {
125
+ minValue: 1900,
126
+ step: 1,
127
+ },
128
+ },
129
+ },
130
+ validations: [{ rule: 'required' }],
131
+ },
132
+ {
133
+ name: 'startDate',
134
+ title: '@financial-core:calendars.entities.fiscal-calendar.fields.start-date.title',
135
+ groupId: 'timeline',
136
+ schema: {
137
+ dataType: 'date',
138
+ interface: {
139
+ type: AXPWidgetsList.Editors.DateTimeBox,
140
+ options: {
141
+ showTime: false,
142
+ },
143
+ },
144
+ },
145
+ validations: [{ rule: 'required' }],
146
+ },
147
+ {
148
+ name: 'endDate',
149
+ title: '@financial-core:calendars.entities.fiscal-calendar.fields.end-date.title',
150
+ groupId: 'timeline',
151
+ schema: {
152
+ dataType: 'date',
153
+ interface: {
154
+ type: AXPWidgetsList.Editors.DateTimeBox,
155
+ options: {
156
+ showTime: false,
157
+ },
158
+ },
159
+ },
160
+ validations: [{ rule: 'required' }],
161
+ },
162
+ {
163
+ name: 'templateCalendarId',
164
+ title: '@financial-core:calendars.entities.fiscal-calendar.fields.template-calendar.title',
165
+ groupId: 'timeline',
166
+ schema: {
167
+ dataType: 'string',
168
+ interface: {
169
+ type: AXPWidgetsList.Editors.TextBox,
170
+ options: {
171
+ placeholder: '@financial-core:calendars.entities.fiscal-calendar.fields.template-calendar.placeholder',
172
+ },
173
+ },
174
+ },
175
+ },
176
+ {
177
+ name: 'closingPeriods',
178
+ title: '@financial-core:calendars.entities.fiscal-calendar.fields.closing-periods.title',
179
+ groupId: 'controls',
180
+ schema: {
181
+ dataType: 'number',
182
+ interface: {
183
+ type: AXPWidgetsList.Editors.NumberBox,
184
+ options: {
185
+ minValue: 0,
186
+ maxValue: 12,
187
+ step: 1,
188
+ },
189
+ },
190
+ },
191
+ },
192
+ {
193
+ name: 'status',
194
+ title: '@financial-core:calendars.entities.fiscal-calendar.fields.status.title',
195
+ groupId: 'controls',
196
+ schema: {
197
+ dataType: 'string',
198
+ interface: {
199
+ type: AXPWidgetsList.Editors.SelectBox,
200
+ options: {
201
+ valueField: 'value',
202
+ textField: 'text',
203
+ dataSource: [
204
+ {
205
+ value: 'draft',
206
+ text: '@financial-core:calendars.entities.fiscal-calendar.fields.status.options.draft',
207
+ },
208
+ {
209
+ value: 'open',
210
+ text: '@financial-core:calendars.entities.fiscal-calendar.fields.status.options.open',
211
+ },
212
+ {
213
+ value: 'closed',
214
+ text: '@financial-core:calendars.entities.fiscal-calendar.fields.status.options.closed',
215
+ },
216
+ ],
217
+ },
218
+ },
219
+ },
220
+ },
221
+ {
222
+ name: 'isLocked',
223
+ title: '@financial-core:calendars.entities.fiscal-calendar.fields.is-locked.title',
224
+ groupId: 'controls',
225
+ schema: {
226
+ dataType: 'boolean',
227
+ interface: {
228
+ type: AXPWidgetsList.Editors.ToggleSwitch,
229
+ },
230
+ },
231
+ },
232
+ ],
233
+ columns: [
234
+ { name: 'code', options: { width: '140px', order: 1 } },
235
+ { name: 'title', options: { width: '220px', order: 2 } },
236
+ { name: 'fiscalYear', options: { width: '120px', order: 3 } },
237
+ { name: 'status', options: { width: '120px', order: 4 } },
238
+ ],
239
+ interfaces: {
240
+ master: {
241
+ create: {
242
+ sections,
243
+ properties: propertyLayouts,
244
+ },
245
+ update: {
246
+ sections,
247
+ properties: propertyLayouts,
248
+ },
249
+ single: {
250
+ title: '{{ title }}',
251
+ sections,
252
+ properties: propertyLayouts,
253
+ actions: [...entityMasterRecordActions()],
254
+ },
255
+ list: {
256
+ actions: [...entityMasterCrudActions()],
257
+ views: [
258
+ createAllQueryView({
259
+ sorts: [{ name: 'fiscalYear', dir: 'desc' }],
260
+ }),
261
+ ],
262
+ },
263
+ },
264
+ },
265
+ };
266
+ return entityDef;
267
+ }
268
+ //#endregion
269
+
270
+ export { fiscalCalendarFactory };
271
+ //# sourceMappingURL=acorex-platform-module-financial-core-client-contracts-entity-catalog-fiscal-calendar.entity-CHFARbBF.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-financial-core-client-contracts-entity-catalog-fiscal-calendar.entity-CHFARbBF.mjs","sources":["../../../../libs/modules/financial-core/contracts/src/entities/fiscal-calendar/fiscal-calendar.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function fiscalCalendarFactory(): Promise<AXPEntity> {\n\n const sections = [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'timeline', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'controls', layout: { positions: { lg: { colSpan: 12 } } } },\n ];\n\n const propertyLayouts = [\n { name: 'code', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 8, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'fiscalYear', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },\n { name: 'startDate', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },\n { name: 'endDate', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },\n { name: 'templateCalendarId', layout: { positions: { lg: { colSpan: 6, order: 7 } } } },\n { name: 'closingPeriods', layout: { positions: { lg: { colSpan: 3, order: 8 } } } },\n { name: 'status', layout: { positions: { lg: { colSpan: 3, order: 9 } } } },\n { name: 'isLocked', layout: { positions: { lg: { colSpan: 3, order: 10 } } } },\n ];\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.fiscalCalendar.name,\n title: RootConfig.entities.fiscalCalendar.title,\n icon: RootConfig.entities.fiscalCalendar.icon,\n formats: {\n individual: RootConfig.entities.fiscalCalendar.title,\n plural: RootConfig.entities.fiscalCalendar.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description:\n '{{ context.eval(\"fiscalYear\") + \" (\" + context.eval(\"startDate\", { pipes: [\"date\"] }) + \" - \" + context.eval(\"endDate\", { pipes: [\"date\"] }) + \")\" }}',\n },\n },\n plugins: [\n { name: 'history' },\n { name: 'lock' },\n { name: 'compare' },\n { name: 'versioning' },\n {\n name: 'default',\n options: {\n title: '@financial-core:calendars.entities.fiscal-calendar.fields.is-default.title',\n },\n },\n ],\n groups: [\n { id: 'basic-info', title: '@financial-core:calendars.entities.fiscal-calendar.groups.basic-info' },\n { id: 'timeline', title: '@financial-core:calendars.entities.fiscal-calendar.groups.timeline' },\n { id: 'controls', title: '@financial-core:calendars.entities.fiscal-calendar.groups.controls' },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'basic-info',\n schema: {\n dataType: 'uuid',\n visible: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n {\n name: 'code',\n title: '@general:terms.common.code',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@financial-core:calendars.entities.fiscal-calendar.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@financial-core:calendars.entities.fiscal-calendar.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 4,\n placeholder: '@financial-core:calendars.entities.fiscal-calendar.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'fiscalYear',\n title: '@financial-core:calendars.entities.fiscal-calendar.fields.fiscal-year.title',\n groupId: 'timeline',\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: {\n minValue: 1900,\n step: 1,\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'startDate',\n title: '@financial-core:calendars.entities.fiscal-calendar.fields.start-date.title',\n groupId: 'timeline',\n schema: {\n dataType: 'date',\n interface: {\n type: AXPWidgetsList.Editors.DateTimeBox,\n options: {\n showTime: false,\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'endDate',\n title: '@financial-core:calendars.entities.fiscal-calendar.fields.end-date.title',\n groupId: 'timeline',\n schema: {\n dataType: 'date',\n interface: {\n type: AXPWidgetsList.Editors.DateTimeBox,\n options: {\n showTime: false,\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'templateCalendarId',\n title: '@financial-core:calendars.entities.fiscal-calendar.fields.template-calendar.title',\n groupId: 'timeline',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@financial-core:calendars.entities.fiscal-calendar.fields.template-calendar.placeholder',\n },\n },\n },\n },\n {\n name: 'closingPeriods',\n title: '@financial-core:calendars.entities.fiscal-calendar.fields.closing-periods.title',\n groupId: 'controls',\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: {\n minValue: 0,\n maxValue: 12,\n step: 1,\n },\n },\n },\n },\n {\n name: 'status',\n title: '@financial-core:calendars.entities.fiscal-calendar.fields.status.title',\n groupId: 'controls',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: [\n {\n value: 'draft',\n text: '@financial-core:calendars.entities.fiscal-calendar.fields.status.options.draft',\n },\n {\n value: 'open',\n text: '@financial-core:calendars.entities.fiscal-calendar.fields.status.options.open',\n },\n {\n value: 'closed',\n text: '@financial-core:calendars.entities.fiscal-calendar.fields.status.options.closed',\n },\n ],\n },\n },\n },\n },\n {\n name: 'isLocked',\n title: '@financial-core:calendars.entities.fiscal-calendar.fields.is-locked.title',\n groupId: 'controls',\n schema: {\n dataType: 'boolean',\n interface: {\n type: AXPWidgetsList.Editors.ToggleSwitch,\n },\n },\n },\n ],\n columns: [\n { name: 'code', options: { width: '140px', order: 1 } },\n { name: 'title', options: { width: '220px', order: 2 } },\n { name: 'fiscalYear', options: { width: '120px', order: 3 } },\n { name: 'status', options: { width: '120px', order: 4 } },\n ],\n interfaces: {\n master: {\n create: {\n sections,\n properties: propertyLayouts,\n },\n update: {\n sections,\n properties: propertyLayouts,\n },\n single: {\n title: '{{ title }}',\n sections,\n properties: propertyLayouts,\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [{ name: 'fiscalYear', dir: 'desc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,qBAAqB,GAAA;AAEzC,IAAA,MAAM,QAAQ,GAAG;AACf,QAAA,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE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;AAC3B,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;AACvC,oBAAA,KAAK,EAAE;AACL,wBAAA,kBAAkB,CAAC;4BACjB,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;yBAC7C,CAAC;AACH,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;"}
@@ -0,0 +1,279 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+ import { R as RootConfig } from './acorex-platform-module-financial-core-client-contracts-entity-catalog-acorex-platform-module-financial-core-client-contracts-entity-catalog-DpAVTjcD.mjs';
4
+
5
+ //#endregion
6
+ //#region ---- Entity Factory ----
7
+ async function paymentMethodFactory() {
8
+ const sections = [
9
+ { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
10
+ { id: 'capabilities', layout: { positions: { lg: { colSpan: 12 } } } },
11
+ ];
12
+ const propertyLayouts = [
13
+ { name: 'code', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },
14
+ { name: 'title', layout: { positions: { lg: { colSpan: 8, order: 2 } } } },
15
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
16
+ { name: 'type', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },
17
+ { name: 'provider', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },
18
+ { name: 'integrationType', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },
19
+ { name: 'feePercent', layout: { positions: { lg: { colSpan: 3, order: 7 } } } },
20
+ { name: 'settlementTimeDays', layout: { positions: { lg: { colSpan: 3, order: 8 } } } },
21
+ { name: 'supportsRefunds', layout: { positions: { lg: { colSpan: 3, order: 9 } } } },
22
+ { name: 'supportsRecurring', layout: { positions: { lg: { colSpan: 3, order: 10 } } } },
23
+ { name: 'instructions', layout: { positions: { lg: { colSpan: 12, order: 11 } } } },
24
+ ];
25
+ const entityDef = {
26
+ module: RootConfig.module.name,
27
+ name: RootConfig.entities.paymentMethod.name,
28
+ title: RootConfig.entities.paymentMethod.title,
29
+ icon: RootConfig.entities.paymentMethod.icon,
30
+ formats: {
31
+ individual: RootConfig.entities.paymentMethod.title,
32
+ plural: RootConfig.entities.paymentMethod.titlePlural,
33
+ searchResult: {
34
+ title: '{{ title }}',
35
+ description: '{{ context.eval("type") + " · " + context.eval("provider") }}',
36
+ },
37
+ },
38
+ plugins: [{ name: 'history' }, { name: 'lock' }, { name: 'compare' }, { name: 'clone' }, { name: 'disable' }, { name: 'attachments' }],
39
+ groups: [
40
+ { id: 'basic-info', title: '@financial-core:payments.entities.payment-method.groups.basic-info' },
41
+ { id: 'capabilities', title: '@financial-core:payments.entities.payment-method.groups.capabilities' },
42
+ ],
43
+ properties: [
44
+ {
45
+ name: 'id',
46
+ title: '@general:terms.common.id',
47
+ groupId: 'basic-info',
48
+ schema: {
49
+ dataType: 'uuid',
50
+ visible: false,
51
+ readonly: true,
52
+ unique: { enabled: true },
53
+ },
54
+ },
55
+ {
56
+ name: 'code',
57
+ title: '@general:terms.common.code',
58
+ groupId: 'basic-info',
59
+ options: {
60
+ sort: { enabled: true },
61
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
62
+ },
63
+ schema: {
64
+ dataType: 'string',
65
+ interface: {
66
+ type: AXPWidgetsList.Editors.TextBox,
67
+ options: {
68
+ placeholder: '@financial-core:payments.entities.payment-method.fields.code.placeholder',
69
+ },
70
+ },
71
+ },
72
+ validations: [{ rule: 'required' }],
73
+ },
74
+ {
75
+ name: 'title',
76
+ title: '@general:terms.common.title',
77
+ groupId: 'basic-info',
78
+ schema: {
79
+ dataType: 'string',
80
+ interface: {
81
+ type: AXPWidgetsList.Editors.TextBox,
82
+ options: {
83
+ placeholder: '@financial-core:payments.entities.payment-method.fields.title.placeholder',
84
+ },
85
+ },
86
+ },
87
+ validations: [{ rule: 'required' }],
88
+ },
89
+ {
90
+ name: 'description',
91
+ title: '@general:terms.common.description',
92
+ groupId: 'basic-info',
93
+ schema: {
94
+ dataType: 'string',
95
+ interface: {
96
+ type: AXPWidgetsList.Editors.LargeTextBox,
97
+ options: {
98
+ rows: 4,
99
+ placeholder: '@financial-core:payments.entities.payment-method.fields.description.placeholder',
100
+ },
101
+ },
102
+ },
103
+ },
104
+ {
105
+ name: 'type',
106
+ title: '@financial-core:payments.entities.payment-method.fields.type.title',
107
+ groupId: 'basic-info',
108
+ schema: {
109
+ dataType: 'string',
110
+ interface: {
111
+ type: AXPWidgetsList.Editors.SelectBox,
112
+ options: {
113
+ valueField: 'value',
114
+ textField: 'text',
115
+ dataSource: [
116
+ { value: 'cash', text: '@financial-core:payments.entities.payment-method.fields.type.options.cash' },
117
+ { value: 'bank', text: '@financial-core:payments.entities.payment-method.fields.type.options.bank' },
118
+ { value: 'card', text: '@financial-core:payments.entities.payment-method.fields.type.options.card' },
119
+ {
120
+ value: 'digital',
121
+ text: '@financial-core:payments.entities.payment-method.fields.type.options.digital',
122
+ },
123
+ ],
124
+ },
125
+ },
126
+ },
127
+ validations: [{ rule: 'required' }],
128
+ },
129
+ {
130
+ name: 'provider',
131
+ title: '@financial-core:payments.entities.payment-method.fields.provider.title',
132
+ groupId: 'basic-info',
133
+ schema: {
134
+ dataType: 'string',
135
+ interface: {
136
+ type: AXPWidgetsList.Editors.TextBox,
137
+ options: {
138
+ placeholder: '@financial-core:payments.entities.payment-method.fields.provider.placeholder',
139
+ },
140
+ },
141
+ },
142
+ },
143
+ {
144
+ name: 'integrationType',
145
+ title: '@financial-core:payments.entities.payment-method.fields.integration-type.title',
146
+ groupId: 'basic-info',
147
+ schema: {
148
+ dataType: 'string',
149
+ interface: {
150
+ type: AXPWidgetsList.Editors.SelectBox,
151
+ options: {
152
+ valueField: 'value',
153
+ textField: 'text',
154
+ dataSource: [
155
+ {
156
+ value: 'manual',
157
+ text: '@financial-core:payments.entities.payment-method.fields.integration-type.options.manual',
158
+ },
159
+ {
160
+ value: 'api',
161
+ text: '@financial-core:payments.entities.payment-method.fields.integration-type.options.api',
162
+ },
163
+ {
164
+ value: 'file',
165
+ text: '@financial-core:payments.entities.payment-method.fields.integration-type.options.file',
166
+ },
167
+ ],
168
+ },
169
+ },
170
+ },
171
+ },
172
+ {
173
+ name: 'feePercent',
174
+ title: '@financial-core:payments.entities.payment-method.fields.fee-percent.title',
175
+ groupId: 'capabilities',
176
+ schema: {
177
+ dataType: 'number',
178
+ interface: {
179
+ type: AXPWidgetsList.Editors.NumberBox,
180
+ options: {
181
+ minValue: 0,
182
+ maxValue: 100,
183
+ step: 0.1,
184
+ },
185
+ },
186
+ },
187
+ },
188
+ {
189
+ name: 'settlementTimeDays',
190
+ title: '@financial-core:payments.entities.payment-method.fields.settlement-time-days.title',
191
+ groupId: 'capabilities',
192
+ schema: {
193
+ dataType: 'number',
194
+ interface: {
195
+ type: AXPWidgetsList.Editors.NumberBox,
196
+ options: {
197
+ minValue: 0,
198
+ step: 1,
199
+ },
200
+ },
201
+ },
202
+ },
203
+ {
204
+ name: 'supportsRefunds',
205
+ title: '@financial-core:payments.entities.payment-method.fields.supports-refunds.title',
206
+ groupId: 'capabilities',
207
+ schema: {
208
+ dataType: 'boolean',
209
+ interface: {
210
+ type: AXPWidgetsList.Editors.ToggleSwitch,
211
+ },
212
+ },
213
+ },
214
+ {
215
+ name: 'supportsRecurring',
216
+ title: '@financial-core:payments.entities.payment-method.fields.supports-recurring.title',
217
+ groupId: 'capabilities',
218
+ schema: {
219
+ dataType: 'boolean',
220
+ interface: {
221
+ type: AXPWidgetsList.Editors.ToggleSwitch,
222
+ },
223
+ },
224
+ },
225
+ {
226
+ name: 'instructions',
227
+ title: '@financial-core:payments.entities.payment-method.fields.instructions.title',
228
+ groupId: 'capabilities',
229
+ schema: {
230
+ dataType: 'string',
231
+ interface: {
232
+ type: AXPWidgetsList.Editors.LargeTextBox,
233
+ options: {
234
+ rows: 4,
235
+ placeholder: '@financial-core:payments.entities.payment-method.fields.instructions.placeholder',
236
+ },
237
+ },
238
+ },
239
+ },
240
+ ],
241
+ columns: [
242
+ { name: 'code', options: { width: '140px', order: 1 } },
243
+ { name: 'title', options: { width: '220px', order: 2 } },
244
+ { name: 'type', options: { width: '160px', order: 3 } },
245
+ { name: 'provider', options: { width: '200px', order: 4 } },
246
+ ],
247
+ interfaces: {
248
+ master: {
249
+ create: {
250
+ sections,
251
+ properties: propertyLayouts,
252
+ },
253
+ update: {
254
+ sections,
255
+ properties: propertyLayouts,
256
+ },
257
+ single: {
258
+ title: '{{ title }}',
259
+ sections,
260
+ properties: propertyLayouts,
261
+ actions: [...entityMasterRecordActions()],
262
+ },
263
+ list: {
264
+ actions: [...entityMasterCrudActions()],
265
+ views: [
266
+ createAllQueryView({
267
+ sorts: [{ name: 'code', dir: 'asc' }],
268
+ }),
269
+ ],
270
+ },
271
+ },
272
+ },
273
+ };
274
+ return entityDef;
275
+ }
276
+ //#endregion
277
+
278
+ export { paymentMethodFactory };
279
+ //# sourceMappingURL=acorex-platform-module-financial-core-client-contracts-entity-catalog-payment-method.entity-CWj-4rZX.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-financial-core-client-contracts-entity-catalog-payment-method.entity-CWj-4rZX.mjs","sources":["../../../../libs/modules/financial-core/contracts/src/entities/payment-method/payment-method.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function paymentMethodFactory(): Promise<AXPEntity> {\n\n const sections = [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'capabilities', layout: { positions: { lg: { colSpan: 12 } } } },\n ];\n\n const propertyLayouts = [\n { name: 'code', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 8, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'type', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },\n { name: 'provider', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },\n { name: 'integrationType', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },\n { name: 'feePercent', layout: { positions: { lg: { colSpan: 3, order: 7 } } } },\n { name: 'settlementTimeDays', layout: { positions: { lg: { colSpan: 3, order: 8 } } } },\n { name: 'supportsRefunds', layout: { positions: { lg: { colSpan: 3, order: 9 } } } },\n { name: 'supportsRecurring', layout: { positions: { lg: { colSpan: 3, order: 10 } } } },\n { name: 'instructions', layout: { positions: { lg: { colSpan: 12, order: 11 } } } },\n ];\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.paymentMethod.name,\n title: RootConfig.entities.paymentMethod.title,\n icon: RootConfig.entities.paymentMethod.icon,\n formats: {\n individual: RootConfig.entities.paymentMethod.title,\n plural: RootConfig.entities.paymentMethod.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ context.eval(\"type\") + \" · \" + context.eval(\"provider\") }}',\n },\n },\n plugins: [{ name: 'history' }, { name: 'lock' }, { name: 'compare' }, { name: 'clone' }, { name: 'disable' }, { name: 'attachments' }],\n groups: [\n { id: 'basic-info', title: '@financial-core:payments.entities.payment-method.groups.basic-info' },\n { id: 'capabilities', title: '@financial-core:payments.entities.payment-method.groups.capabilities' },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'basic-info',\n schema: {\n dataType: 'uuid',\n visible: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n {\n name: 'code',\n title: '@general:terms.common.code',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@financial-core:payments.entities.payment-method.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@financial-core:payments.entities.payment-method.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 4,\n placeholder: '@financial-core:payments.entities.payment-method.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'type',\n title: '@financial-core:payments.entities.payment-method.fields.type.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: [\n { value: 'cash', text: '@financial-core:payments.entities.payment-method.fields.type.options.cash' },\n { value: 'bank', text: '@financial-core:payments.entities.payment-method.fields.type.options.bank' },\n { value: 'card', text: '@financial-core:payments.entities.payment-method.fields.type.options.card' },\n {\n value: 'digital',\n text: '@financial-core:payments.entities.payment-method.fields.type.options.digital',\n },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'provider',\n title: '@financial-core:payments.entities.payment-method.fields.provider.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@financial-core:payments.entities.payment-method.fields.provider.placeholder',\n },\n },\n },\n },\n {\n name: 'integrationType',\n title: '@financial-core:payments.entities.payment-method.fields.integration-type.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: [\n {\n value: 'manual',\n text: '@financial-core:payments.entities.payment-method.fields.integration-type.options.manual',\n },\n {\n value: 'api',\n text: '@financial-core:payments.entities.payment-method.fields.integration-type.options.api',\n },\n {\n value: 'file',\n text: '@financial-core:payments.entities.payment-method.fields.integration-type.options.file',\n },\n ],\n },\n },\n },\n },\n {\n name: 'feePercent',\n title: '@financial-core:payments.entities.payment-method.fields.fee-percent.title',\n groupId: 'capabilities',\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: {\n minValue: 0,\n maxValue: 100,\n step: 0.1,\n },\n },\n },\n },\n {\n name: 'settlementTimeDays',\n title: '@financial-core:payments.entities.payment-method.fields.settlement-time-days.title',\n groupId: 'capabilities',\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: {\n minValue: 0,\n step: 1,\n },\n },\n },\n },\n {\n name: 'supportsRefunds',\n title: '@financial-core:payments.entities.payment-method.fields.supports-refunds.title',\n groupId: 'capabilities',\n schema: {\n dataType: 'boolean',\n interface: {\n type: AXPWidgetsList.Editors.ToggleSwitch,\n },\n },\n },\n {\n name: 'supportsRecurring',\n title: '@financial-core:payments.entities.payment-method.fields.supports-recurring.title',\n groupId: 'capabilities',\n schema: {\n dataType: 'boolean',\n interface: {\n type: AXPWidgetsList.Editors.ToggleSwitch,\n },\n },\n },\n {\n name: 'instructions',\n title: '@financial-core:payments.entities.payment-method.fields.instructions.title',\n groupId: 'capabilities',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 4,\n placeholder: '@financial-core:payments.entities.payment-method.fields.instructions.placeholder',\n },\n },\n },\n },\n ],\n columns: [\n { name: 'code', options: { width: '140px', order: 1 } },\n { name: 'title', options: { width: '220px', order: 2 } },\n { name: 'type', options: { width: '160px', order: 3 } },\n { name: 'provider', options: { width: '200px', order: 4 } },\n ],\n interfaces: {\n master: {\n create: {\n sections,\n properties: propertyLayouts,\n },\n update: {\n sections,\n properties: propertyLayouts,\n },\n single: {\n title: '{{ title }}',\n sections,\n properties: propertyLayouts,\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [{ name: 'code', dir: 'asc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,oBAAoB,GAAA;AAExC,IAAA,MAAM,QAAQ,GAAG;AACf,QAAA,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AACpE,QAAA,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;KACvE;AAED,IAAA,MAAM,eAAe,GAAG;QACtB,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;QACzE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;QAC1E,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;QACjF,EAAE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