@equinor/fusion-framework-module-bookmark 1.2.13 → 2.0.0
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/CHANGELOG.md +37 -0
- package/README.md +242 -9
- package/dist/esm/BookmarkClient.interface.js +2 -0
- package/dist/esm/BookmarkClient.interface.js.map +1 -0
- package/dist/esm/BookmarkClient.js +174 -0
- package/dist/esm/BookmarkClient.js.map +1 -0
- package/dist/esm/BookmarkConfigurator.js +348 -0
- package/dist/esm/BookmarkConfigurator.js.map +1 -0
- package/dist/esm/BookmarkProvider.actions.js +60 -0
- package/dist/esm/BookmarkProvider.actions.js.map +1 -0
- package/dist/esm/BookmarkProvider.error.js +14 -0
- package/dist/esm/BookmarkProvider.error.js.map +1 -0
- package/dist/esm/BookmarkProvider.events.js +2 -0
- package/dist/esm/BookmarkProvider.events.js.map +1 -0
- package/dist/esm/BookmarkProvider.flows.js +219 -0
- package/dist/esm/BookmarkProvider.flows.js.map +1 -0
- package/dist/esm/BookmarkProvider.js +937 -0
- package/dist/esm/BookmarkProvider.js.map +1 -0
- package/dist/esm/BookmarkProvider.reducer.js +125 -0
- package/dist/esm/BookmarkProvider.reducer.js.map +1 -0
- package/dist/esm/BookmarkProvider.selectors.js +43 -0
- package/dist/esm/BookmarkProvider.selectors.js.map +1 -0
- package/dist/esm/BookmarkProvider.store.js +19 -0
- package/dist/esm/BookmarkProvider.store.js.map +1 -0
- package/dist/esm/bookmark-config.schema.js +30 -0
- package/dist/esm/bookmark-config.schema.js.map +1 -0
- package/dist/esm/bookmark-module.js +53 -0
- package/dist/esm/bookmark-module.js.map +1 -0
- package/dist/esm/bookmark.schemas.js +38 -0
- package/dist/esm/bookmark.schemas.js.map +1 -0
- package/dist/esm/enable-bookmark.js +20 -7
- package/dist/esm/enable-bookmark.js.map +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/BookmarkClient.d.ts +42 -0
- package/dist/types/BookmarkClient.interface.d.ts +139 -0
- package/dist/types/BookmarkConfigurator.d.ts +100 -0
- package/dist/types/BookmarkProvider.actions.d.ts +525 -0
- package/dist/types/BookmarkProvider.d.ts +462 -0
- package/dist/types/BookmarkProvider.error.d.ts +9 -0
- package/dist/types/BookmarkProvider.events.d.ts +78 -0
- package/dist/types/BookmarkProvider.flows.d.ts +79 -0
- package/dist/types/BookmarkProvider.reducer.d.ts +302 -0
- package/dist/types/BookmarkProvider.selectors.d.ts +34 -0
- package/dist/types/BookmarkProvider.store.d.ts +30 -0
- package/dist/types/bookmark-config.schema.d.ts +118 -0
- package/dist/types/{module.d.ts → bookmark-module.d.ts} +3 -3
- package/dist/types/bookmark.schemas.d.ts +760 -0
- package/dist/types/enable-bookmark.d.ts +7 -6
- package/dist/types/index.d.ts +4 -3
- package/dist/types/types.d.ts +29 -65
- package/dist/types/version.d.ts +1 -1
- package/package.json +11 -5
- package/src/BookmarkClient.interface.ts +157 -0
- package/src/BookmarkClient.ts +226 -0
- package/src/BookmarkConfigurator.ts +374 -0
- package/src/BookmarkProvider.actions.ts +131 -0
- package/src/BookmarkProvider.error.ts +21 -0
- package/src/BookmarkProvider.events.ts +89 -0
- package/src/BookmarkProvider.flows.ts +426 -0
- package/src/BookmarkProvider.reducer.ts +141 -0
- package/src/BookmarkProvider.selectors.ts +55 -0
- package/src/BookmarkProvider.store.ts +52 -0
- package/src/BookmarkProvider.ts +1308 -0
- package/src/bookmark-config.schema.ts +41 -0
- package/src/bookmark-module.ts +70 -0
- package/src/bookmark.schemas.ts +50 -0
- package/src/enable-bookmark.ts +13 -20
- package/src/index.ts +15 -7
- package/src/types.ts +46 -73
- package/src/version.ts +1 -1
- package/dist/esm/bookmark-config-builder.js +0 -131
- package/dist/esm/bookmark-config-builder.js.map +0 -1
- package/dist/esm/bookmark-provider.js +0 -155
- package/dist/esm/bookmark-provider.js.map +0 -1
- package/dist/esm/client/bookmarkActions.js +0 -10
- package/dist/esm/client/bookmarkActions.js.map +0 -1
- package/dist/esm/client/bookmarkClient.js +0 -259
- package/dist/esm/client/bookmarkClient.js.map +0 -1
- package/dist/esm/client/bookmarkFlows.js +0 -31
- package/dist/esm/client/bookmarkFlows.js.map +0 -1
- package/dist/esm/client/bookmarkReducer.js +0 -29
- package/dist/esm/client/bookmarkReducer.js.map +0 -1
- package/dist/esm/configurator.js +0 -155
- package/dist/esm/configurator.js.map +0 -1
- package/dist/esm/module.js +0 -27
- package/dist/esm/module.js.map +0 -1
- package/dist/esm/utils/handle-url.js +0 -11
- package/dist/esm/utils/handle-url.js.map +0 -1
- package/dist/esm/utils/index.js +0 -2
- package/dist/esm/utils/index.js.map +0 -1
- package/dist/types/bookmark-config-builder.d.ts +0 -85
- package/dist/types/bookmark-provider.d.ts +0 -169
- package/dist/types/client/bookmarkActions.d.ts +0 -27
- package/dist/types/client/bookmarkClient.d.ts +0 -53
- package/dist/types/client/bookmarkFlows.d.ts +0 -22
- package/dist/types/client/bookmarkReducer.d.ts +0 -5
- package/dist/types/configurator.d.ts +0 -75
- package/dist/types/utils/handle-url.d.ts +0 -2
- package/dist/types/utils/index.d.ts +0 -1
- package/src/bookmark-config-builder.ts +0 -177
- package/src/bookmark-provider.ts +0 -344
- package/src/client/bookmarkActions.ts +0 -44
- package/src/client/bookmarkClient.ts +0 -327
- package/src/client/bookmarkFlows.ts +0 -67
- package/src/client/bookmarkReducer.ts +0 -35
- package/src/configurator.ts +0 -235
- package/src/module.ts +0 -40
- package/src/utils/handle-url.ts +0 -13
- package/src/utils/index.ts +0 -1
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { from, of, merge, concat } from 'rxjs';
|
|
2
|
+
import { switchMap, map, catchError, filter, concatMap, mergeMap, groupBy, throttleTime, } from 'rxjs/operators';
|
|
3
|
+
import { getBaseType } from '@equinor/fusion-observable';
|
|
4
|
+
import { bookmarkActions as actions } from './BookmarkProvider.actions';
|
|
5
|
+
import { BookmarkFlowError } from './BookmarkProvider.error';
|
|
6
|
+
const defaultThrottleTime = 200;
|
|
7
|
+
/**
|
|
8
|
+
* Handles the fetch bookmark action by making an API request to get the bookmark by its ID.
|
|
9
|
+
*
|
|
10
|
+
* @param api - The bookmark client API.
|
|
11
|
+
* @returns A flow that handles the fetch bookmark action.
|
|
12
|
+
*/
|
|
13
|
+
export const handleFetchBookmark = (api) => (action$) => {
|
|
14
|
+
/**
|
|
15
|
+
* Observable that represents the flow of fetching bookmarks.
|
|
16
|
+
* It listens for `fetchBookmark` actions, makes an API request to get the bookmark by ID,
|
|
17
|
+
* and emits corresponding success or failure actions based on the API response.
|
|
18
|
+
*/
|
|
19
|
+
const flow$ = action$.pipe(filter(actions.fetchBookmark.match), groupBy((action) => action.payload), mergeMap((group) => group.pipe(throttleTime(defaultThrottleTime))), switchMap((action) => from(api.getBookmarkById(action.payload)).pipe(map((bookmark) => actions.fetchBookmark.success(bookmark, action.meta)), catchError((error) => of(actions.fetchBookmark.failure(new BookmarkFlowError('Failed to fetch bookmark', action, {
|
|
20
|
+
cause: error,
|
|
21
|
+
}), action.meta))))));
|
|
22
|
+
return flow$;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Creates a flow for handling fetching bookmark data.
|
|
26
|
+
*
|
|
27
|
+
* @param api - The bookmark client API.
|
|
28
|
+
* @returns A flow of bookmark actions.
|
|
29
|
+
*/
|
|
30
|
+
export const handleFetchBookmarkData = (api) => (action$) => {
|
|
31
|
+
const flow$ = action$.pipe(filter(actions.fetchBookmarkData.match), groupBy((action) => JSON.stringify(action.payload)), mergeMap((group) => group.pipe(throttleTime(defaultThrottleTime))), switchMap((action) => {
|
|
32
|
+
return from(api.getBookmarkData(action.payload)).pipe(map((data) => actions.fetchBookmarkData.success(action.payload, data, action.meta)), catchError((error) => of(actions.fetchBookmarkData.failure(new BookmarkFlowError('Failed to fetch bookmark payload', action, {
|
|
33
|
+
cause: error,
|
|
34
|
+
}), action.meta))));
|
|
35
|
+
}));
|
|
36
|
+
return flow$;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Creates a Flow for handling fetching users bookmarks.
|
|
40
|
+
*
|
|
41
|
+
* @param api - The bookmark API client to use for fetching bookmarks.
|
|
42
|
+
* @param options - Optional configuration options, including a `throttle` value in milliseconds.
|
|
43
|
+
* @returns An observable that emits the result of the bookmark fetch operation.
|
|
44
|
+
*/
|
|
45
|
+
export const handleFetchAllBookmark = (api) => (action$) => {
|
|
46
|
+
/**
|
|
47
|
+
* This flow is triggered by the `fetchBookmarks` action and uses the `throttleTime` operator
|
|
48
|
+
* to limit the number of requests made to the API. The `switchMap` operator is used to make
|
|
49
|
+
* the API call and map the response to the appropriate action (success or failure).
|
|
50
|
+
*/
|
|
51
|
+
const flow$ = action$.pipe(filter(actions.fetchBookmarks.match), groupBy((action) => JSON.stringify(action.payload)), switchMap((group) => group.pipe(throttleTime(defaultThrottleTime))), switchMap((action) => from(api.getAllBookmarks(action.payload)).pipe(map((value) => actions.fetchBookmarks.success(value, action.meta)), catchError((error) => of(actions.fetchBookmarks.failure(new BookmarkFlowError('Failed to fetch all bookmarks', action, {
|
|
52
|
+
cause: error,
|
|
53
|
+
}), action.meta))))));
|
|
54
|
+
return flow$;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Creates a Flow for handling creating bookmarks.
|
|
58
|
+
*
|
|
59
|
+
* @param api - An instance of the `IBookmarkClient` interface, which provides the necessary API methods for creating bookmarks.
|
|
60
|
+
* @returns A flow that listens for `createBookmark` actions, creates a new bookmark using the provided API.
|
|
61
|
+
*/
|
|
62
|
+
export const handleCreateBookmark = (api) => (action$) => {
|
|
63
|
+
/**
|
|
64
|
+
* This flow listens for the `createBookmark` action, and then uses the `api.createBookmark` function to create a new bookmark.
|
|
65
|
+
* If the bookmark is created successfully, it dispatches the `createBookmark.success` action with the new bookmark.
|
|
66
|
+
* If there is an error creating the bookmark, it dispatches the `fetchBookmark.failure` action with an error.
|
|
67
|
+
*
|
|
68
|
+
* The `concatMap` operator is used to prevent aborting the request if a new `createBookmark` action is dispatched while the previous request is in flight.
|
|
69
|
+
*/
|
|
70
|
+
const flow$ = action$.pipe(filter(actions.createBookmark.match), concatMap((action) => {
|
|
71
|
+
return from(api.createBookmark(action.payload)).pipe(map((bookmark) => actions.createBookmark.success(bookmark, action.meta)), catchError((error) => of(actions.createBookmark.failure(new BookmarkFlowError('Failed to create new bookmark', action, {
|
|
72
|
+
cause: error,
|
|
73
|
+
}), action.meta))));
|
|
74
|
+
}));
|
|
75
|
+
return flow$;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Creates a Flow for handling updating bookmarks.
|
|
79
|
+
*
|
|
80
|
+
* @param api - An instance of the `IBookmarkClient` interface, which provides the necessary API methods for updating bookmarks.
|
|
81
|
+
* @returns A flow that listens for `updateBookmark` actions, updates the bookmark using the provided API.
|
|
82
|
+
*/
|
|
83
|
+
export const handleUpdateBookmark = (api) => (action$) => {
|
|
84
|
+
/**
|
|
85
|
+
* This flow listens for `updateBookmark` actions, then calls the `api.updateBookmark` function with the action payload.
|
|
86
|
+
* If the update is successful, it dispatches a `updateBookmark.success` action with the updated bookmark.
|
|
87
|
+
* If there is an error, it dispatches a `fetchBookmark.failure` action with the error.
|
|
88
|
+
*
|
|
89
|
+
* The `concatMap` operator is used to prevent aborting the request if a new `updateBookmark` action is dispatched while the previous request is in flight.
|
|
90
|
+
*/
|
|
91
|
+
const flow$ = action$.pipe(filter(actions.updateBookmark.match), concatMap((action) => {
|
|
92
|
+
const { bookmarkId, updates } = action.payload;
|
|
93
|
+
return from(api.updateBookmark(bookmarkId, updates)).pipe(map((bookmark) => actions.updateBookmark.success(bookmark, action.meta)), catchError((error) => of(actions.updateBookmark.failure(new BookmarkFlowError('Failed to update bookmark', action, {
|
|
94
|
+
cause: error,
|
|
95
|
+
}), action.meta))));
|
|
96
|
+
}));
|
|
97
|
+
return flow$;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Creates a flow for handling deleting bookmarks.
|
|
101
|
+
*
|
|
102
|
+
* @param api - An instance of the `IBookmarkClient` interface, which provides the necessary API methods for deleting bookmarks.
|
|
103
|
+
* @returns A flow that listens for `deleteBookmark` actions, deletes the bookmark using the provided API.
|
|
104
|
+
*/
|
|
105
|
+
export const handleDeleteBookmark = (api) => (action$) => {
|
|
106
|
+
/**
|
|
107
|
+
* - Listens for the `deleteBookmark` action.
|
|
108
|
+
* - Calls the `api.deleteBookmark` function to delete the bookmark.
|
|
109
|
+
* - Maps the successful response to the `deleteBookmark.success` action.
|
|
110
|
+
* - Handles errors by dispatching the `fetchBookmark.failure` action with a `BookmarkFlowError`.
|
|
111
|
+
* - Uses `concatMap` to prevent aborting the request if a new action is dispatched while the previous request is in flight.
|
|
112
|
+
*/
|
|
113
|
+
const flow$ = action$.pipe(filter(actions.deleteBookmark.match), concatMap((action) => from(api.deleteBookmark(action.payload)).pipe(map(() => actions.deleteBookmark.success(action.payload, action.meta)), catchError((error) => of(actions.deleteBookmark.failure(new BookmarkFlowError('Failed to delete bookmark', action, {
|
|
114
|
+
cause: error,
|
|
115
|
+
}), action.meta))))));
|
|
116
|
+
return flow$;
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* Creates a Flow for handling deleting bookmarks.
|
|
120
|
+
*
|
|
121
|
+
* @param api - An instance of the `IBookmarkClient` interface, which provides the necessary API methods for managing favorite bookmarks.
|
|
122
|
+
* @returns A flow that listens for `removeBookmarkAsFavorite` actions, removes the bookmark from the user's favorites using the provided API.
|
|
123
|
+
*/
|
|
124
|
+
export const handleRemoveBookmarkFromFavorites = (api) => (action$) => {
|
|
125
|
+
/**
|
|
126
|
+
* - Listens for the `removeBookmarkAsFavourite` action.
|
|
127
|
+
* - Calls the `api.removeBookmarkFromFavorites` function to remove the bookmark from favorites.
|
|
128
|
+
* - On success, dispatches the `removeBookmarkAsFavourite.success` action.
|
|
129
|
+
* - On error, dispatches the `fetchBookmark.failure` action with a `BookmarkFlowError`.
|
|
130
|
+
* - Uses `concatMap` to prevent aborting the request if a new action is dispatched while the previous request is in flight.
|
|
131
|
+
*/
|
|
132
|
+
const flow$ = action$.pipe(filter(actions.removeBookmarkAsFavourite.match),
|
|
133
|
+
// use concat to prevent aborting the request if a new action is dispatched while the previous request is in flight
|
|
134
|
+
concatMap((action) => from(api.removeBookmarkFromFavorites(action.payload)).pipe(map(() => actions.removeBookmarkAsFavourite.success(action.payload, action.meta)), catchError((error) => of(actions.removeBookmarkAsFavourite.failure(new BookmarkFlowError('Failed to remove bookmark as favorite', action, {
|
|
135
|
+
cause: error,
|
|
136
|
+
}), action.meta))))));
|
|
137
|
+
return flow$;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* Handles the flow of adding a bookmark as a favorite.
|
|
141
|
+
*
|
|
142
|
+
* @param api - The `IBookmarkClient` API instance to use for interacting with bookmarks.
|
|
143
|
+
* @returns An RxJS `Flow` that handles the `addBookmarkAsFavourite` action.
|
|
144
|
+
*/
|
|
145
|
+
export const handleAddBookmarkAsFavorite = (api) => (action$) => {
|
|
146
|
+
/**
|
|
147
|
+
* Handles the flow for adding a bookmark as a favorite.
|
|
148
|
+
*
|
|
149
|
+
* This flow listens for the `addBookmarkAsFavourite` action, and then:
|
|
150
|
+
* 1. Calls the `addBookmarkToFavorites` API to add the bookmark to the user's favorites.
|
|
151
|
+
* 2. If the API call is successful, dispatches the `addBookmarkAsFavourite.success` action.
|
|
152
|
+
* 3. If the API call fails, dispatches the `addBookmarkAsFavourite.failure` action with an error.
|
|
153
|
+
*/
|
|
154
|
+
const flow$ = action$.pipe(filter(actions.addBookmarkAsFavourite.match), concatMap((action) => from(api.addBookmarkToFavorites(action.payload)).pipe(map(() => actions.addBookmarkAsFavourite.success(action.payload, action.meta)), catchError((error) => of(actions.addBookmarkAsFavourite.failure(new BookmarkFlowError('Failed to add bookmark as favorite', action, {
|
|
155
|
+
cause: error,
|
|
156
|
+
}), action.meta))))));
|
|
157
|
+
return flow$;
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* Creates a flow for handling bookmark removal.
|
|
161
|
+
*
|
|
162
|
+
* This function observes actions related to deleting a bookmark or removing a bookmark as a favorite, and dispatches the appropriate actions for each case.
|
|
163
|
+
* If the bookmark is currently a favorite, it will dispatch an action to remove it as a favorite.
|
|
164
|
+
* If the bookmark is not a favorite, it will dispatch an action to delete it.
|
|
165
|
+
*
|
|
166
|
+
* @param api - An instance of the `IBookmarkClient` interface, which provides the necessary API methods checking if bookmarks are favorites.
|
|
167
|
+
* @returns A flow that handles the removal of a bookmark.
|
|
168
|
+
*/
|
|
169
|
+
export const handleRemoveBookmark = (api) => (action$) => {
|
|
170
|
+
/**
|
|
171
|
+
* Handles the removal of a bookmark from the application.
|
|
172
|
+
*
|
|
173
|
+
* This function is responsible for determining whether the bookmark being removed is a favorite or not,
|
|
174
|
+
* and then dispatching the appropriate action to either remove the bookmark as a favorite or delete the bookmark entirely.
|
|
175
|
+
*
|
|
176
|
+
* Uses `concatMap` to prevent aborting the request if a new action is dispatched while the previous request is in flight.
|
|
177
|
+
*/
|
|
178
|
+
const dispatch$ = action$.pipe(filter(actions.removeBookmark.match), concatMap(({ payload: bookmarkId }) => {
|
|
179
|
+
return from(api.isBookmarkFavorite(bookmarkId)).pipe(map((isFavorite) => {
|
|
180
|
+
const action = isFavorite
|
|
181
|
+
? actions.removeBookmarkAsFavourite
|
|
182
|
+
: actions.deleteBookmark;
|
|
183
|
+
return action(bookmarkId);
|
|
184
|
+
}));
|
|
185
|
+
}));
|
|
186
|
+
/**
|
|
187
|
+
* Handles failures for deleting a bookmark or removing a bookmark as a favorite.
|
|
188
|
+
*/
|
|
189
|
+
const failure$ = merge(action$.pipe(filter(actions.deleteBookmark.failure.match)), action$.pipe(filter(actions.removeBookmarkAsFavourite.failure.match))).pipe(map((action) => actions.removeBookmark.failure(action.payload, action.meta)));
|
|
190
|
+
/**
|
|
191
|
+
* Handles the success of deleting a bookmark or removing a bookmark as a favorite.
|
|
192
|
+
*/
|
|
193
|
+
const success$ = merge(action$.pipe(filter(actions.deleteBookmark.success.match)), action$.pipe(filter(actions.removeBookmarkAsFavourite.success.match))).pipe(map((action) => actions.removeBookmark.success({
|
|
194
|
+
type: getBaseType(action.type),
|
|
195
|
+
bookmarkId: action.payload,
|
|
196
|
+
}, action.meta)));
|
|
197
|
+
/**
|
|
198
|
+
* First dispatch either deletions of bookmark or removals of bookmarks as favorites.
|
|
199
|
+
* Then observer the results of those actions and dispatch the appropriate actions.
|
|
200
|
+
*/
|
|
201
|
+
const flow$ = concat(dispatch$, merge(failure$, success$));
|
|
202
|
+
return flow$;
|
|
203
|
+
};
|
|
204
|
+
/**
|
|
205
|
+
* Defines a set of flows that handle various bookmark-related actions, such as fetching, creating, updating, and deleting bookmarks.
|
|
206
|
+
*
|
|
207
|
+
* @param api - An instance of `IBookmarkClient` that provides the necessary API methods for interacting with the bookmark service.
|
|
208
|
+
* @returns A combined flow that handles all the bookmark-related actions.
|
|
209
|
+
*/
|
|
210
|
+
export const bookmarkApiFlows = (api) => {
|
|
211
|
+
// return handleFetchAllBookmark(api);
|
|
212
|
+
/**
|
|
213
|
+
* Combines multiple Bookmark-related observable flows into a single observable stream.
|
|
214
|
+
* The resulting observable stream emits the combined effects of these flows,
|
|
215
|
+
* which can be used to update the application state.
|
|
216
|
+
*/
|
|
217
|
+
return (actions$, state$) => of(handleFetchBookmark, handleFetchBookmarkData, handleFetchAllBookmark, handleCreateBookmark, handleUpdateBookmark, handleDeleteBookmark, handleRemoveBookmark, handleRemoveBookmarkFromFavorites, handleAddBookmarkAsFavorite).pipe(mergeMap((flow) => flow(api)(actions$, state$)));
|
|
218
|
+
};
|
|
219
|
+
//# sourceMappingURL=BookmarkProvider.flows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BookmarkProvider.flows.js","sourceRoot":"","sources":["../../src/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