@leav/ui 0.3.6-621cfcd → 0.3.6-67cd90e

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 (112) hide show
  1. package/dist/__mocks__/common/attribute.js +1 -0
  2. package/dist/__mocks__/common/attribute.js.map +1 -1
  3. package/dist/__mocks__/common/value.js +1 -0
  4. package/dist/__mocks__/common/value.js.map +1 -1
  5. package/dist/_gqlTypes/index.d.ts +268 -25
  6. package/dist/_gqlTypes/index.js +140 -28
  7. package/dist/_gqlTypes/index.js.map +1 -1
  8. package/dist/_queries/records/getRecordColumnsValues.d.ts +1 -1
  9. package/dist/_queries/records/recordFormAttributeFragment.js +1 -0
  10. package/dist/_queries/records/recordFormAttributeFragment.js.map +1 -1
  11. package/dist/antdTheme/index.d.ts +0 -3
  12. package/dist/antdTheme/index.js +3 -42
  13. package/dist/antdTheme/index.js.map +1 -1
  14. package/dist/components/Explorer/Explorer.d.ts +3 -3
  15. package/dist/components/Explorer/Explorer.js +22 -19
  16. package/dist/components/Explorer/Explorer.js.map +1 -1
  17. package/dist/components/Explorer/ExplorerTitle.d.ts +2 -0
  18. package/dist/components/Explorer/ExplorerTitle.js +28 -11
  19. package/dist/components/Explorer/ExplorerTitle.js.map +1 -1
  20. package/dist/components/Explorer/_queries/useExplorerData.d.ts +11 -5
  21. package/dist/components/Explorer/_queries/useExplorerData.js +95 -22
  22. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  23. package/dist/components/Explorer/_types.d.ts +25 -1
  24. package/dist/components/Explorer/{nullValuesConditions.d.ts → conditionsHelper.d.ts} +1 -0
  25. package/dist/components/Explorer/{nullValuesConditions.js → conditionsHelper.js} +3 -1
  26. package/dist/components/Explorer/conditionsHelper.js.map +1 -0
  27. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.d.ts +2 -2
  28. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +16 -31
  29. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -1
  30. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.d.ts +3 -0
  31. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js +11 -0
  32. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -0
  33. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.d.ts +2 -2
  34. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js +12 -36
  35. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +1 -1
  36. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.d.ts +3 -0
  37. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js +11 -0
  38. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -0
  39. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.d.ts +3 -0
  40. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js +11 -0
  41. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -0
  42. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.d.ts +3 -0
  43. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js +11 -0
  44. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -0
  45. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +1 -1
  46. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +56 -8
  47. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -1
  48. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js.map +1 -1
  49. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.d.ts +2 -2
  50. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js +7 -32
  51. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -1
  52. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.d.ts +2 -2
  53. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js +7 -32
  54. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +1 -1
  55. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +1 -0
  56. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +5 -15
  57. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -1
  58. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +2 -2
  59. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -1
  60. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +5 -0
  61. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -1
  62. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +3 -1
  63. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +16 -6
  64. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
  65. package/dist/components/Explorer/useEditAction.js +3 -3
  66. package/dist/components/Explorer/useEditAction.js.map +1 -1
  67. package/dist/components/Explorer/useRemoveAction.d.ts +12 -0
  68. package/dist/components/Explorer/useRemoveAction.js +90 -0
  69. package/dist/components/Explorer/useRemoveAction.js.map +1 -0
  70. package/dist/components/Explorer/useSearchInput.js +1 -1
  71. package/dist/components/Explorer/useSearchInput.js.map +1 -1
  72. package/dist/components/Explorer/useViewSettingsReducer.d.ts +4 -3
  73. package/dist/components/Explorer/useViewSettingsReducer.js +35 -16
  74. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
  75. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +2 -2
  76. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  77. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.d.ts +3 -1
  78. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js +8 -2
  79. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
  80. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +2 -2
  81. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  82. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js +1 -1
  83. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js.map +1 -1
  84. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +2 -2
  85. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  86. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +5 -1
  87. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
  88. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.d.ts +4 -7
  89. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js +6 -8
  90. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js.map +1 -1
  91. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.d.ts +9 -0
  92. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js +42 -0
  93. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js.map +1 -0
  94. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.d.ts +6 -0
  95. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +35 -0
  96. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -0
  97. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.d.ts +2 -281
  98. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +25 -56
  99. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
  100. package/dist/constants.d.ts +1 -0
  101. package/dist/constants.js +1 -0
  102. package/dist/constants.js.map +1 -1
  103. package/dist/locales/en/shared.json +17 -3
  104. package/dist/locales/fr/shared.json +17 -3
  105. package/package.json +1 -1
  106. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.d.ts +0 -3
  107. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.js +0 -72
  108. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.js.map +0 -1
  109. package/dist/components/Explorer/nullValuesConditions.js.map +0 -1
  110. package/dist/components/Explorer/useDeactivateAction.d.ts +0 -12
  111. package/dist/components/Explorer/useDeactivateAction.js +0 -52
  112. package/dist/components/Explorer/useDeactivateAction.js.map +0 -1
