@arbor-education/design-system.components 0.12.0 → 0.13.1

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 (177) hide show
  1. package/.agent-memory/blanche-designspert/MEMORY.md +189 -0
  2. package/.agent-memory/dorothy-fact-checker/MEMORY.md +228 -0
  3. package/.agent-memory/dorothy-fact-checker/numberinput_component.md +53 -0
  4. package/.agent-memory/dorothy-fact-checker/progress_component.md +36 -0
  5. package/.agent-memory/rose-storybookspert/MEMORY.md +105 -0
  6. package/.agent-memory/sophia-componentspert/MEMORY.md +34 -0
  7. package/{.claude/agent-memory → .agent-memory}/sophia-componentspert/components.md +170 -17
  8. package/{.claude → .gather}/agents/blanche-designspert.md +7 -2
  9. package/{.claude → .gather}/agents/dorothy-fact-checker.md +7 -2
  10. package/{.claude → .gather}/agents/rose-storybookspert.md +80 -11
  11. package/{.claude → .gather}/agents/sophia-componentspert.md +9 -4
  12. package/.gather/gather.yaml +9 -0
  13. package/{CLAUDE.md → .gather/instructions/project-overview.md} +42 -9
  14. package/{.claude → .gather}/skills/analyze-design/README.md +5 -0
  15. package/{.claude → .gather}/skills/analyze-design/SKILL.md +1 -1
  16. package/.gather/skills/analyze-design/meta.md +4 -0
  17. package/{.claude → .gather}/skills/create-page/README.md +5 -0
  18. package/{.claude → .gather}/skills/create-page/design-analysis-template.md +5 -0
  19. package/.gather/skills/create-page/meta.md +4 -0
  20. package/{.claude → .gather}/skills/create-page/page-template.scss +5 -0
  21. package/{.claude → .gather}/skills/create-page/page-template.tsx +5 -0
  22. package/{.claude → .gather}/skills/map-legacy/README.md +5 -0
  23. package/.gather/skills/map-legacy/meta.md +4 -0
  24. package/{.claude → .gather}/skills/migrate-page/README.md +5 -0
  25. package/.gather/skills/migrate-page/meta.md +4 -0
  26. package/.gather/skills/write-stories/README.md +157 -0
  27. package/.gather/skills/write-stories/SKILL.md +841 -0
  28. package/.gather/skills/write-stories/meta.md +4 -0
  29. package/.ralph/storybook-upgrade/knowledge.md +308 -0
  30. package/.ralph/storybook-upgrade/prd.json +777 -0
  31. package/.ralph/storybook-upgrade/progress.md +342 -0
  32. package/.storybook/DocsTemplate.tsx +122 -0
  33. package/.storybook/preview.ts +40 -0
  34. package/.stylelintignore +2 -0
  35. package/CHANGELOG.md +12 -0
  36. package/{.claude/component-library.md → component-library.md} +27 -10
  37. package/dist/components/badge/Badge.stories.d.ts +85 -6
  38. package/dist/components/badge/Badge.stories.d.ts.map +1 -1
  39. package/dist/components/badge/Badge.stories.js +626 -27
  40. package/dist/components/badge/Badge.stories.js.map +1 -1
  41. package/dist/components/banner/Banner.stories.d.ts +129 -63
  42. package/dist/components/banner/Banner.stories.d.ts.map +1 -1
  43. package/dist/components/banner/Banner.stories.js +855 -39
  44. package/dist/components/banner/Banner.stories.js.map +1 -1
  45. package/dist/components/button/Button.stories.d.ts +148 -8
  46. package/dist/components/button/Button.stories.d.ts.map +1 -1
  47. package/dist/components/button/Button.stories.js +1089 -80
  48. package/dist/components/button/Button.stories.js.map +1 -1
  49. package/dist/components/datePicker/DatePicker.d.ts +1 -0
  50. package/dist/components/datePicker/DatePicker.d.ts.map +1 -1
  51. package/dist/components/datePicker/DatePicker.js +2 -2
  52. package/dist/components/datePicker/DatePicker.js.map +1 -1
  53. package/dist/components/datePicker/DatePicker.stories.d.ts +1 -0
  54. package/dist/components/datePicker/DatePicker.stories.d.ts.map +1 -1
  55. package/dist/components/dot/Dot.stories.d.ts +46 -11
  56. package/dist/components/dot/Dot.stories.d.ts.map +1 -1
  57. package/dist/components/dot/Dot.stories.js +504 -15
  58. package/dist/components/dot/Dot.stories.js.map +1 -1
  59. package/dist/components/dropdown/Dropdown.stories.d.ts +89 -14
  60. package/dist/components/dropdown/Dropdown.stories.d.ts.map +1 -1
  61. package/dist/components/dropdown/Dropdown.stories.js +769 -17
  62. package/dist/components/dropdown/Dropdown.stories.js.map +1 -1
  63. package/dist/components/formField/FormField.stories.d.ts +95 -35
  64. package/dist/components/formField/FormField.stories.d.ts.map +1 -1
  65. package/dist/components/formField/FormField.stories.js +1174 -69
  66. package/dist/components/formField/FormField.stories.js.map +1 -1
  67. package/dist/components/formField/inputs/checkbox/CheckboxInput.stories.d.ts +96 -9
  68. package/dist/components/formField/inputs/checkbox/CheckboxInput.stories.d.ts.map +1 -1
  69. package/dist/components/formField/inputs/checkbox/CheckboxInput.stories.js +717 -10
  70. package/dist/components/formField/inputs/checkbox/CheckboxInput.stories.js.map +1 -1
  71. package/dist/components/formField/inputs/number/NumberInput.stories.d.ts +149 -11
  72. package/dist/components/formField/inputs/number/NumberInput.stories.d.ts.map +1 -1
  73. package/dist/components/formField/inputs/number/NumberInput.stories.js +624 -10
  74. package/dist/components/formField/inputs/number/NumberInput.stories.js.map +1 -1
  75. package/dist/components/formField/inputs/radio/RadioButtonInput.stories.d.ts +74 -1
  76. package/dist/components/formField/inputs/radio/RadioButtonInput.stories.d.ts.map +1 -1
  77. package/dist/components/formField/inputs/radio/RadioButtonInput.stories.js +673 -44
  78. package/dist/components/formField/inputs/radio/RadioButtonInput.stories.js.map +1 -1
  79. package/dist/components/formField/inputs/text/TextInput.stories.d.ts +119 -1
  80. package/dist/components/formField/inputs/text/TextInput.stories.d.ts.map +1 -1
  81. package/dist/components/formField/inputs/text/TextInput.stories.js +549 -10
  82. package/dist/components/formField/inputs/text/TextInput.stories.js.map +1 -1
  83. package/dist/components/formField/inputs/textArea/TextArea.stories.d.ts +129 -4
  84. package/dist/components/formField/inputs/textArea/TextArea.stories.d.ts.map +1 -1
  85. package/dist/components/formField/inputs/textArea/TextArea.stories.js +577 -3
  86. package/dist/components/formField/inputs/textArea/TextArea.stories.js.map +1 -1
  87. package/dist/components/heading/Heading.stories.d.ts +449 -50
  88. package/dist/components/heading/Heading.stories.d.ts.map +1 -1
  89. package/dist/components/heading/Heading.stories.js +536 -60
  90. package/dist/components/heading/Heading.stories.js.map +1 -1
  91. package/dist/components/icon/Icon.stories.d.ts +81 -10
  92. package/dist/components/icon/Icon.stories.d.ts.map +1 -1
  93. package/dist/components/icon/Icon.stories.js +979 -8
  94. package/dist/components/icon/Icon.stories.js.map +1 -1
  95. package/dist/components/pill/Pill.stories.d.ts +71 -19
  96. package/dist/components/pill/Pill.stories.d.ts.map +1 -1
  97. package/dist/components/pill/Pill.stories.js +573 -14
  98. package/dist/components/pill/Pill.stories.js.map +1 -1
  99. package/dist/components/progress/Progress.stories.d.ts +75 -298
  100. package/dist/components/progress/Progress.stories.d.ts.map +1 -1
  101. package/dist/components/progress/Progress.stories.js +449 -52
  102. package/dist/components/progress/Progress.stories.js.map +1 -1
  103. package/dist/components/separator/Separator.stories.d.ts +58 -5
  104. package/dist/components/separator/Separator.stories.d.ts.map +1 -1
  105. package/dist/components/separator/Separator.stories.js +443 -4
  106. package/dist/components/separator/Separator.stories.js.map +1 -1
  107. package/dist/components/table/Table.d.ts +7 -0
  108. package/dist/components/table/Table.d.ts.map +1 -1
  109. package/dist/components/table/Table.js +9 -0
  110. package/dist/components/table/Table.js.map +1 -1
  111. package/dist/components/table/Table.stories.d.ts +1 -0
  112. package/dist/components/table/Table.stories.d.ts.map +1 -1
  113. package/dist/components/table/Table.stories.js +87 -0
  114. package/dist/components/table/Table.stories.js.map +1 -1
  115. package/dist/components/table/Table.test.js +49 -1
  116. package/dist/components/table/Table.test.js.map +1 -1
  117. package/dist/components/table/cellEditors/DateCellEditor.d.ts +3 -0
  118. package/dist/components/table/cellEditors/DateCellEditor.d.ts.map +1 -0
  119. package/dist/components/table/cellEditors/DateCellEditor.js +13 -0
  120. package/dist/components/table/cellEditors/DateCellEditor.js.map +1 -0
  121. package/dist/components/table/cellEditors/DateCellEditor.test.d.ts +2 -0
  122. package/dist/components/table/cellEditors/DateCellEditor.test.d.ts.map +1 -0
  123. package/dist/components/table/cellEditors/DateCellEditor.test.js +81 -0
  124. package/dist/components/table/cellEditors/DateCellEditor.test.js.map +1 -0
  125. package/dist/components/tag/Tag.stories.d.ts +116 -5
  126. package/dist/components/tag/Tag.stories.d.ts.map +1 -1
  127. package/dist/components/tag/Tag.stories.js +581 -28
  128. package/dist/components/tag/Tag.stories.js.map +1 -1
  129. package/dist/index.css +8 -1
  130. package/dist/index.css.map +1 -1
  131. package/dist/index.d.ts +0 -5
  132. package/dist/index.d.ts.map +1 -1
  133. package/dist/index.js +0 -5
  134. package/dist/index.js.map +1 -1
  135. package/eslint.config.mts +5 -1
  136. package/package.json +3 -3
  137. package/src/components/badge/Badge.stories.tsx +869 -42
  138. package/src/components/banner/Banner.stories.tsx +1081 -63
  139. package/src/components/button/Button.stories.tsx +1394 -99
  140. package/src/components/datePicker/DatePicker.tsx +3 -0
  141. package/src/components/dot/Dot.stories.tsx +723 -32
  142. package/src/components/dropdown/Dropdown.stories.tsx +1174 -35
  143. package/src/components/formField/FormField.stories.tsx +1522 -105
  144. package/src/components/formField/inputs/checkbox/CheckboxInput.stories.tsx +1020 -15
  145. package/src/components/formField/inputs/number/NumberInput.stories.tsx +908 -15
  146. package/src/components/formField/inputs/radio/RadioButtonInput.stories.tsx +932 -51
  147. package/src/components/formField/inputs/text/TextInput.stories.tsx +773 -13
  148. package/src/components/formField/inputs/textArea/TextArea.stories.tsx +756 -8
  149. package/src/components/heading/Heading.stories.tsx +752 -120
  150. package/src/components/icon/Icon.stories.tsx +1446 -12
  151. package/src/components/pill/Pill.stories.tsx +867 -21
  152. package/src/components/progress/Progress.stories.tsx +625 -58
  153. package/src/components/separator/Separator.stories.tsx +730 -8
  154. package/src/components/separator/separator.scss +12 -3
  155. package/src/components/table/Table.stories.tsx +102 -0
  156. package/src/components/table/Table.test.tsx +82 -3
  157. package/src/components/table/Table.tsx +9 -0
  158. package/src/components/table/cellEditors/DateCellEditor.test.tsx +109 -0
  159. package/src/components/table/cellEditors/DateCellEditor.tsx +27 -0
  160. package/src/components/tag/Tag.stories.tsx +755 -53
  161. package/src/index.ts +0 -5
  162. package/.claude/agent-memory/blanche-designspert/MEMORY.md +0 -64
  163. package/.claude/agent-memory/dorothy-fact-checker/MEMORY.md +0 -129
  164. package/.claude/agent-memory/rose-storybookspert/MEMORY.md +0 -29
  165. package/.claude/agent-memory/sophia-componentspert/MEMORY.md +0 -14
  166. package/.claude/design-assessment-daily-attendance-2026-04-10.md +0 -566
  167. package/.claude/figma-assessment-7154-58899.md +0 -404
  168. package/.claude/figma-assessment-UKQfcxnT4rlHHNuiumt4o1-11086-97537.md +0 -392
  169. package/.claude/figma-assessment-UKQfcxnT4rlHHNuiumt4o1-551-41974.md +0 -474
  170. package/.claude/figma-assessment-UKQfcxnT4rlHHNuiumt4o1-551-43094.md +0 -462
  171. package/.claude/figma-assessment-fcFK4CGzkz2fVyY3koX8ZE-7154-59061.md +0 -440
  172. package/.claude/migration-report-custom-report-writer-2026-02-19.md +0 -591
  173. /package/{.claude/agent-memory → .agent-memory}/blanche-designspert/token-review-patterns.md +0 -0
  174. /package/{.claude/agent-memory → .agent-memory}/rose-storybookspert/patterns.md +0 -0
  175. /package/{.claude → .gather}/skills/create-page/SKILL.md +0 -0
  176. /package/{.claude → .gather}/skills/map-legacy/SKILL.md +0 -0
  177. /package/{.claude → .gather}/skills/migrate-page/SKILL.md +0 -0
