@empathyco/x-components 7.2.5 → 7.3.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 +7 -0
- package/docs/API-reference/api/x-components.md +11 -0
- package/docs/API-reference/api/x-components.nextqueriesmutations.md +19 -0
- package/docs/API-reference/api/x-components.nextqueriesmutations.resetnextqueries.md +13 -0
- package/docs/API-reference/api/x-components.resetnextquerieswire.md +13 -0
- package/js/index.js +1 -1
- package/js/x-modules/next-queries/store/module.js +3 -0
- package/js/x-modules/next-queries/store/module.js.map +1 -1
- package/js/x-modules/next-queries/wiring.js +8 -1
- package/js/x-modules/next-queries/wiring.js.map +1 -1
- package/next-queries/index.js +1 -1
- package/package.json +2 -2
- package/report/x-components.api.json +55 -0
- package/report/x-components.api.md +5 -0
- package/types/src/x-modules/next-queries/store/module.d.ts.map +1 -1
- package/types/src/x-modules/next-queries/store/types.d.ts +4 -0
- package/types/src/x-modules/next-queries/store/types.d.ts.map +1 -1
- package/types/src/x-modules/next-queries/wiring.d.ts +7 -0
- package/types/src/x-modules/next-queries/wiring.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [7.3.0](https://github.com/empathyco/x/compare/@empathyco/x-components@7.2.5...@empathyco/x-components@7.3.0) (2026-07-06)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **next-queries:** add mutation and wiring to reset next queries state (#2131)
|
|
11
|
+
|
|
12
|
+
|
|
6
13
|
## [7.2.5](https://github.com/empathyco/x/compare/@empathyco/x-components@7.2.4...@empathyco/x-components@7.2.5) (2026-07-02)
|
|
7
14
|
|
|
8
15
|
### Code Refactoring
|
|
@@ -5868,6 +5868,17 @@ Resets the search state `fromNoResultsWithFilters`<!-- -->.
|
|
|
5868
5868
|
Resets the search state `isNoResults`<!-- -->.
|
|
5869
5869
|
|
|
5870
5870
|
|
|
5871
|
+
</td></tr>
|
|
5872
|
+
<tr><td>
|
|
5873
|
+
|
|
5874
|
+
[resetNextQueriesWire](./x-components.resetnextquerieswire.md)
|
|
5875
|
+
|
|
5876
|
+
|
|
5877
|
+
</td><td>
|
|
5878
|
+
|
|
5879
|
+
Resets the next queries list to an empty array.
|
|
5880
|
+
|
|
5881
|
+
|
|
5871
5882
|
</td></tr>
|
|
5872
5883
|
<tr><td>
|
|
5873
5884
|
|
|
@@ -38,6 +38,25 @@ Description
|
|
|
38
38
|
</th></tr></thead>
|
|
39
39
|
<tbody><tr><td>
|
|
40
40
|
|
|
41
|
+
[resetNextQueries](./x-components.nextqueriesmutations.resetnextqueries.md)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
</td><td>
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
</td><td>
|
|
48
|
+
|
|
49
|
+
() => void
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
</td><td>
|
|
53
|
+
|
|
54
|
+
Resets the next queries list to an empty array.
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
</td></tr>
|
|
58
|
+
<tr><td>
|
|
59
|
+
|
|
41
60
|
[resetResultsPreview](./x-components.nextqueriesmutations.resetresultspreview.md)
|
|
42
61
|
|
|
43
62
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [NextQueriesMutations](./x-components.nextqueriesmutations.md) > [resetNextQueries](./x-components.nextqueriesmutations.resetnextqueries.md)
|
|
4
|
+
|
|
5
|
+
## NextQueriesMutations.resetNextQueries property
|
|
6
|
+
|
|
7
|
+
Resets the next queries list to an empty array.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
resetNextQueries: () => void;
|
|
13
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [resetNextQueriesWire](./x-components.resetnextquerieswire.md)
|
|
4
|
+
|
|
5
|
+
## resetNextQueriesWire variable
|
|
6
|
+
|
|
7
|
+
Resets the next queries list to an empty array.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
resetNextQueriesWire: import("../..").AnyWire
|
|
13
|
+
```
|
package/js/index.js
CHANGED
|
@@ -315,7 +315,7 @@ export { query } from './x-modules/next-queries/store/getters/next-queries-query
|
|
|
315
315
|
export { nextQueries } from './x-modules/next-queries/store/getters/next-queries.getter.js';
|
|
316
316
|
export { request as nextQueriesRequest } from './x-modules/next-queries/store/getters/request.getter.js';
|
|
317
317
|
export { nextQueriesXStoreModule } from './x-modules/next-queries/store/module.js';
|
|
318
|
-
export { fetchAndSaveNextQueriesWire, fetchAndSaveNextQueryPreviewWire, nextQueriesWiring, resetResultsPreviewWire, setNextQueriesExtraParams, setNextQueriesExtraParamsFromPreview, setNextQueriesQuery, setNextQueriesQueryFromPreview, setNextQueriesRelatedTags, setQueryFromLastHistoryQueryWire, setSearchedQueries } from './x-modules/next-queries/wiring.js';
|
|
318
|
+
export { fetchAndSaveNextQueriesWire, fetchAndSaveNextQueryPreviewWire, nextQueriesWiring, resetNextQueriesWire, resetResultsPreviewWire, setNextQueriesExtraParams, setNextQueriesExtraParamsFromPreview, setNextQueriesQuery, setNextQueriesQueryFromPreview, setNextQueriesRelatedTags, setQueryFromLastHistoryQueryWire, setSearchedQueries } from './x-modules/next-queries/wiring.js';
|
|
319
319
|
export { nextQueriesXModule } from './x-modules/next-queries/x-module.js';
|
|
320
320
|
export { default as PopularSearch } from './x-modules/popular-searches/components/popular-search.vue.js';
|
|
321
321
|
export { default as PopularSearches } from './x-modules/popular-searches/components/popular-searches.vue.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sources":["../../../../../src/x-modules/next-queries/store/module.ts"],"sourcesContent":["import type { NextQueriesXStoreModule } from './types'\nimport { mergeConfig, setConfig } from '../../../store/utils/config-store.utils'\nimport { setQuery } from '../../../store/utils/query.utils'\nimport { setStatus } from '../../../store/utils/status-store.utils'\nimport {\n cancelFetchAndSaveNextQueries,\n fetchAndSaveNextQueries,\n} from './actions/fetch-and-save-next-queries.action'\nimport { fetchAndSaveNextQueryPreview } from './actions/fetch-and-save-next-query-preview.action'\nimport { fetchNextQueries } from './actions/fetch-next-queries.action'\nimport { fetchNextQueryPreview } from './actions/fetch-next-query-preview.action'\nimport { setQueryFromLastHistoryQuery } from './actions/set-query-from-last-history-query.action'\nimport { setUrlParams } from './actions/set-url-params.action'\nimport { query } from './getters/next-queries-query.getter'\nimport { nextQueries } from './getters/next-queries.getter'\nimport { request } from './getters/request.getter'\n\n/**\n * {@link XStoreModule} For the next-queries module.\n *\n * @internal\n */\nexport const nextQueriesXStoreModule: NextQueriesXStoreModule = {\n state: () => ({\n query: '',\n nextQueries: [],\n searchedQueries: [],\n relatedTags: [],\n status: 'initial',\n config: {\n maxItemsToRequest: 20,\n hideSessionQueries: true,\n loadOnInit: true,\n maxPreviewItemsToRequest: 8,\n },\n params: {},\n resultsPreview: {},\n }),\n getters: {\n request,\n nextQueries,\n query,\n },\n mutations: {\n setQuery,\n setNextQueries(state, nextQueries) {\n state.nextQueries = nextQueries\n },\n setSearchedQueries(state, searchedQueries) {\n state.searchedQueries = searchedQueries\n },\n setRelatedTags(state, relatedTags) {\n state.relatedTags = relatedTags\n },\n setStatus,\n setParams(state, params) {\n state.params = params\n },\n setResultsPreview(state, resultsPreview) {\n state.resultsPreview = { ...state.resultsPreview, ...resultsPreview }\n },\n resetResultsPreview(state) {\n state.resultsPreview = {}\n },\n setConfig,\n mergeConfig,\n },\n actions: {\n cancelFetchAndSaveNextQueries,\n fetchAndSaveNextQueries,\n fetchNextQueries,\n setQueryFromLastHistoryQuery,\n setUrlParams,\n fetchNextQueryPreview,\n fetchAndSaveNextQueryPreview,\n },\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;AAiBA;;;;AAIG;AACI,MAAM,uBAAuB,GAA4B;AAC9D,IAAA,KAAK,EAAE,OAAO;AACZ,QAAA,KAAK,EAAE,EAAE;AACT,QAAA,WAAW,EAAE,EAAE;AACf,QAAA,eAAe,EAAE,EAAE;AACnB,QAAA,WAAW,EAAE,EAAE;AACf,QAAA,MAAM,EAAE,SAAS;AACjB,QAAA,MAAM,EAAE;AACN,YAAA,iBAAiB,EAAE,EAAE;AACrB,YAAA,kBAAkB,EAAE,IAAI;AACxB,YAAA,UAAU,EAAE,IAAI;AAChB,YAAA,wBAAwB,EAAE,CAAC;AAC5B,SAAA;AACD,QAAA,MAAM,EAAE,EAAE;AACV,QAAA,cAAc,EAAE,EAAE;KACnB,CAAC;AACF,IAAA,OAAO,EAAE;QACP,OAAO;QACP,WAAW;QACX,KAAK;AACN,KAAA;AACD,IAAA,SAAS,EAAE;QACT,QAAQ;QACR,cAAc,CAAC,KAAK,EAAE,WAAW,EAAA;AAC/B,YAAA,KAAK,CAAC,WAAW,GAAG,WAAW;QACjC,CAAC;QACD,kBAAkB,CAAC,KAAK,EAAE,eAAe,EAAA;AACvC,YAAA,KAAK,CAAC,eAAe,GAAG,eAAe;QACzC,CAAC;QACD,cAAc,CAAC,KAAK,EAAE,WAAW,EAAA;AAC/B,YAAA,KAAK,CAAC,WAAW,GAAG,WAAW;QACjC,CAAC;QACD,SAAS;QACT,SAAS,CAAC,KAAK,EAAE,MAAM,EAAA;AACrB,YAAA,KAAK,CAAC,MAAM,GAAG,MAAM;QACvB,CAAC;QACD,iBAAiB,CAAC,KAAK,EAAE,cAAc,EAAA;AACrC,YAAA,KAAK,CAAC,cAAc,GAAG,EAAE,GAAG,KAAK,CAAC,cAAc,EAAE,GAAG,cAAc,EAAE;QACvE,CAAC;AACD,QAAA,mBAAmB,CAAC,KAAK,EAAA;AACvB,YAAA,KAAK,CAAC,cAAc,GAAG,EAAE;QAC3B,CAAC;QACD,SAAS;QACT,WAAW;AACZ,KAAA;AACD,IAAA,OAAO,EAAE;QACP,6BAA6B;QAC7B,uBAAuB;QACvB,gBAAgB;QAChB,4BAA4B;QAC5B,YAAY;QACZ,qBAAqB;QACrB,4BAA4B;AAC7B,KAAA;;;;;"}
|
|
1
|
+
{"version":3,"file":"module.js","sources":["../../../../../src/x-modules/next-queries/store/module.ts"],"sourcesContent":["import type { NextQueriesXStoreModule } from './types'\nimport { mergeConfig, setConfig } from '../../../store/utils/config-store.utils'\nimport { setQuery } from '../../../store/utils/query.utils'\nimport { setStatus } from '../../../store/utils/status-store.utils'\nimport {\n cancelFetchAndSaveNextQueries,\n fetchAndSaveNextQueries,\n} from './actions/fetch-and-save-next-queries.action'\nimport { fetchAndSaveNextQueryPreview } from './actions/fetch-and-save-next-query-preview.action'\nimport { fetchNextQueries } from './actions/fetch-next-queries.action'\nimport { fetchNextQueryPreview } from './actions/fetch-next-query-preview.action'\nimport { setQueryFromLastHistoryQuery } from './actions/set-query-from-last-history-query.action'\nimport { setUrlParams } from './actions/set-url-params.action'\nimport { query } from './getters/next-queries-query.getter'\nimport { nextQueries } from './getters/next-queries.getter'\nimport { request } from './getters/request.getter'\n\n/**\n * {@link XStoreModule} For the next-queries module.\n *\n * @internal\n */\nexport const nextQueriesXStoreModule: NextQueriesXStoreModule = {\n state: () => ({\n query: '',\n nextQueries: [],\n searchedQueries: [],\n relatedTags: [],\n status: 'initial',\n config: {\n maxItemsToRequest: 20,\n hideSessionQueries: true,\n loadOnInit: true,\n maxPreviewItemsToRequest: 8,\n },\n params: {},\n resultsPreview: {},\n }),\n getters: {\n request,\n nextQueries,\n query,\n },\n mutations: {\n setQuery,\n setNextQueries(state, nextQueries) {\n state.nextQueries = nextQueries\n },\n setSearchedQueries(state, searchedQueries) {\n state.searchedQueries = searchedQueries\n },\n setRelatedTags(state, relatedTags) {\n state.relatedTags = relatedTags\n },\n setStatus,\n setParams(state, params) {\n state.params = params\n },\n setResultsPreview(state, resultsPreview) {\n state.resultsPreview = { ...state.resultsPreview, ...resultsPreview }\n },\n resetResultsPreview(state) {\n state.resultsPreview = {}\n },\n resetNextQueries(state) {\n state.nextQueries = []\n },\n setConfig,\n mergeConfig,\n },\n actions: {\n cancelFetchAndSaveNextQueries,\n fetchAndSaveNextQueries,\n fetchNextQueries,\n setQueryFromLastHistoryQuery,\n setUrlParams,\n fetchNextQueryPreview,\n fetchAndSaveNextQueryPreview,\n },\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;AAiBA;;;;AAIG;AACI,MAAM,uBAAuB,GAA4B;AAC9D,IAAA,KAAK,EAAE,OAAO;AACZ,QAAA,KAAK,EAAE,EAAE;AACT,QAAA,WAAW,EAAE,EAAE;AACf,QAAA,eAAe,EAAE,EAAE;AACnB,QAAA,WAAW,EAAE,EAAE;AACf,QAAA,MAAM,EAAE,SAAS;AACjB,QAAA,MAAM,EAAE;AACN,YAAA,iBAAiB,EAAE,EAAE;AACrB,YAAA,kBAAkB,EAAE,IAAI;AACxB,YAAA,UAAU,EAAE,IAAI;AAChB,YAAA,wBAAwB,EAAE,CAAC;AAC5B,SAAA;AACD,QAAA,MAAM,EAAE,EAAE;AACV,QAAA,cAAc,EAAE,EAAE;KACnB,CAAC;AACF,IAAA,OAAO,EAAE;QACP,OAAO;QACP,WAAW;QACX,KAAK;AACN,KAAA;AACD,IAAA,SAAS,EAAE;QACT,QAAQ;QACR,cAAc,CAAC,KAAK,EAAE,WAAW,EAAA;AAC/B,YAAA,KAAK,CAAC,WAAW,GAAG,WAAW;QACjC,CAAC;QACD,kBAAkB,CAAC,KAAK,EAAE,eAAe,EAAA;AACvC,YAAA,KAAK,CAAC,eAAe,GAAG,eAAe;QACzC,CAAC;QACD,cAAc,CAAC,KAAK,EAAE,WAAW,EAAA;AAC/B,YAAA,KAAK,CAAC,WAAW,GAAG,WAAW;QACjC,CAAC;QACD,SAAS;QACT,SAAS,CAAC,KAAK,EAAE,MAAM,EAAA;AACrB,YAAA,KAAK,CAAC,MAAM,GAAG,MAAM;QACvB,CAAC;QACD,iBAAiB,CAAC,KAAK,EAAE,cAAc,EAAA;AACrC,YAAA,KAAK,CAAC,cAAc,GAAG,EAAE,GAAG,KAAK,CAAC,cAAc,EAAE,GAAG,cAAc,EAAE;QACvE,CAAC;AACD,QAAA,mBAAmB,CAAC,KAAK,EAAA;AACvB,YAAA,KAAK,CAAC,cAAc,GAAG,EAAE;QAC3B,CAAC;AACD,QAAA,gBAAgB,CAAC,KAAK,EAAA;AACpB,YAAA,KAAK,CAAC,WAAW,GAAG,EAAE;QACxB,CAAC;QACD,SAAS;QACT,WAAW;AACZ,KAAA;AACD,IAAA,OAAO,EAAE;QACP,6BAA6B;QAC7B,uBAAuB;QACvB,gBAAgB;QAChB,4BAA4B;QAC5B,YAAY;QACZ,qBAAqB;QACrB,4BAA4B;AAC7B,KAAA;;;;;"}
|
|
@@ -88,6 +88,12 @@ const fetchAndSaveNextQueryPreviewWire = wireDispatch('fetchAndSaveNextQueryPrev
|
|
|
88
88
|
* @public
|
|
89
89
|
*/
|
|
90
90
|
const resetResultsPreviewWire = wireCommitWithoutPayload('resetResultsPreview');
|
|
91
|
+
/**
|
|
92
|
+
* Resets the next queries list to an empty array.
|
|
93
|
+
*
|
|
94
|
+
* @public
|
|
95
|
+
*/
|
|
96
|
+
const resetNextQueriesWire = wireCommitWithoutPayload('resetNextQueries');
|
|
91
97
|
/**
|
|
92
98
|
* Sets the next queries state `searchedQueries` with the list of history queries.
|
|
93
99
|
*
|
|
@@ -107,6 +113,7 @@ const nextQueriesWiring = createWiring({
|
|
|
107
113
|
resetResultsPreviewWire,
|
|
108
114
|
},
|
|
109
115
|
UserAcceptedAQuery: {
|
|
116
|
+
resetNextQueriesWire,
|
|
110
117
|
setNextQueriesQuery,
|
|
111
118
|
},
|
|
112
119
|
SelectedRelatedTagsChanged: {
|
|
@@ -132,5 +139,5 @@ const nextQueriesWiring = createWiring({
|
|
|
132
139
|
},
|
|
133
140
|
});
|
|
134
141
|
|
|
135
|
-
export { fetchAndSaveNextQueriesWire, fetchAndSaveNextQueryPreviewWire, nextQueriesWiring, resetResultsPreviewWire, setNextQueriesExtraParams, setNextQueriesExtraParamsFromPreview, setNextQueriesQuery, setNextQueriesQueryFromPreview, setNextQueriesRelatedTags, setQueryFromLastHistoryQueryWire, setSearchedQueries };
|
|
142
|
+
export { fetchAndSaveNextQueriesWire, fetchAndSaveNextQueryPreviewWire, nextQueriesWiring, resetNextQueriesWire, resetResultsPreviewWire, setNextQueriesExtraParams, setNextQueriesExtraParamsFromPreview, setNextQueriesQuery, setNextQueriesQueryFromPreview, setNextQueriesRelatedTags, setQueryFromLastHistoryQueryWire, setSearchedQueries };
|
|
136
143
|
//# sourceMappingURL=wiring.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wiring.js","sources":["../../../../src/x-modules/next-queries/wiring.ts"],"sourcesContent":["import type {\n NamespacedWireCommit,\n NamespacedWireCommitWithoutPayload,\n NamespacedWireDispatch,\n NamespacedWiringData,\n} from '../../wiring/namespaced-wiring.types'\nimport {\n namespacedWireCommit,\n namespacedWireCommitWithoutPayload,\n namespacedWireDispatch,\n} from '../../wiring/namespaced-wires.factory'\nimport { createWiring } from '../../wiring/wiring.utils'\n\n/**\n * `nextQueries` {@link XModuleName | XModule name}.\n *\n * @internal\n */\nconst moduleName = 'nextQueries'\n\n/**\n * WireCommit for {@link NextQueriesXModule}.\n *\n * @internal\n */\nconst wireCommit: NamespacedWireCommit<typeof moduleName> = namespacedWireCommit(moduleName)\n\n/**\n * WireCommitWithoutPayload for {@link NextQueriesXModule}.\n */\nconst wireCommitWithoutPayload: NamespacedWireCommitWithoutPayload<typeof moduleName> =\n namespacedWireCommitWithoutPayload(moduleName)\n\n/**\n * WireDispatch for {@link NextQueriesXModule}.\n *\n * @internal\n */\nconst wireDispatch: NamespacedWireDispatch<typeof moduleName> = namespacedWireDispatch(moduleName)\n\n/**\n * Sets the next queries state `query`.\n *\n * @public\n */\nexport const setNextQueriesQuery = wireCommit('setQuery')\n\n/**\n * Sets the next queries state `relatedTags`.\n *\n * @public\n */\nexport const setNextQueriesRelatedTags = wireCommit('setRelatedTags')\n\n/**\n * Sets the next queries state `query` with a selectedQueryPreview's query.\n *\n * @public\n */\nexport const setNextQueriesQueryFromPreview = wireCommit(\n 'setParams',\n ({ eventPayload: { query } }) => query,\n)\n\n/**\n * Sets the next queries state `query` from url.\n *\n * @public\n */\nconst setUrlParams = wireDispatch('setUrlParams')\n\n/**\n * Sets the next queries state `params`.\n *\n * @public\n */\nexport const setNextQueriesExtraParams = wireCommit('setParams')\n\n/**\n * Sets the next queries state `params` with a selectedQueryPreview's extraParams.\n *\n * @public\n */\nexport const setNextQueriesExtraParamsFromPreview = wireCommit(\n 'setParams',\n ({ eventPayload: { extraParams } }) => extraParams,\n)\n\n/**\n * Requests and stores the next queries.\n *\n * @public\n */\nexport const fetchAndSaveNextQueriesWire = wireDispatch('fetchAndSaveNextQueries')\n\n/**\n * Sets the next queries state `query` with the last query in history queries.\n *\n * @public\n */\nexport const setQueryFromLastHistoryQueryWire = wireDispatch('setQueryFromLastHistoryQuery')\n\n/**\n * Requests and store the next query preview results.\n *\n * @public\n */\nexport const fetchAndSaveNextQueryPreviewWire = wireDispatch(\n 'fetchAndSaveNextQueryPreview',\n ({ eventPayload: query, metadata: { location } }: NamespacedWiringData<'nextQueries'>) => {\n return {\n query,\n location,\n }\n },\n)\n/**\n * Resets the next query preview results.\n *\n * @public\n */\nexport const resetResultsPreviewWire = wireCommitWithoutPayload('resetResultsPreview')\n\n/**\n * Sets the next queries state `searchedQueries` with the list of history queries.\n *\n * @public\n */\nexport const setSearchedQueries = wireCommit('setSearchedQueries')\n\n/**\n * Wiring configuration for the {@link NextQueriesXModule | next queries module}.\n *\n * @internal\n */\nexport const nextQueriesWiring = createWiring({\n ParamsLoadedFromUrl: {\n setUrlParams,\n },\n NextQueriesChanged: {\n resetResultsPreviewWire,\n },\n UserAcceptedAQuery: {\n setNextQueriesQuery,\n },\n SelectedRelatedTagsChanged: {\n setNextQueriesRelatedTags,\n },\n SessionHistoryQueriesChanged: {\n setSearchedQueries,\n // TODO setQueryFromLastHistoryQuery it has to be called only one time\n setQueryFromLastHistoryQueryWire,\n },\n NextQueriesRequestUpdated: {\n fetchAndSaveNextQueriesWire,\n },\n ExtraParamsChanged: {\n setNextQueriesExtraParams,\n },\n NextQueryPreviewMountedHook: {\n fetchAndSaveNextQueryPreviewWire,\n },\n UserAcceptedAQueryPreview: {\n setNextQueriesQueryFromPreview,\n setNextQueriesExtraParamsFromPreview,\n },\n})\n"],"names":[],"mappings":";;;AAaA;;;;AAIG;AACH,MAAM,UAAU,GAAG,aAAa;AAEhC;;;;AAIG;AACH,MAAM,UAAU,GAA4C,oBAAoB,CAAC,UAAU,CAAC;AAE5F;;AAEG;AACH,MAAM,wBAAwB,GAC5B,kCAAkC,CAAC,UAAU,CAAC;AAEhD;;;;AAIG;AACH,MAAM,YAAY,GAA8C,sBAAsB,CAAC,UAAU,CAAC;AAElG;;;;AAIG;MACU,mBAAmB,GAAG,UAAU,CAAC,UAAU;AAExD;;;;AAIG;MACU,yBAAyB,GAAG,UAAU,CAAC,gBAAgB;AAEpE;;;;AAIG;MACU,8BAA8B,GAAG,UAAU,CACtD,WAAW,EACX,CAAC,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,KAAK;AAGxC;;;;AAIG;AACH,MAAM,YAAY,GAAG,YAAY,CAAC,cAAc,CAAC;AAEjD;;;;AAIG;MACU,yBAAyB,GAAG,UAAU,CAAC,WAAW;AAE/D;;;;AAIG;MACU,oCAAoC,GAAG,UAAU,CAC5D,WAAW,EACX,CAAC,EAAE,YAAY,EAAE,EAAE,WAAW,EAAE,EAAE,KAAK,WAAW;AAGpD;;;;AAIG;MACU,2BAA2B,GAAG,YAAY,CAAC,yBAAyB;AAEjF;;;;AAIG;MACU,gCAAgC,GAAG,YAAY,CAAC,8BAA8B;AAE3F;;;;AAIG;MACU,gCAAgC,GAAG,YAAY,CAC1D,8BAA8B,EAC9B,CAAC,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,QAAQ,EAAE,EAAuC,KAAI;IACvF,OAAO;QACL,KAAK;QACL,QAAQ;KACT;AACH,CAAC;AAEH;;;;AAIG;MACU,uBAAuB,GAAG,wBAAwB,CAAC,qBAAqB;AAErF;;;;AAIG;MACU,kBAAkB,GAAG,UAAU,CAAC,oBAAoB;AAEjE;;;;AAIG;AACI,MAAM,iBAAiB,GAAG,YAAY,CAAC;AAC5C,IAAA,mBAAmB,EAAE;QACnB,YAAY;AACb,KAAA;AACD,IAAA,kBAAkB,EAAE;QAClB,uBAAuB;AACxB,KAAA;AACD,IAAA,kBAAkB,EAAE;QAClB,mBAAmB;AACpB,KAAA;AACD,IAAA,0BAA0B,EAAE;QAC1B,yBAAyB;AAC1B,KAAA;AACD,IAAA,4BAA4B,EAAE;QAC5B,kBAAkB;;QAElB,gCAAgC;AACjC,KAAA;AACD,IAAA,yBAAyB,EAAE;QACzB,2BAA2B;AAC5B,KAAA;AACD,IAAA,kBAAkB,EAAE;QAClB,yBAAyB;AAC1B,KAAA;AACD,IAAA,2BAA2B,EAAE;QAC3B,gCAAgC;AACjC,KAAA;AACD,IAAA,yBAAyB,EAAE;QACzB,8BAA8B;QAC9B,oCAAoC;AACrC,KAAA;AACF,CAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"wiring.js","sources":["../../../../src/x-modules/next-queries/wiring.ts"],"sourcesContent":["import type {\n NamespacedWireCommit,\n NamespacedWireCommitWithoutPayload,\n NamespacedWireDispatch,\n NamespacedWiringData,\n} from '../../wiring/namespaced-wiring.types'\nimport {\n namespacedWireCommit,\n namespacedWireCommitWithoutPayload,\n namespacedWireDispatch,\n} from '../../wiring/namespaced-wires.factory'\nimport { createWiring } from '../../wiring/wiring.utils'\n\n/**\n * `nextQueries` {@link XModuleName | XModule name}.\n *\n * @internal\n */\nconst moduleName = 'nextQueries'\n\n/**\n * WireCommit for {@link NextQueriesXModule}.\n *\n * @internal\n */\nconst wireCommit: NamespacedWireCommit<typeof moduleName> = namespacedWireCommit(moduleName)\n\n/**\n * WireCommitWithoutPayload for {@link NextQueriesXModule}.\n */\nconst wireCommitWithoutPayload: NamespacedWireCommitWithoutPayload<typeof moduleName> =\n namespacedWireCommitWithoutPayload(moduleName)\n\n/**\n * WireDispatch for {@link NextQueriesXModule}.\n *\n * @internal\n */\nconst wireDispatch: NamespacedWireDispatch<typeof moduleName> = namespacedWireDispatch(moduleName)\n\n/**\n * Sets the next queries state `query`.\n *\n * @public\n */\nexport const setNextQueriesQuery = wireCommit('setQuery')\n\n/**\n * Sets the next queries state `relatedTags`.\n *\n * @public\n */\nexport const setNextQueriesRelatedTags = wireCommit('setRelatedTags')\n\n/**\n * Sets the next queries state `query` with a selectedQueryPreview's query.\n *\n * @public\n */\nexport const setNextQueriesQueryFromPreview = wireCommit(\n 'setParams',\n ({ eventPayload: { query } }) => query,\n)\n\n/**\n * Sets the next queries state `query` from url.\n *\n * @public\n */\nconst setUrlParams = wireDispatch('setUrlParams')\n\n/**\n * Sets the next queries state `params`.\n *\n * @public\n */\nexport const setNextQueriesExtraParams = wireCommit('setParams')\n\n/**\n * Sets the next queries state `params` with a selectedQueryPreview's extraParams.\n *\n * @public\n */\nexport const setNextQueriesExtraParamsFromPreview = wireCommit(\n 'setParams',\n ({ eventPayload: { extraParams } }) => extraParams,\n)\n\n/**\n * Requests and stores the next queries.\n *\n * @public\n */\nexport const fetchAndSaveNextQueriesWire = wireDispatch('fetchAndSaveNextQueries')\n\n/**\n * Sets the next queries state `query` with the last query in history queries.\n *\n * @public\n */\nexport const setQueryFromLastHistoryQueryWire = wireDispatch('setQueryFromLastHistoryQuery')\n\n/**\n * Requests and store the next query preview results.\n *\n * @public\n */\nexport const fetchAndSaveNextQueryPreviewWire = wireDispatch(\n 'fetchAndSaveNextQueryPreview',\n ({ eventPayload: query, metadata: { location } }: NamespacedWiringData<'nextQueries'>) => {\n return {\n query,\n location,\n }\n },\n)\n/**\n * Resets the next query preview results.\n *\n * @public\n */\nexport const resetResultsPreviewWire = wireCommitWithoutPayload('resetResultsPreview')\n\n/**\n * Resets the next queries list to an empty array.\n *\n * @public\n */\nexport const resetNextQueriesWire = wireCommitWithoutPayload('resetNextQueries')\n\n/**\n * Sets the next queries state `searchedQueries` with the list of history queries.\n *\n * @public\n */\nexport const setSearchedQueries = wireCommit('setSearchedQueries')\n\n/**\n * Wiring configuration for the {@link NextQueriesXModule | next queries module}.\n *\n * @internal\n */\nexport const nextQueriesWiring = createWiring({\n ParamsLoadedFromUrl: {\n setUrlParams,\n },\n NextQueriesChanged: {\n resetResultsPreviewWire,\n },\n UserAcceptedAQuery: {\n resetNextQueriesWire,\n setNextQueriesQuery,\n },\n SelectedRelatedTagsChanged: {\n setNextQueriesRelatedTags,\n },\n SessionHistoryQueriesChanged: {\n setSearchedQueries,\n // TODO setQueryFromLastHistoryQuery it has to be called only one time\n setQueryFromLastHistoryQueryWire,\n },\n NextQueriesRequestUpdated: {\n fetchAndSaveNextQueriesWire,\n },\n ExtraParamsChanged: {\n setNextQueriesExtraParams,\n },\n NextQueryPreviewMountedHook: {\n fetchAndSaveNextQueryPreviewWire,\n },\n UserAcceptedAQueryPreview: {\n setNextQueriesQueryFromPreview,\n setNextQueriesExtraParamsFromPreview,\n },\n})\n"],"names":[],"mappings":";;;AAaA;;;;AAIG;AACH,MAAM,UAAU,GAAG,aAAa;AAEhC;;;;AAIG;AACH,MAAM,UAAU,GAA4C,oBAAoB,CAAC,UAAU,CAAC;AAE5F;;AAEG;AACH,MAAM,wBAAwB,GAC5B,kCAAkC,CAAC,UAAU,CAAC;AAEhD;;;;AAIG;AACH,MAAM,YAAY,GAA8C,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AAyB;AAC1B,KAAA;AACD,IAAA,4BAA4B,EAAE;QAC5B,kBAAkB;;QAElB,gCAAgC;AACjC,KAAA;AACD,IAAA,yBAAyB,EAAE;QACzB,2BAA2B;AAC5B,KAAA;AACD,IAAA,kBAAkB,EAAE;QAClB,yBAAyB;AAC1B,KAAA;AACD,IAAA,2BAA2B,EAAE;QAC3B,gCAAgC;AACjC,KAAA;AACD,IAAA,yBAAyB,EAAE;QACzB,8BAA8B;QAC9B,oCAAoC;AACrC,KAAA;AACF,CAAA;;;;"}
|
package/next-queries/index.js
CHANGED
|
@@ -10,5 +10,5 @@ export { query } from '../js/x-modules/next-queries/store/getters/next-queries-q
|
|
|
10
10
|
export { nextQueries } from '../js/x-modules/next-queries/store/getters/next-queries.getter.js';
|
|
11
11
|
export { request as nextQueriesRequest } from '../js/x-modules/next-queries/store/getters/request.getter.js';
|
|
12
12
|
export { nextQueriesXStoreModule } from '../js/x-modules/next-queries/store/module.js';
|
|
13
|
-
export { fetchAndSaveNextQueriesWire, fetchAndSaveNextQueryPreviewWire, nextQueriesWiring, resetResultsPreviewWire, setNextQueriesExtraParams, setNextQueriesExtraParamsFromPreview, setNextQueriesQuery, setNextQueriesQueryFromPreview, setNextQueriesRelatedTags, setQueryFromLastHistoryQueryWire, setSearchedQueries } from '../js/x-modules/next-queries/wiring.js';
|
|
13
|
+
export { fetchAndSaveNextQueriesWire, fetchAndSaveNextQueryPreviewWire, nextQueriesWiring, resetNextQueriesWire, resetResultsPreviewWire, setNextQueriesExtraParams, setNextQueriesExtraParamsFromPreview, setNextQueriesQuery, setNextQueriesQueryFromPreview, setNextQueriesRelatedTags, setQueryFromLastHistoryQueryWire, setSearchedQueries } from '../js/x-modules/next-queries/wiring.js';
|
|
14
14
|
export { nextQueriesXModule } from '../js/x-modules/next-queries/x-module.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empathyco/x-components",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0",
|
|
4
4
|
"description": "Empathy X Components",
|
|
5
5
|
"author": "Empathy Systems Corporation S.L.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
"access": "public",
|
|
118
118
|
"directory": "dist"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "58b790f477dc044d55d166ae0d287eb3ef8e8564"
|
|
121
121
|
}
|
|
@@ -44271,6 +44271,33 @@
|
|
|
44271
44271
|
"name": "NextQueriesMutations",
|
|
44272
44272
|
"preserveMemberOrder": false,
|
|
44273
44273
|
"members": [
|
|
44274
|
+
{
|
|
44275
|
+
"kind": "PropertySignature",
|
|
44276
|
+
"canonicalReference": "@empathyco/x-components!NextQueriesMutations#resetNextQueries:member",
|
|
44277
|
+
"docComment": "/**\n * Resets the next queries list to an empty array.\n */\n",
|
|
44278
|
+
"excerptTokens": [
|
|
44279
|
+
{
|
|
44280
|
+
"kind": "Content",
|
|
44281
|
+
"text": "resetNextQueries: "
|
|
44282
|
+
},
|
|
44283
|
+
{
|
|
44284
|
+
"kind": "Content",
|
|
44285
|
+
"text": "() => void"
|
|
44286
|
+
},
|
|
44287
|
+
{
|
|
44288
|
+
"kind": "Content",
|
|
44289
|
+
"text": ";"
|
|
44290
|
+
}
|
|
44291
|
+
],
|
|
44292
|
+
"isReadonly": false,
|
|
44293
|
+
"isOptional": false,
|
|
44294
|
+
"releaseTag": "Public",
|
|
44295
|
+
"name": "resetNextQueries",
|
|
44296
|
+
"propertyTypeTokenRange": {
|
|
44297
|
+
"startIndex": 1,
|
|
44298
|
+
"endIndex": 2
|
|
44299
|
+
}
|
|
44300
|
+
},
|
|
44274
44301
|
{
|
|
44275
44302
|
"kind": "PropertySignature",
|
|
44276
44303
|
"canonicalReference": "@empathyco/x-components!NextQueriesMutations#resetResultsPreview:member",
|
|
@@ -59577,6 +59604,34 @@
|
|
|
59577
59604
|
"endIndex": 3
|
|
59578
59605
|
}
|
|
59579
59606
|
},
|
|
59607
|
+
{
|
|
59608
|
+
"kind": "Variable",
|
|
59609
|
+
"canonicalReference": "@empathyco/x-components!resetNextQueriesWire:var",
|
|
59610
|
+
"docComment": "/**\n * Resets the next queries list to an empty array.\n *\n * @public\n */\n",
|
|
59611
|
+
"excerptTokens": [
|
|
59612
|
+
{
|
|
59613
|
+
"kind": "Content",
|
|
59614
|
+
"text": "resetNextQueriesWire: "
|
|
59615
|
+
},
|
|
59616
|
+
{
|
|
59617
|
+
"kind": "Content",
|
|
59618
|
+
"text": "import(\"../..\")."
|
|
59619
|
+
},
|
|
59620
|
+
{
|
|
59621
|
+
"kind": "Reference",
|
|
59622
|
+
"text": "AnyWire",
|
|
59623
|
+
"canonicalReference": "@empathyco/x-components!AnyWire:type"
|
|
59624
|
+
}
|
|
59625
|
+
],
|
|
59626
|
+
"fileUrlPath": "src/x-modules/next-queries/wiring.ts",
|
|
59627
|
+
"isReadonly": true,
|
|
59628
|
+
"releaseTag": "Public",
|
|
59629
|
+
"name": "resetNextQueriesWire",
|
|
59630
|
+
"variableTypeTokenRange": {
|
|
59631
|
+
"startIndex": 1,
|
|
59632
|
+
"endIndex": 3
|
|
59633
|
+
}
|
|
59634
|
+
},
|
|
59580
59635
|
{
|
|
59581
59636
|
"kind": "Variable",
|
|
59582
59637
|
"canonicalReference": "@empathyco/x-components!resetRequestOnRefinement:var",
|
|
@@ -4711,6 +4711,7 @@ showOnlyAfterOffset: boolean;
|
|
|
4711
4711
|
|
|
4712
4712
|
// @public
|
|
4713
4713
|
export interface NextQueriesMutations extends StatusMutations, QueryMutations, ConfigMutations<NextQueriesState> {
|
|
4714
|
+
resetNextQueries: () => void;
|
|
4714
4715
|
resetResultsPreview: () => void;
|
|
4715
4716
|
setNextQueries: (nextQueries: NextQuery_2[]) => void;
|
|
4716
4717
|
setParams: (params: Dictionary<unknown>) => void;
|
|
@@ -4742,6 +4743,7 @@ export const nextQueriesWiring: {
|
|
|
4742
4743
|
resetResultsPreviewWire: AnyWire;
|
|
4743
4744
|
};
|
|
4744
4745
|
UserAcceptedAQuery: {
|
|
4746
|
+
resetNextQueriesWire: AnyWire;
|
|
4745
4747
|
setNextQueriesQuery: Wire<string>;
|
|
4746
4748
|
};
|
|
4747
4749
|
SelectedRelatedTagsChanged: {
|
|
@@ -6421,6 +6423,9 @@ export const resetFromNoResultsWithFilters: AnyWire;
|
|
|
6421
6423
|
// @public
|
|
6422
6424
|
export const resetIsNoResults: AnyWire;
|
|
6423
6425
|
|
|
6426
|
+
// @public
|
|
6427
|
+
export const resetNextQueriesWire: AnyWire;
|
|
6428
|
+
|
|
6424
6429
|
// @public
|
|
6425
6430
|
export const resetRequestOnRefinement: SearchXStoreModule['actions']['resetRequestOnRefinement'];
|
|
6426
6431
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/next-queries/store/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAiBtD;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/next-queries/store/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAiBtD;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,uBAyDrC,CAAA"}
|
|
@@ -83,6 +83,10 @@ export interface NextQueriesMutations extends StatusMutations, QueryMutations, C
|
|
|
83
83
|
* Resets the result's dictionary.
|
|
84
84
|
*/
|
|
85
85
|
resetResultsPreview: () => void;
|
|
86
|
+
/**
|
|
87
|
+
* Resets the next queries list to an empty array.
|
|
88
|
+
*/
|
|
89
|
+
resetNextQueries: () => void;
|
|
86
90
|
}
|
|
87
91
|
/**
|
|
88
92
|
* Next queries module actions.
|
|
@@ -1 +1 @@
|
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EAAE,SAAS,EAAE,CAAA;IACxB,kEAAkE;IAClE,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;;;GAIG;AACH,MAAM,WAAW,oBACf,SAAQ,eAAe,EAAE,cAAc,EAAE,eAAe,CAAC,gBAAgB,CAAC;IAC1E;;;;OAIG;IACH,cAAc,EAAE,CAAC,WAAW,EAAE,SAAS,EAAE,KAAK,IAAI,CAAA;IAClD;;;;OAIG;IACH,kBAAkB,EAAE,CAAC,eAAe,EAAE,YAAY,EAAE,KAAK,IAAI,CAAA;IAC7D;;;;OAIG;IACH,cAAc,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,KAAK,IAAI,CAAA;IACnD;;;;OAIG;IACH,SAAS,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,KAAK,IAAI,CAAA;IAChD;;;;;OAKG;IACH,iBAAiB,EAAE,CAAC,cAAc,EAAE,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAA;IACvE;;OAEG;IACH,mBAAmB,EAAE,MAAM,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/next-queries/store/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAClB,SAAS,EACT,cAAc,EACd,UAAU,EACV,cAAc,EACf,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAA;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAA;AAClF,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAA;AAC3F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAs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@public
|
|
53
53
|
*/
|
|
54
54
|
export declare const resetResultsPreviewWire: import("../..").AnyWire;
|
|
55
|
+
/**
|
|
56
|
+
* Resets the next queries list to an empty array.
|
|
57
|
+
*
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
export declare const resetNextQueriesWire: import("../..").AnyWire;
|
|
55
61
|
/**
|
|
56
62
|
* Sets the next queries state `searchedQueries` with the list of history queries.
|
|
57
63
|
*
|
|
@@ -71,6 +77,7 @@ export declare const nextQueriesWiring: {
|
|
|
71
77
|
resetResultsPreviewWire: import("../..").AnyWire;
|
|
72
78
|
};
|
|
73
79
|
UserAcceptedAQuery: {
|
|
80
|
+
resetNextQueriesWire: import("../..").AnyWire;
|
|
74
81
|
setNextQueriesQuery: import("../..").Wire<string>;
|
|
75
82
|
};
|
|
76
83
|
SelectedRelatedTagsChanged: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wiring.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/next-queries/wiring.ts"],"names":[],"mappings":"AAwCA;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,8BAAyB,CAAA;AAEzD;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,iEAA+B,CAAA;AAErE;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,yBAG1C,CAAA;AASD;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,wEAA0B,CAAA;AAEhE;;;;GAIG;AACH,eAAO,MAAM,oCAAoC,yBAGhD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,8EAA0C,CAAA;AAElF;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,mEAA+C,CAAA;AAE5F;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,yBAQ5C,CAAA;AACD;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,yBAAkD,CAAA;AAEtF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,mEAAmC,CAAA;AAElE;;;;GAIG;AACH,eAAO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