@restio/ui 0.0.6-SNAPSHOT → 0.0.7-SNAPSHOT
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.
- package/dist/assets/svg/calendar.svg +1 -0
- package/dist/components/input/date/date-calendar.d.ts +4 -0
- package/dist/components/input/date/date-calendar.d.ts.map +1 -0
- package/dist/components/input/date/date-input-field.d.ts +9 -0
- package/dist/components/input/date/date-input-field.d.ts.map +1 -0
- package/dist/components/input/date/date-picker.d.ts +8 -0
- package/dist/components/input/date/date-picker.d.ts.map +1 -0
- package/dist/components/input/date/date-range-input-field.d.ts +9 -0
- package/dist/components/input/date/date-range-input-field.d.ts.map +1 -0
- package/dist/components/input/date/date-range-picker.d.ts +9 -0
- package/dist/components/input/date/date-range-picker.d.ts.map +1 -0
- package/dist/components/input/date/date-shortcuts.d.ts +4 -0
- package/dist/components/input/date/date-shortcuts.d.ts.map +1 -0
- package/dist/components/input/date/date-types.d.ts +53 -0
- package/dist/components/input/date/date-types.d.ts.map +1 -0
- package/dist/components/input/date/date-utils.d.ts +51 -0
- package/dist/components/input/date/date-utils.d.ts.map +1 -0
- package/dist/data-components/cell/cell-switch.d.ts.map +1 -1
- package/dist/data-components/chart/chart-types.d.ts +24 -5
- package/dist/data-components/chart/chart-types.d.ts.map +1 -1
- package/dist/data-components/chart/chart.d.ts +1 -1
- package/dist/data-components/chart/chart.d.ts.map +1 -1
- package/dist/data-components/chart/sankey/sankeyChart.d.ts +36 -0
- package/dist/data-components/chart/sankey/sankeyChart.d.ts.map +1 -0
- package/dist/data-components/data-structure/stories-assets.d.ts +19 -0
- package/dist/data-components/data-structure/stories-assets.d.ts.map +1 -1
- package/dist/data-components/table-grid/header/table-grid-header.d.ts.map +1 -1
- package/dist/data-components/table-grid/row/table-grid-row-utils.d.ts +6 -0
- package/dist/data-components/table-grid/row/table-grid-row-utils.d.ts.map +1 -1
- package/dist/data-components/table-grid/table-grid-types.d.ts +2 -0
- package/dist/data-components/table-grid/table-grid-types.d.ts.map +1 -1
- package/dist/data-components/table-grid/table-utils.d.ts.map +1 -1
- package/dist/hooks/useTour/useTour-context-internal.d.ts +7 -0
- package/dist/hooks/useTour/useTour-context-internal.d.ts.map +1 -0
- package/dist/hooks/useTour/useTour-context.d.ts +10 -0
- package/dist/hooks/useTour/useTour-context.d.ts.map +1 -0
- package/dist/hooks/useTour/useTour-types.d.ts +192 -0
- package/dist/hooks/useTour/useTour-types.d.ts.map +1 -0
- package/dist/hooks/useTour/useTour.d.ts +2 -13
- package/dist/hooks/useTour/useTour.d.ts.map +1 -1
- package/dist/index.d.ts +8 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/restio-ui.cjs.js +60 -75
- package/dist/restio-ui.es.js +34177 -30344
- package/dist/types/global-types.d.ts +2 -0
- package/dist/types/global-types.d.ts.map +1 -1
- package/dist/ui.css +2 -1
- package/dist/utility-components/icon/icon-assets.d.ts.map +1 -1
- package/package.json +31 -31
- package/dist/components/datepicker/datepicker-types.d.ts +0 -7
- package/dist/components/datepicker/datepicker-types.d.ts.map +0 -1
- package/dist/components/datepicker/datepicker.d.ts +0 -4
- package/dist/components/datepicker/datepicker.d.ts.map +0 -1
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { ReactNode, MutableRefObject } from 'react';
|
|
2
|
+
export type TourPlacement = "top" | "bottom" | "left" | "right" | "auto";
|
|
3
|
+
/**
|
|
4
|
+
* Defines what interaction on the highlighted element automatically advances
|
|
5
|
+
* the tour to the next step.
|
|
6
|
+
*
|
|
7
|
+
* - `'manual'` — default, only the Next button advances the tour.
|
|
8
|
+
* - `'click'` — clicking anywhere on the highlighted element calls `next()`.
|
|
9
|
+
* - `'change'` — a `change` or `input` event on the element calls `next()`
|
|
10
|
+
* (useful for text inputs, checkboxes, selects).
|
|
11
|
+
* - `function` — full control: receives the element and an `advance` callback;
|
|
12
|
+
* attach any listener(s) and return a cleanup function.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* // Advance on click
|
|
16
|
+
* { trigger: 'click' }
|
|
17
|
+
*
|
|
18
|
+
* // Advance when a form field has a non-empty value
|
|
19
|
+
* { trigger: (el, advance) => {
|
|
20
|
+
* const handler = () => { if ((el as HTMLInputElement).value) advance(); };
|
|
21
|
+
* el.addEventListener('input', handler);
|
|
22
|
+
* return () => el.removeEventListener('input', handler);
|
|
23
|
+
* }
|
|
24
|
+
* }
|
|
25
|
+
*/
|
|
26
|
+
export type TourStepTrigger = "manual" | "click" | "change" | ((el: HTMLElement, advance: () => void) => () => void);
|
|
27
|
+
export interface TourStep {
|
|
28
|
+
/** Unique identifier for the step. Used for analytics and persistence tracking. */
|
|
29
|
+
id: string;
|
|
30
|
+
/** CSS selector for the element to highlight. */
|
|
31
|
+
selector: string;
|
|
32
|
+
/** Optional title rendered at the top of the tooltip. */
|
|
33
|
+
title?: string;
|
|
34
|
+
/** Main content — accepts any React node (string, JSX, components). */
|
|
35
|
+
content: ReactNode;
|
|
36
|
+
/** Tooltip placement relative to the highlighted element. Defaults to `'auto'`. */
|
|
37
|
+
placement?: TourPlacement;
|
|
38
|
+
/** When `false`, the Skip button is hidden for this step. Defaults to `true`. */
|
|
39
|
+
skipable?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Interaction that automatically advances the tour without pressing Next.
|
|
42
|
+
* Defaults to `'manual'` (only the Next button advances).
|
|
43
|
+
* See `TourStepTrigger` for all options.
|
|
44
|
+
*/
|
|
45
|
+
trigger?: TourStepTrigger;
|
|
46
|
+
/**
|
|
47
|
+
* Async hook executed before the step is shown.
|
|
48
|
+
* While awaiting, the tooltip renders in a loading state.
|
|
49
|
+
*/
|
|
50
|
+
beforeShow?: () => Promise<void>;
|
|
51
|
+
/** Callback executed after the step is left (next, prev, or skip). */
|
|
52
|
+
afterLeave?: () => void;
|
|
53
|
+
}
|
|
54
|
+
export interface TourProgress {
|
|
55
|
+
/** Index of the step that was active when progress was last saved. */
|
|
56
|
+
currentStepIndex: number;
|
|
57
|
+
/** IDs of steps that were explicitly completed (Next pressed). */
|
|
58
|
+
completedSteps: string[];
|
|
59
|
+
/** IDs of steps that were skipped. */
|
|
60
|
+
skippedSteps: string[];
|
|
61
|
+
/** Whether the tour has been fully completed. */
|
|
62
|
+
completed: boolean;
|
|
63
|
+
/** Unix timestamp (ms) recorded when the tour was started. */
|
|
64
|
+
startedAt: number;
|
|
65
|
+
}
|
|
66
|
+
export interface TourPersistenceAdapter {
|
|
67
|
+
/** Retrieve persisted progress for a tour. Return `null` if none exists. May be async. */
|
|
68
|
+
getProgress(tourId: string): TourProgress | null | Promise<TourProgress | null>;
|
|
69
|
+
/** Persist the current progress state. */
|
|
70
|
+
saveProgress(tourId: string, progress: TourProgress): void | Promise<void>;
|
|
71
|
+
/** Remove all persisted data for the tour (used by reset). */
|
|
72
|
+
clearProgress(tourId: string): void | Promise<void>;
|
|
73
|
+
}
|
|
74
|
+
export interface TourStepEvent {
|
|
75
|
+
tourId: string;
|
|
76
|
+
/** Step `id` field. */
|
|
77
|
+
stepId: string;
|
|
78
|
+
/** Zero-based step index. */
|
|
79
|
+
stepIndex: number;
|
|
80
|
+
/** Milliseconds spent on this step before the event was fired. */
|
|
81
|
+
timeSpentMs: number;
|
|
82
|
+
}
|
|
83
|
+
export interface TourEvent {
|
|
84
|
+
tourId: string;
|
|
85
|
+
totalSteps: number;
|
|
86
|
+
completedSteps: string[];
|
|
87
|
+
skippedSteps: string[];
|
|
88
|
+
}
|
|
89
|
+
export interface TourDropEvent extends TourEvent {
|
|
90
|
+
/** Step `id` where the user exited the tour. */
|
|
91
|
+
dropStepId: string;
|
|
92
|
+
/** Zero-based index of the drop step. */
|
|
93
|
+
dropStepIndex: number;
|
|
94
|
+
}
|
|
95
|
+
export interface TourAnalyticsAdapter {
|
|
96
|
+
/** Called when the tour is started (or resumed). */
|
|
97
|
+
onTourStart?(event: TourEvent): void;
|
|
98
|
+
/** Called when all steps are completed. */
|
|
99
|
+
onTourComplete?(event: TourEvent): void;
|
|
100
|
+
/**
|
|
101
|
+
* Called when the tour is abandoned (stop/close before completion).
|
|
102
|
+
* Not fired when the tour completes normally.
|
|
103
|
+
*/
|
|
104
|
+
onTourDrop?(event: TourDropEvent): void;
|
|
105
|
+
/** Called when a step becomes visible. */
|
|
106
|
+
onStepStart?(event: TourStepEvent): void;
|
|
107
|
+
/** Called when the user presses Next on a step. */
|
|
108
|
+
onStepComplete?(event: TourStepEvent): void;
|
|
109
|
+
/** Called when the user presses Skip on a step. */
|
|
110
|
+
onStepSkip?(event: TourStepEvent): void;
|
|
111
|
+
}
|
|
112
|
+
export interface TourOptions {
|
|
113
|
+
/** Unique identifier for this tour. Used as the key for persistence and analytics. */
|
|
114
|
+
tourId: string;
|
|
115
|
+
/** Ordered list of tour steps. */
|
|
116
|
+
steps: TourStep[];
|
|
117
|
+
/** Plug-in persistence adapter. When omitted, no progress is persisted. */
|
|
118
|
+
persistence?: TourPersistenceAdapter;
|
|
119
|
+
/** Plug-in analytics adapter. When omitted, no events are emitted. */
|
|
120
|
+
analytics?: TourAnalyticsAdapter;
|
|
121
|
+
/**
|
|
122
|
+
* Automatically scroll the highlighted element into view when a step activates.
|
|
123
|
+
* Defaults to `true`.
|
|
124
|
+
*/
|
|
125
|
+
autoScroll?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* Options forwarded to `Element.scrollIntoView()` when `autoScroll` is enabled.
|
|
128
|
+
* Defaults to `{ behavior: 'smooth', block: 'center' }`.
|
|
129
|
+
*/
|
|
130
|
+
autoScrollOptions?: ScrollIntoViewOptions;
|
|
131
|
+
/** Called once when the tour completes all steps. */
|
|
132
|
+
onComplete?: () => void;
|
|
133
|
+
/** Called once when the tour is started via `start()` (not resume). */
|
|
134
|
+
onStart?: () => void;
|
|
135
|
+
}
|
|
136
|
+
export interface TourInstance {
|
|
137
|
+
/** Start the tour from the first step. Initialises fresh progress. */
|
|
138
|
+
start(): void;
|
|
139
|
+
/**
|
|
140
|
+
* Resume from persisted progress. Falls back to `start()` when no saved
|
|
141
|
+
* progress exists or the tour was already completed.
|
|
142
|
+
*/
|
|
143
|
+
resume(): void;
|
|
144
|
+
/** Stop/close the tour. Fires `onTourDrop` analytics if not yet completed. */
|
|
145
|
+
stop(): void;
|
|
146
|
+
/** Advance to the next step. Fires `onStepComplete` analytics. */
|
|
147
|
+
next(): void;
|
|
148
|
+
/** Go back to the previous step. */
|
|
149
|
+
prev(): void;
|
|
150
|
+
/**
|
|
151
|
+
* Skip the current step. Fires `onStepSkip` analytics.
|
|
152
|
+
* Only available when `step.skipable !== false`.
|
|
153
|
+
*/
|
|
154
|
+
skip(): void;
|
|
155
|
+
/** Reset all progress (clears persistence) and return to idle state. */
|
|
156
|
+
reset(): void;
|
|
157
|
+
/** Equivalent to `reset()` followed by `start()`. */
|
|
158
|
+
replay(): void;
|
|
159
|
+
/** Zero-based index of the active step, or `null` when the tour is inactive. */
|
|
160
|
+
activeStep: number | null;
|
|
161
|
+
/** `true` while a step's `beforeShow` async hook is awaiting. */
|
|
162
|
+
isLoading: boolean;
|
|
163
|
+
/** `true` after the final step has been completed. */
|
|
164
|
+
isComplete: boolean;
|
|
165
|
+
/** Current progress snapshot, or `null` before the tour has been started. */
|
|
166
|
+
progress: TourProgress | null;
|
|
167
|
+
/** Renders the tour overlay (backdrop + spotlight + tooltip). Returns `null` when inactive. */
|
|
168
|
+
render(): ReactNode;
|
|
169
|
+
}
|
|
170
|
+
export interface ManagedTourInfo {
|
|
171
|
+
tourId: string;
|
|
172
|
+
isActive: boolean;
|
|
173
|
+
}
|
|
174
|
+
export interface TourManagerInstance {
|
|
175
|
+
/** Map of all registered tours (keyed by `tourId`). */
|
|
176
|
+
tours: Record<string, ManagedTourInfo>;
|
|
177
|
+
/** The `tourId` of the currently active tour, or `null`. */
|
|
178
|
+
activeTourId: string | null;
|
|
179
|
+
/** Start the specified tour (stops the currently active tour first). */
|
|
180
|
+
startTour(tourId: string): void;
|
|
181
|
+
/** Stop the currently active tour. No-op when no tour is active. */
|
|
182
|
+
stopActiveTour(): void;
|
|
183
|
+
}
|
|
184
|
+
export interface TourContextValue {
|
|
185
|
+
activeTourId: string | null;
|
|
186
|
+
setActiveTourId(tourId: string | null): void;
|
|
187
|
+
instancesRef: MutableRefObject<Record<string, TourInstance>>;
|
|
188
|
+
registeredTourIds: string[];
|
|
189
|
+
registerTour(tourId: string, instance: TourInstance): void;
|
|
190
|
+
unregisterTour(tourId: string): void;
|
|
191
|
+
}
|
|
192
|
+
//# sourceMappingURL=useTour-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTour-types.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTour/useTour-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAIzD,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAIzE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,MAAM,eAAe,GACvB,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,CAAC,CAAC,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC,CAAC;AAI3D,MAAM,WAAW,QAAQ;IACvB,mFAAmF;IACnF,EAAE,EAAE,MAAM,CAAC;IACX,iDAAiD;IACjD,QAAQ,EAAE,MAAM,CAAC;IACjB,yDAAyD;IACzD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,OAAO,EAAE,SAAS,CAAC;IACnB,mFAAmF;IACnF,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,iFAAiF;IACjF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC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
next: () => void;
|
|
9
|
-
prev: () => void;
|
|
10
|
-
activeStep: number | null;
|
|
11
|
-
render: () => import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
-
};
|
|
13
|
-
export {};
|
|
1
|
+
import { TourOptions, TourInstance } from './useTour-types';
|
|
2
|
+
export declare function useTour(options: TourOptions): TourInstance;
|
|
14
3
|
//# sourceMappingURL=useTour.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTour.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTour/useTour.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useTour.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTour/useTour.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAyC,MAAM,iBAAiB,CAAC;AAqExG,wBAAgB,OAAO,CAAC,OAAO,EAAE,WAAW,GAAG,YAAY,CA6b1D"}
|
package/dist/index.d.ts
CHANGED
|
@@ -28,8 +28,6 @@ export { TextInput } from './components/input/text/input-text';
|
|
|
28
28
|
export type { TextInputProps } from './components/input/text/input-text-types';
|
|
29
29
|
export { NumberInput } from './components/input/number/input-number';
|
|
30
30
|
export type { NumberInputProps } from './components/input/number/input-number-types';
|
|
31
|
-
export { DatePicker } from './components/datepicker/datepicker';
|
|
32
|
-
export type { DatePickerProps } from './components/datepicker/datepicker-types';
|
|
33
31
|
export { Label } from './utility-components/label/label';
|
|
34
32
|
export type { LabelProps } from './utility-components/label/label-types';
|
|
35
33
|
export { Timeline } from './custom-components/timeline/timeline';
|
|
@@ -37,6 +35,8 @@ export type { TimelineProps } from './custom-components/timeline/timeline-types'
|
|
|
37
35
|
export { Layout } from './custom-components/layout/layout';
|
|
38
36
|
export type { LayoutProps, ResponsiveLayout, BreakpointLayout, GridPlacement, Breakpoint } from './custom-components/layout/layout-types';
|
|
39
37
|
export { useTour } from './hooks/useTour/useTour';
|
|
38
|
+
export { TourProvider, useTourManager } from './hooks/useTour/useTour-context';
|
|
39
|
+
export type { TourStep, TourPlacement, TourStepTrigger, TourProgress, TourOptions, TourInstance, TourPersistenceAdapter, TourAnalyticsAdapter, TourStepEvent, TourEvent, TourDropEvent, ManagedTourInfo, TourManagerInstance, } from './hooks/useTour/useTour-types';
|
|
40
40
|
export { useHistory } from './custom-components/layout-builder/stories/hooks/useHistory';
|
|
41
41
|
export type { UseHistoryOptions, UseHistoryReturn } from './custom-components/layout-builder/stories/hooks/useHistory';
|
|
42
42
|
export { Stack } from './utility-components/stack/stack';
|
|
@@ -44,7 +44,7 @@ export type { StackProps } from './utility-components/stack/stack-types';
|
|
|
44
44
|
export { Menu } from './components/menu/menu';
|
|
45
45
|
export type { MenuProps, MenuItem, MenuSubmenuProps } from './components/menu/menu-types';
|
|
46
46
|
export { Chart } from './data-components/chart/chart';
|
|
47
|
-
export type { ChartProps, ChartType } from './data-components/chart/chart-types';
|
|
47
|
+
export type { ChartProps, ChartType, SankeyConfig } from './data-components/chart/chart-types';
|
|
48
48
|
export { TableGrid } from './data-components/table-grid/table-grid';
|
|
49
49
|
export { TableGridRow } from './data-components/table-grid/row/table-grid-row';
|
|
50
50
|
export { TableProvider } from './data-components/table-grid/table-grid-context';
|
|
@@ -62,7 +62,11 @@ export { buildColumnSchema } from './data-components/table-grid/ai-assistant/ai-
|
|
|
62
62
|
export { Cell } from './data-components/cell/cell';
|
|
63
63
|
export type { CellProps } from './data-components/cell/cell-types';
|
|
64
64
|
export type { DataStructureComponent, DataStructureColumn } from './data-components/data-structure/data-structure';
|
|
65
|
-
export
|
|
65
|
+
export { CellType } from './types/global-types';
|
|
66
|
+
export type { Option, Size, State } from './types/global-types';
|
|
67
|
+
export { DatePicker } from './components/input/date/date-picker';
|
|
68
|
+
export { DateRangePicker } from './components/input/date/date-range-picker';
|
|
69
|
+
export type { DatePickerProps, DateRangePickerProps, DatePickerMode } from './components/input/date/date-types';
|
|
66
70
|
export { ShortcutProvider } from './providers/shortcut/shortcut-provider';
|
|
67
71
|
export { useShortcut } from './hooks/useShortcut';
|
|
68
72
|
export type { ShortcutConfig, ShortcutTooltipProps, ShortcutContextValue, UseShortcutOptions } from './custom-components/shortcut-tooltip/shortcut-tooltip-types';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAA;AAEtB,OAAO,EAAE,YAAY,IAAI,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3D,YAAY,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,YAAY,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,YAAY,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAEnE,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,YAAY,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAE1E,OAAO,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AACjF,YAAY,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC;AAEjG,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,YAAY,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAC3D,YAAY,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAEhE,OAAO,EAAE,IAAI,EAAE,MAAM,gCAAgC,CAAC;AACtD,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEtE,OAAO,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAC5D,YAAY,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAE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