@@ -0,0 +1,81 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { describe, expect, test, vi } from 'vitest';
3
+ import { render, screen, within, fireEvent } from '@testing-library/react';
4
+ import userEvent from '@testing-library/user-event';
5
+ import '@testing-library/jest-dom/vitest';
6
+ import { DateCellEditor } from './DateCellEditor';
7
+ const createMockProps = (overrides = {}) => ({
8
+ value: undefined,
9
+ initialValue: undefined,
10
+ onValueChange: vi.fn(),
11
+ colDef: { cellEditorParams: {} },
12
+ ...overrides,
13
+ });
14
+ const getDateField = (container) => container.querySelector('input[type="date"]');
15
+ describe('DateCellEditor', () => {
16
+ test('renders a date picker', () => {
17
+ const { container } = render(_jsx(DateCellEditor, { ...createMockProps() }));
18
+ expect(getDateField(container)).toBeInTheDocument();
19
+ expect(screen.getByRole('button', { name: 'Open date picker' })).toBeInTheDocument();
20
+ });
21
+ test('displays the provided value', () => {
22
+ const { container } = render(_jsx(DateCellEditor, { ...createMockProps({ value: new Date(2024, 5, 15) }) }));
23
+ expect(getDateField(container)).toHaveValue('2024-06-15');
24
+ });
25
+ test('displays empty when value is undefined', () => {
26
+ const { container } = render(_jsx(DateCellEditor, { ...createMockProps({ value: undefined }) }));
27
+ expect(getDateField(container)).toHaveValue('');
28
+ });
29
+ test('displays empty when value is null', () => {
30
+ const { container } = render(_jsx(DateCellEditor, { ...createMockProps({ value: null }) }));
31
+ expect(getDateField(container)).toHaveValue('');
32
+ });
33
+ test('calls onValueChange when a date is typed', () => {
34
+ const onValueChange = vi.fn();
35
+ const { container } = render(_jsx(DateCellEditor, { ...createMockProps({ onValueChange }) }));
36
+ onValueChange.mockClear();
37
+ fireEvent.change(getDateField(container), { target: { value: '2024-06-15' } });
38
+ expect(onValueChange).toHaveBeenCalledWith(expect.any(Date));
39
+ const lastDate = onValueChange.mock.lastCall[0];
40
+ expect(lastDate.getFullYear()).toBe(2024);
41
+ expect(lastDate.getMonth()).toBe(5);
42
+ expect(lastDate.getDate()).toBe(15);
43
+ });
44
+ test('calls onValueChange when a date is picked from the calendar', async () => {
45
+ const onValueChange = vi.fn();
46
+ const { container } = render(_jsx(DateCellEditor, { ...createMockProps({ onValueChange }) }));
47
+ // Navigate to a known month via text input first
48
+ fireEvent.change(getDateField(container), { target: { value: '2024-06-01' } });
49
+ onValueChange.mockClear();
50
+ await userEvent.click(screen.getByRole('button', { name: 'Open date picker' }));
51
+ await userEvent.click(within(screen.getByRole('application')).getByRole('button', { name: /June 20/ }));
52
+ expect(onValueChange).toHaveBeenCalledWith(expect.any(Date));
53
+ const lastDate = onValueChange.mock.lastCall[0];
54
+ expect(lastDate.getFullYear()).toBe(2024);
55
+ expect(lastDate.getMonth()).toBe(5);
56
+ expect(lastDate.getDate()).toBe(20);
57
+ });
58
+ test('calls onValueChange with undefined when the date is cleared', () => {
59
+ const onValueChange = vi.fn();
60
+ const { container } = render(_jsx(DateCellEditor, { ...createMockProps({ value: new Date(2024, 5, 15), onValueChange }) }));
61
+ onValueChange.mockClear();
62
+ fireEvent.change(getDateField(container), { target: { value: '' } });
63
+ expect(onValueChange).toHaveBeenCalledWith(undefined);
64
+ });
65
+ test('autofocuses the date input on mount', () => {
66
+ const { container } = render(_jsx(DateCellEditor, { ...createMockProps() }));
67
+ expect(getDateField(container)).toHaveFocus();
68
+ });
69
+ test('autofocuses the date input even when a value is already set', () => {
70
+ const { container } = render(_jsx(DateCellEditor, { ...createMockProps({ value: new Date(2024, 5, 15) }) }));
71
+ expect(getDateField(container)).toHaveFocus();
72
+ });
73
+ test('passes cellEditorParams through to DatePicker', () => {
74
+ render(_jsx(DateCellEditor, { ...createMockProps({
75
+ value: undefined,
76
+ colDef: { cellEditorParams: { placeholder: 'Pick a birthday' } },
77
+ }) }));
78
+ expect(screen.getByText('Pick a birthday')).toBeInTheDocument();
79
+ });
80
+ });
81
+ //# sourceMappingURL=DateCellEditor.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DateCellEditor.test.js","sourceRoot":"","sources":["../../../../src/components/table/cellEditors/DateCellEditor.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,SAAS,MAAM,6BAA6B,CAAC;AACpD,OAAO,kCAAkC,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,MAAM,eAAe,GAAG,CAAC,YAA4C,EAAE,EAAyB,EAAE,CAAC,CAAC;IAClG,KAAK,EAAE,SAAS;IAChB,YAAY,EAAE,SAAS;IACvB,aAAa,EAAE,EAAE,CAAC,EAAE,EAAE;IACtB,MAAM,EAAE,EAA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,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,15 +1,126 @@
1
- import type { Meta, StoryObj } from '@storybook/react-vite';
2
- import { Tag } from './Tag';
3
- declare const meta: Meta<typeof Tag>;
1
+ import type { StoryObj } from '@storybook/react-vite';
2
+ import { Tag, type TagColor } from './Tag';
3
+ declare function TagDocsPage(): import("react/jsx-runtime").JSX.Element;
4
+ declare const meta: {
5
+ title: string;
6
+ component: ({ children, color, selected, slotStart, slotEnd, onRemove, removeLabel, removeButtonTabIndex, }: import("./Tag").TagProps) => React.JSX.Element;
7
+ tags: string[];
8
+ parameters: {
9
+ docs: {
10
+ page: typeof TagDocsPage;
11
+ };
12
+ };
13
+ argTypes: {
14
+ children: {
15
+ control: "text";
16
+ description: string;
17
+ table: {
18
+ type: {
19
+ summary: string;
20
+ };
21
+ };
22
+ };
23
+ color: {
24
+ control: "select";
25
+ options: TagColor[];
26
+ description: string;
27
+ table: {
28
+ type: {
29
+ summary: string;
30
+ };
31
+ defaultValue: {
32
+ summary: string;
33
+ };
34
+ };
35
+ };
36
+ selected: {
37
+ control: "boolean";
38
+ description: string;
39
+ table: {
40
+ type: {
41
+ summary: string;
42
+ };
43
+ defaultValue: {
44
+ summary: string;
45
+ };
46
+ };
47
+ };
48
+ slotStart: {
49
+ control: false;
50
+ description: string;
51
+ table: {
52
+ type: {
53
+ summary: string;
54
+ };
55
+ defaultValue: {
56
+ summary: string;
57
+ };
58
+ };
59
+ };
60
+ slotEnd: {
61
+ control: false;
62
+ description: string;
63
+ table: {
64
+ type: {
65
+ summary: string;
66
+ };
67
+ defaultValue: {
68
+ summary: string;
69
+ };
70
+ };
71
+ };
72
+ onRemove: {
73
+ control: false;
74
+ description: string;
75
+ table: {
76
+ type: {
77
+ summary: string;
78
+ };
79
+ defaultValue: {
80
+ summary: string;
81
+ };
82
+ };
83
+ };
84
+ removeLabel: {
85
+ control: "text";
86
+ description: string;
87
+ table: {
88
+ type: {
89
+ summary: string;
90
+ };
91
+ defaultValue: {
92
+ summary: string;
93
+ };
94
+ };
95
+ };
96
+ removeButtonTabIndex: {
97
+ control: "select";
98
+ options: number[];
99
+ description: string;
100
+ table: {
101
+ type: {
102
+ summary: string;
103
+ };
104
+ defaultValue: {
105
+ summary: string;
106
+ };
107
+ };
108
+ };
109
+ };
110
+ };
4
111
  export default meta;