@@ -1,3 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { IFilterDropDownProps } from '../../../_types';
3
- export declare const SimpleFilterDropdown: FunctionComponent<IFilterDropDownProps>;
@@ -1,72 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
- import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
6
- import { KitButton, KitDivider, KitSelect, KitSpace } from 'aristid-ds';
7
- import { FaClock, FaTrash } from 'react-icons/fa';
8
- import { useViewSettingsContext } from '../../store-view-settings/useViewSettingsContext';
9
- import { ViewSettingsActionTypes } from '../../store-view-settings/viewSettingsReducer';
10
- import { FilterValueList } from './FilterValueList';
11
- // TODO : This is an exemple file showing ho to customize dropdown Panel content. Don't mind the content of the file, missing types,... it's just an example.
12
- const conditions = [
13
- {
14
- label: 'Egal à',
15
- value: 'eq'
16
- },
17
- {
18
- label: 'Différent de',
19
- value: 'neq'
20
- },
21
- {
22
- label: 'Commence par',
23
- value: 'start'
24
- },
25
- {
26
- label: 'Contient',
27
- value: 'contains'
28
- },
29
- {
30
- label: 'Ne contient pas',
31
- value: 'not_contains'
32
- },
33
- {
34
- label: 'Est dans la liste',
35
- value: 'in'
36
- },
37
- {
38
- label: "N'est pas dans la liste",
39
- value: 'not_in'
40
- }
41
- ];
42
- const attributeValuesList = ['toto', 'tata', 'Value 3', 'Value 4', 'Value 5'];
43
- export const SimpleFilterDropdown = ({ filter }) => {
44
- const { t } = useSharedTranslation();
45
- const { dispatch } = useViewSettingsContext();
46
- const _updateFilter = (filterData) => {
47
- dispatch({
48
- type: ViewSettingsActionTypes.CHANGE_FILTER_CONFIG,
49
- payload: filterData
50
- });
51
- };
52
- const _onConditionChanged = condition => {
53
- _updateFilter({ ...filter, condition });
54
- };
55
- const _onValueClick = value => {
56
- _updateFilter({ ...filter, value: value.join('-') });
57
- };
58
- const _onResetFilter = () => dispatch({
59
- type: ViewSettingsActionTypes.RESET_FILTER,
60
- payload: {
61
- id: filter.id
62
- }
63
- });
64
- const _onDeleteFilter = () => dispatch({
65
- type: ViewSettingsActionTypes.REMOVE_FILTER,
66
- payload: {
67
- id: filter.id
68
- }
69
- });
70
- return (_jsxs(KitSpace, { size: "xxs", direction: "vertical", children: [_jsx(KitSelect, { options: conditions, onChange: _onConditionChanged, value: filter.condition }), _jsx(FilterValueList, { values: attributeValuesList, multiple: false, freeEntry: false, selectedValues: filter.value === null ? [] : [filter.value], onSelectionChanged: _onValueClick }), _jsx(KitDivider, { noMargin: true }), _jsx(KitButton, { type: "redirect", icon: _jsx(FaClock, {}), onClick: _onResetFilter, children: t('explorer.reset-filter') }), _jsx(KitButton, { type: "redirect", icon: _jsx(FaTrash, {}), onClick: _onDeleteFilter, children: t('global.delete') })] }));
71
- };
72
- //# sourceMappingURL=SimpleFilterDropDown.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SimpleFilterDropDown.js","sourceRoot":"","sources":["../../../../../../src/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAC,MAAM,YAAY,CAAC;AAEtE,OAAO,EAAC,OAAO,EAAE,OAAO,EAAC,MAAM,gBAAgB,CAAC;AAEhD,OAAO,EAAC,sBAAsB,EAAC,MAAM,kDAAkD,CAAC;AACxF,OAAO,EAAC,uBAAuB,EAAC,MAAM,+CAA+C,CAAC;AACtF,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAElD,6JAA6J;AAE7J,MAAM,UAAU,GAAG;IACf;QACI,KAAK,EAAE,QAAQ;QACf,KAAK,EAAE,IAAI;KACd;IACD;QACI,KAAK,EAAE,cAAc;QACrB,KAAK,EAAE,KAAK;KACf;IACD;QACI,KAAK,EAAE,cAAc;QACrB,KAAK,EAAE,OAAO;KACjB;IACD;QACI,KAAK,EAAE,UAAU;QACjB,KAAK,EAAE,UAAU;KACpB;IACD;QACI,KAAK,EAAE,iBAAiB;QACxB,KAAK,EAAE,cAAc;KACxB;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AAC;IAEP,OAAO,CACH,MAAC,QAAQ,IAAC,IAAI,EAAC,KAAK,EAAC,SAAS,EAAC,UAAU,aACrC,KAAC,SAAS,IAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,CAAC,SAAS,GAAI,EAC1F,KAAC,eAAe,IACZ,MAAM,EAAE,mBAAmB,EAC3B,QAAQ,EAAE,KAAK,EACf,SAAS,EAAE,KAAK,EAChB,cAAc,EAAE,MAAM,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAC3D,kBAAkB,EAAE,aAAa,GACnC,EACF,KAAC,UAAU,IAAC,QAAQ,SAAG,EACvB,KAAC,SAAS,IAAC,IAAI,EAAC,UAAU,EAAC,IAAI,EAAE,KAAC,OAAO,KAAG,EAAE,OAAO,EAAE,cAAc,YAChE,CAAC,CAAC,uBAAuB,CAAC,GACnB,EACZ,KAAC,SAAS,IAAC,IAAI,EAAC,UAAU,EAAC,IAAI,EAAE,KAAC,OAAO,KAAG,EAAE,OAAO,EAAE,eAAe,YACjE,CAAC,CAAC,eAAe,CAAC,GACX,IACL,CACd,CAAC;AACN,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"nullValuesConditions.js","sourceRoot":"","sources":["../../../src/components/Explorer/nullValuesConditions.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,wBAAwB,EAAC,MAAM,WAAW,CAAC;AAEnD,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,wBAAwB,CAAC,QAAQ;IACjC,wBAAwB,CAAC,YAAY;IACrC,wBAAwB,CAAC,KAAK;IAC9B,wBAAwB,CAAC,QAAQ;IACjC,wBAAwB,CAAC,SAAS;IAClC,wBAAwB,CAAC,UAAU;IACnC,wBAAwB,CAAC,UAAU;CACtC,CAAC"}
@@ -1,12 +0,0 @@
1
- import { ActionHook, IItemAction } from './_types';
2
- /**
3
- * Hook used to get the action for `<DataView />` component.
4
- *
5
- * When the mutation for deactivation is done, the Apollo cache will be clean (`Record` and `RecordIdentity`)
6
- * from deactivated record.
7
- *
8
- * @param isEnabled - whether the action is present
9
- */
10
- export declare const useDeactivateAction: ({ isEnabled }: ActionHook) => {
11
- deactivateAction: IItemAction;
12
- };
@@ -1,52 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
- import { FaTrash } from 'react-icons/fa';
6
- import { KitModal } from 'aristid-ds';
7
- import { useDeactivateRecordsMutation } from '../../_gqlTypes';
8
- import { useSharedTranslation } from '../../hooks/useSharedTranslation';
9
- import { useMemo } from 'react';
10
- /**
11
- * Hook used to get the action for `<DataView />` component.
12
- *
13
- * When the mutation for deactivation is done, the Apollo cache will be clean (`Record` and `RecordIdentity`)
14
- * from deactivated record.
15
- *
16
- * @param isEnabled - whether the action is present
17
- */
18
- export const useDeactivateAction = ({ isEnabled }) => {
19
- const { t } = useSharedTranslation();
20
- const [deactivateRecordsMutation] = useDeactivateRecordsMutation({
21
- update(cache, deactivatedRecords) {
22
- deactivatedRecords.data?.deactivateRecords.forEach(record => {
23
- cache.evict({
24
- id: cache.identify(record)
25
- });
26
- });
27
- cache.gc();
28
- }
29
- });
30
- const _deactivateAction = useMemo(() => ({
31
- label: t('explorer.deactivate-item'),
32
- icon: _jsx(FaTrash, {}),
33
- isDanger: true,
34
- callback: ({ itemId, libraryId }) => KitModal.confirm({
35
- type: 'confirm',
36
- dangerConfirm: true,
37
- content: t('records_deactivation.confirm_one') ?? undefined,
38
- okText: t('global.submit') ?? undefined,
39
- cancelText: t('global.cancel') ?? undefined,
40
- onOk: () => deactivateRecordsMutation({
41
- variables: {
42
- libraryId,
43
- recordsIds: [itemId]
44
- }
45
- })
46
- })
47
- }), [t, deactivateRecordsMutation]);
48
- return {
49
- deactivateAction: isEnabled ? _deactivateAction : null
50
- };
51
- };
52
- //# sourceMappingURL=useDeactivateAction.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDeactivateAction.js","sourceRoot":"","sources":["../../../src/components/Explorer/useDeactivateAction.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,4BAA4B,EAAC,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AAE9B;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAAC,SAAS,EAAa,EAAE,EAAE;IAC3D,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,CAAC,yBAAyB,CAAC,GAAG,4BAA4B,CAAC;QAC7D,MAAM,CAAC,KAAK,EAAE,kBAAkB;YAC5B,kBAAkB,CAAC,IAAI,EAAE,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;gBACxD,KAAK,CAAC,KAAK,CAAC;oBACR,EAAE,EAAE,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;iBAC7B,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;YACH,KAAK,CAAC,EAAE,EAAE,CAAC;QACf,CAAC;KACJ,CAAC,CAAC;IAEH,MAAM,iBAAiB,GAAgB,OAAO,CAC1C,GAAG,EAAE,CAAC,CAAC;QACH,KAAK,EAAE,CAAC,CAAC,0BAA0B,CAAC;QACpC,IAAI,EAAE,KAAC,OAAO,KAAG;QACjB,QAAQ,EAAE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