5
112
  type Story = StoryObj<typeof Tag>;
6
113
  export declare const Default: Story;
7
114
  export declare const WithColour: Story;
115
+ export declare const AllColours: Story;
8
116
  export declare const Selected: Story;
9
117
  export declare const WithDot: Story;
10
118
  export declare const WithIcon: Story;
119
+ export declare const WithSlotEnd: Story;
120
+ export declare const WithBothSlots: Story;
11
121
  export declare const Removable: Story;
12
122
  export declare const RemovableWithIcon: Story;
13
- export declare const WithSlotEnd: Story;
14
- export declare const AllColours: Story;
123
+ export declare const RemovableInteractive: Story;
124
+ export declare const LongLabelTruncation: Story;
125
+ export declare const ContentGuidelines: Story;
15
126
  //# sourceMappingURL=Tag.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.stories.d.ts","sourceRoot":"","sources":["../../../src/components/tag/Tag.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAI5D,OAAO,EAAE,GAAG,EAAiB,MAAM,OAAO,CAAC;AAE3C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,GAAG,CAY1B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,GAAG,CAAC,CAAC;AAelC,eAAO,MAAM,OAAO,EAAE,KAEsC,CAAC;AAE7D,eAAO,MAAM,UAAU,EAAE,KAEoC,CAAC;AAE9D,eAAO,MAAM,QAAQ,EAAE,KAE4F,CAAC;AAEpH,eAAO,MAAM,OAAO,EAAE,KAK6C,CAAC;AAEpE,eAAO,MAAM,QAAQ,EAAE,KAKqC,CAAC;AAE7D,eAAO,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