@searchspring/snap-store-mobx 0.27.7 → 0.29.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/dist/cjs/Abstract/AbstractStore.d.ts +3 -4
- package/dist/cjs/Abstract/AbstractStore.d.ts.map +1 -1
- package/dist/cjs/Abstract/AbstractStore.js +0 -1
- package/dist/cjs/Autocomplete/AutocompleteStore.d.ts +19 -18
- package/dist/cjs/Autocomplete/AutocompleteStore.d.ts.map +1 -1
- package/dist/cjs/Autocomplete/AutocompleteStore.js +20 -19
- package/dist/cjs/Autocomplete/Stores/{FacetStore.d.ts → AutocompleteFacetStore.d.ts} +4 -4
- package/dist/cjs/Autocomplete/Stores/AutocompleteFacetStore.d.ts.map +1 -0
- package/dist/cjs/Autocomplete/Stores/{FacetStore.js → AutocompleteFacetStore.js} +8 -8
- package/dist/{esm/Autocomplete/Stores/QueryStore.d.ts → cjs/Autocomplete/Stores/AutocompleteQueryStore.d.ts} +5 -5
- package/dist/cjs/Autocomplete/Stores/AutocompleteQueryStore.d.ts.map +1 -0
- package/dist/cjs/Autocomplete/Stores/{QueryStore.js → AutocompleteQueryStore.js} +6 -6
- package/dist/{esm/Autocomplete/Stores/StateStore.d.ts → cjs/Autocomplete/Stores/AutocompleteStateStore.d.ts} +3 -3
- package/dist/cjs/Autocomplete/Stores/AutocompleteStateStore.d.ts.map +1 -0
- package/dist/cjs/Autocomplete/Stores/{StateStore.js → AutocompleteStateStore.js} +6 -6
- package/dist/{esm/Autocomplete/Stores/TermStore.d.ts → cjs/Autocomplete/Stores/AutocompleteTermStore.d.ts} +5 -5
- package/dist/cjs/Autocomplete/Stores/AutocompleteTermStore.d.ts.map +1 -0
- package/dist/cjs/Autocomplete/Stores/{TermStore.js → AutocompleteTermStore.js} +7 -7
- package/dist/cjs/Autocomplete/Stores/AutocompleteTrendingStore.d.ts +9 -0
- package/dist/cjs/Autocomplete/Stores/AutocompleteTrendingStore.d.ts.map +1 -0
- package/dist/cjs/Autocomplete/Stores/{TrendingStore.js → AutocompleteTrendingStore.js} +11 -11
- package/dist/cjs/Autocomplete/Stores/index.d.ts +5 -5
- package/dist/cjs/Autocomplete/Stores/index.d.ts.map +1 -1
- package/dist/cjs/Autocomplete/Stores/index.js +11 -11
- package/dist/cjs/Finder/FinderStore.d.ts +6 -5
- package/dist/cjs/Finder/FinderStore.d.ts.map +1 -1
- package/dist/cjs/Finder/FinderStore.js +9 -9
- package/dist/cjs/Finder/Stores/FinderSelectionStore.d.ts +56 -0
- package/dist/cjs/Finder/Stores/FinderSelectionStore.d.ts.map +1 -0
- package/dist/cjs/Finder/Stores/{SelectionStore.js → FinderSelectionStore.js} +17 -16
- package/dist/cjs/Finder/Stores/index.d.ts +1 -1
- package/dist/cjs/Finder/Stores/index.d.ts.map +1 -1
- package/dist/cjs/Finder/Stores/index.js +3 -3
- package/dist/cjs/Recommendation/RecommendationStore.d.ts +6 -5
- package/dist/cjs/Recommendation/RecommendationStore.d.ts.map +1 -1
- package/dist/cjs/Recommendation/RecommendationStore.js +4 -4
- package/dist/cjs/Recommendation/Stores/RecommendationProfileStore.d.ts +9 -0
- package/dist/cjs/Recommendation/Stores/RecommendationProfileStore.d.ts.map +1 -0
- package/dist/cjs/Recommendation/Stores/RecommendationProfileStore.js +23 -0
- package/dist/cjs/Recommendation/Stores/index.d.ts +1 -1
- package/dist/cjs/Recommendation/Stores/index.d.ts.map +1 -1
- package/dist/cjs/Recommendation/Stores/index.js +3 -3
- package/dist/cjs/Search/SearchStore.d.ts +11 -11
- package/dist/cjs/Search/SearchStore.d.ts.map +1 -1
- package/dist/cjs/Search/SearchStore.js +26 -10
- package/dist/cjs/Search/Stores/SearchFacetStore.d.ts +76 -0
- package/dist/cjs/Search/Stores/SearchFacetStore.d.ts.map +1 -0
- package/dist/cjs/Search/Stores/{FacetStore.js → SearchFacetStore.js} +57 -50
- package/dist/cjs/Search/Stores/SearchFilterStore.d.ts +35 -0
- package/dist/cjs/Search/Stores/SearchFilterStore.d.ts.map +1 -0
- package/dist/cjs/Search/Stores/SearchFilterStore.js +93 -0
- package/dist/cjs/Search/Stores/SearchMerchandisingStore.d.ts +21 -0
- package/dist/cjs/Search/Stores/SearchMerchandisingStore.d.ts.map +1 -0
- package/dist/cjs/Search/Stores/{MerchandisingStore.js → SearchMerchandisingStore.js} +7 -7
- package/dist/cjs/Search/Stores/{PaginationStore.d.ts → SearchPaginationStore.d.ts} +5 -6
- package/dist/cjs/Search/Stores/SearchPaginationStore.d.ts.map +1 -0
- package/dist/cjs/Search/Stores/{PaginationStore.js → SearchPaginationStore.js} +17 -16
- package/dist/cjs/Search/Stores/{QueryStore.d.ts → SearchQueryStore.d.ts} +6 -6
- package/dist/cjs/Search/Stores/SearchQueryStore.d.ts.map +1 -0
- package/dist/cjs/Search/Stores/{QueryStore.js → SearchQueryStore.js} +5 -5
- package/dist/cjs/Search/Stores/SearchResultStore.d.ts +34 -0
- package/dist/cjs/Search/Stores/SearchResultStore.d.ts.map +1 -0
- package/dist/cjs/Search/Stores/{ResultStore.js → SearchResultStore.js} +10 -8
- package/dist/cjs/Search/Stores/SearchSortingStore.d.ts +25 -0
- package/dist/cjs/Search/Stores/SearchSortingStore.d.ts.map +1 -0
- package/dist/cjs/Search/Stores/{SortingStore.js → SearchSortingStore.js} +10 -11
- package/dist/cjs/Search/Stores/index.d.ts +7 -7
- package/dist/cjs/Search/Stores/index.d.ts.map +1 -1
- package/dist/cjs/Search/Stores/index.js +24 -15
- package/dist/cjs/Storage/StorageStore.d.ts +6 -6
- package/dist/cjs/Storage/StorageStore.d.ts.map +1 -1
- package/dist/cjs/Storage/StorageStore.js +7 -5
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/types.d.ts +3 -3
- package/dist/cjs/types.d.ts.map +1 -1
- package/dist/esm/Abstract/AbstractStore.d.ts +3 -4
- package/dist/esm/Abstract/AbstractStore.d.ts.map +1 -1
- package/dist/esm/Abstract/AbstractStore.js +0 -1
- package/dist/esm/Autocomplete/AutocompleteStore.d.ts +19 -18
- package/dist/esm/Autocomplete/AutocompleteStore.d.ts.map +1 -1
- package/dist/esm/Autocomplete/AutocompleteStore.js +21 -22
- package/dist/esm/Autocomplete/Stores/{FacetStore.d.ts → AutocompleteFacetStore.d.ts} +4 -4
- package/dist/esm/Autocomplete/Stores/AutocompleteFacetStore.d.ts.map +1 -0
- package/dist/esm/Autocomplete/Stores/{FacetStore.js → AutocompleteFacetStore.js} +2 -2
- package/dist/{cjs/Autocomplete/Stores/QueryStore.d.ts → esm/Autocomplete/Stores/AutocompleteQueryStore.d.ts} +5 -5
- package/dist/esm/Autocomplete/Stores/AutocompleteQueryStore.d.ts.map +1 -0
- package/dist/esm/Autocomplete/Stores/{QueryStore.js → AutocompleteQueryStore.js} +2 -2
- package/dist/{cjs/Autocomplete/Stores/StateStore.d.ts → esm/Autocomplete/Stores/AutocompleteStateStore.d.ts} +3 -3
- package/dist/esm/Autocomplete/Stores/AutocompleteStateStore.d.ts.map +1 -0
- package/dist/esm/Autocomplete/Stores/{StateStore.js → AutocompleteStateStore.js} +1 -1
- package/dist/{cjs/Autocomplete/Stores/TermStore.d.ts → esm/Autocomplete/Stores/AutocompleteTermStore.d.ts} +5 -5
- package/dist/esm/Autocomplete/Stores/AutocompleteTermStore.d.ts.map +1 -0
- package/dist/esm/Autocomplete/Stores/{TermStore.js → AutocompleteTermStore.js} +1 -1
- package/dist/esm/Autocomplete/Stores/AutocompleteTrendingStore.d.ts +9 -0
- package/dist/esm/Autocomplete/Stores/AutocompleteTrendingStore.d.ts.map +1 -0
- package/dist/esm/Autocomplete/Stores/{TrendingStore.js → AutocompleteTrendingStore.js} +3 -3
- package/dist/esm/Autocomplete/Stores/index.d.ts +5 -5
- package/dist/esm/Autocomplete/Stores/index.d.ts.map +1 -1
- package/dist/esm/Autocomplete/Stores/index.js +5 -5
- package/dist/esm/Finder/FinderStore.d.ts +6 -5
- package/dist/esm/Finder/FinderStore.d.ts.map +1 -1
- package/dist/esm/Finder/FinderStore.js +9 -9
- package/dist/esm/Finder/Stores/FinderSelectionStore.d.ts +60 -0
- package/dist/esm/Finder/Stores/FinderSelectionStore.d.ts.map +1 -0
- package/dist/esm/Finder/Stores/{SelectionStore.js → FinderSelectionStore.js} +9 -9
- package/dist/esm/Finder/Stores/index.d.ts +1 -1
- package/dist/esm/Finder/Stores/index.d.ts.map +1 -1
- package/dist/esm/Finder/Stores/index.js +1 -1
- package/dist/esm/Recommendation/RecommendationStore.d.ts +6 -5
- package/dist/esm/Recommendation/RecommendationStore.d.ts.map +1 -1
- package/dist/esm/Recommendation/RecommendationStore.js +6 -6
- package/dist/esm/Recommendation/Stores/RecommendationProfileStore.d.ts +9 -0
- package/dist/esm/Recommendation/Stores/RecommendationProfileStore.d.ts.map +1 -0
- package/dist/esm/Recommendation/Stores/{ProfileStore.js → RecommendationProfileStore.js} +6 -6
- package/dist/esm/Recommendation/Stores/index.d.ts +1 -1
- package/dist/esm/Recommendation/Stores/index.d.ts.map +1 -1
- package/dist/esm/Recommendation/Stores/index.js +1 -1
- package/dist/esm/Search/SearchStore.d.ts +11 -11
- package/dist/esm/Search/SearchStore.d.ts.map +1 -1
- package/dist/esm/Search/SearchStore.js +27 -12
- package/dist/esm/Search/Stores/SearchFacetStore.d.ts +76 -0
- package/dist/esm/Search/Stores/SearchFacetStore.d.ts.map +1 -0
- package/dist/esm/Search/Stores/{FacetStore.js → SearchFacetStore.js} +34 -33
- package/dist/esm/Search/Stores/SearchFilterStore.d.ts +35 -0
- package/dist/esm/Search/Stores/SearchFilterStore.d.ts.map +1 -0
- package/dist/esm/Search/Stores/SearchFilterStore.js +61 -0
- package/dist/esm/Search/Stores/SearchMerchandisingStore.d.ts +21 -0
- package/dist/esm/Search/Stores/SearchMerchandisingStore.d.ts.map +1 -0
- package/dist/esm/Search/Stores/{MerchandisingStore.js → SearchMerchandisingStore.js} +3 -3
- package/dist/esm/Search/Stores/{PaginationStore.d.ts → SearchPaginationStore.d.ts} +5 -6
- package/dist/esm/Search/Stores/SearchPaginationStore.d.ts.map +1 -0
- package/dist/esm/Search/Stores/{PaginationStore.js → SearchPaginationStore.js} +3 -3
- package/dist/esm/Search/Stores/{QueryStore.d.ts → SearchQueryStore.d.ts} +6 -6
- package/dist/esm/Search/Stores/SearchQueryStore.d.ts.map +1 -0
- package/dist/esm/Search/Stores/{QueryStore.js → SearchQueryStore.js} +1 -1
- package/dist/esm/Search/Stores/SearchResultStore.d.ts +34 -0
- package/dist/esm/Search/Stores/SearchResultStore.d.ts.map +1 -0
- package/dist/esm/Search/Stores/{ResultStore.js → SearchResultStore.js} +4 -6
- package/dist/esm/Search/Stores/SearchSortingStore.d.ts +25 -0
- package/dist/esm/Search/Stores/SearchSortingStore.d.ts.map +1 -0
- package/dist/esm/Search/Stores/{SortingStore.js → SearchSortingStore.js} +5 -6
- package/dist/esm/Search/Stores/index.d.ts +7 -7
- package/dist/esm/Search/Stores/index.d.ts.map +1 -1
- package/dist/esm/Search/Stores/index.js +7 -7
- package/dist/esm/Storage/StorageStore.d.ts +6 -6
- package/dist/esm/Storage/StorageStore.d.ts.map +1 -1
- package/dist/esm/Storage/StorageStore.js +7 -5
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/types.d.ts +3 -3
- package/dist/esm/types.d.ts.map +1 -1
- package/package.json +6 -5
- package/dist/cjs/Autocomplete/Stores/FacetStore.d.ts.map +0 -1
- package/dist/cjs/Autocomplete/Stores/QueryStore.d.ts.map +0 -1
- package/dist/cjs/Autocomplete/Stores/StateStore.d.ts.map +0 -1
- package/dist/cjs/Autocomplete/Stores/TermStore.d.ts.map +0 -1
- package/dist/cjs/Autocomplete/Stores/TrendingStore.d.ts +0 -7
- package/dist/cjs/Autocomplete/Stores/TrendingStore.d.ts.map +0 -1
- package/dist/cjs/Finder/Stores/SelectionStore.d.ts +0 -17
- package/dist/cjs/Finder/Stores/SelectionStore.d.ts.map +0 -1
- package/dist/cjs/Recommendation/Stores/ProfileStore.d.ts +0 -8
- package/dist/cjs/Recommendation/Stores/ProfileStore.d.ts.map +0 -1
- package/dist/cjs/Recommendation/Stores/ProfileStore.js +0 -22
- package/dist/cjs/Search/Stores/FacetStore.d.ts +0 -8
- package/dist/cjs/Search/Stores/FacetStore.d.ts.map +0 -1
- package/dist/cjs/Search/Stores/FilterStore.d.ts +0 -7
- package/dist/cjs/Search/Stores/FilterStore.d.ts.map +0 -1
- package/dist/cjs/Search/Stores/FilterStore.js +0 -96
- package/dist/cjs/Search/Stores/MerchandisingStore.d.ts +0 -20
- package/dist/cjs/Search/Stores/MerchandisingStore.d.ts.map +0 -1
- package/dist/cjs/Search/Stores/PaginationStore.d.ts.map +0 -1
- package/dist/cjs/Search/Stores/QueryStore.d.ts.map +0 -1
- package/dist/cjs/Search/Stores/ResultStore.d.ts +0 -7
- package/dist/cjs/Search/Stores/ResultStore.d.ts.map +0 -1
- package/dist/cjs/Search/Stores/SortingStore.d.ts +0 -21
- package/dist/cjs/Search/Stores/SortingStore.d.ts.map +0 -1
- package/dist/esm/Autocomplete/Stores/FacetStore.d.ts.map +0 -1
- package/dist/esm/Autocomplete/Stores/QueryStore.d.ts.map +0 -1
- package/dist/esm/Autocomplete/Stores/StateStore.d.ts.map +0 -1
- package/dist/esm/Autocomplete/Stores/TermStore.d.ts.map +0 -1
- package/dist/esm/Autocomplete/Stores/TrendingStore.d.ts +0 -7
- package/dist/esm/Autocomplete/Stores/TrendingStore.d.ts.map +0 -1
- package/dist/esm/Finder/Stores/SelectionStore.d.ts +0 -17
- package/dist/esm/Finder/Stores/SelectionStore.d.ts.map +0 -1
- package/dist/esm/Recommendation/Stores/ProfileStore.d.ts +0 -8
- package/dist/esm/Recommendation/Stores/ProfileStore.d.ts.map +0 -1
- package/dist/esm/Search/Stores/FacetStore.d.ts +0 -8
- package/dist/esm/Search/Stores/FacetStore.d.ts.map +0 -1
- package/dist/esm/Search/Stores/FilterStore.d.ts +0 -7
- package/dist/esm/Search/Stores/FilterStore.d.ts.map +0 -1
- package/dist/esm/Search/Stores/FilterStore.js +0 -68
- package/dist/esm/Search/Stores/MerchandisingStore.d.ts +0 -20
- package/dist/esm/Search/Stores/MerchandisingStore.d.ts.map +0 -1
- package/dist/esm/Search/Stores/PaginationStore.d.ts.map +0 -1
- package/dist/esm/Search/Stores/QueryStore.d.ts.map +0 -1
- package/dist/esm/Search/Stores/ResultStore.d.ts +0 -7
- package/dist/esm/Search/Stores/ResultStore.d.ts.map +0 -1
- package/dist/esm/Search/Stores/SortingStore.d.ts +0 -21
- package/dist/esm/Search/Stores/SortingStore.d.ts.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { makeObservable, observable } from 'mobx';
|
|
2
|
-
export class
|
|
2
|
+
export class SearchResultStore extends Array {
|
|
3
3
|
static get [Symbol.species]() {
|
|
4
4
|
return Array;
|
|
5
5
|
}
|
|
@@ -19,12 +19,10 @@ export class ResultStore extends Array {
|
|
|
19
19
|
results = addBannersToResults(config, results, banners, paginationData);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
23
|
-
// @ts-ignore
|
|
24
22
|
super(...results);
|
|
25
23
|
}
|
|
26
24
|
}
|
|
27
|
-
class Banner {
|
|
25
|
+
export class Banner {
|
|
28
26
|
constructor(services, banner) {
|
|
29
27
|
this.type = 'banner';
|
|
30
28
|
this.attributes = {};
|
|
@@ -42,7 +40,7 @@ class Banner {
|
|
|
42
40
|
});
|
|
43
41
|
}
|
|
44
42
|
}
|
|
45
|
-
class Product {
|
|
43
|
+
export class Product {
|
|
46
44
|
constructor(services, result) {
|
|
47
45
|
this.type = 'product';
|
|
48
46
|
this.attributes = {};
|
|
@@ -68,7 +66,7 @@ class Product {
|
|
|
68
66
|
custom: observable,
|
|
69
67
|
});
|
|
70
68
|
// must set all subo
|
|
71
|
-
const coreObservables = Object.keys(
|
|
69
|
+
const coreObservables = Object.keys(this.mappings.core).reduce((map, key) => {
|
|
72
70
|
return {
|
|
73
71
|
...map,
|
|
74
72
|
[key]: observable,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { UrlManager } from '@searchspring/snap-url-manager';
|
|
2
|
+
import type { StoreServices } from '../../types';
|
|
3
|
+
import type { MetaResponseModel, MetaResponseModelSortOption, SearchResponseModelSearch, SearchResponseModelSorting } from '@searchspring/snapi-types';
|
|
4
|
+
declare type MetaResponseModelSortOptionMutated = MetaResponseModelSortOption & {
|
|
5
|
+
active?: boolean;
|
|
6
|
+
default?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare class SearchSortingStore {
|
|
9
|
+
options: Option[];
|
|
10
|
+
constructor(services: StoreServices, sorting: SearchResponseModelSorting[], search: SearchResponseModelSearch, meta: MetaResponseModel);
|
|
11
|
+
get current(): Option | undefined;
|
|
12
|
+
}
|
|
13
|
+
declare class Option {
|
|
14
|
+
active: boolean;
|
|
15
|
+
default: boolean;
|
|
16
|
+
field: string;
|
|
17
|
+
label: string;
|
|
18
|
+
direction: string;
|
|
19
|
+
type: string;
|
|
20
|
+
value: string;
|
|
21
|
+
url: UrlManager;
|
|
22
|
+
constructor(services: StoreServices, option: MetaResponseModelSortOptionMutated, index: number);
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=SearchSortingStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchSortingStore.d.ts","sourceRoot":"","sources":["../../../../src/Search/Stores/SearchSortingStore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EACX,iBAAiB,EACjB,2BAA2B,EAC3B,yBAAyB,EACzB,0BAA0B,EAC1B,MAAM,2BAA2B,CAAC;AAEnC,aAAK,kCAAkC,GAAG,2BAA2B,GAAG;IACvE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,qBAAa,kBAAkB;IACvB,OAAO,EAAE,MAAM,EAAE,CAAM;gBAElB,QAAQ,EAAE,aAAa,EAAE,OAAO,EAAE,0BAA0B,EAAE,EAAE,MAAM,EAAE,yBAAyB,EAAE,IAAI,EAAE,iBAAiB;IAsCtI,IAAW,OAAO,IAAI,MAAM,GAAG,SAAS,CAEvC;CACD;AAED,cAAM,MAAM;IACJ,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,UAAU,CAAC;gBAEX,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,kCAAkC,EAAE,KAAK,EAAE,MAAM;CAuB9F"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { observable, computed, makeObservable } from 'mobx';
|
|
2
|
-
export class
|
|
2
|
+
export class SearchSortingStore {
|
|
3
3
|
constructor(services, sorting, search, meta) {
|
|
4
4
|
this.options = [];
|
|
5
5
|
if (services && meta.sortOptions) {
|
|
6
|
-
const activeSort = sorting
|
|
7
|
-
|
|
6
|
+
const activeSort = sorting?.length && sorting[0];
|
|
7
|
+
const options = (meta.sortOptions || [])
|
|
8
8
|
.filter((option) => {
|
|
9
9
|
if (!search?.query) {
|
|
10
10
|
return option.type == 'field';
|
|
@@ -13,9 +13,7 @@ export class SortingStore {
|
|
|
13
13
|
})
|
|
14
14
|
.map((option, index) => {
|
|
15
15
|
option.active = false;
|
|
16
|
-
|
|
17
|
-
// @ts-ignore
|
|
18
|
-
if (activeSort && activeSort.field == option.field && activeSort.direction == option.direction) {
|
|
16
|
+
if (activeSort && activeSort.field == option.field && String(activeSort.direction) == String(option.direction)) {
|
|
19
17
|
option.active = true;
|
|
20
18
|
}
|
|
21
19
|
else if (!activeSort && index === 0) {
|
|
@@ -29,6 +27,7 @@ export class SortingStore {
|
|
|
29
27
|
const optionObj = new Option(services, option, index);
|
|
30
28
|
return optionObj;
|
|
31
29
|
});
|
|
30
|
+
this.options = options;
|
|
32
31
|
makeObservable(this, {
|
|
33
32
|
options: observable,
|
|
34
33
|
current: computed,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
1
|
+
export { SearchMerchandisingStore, BannerContent, ContentType } from './SearchMerchandisingStore';
|
|
2
|
+
export { SearchFacetStore, ValueFacet, RangeFacet, FacetValue, FacetHierarchyValue, FacetRangeValue } from './SearchFacetStore';
|
|
3
|
+
export { SearchFilterStore, Filter } from './SearchFilterStore';
|
|
4
|
+
export { SearchPaginationStore } from './SearchPaginationStore';
|
|
5
|
+
export { SearchResultStore, Product, Banner } from './SearchResultStore';
|
|
6
|
+
export { SearchSortingStore } from './SearchSortingStore';
|
|
7
|
+
export { SearchQueryStore } from './SearchQueryStore';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Search/Stores/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Search/Stores/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAChI,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
1
|
+
export { SearchMerchandisingStore, ContentType } from './SearchMerchandisingStore';
|
|
2
|
+
export { SearchFacetStore, ValueFacet, RangeFacet, FacetValue, FacetHierarchyValue, FacetRangeValue } from './SearchFacetStore';
|
|
3
|
+
export { SearchFilterStore, Filter } from './SearchFilterStore';
|
|
4
|
+
export { SearchPaginationStore } from './SearchPaginationStore';
|
|
5
|
+
export { SearchResultStore, Product, Banner } from './SearchResultStore';
|
|
6
|
+
export { SearchSortingStore } from './SearchSortingStore';
|
|
7
|
+
export { SearchQueryStore } from './SearchQueryStore';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export declare class StorageStore {
|
|
2
|
-
type
|
|
3
|
-
expiration
|
|
4
|
-
sameSite
|
|
5
|
-
key
|
|
6
|
-
state:
|
|
2
|
+
private type;
|
|
3
|
+
private expiration;
|
|
4
|
+
private sameSite;
|
|
5
|
+
private key;
|
|
6
|
+
state: Record<string, any>;
|
|
7
7
|
constructor(config?: StorageConfig);
|
|
8
8
|
set(path: string, value: any): void;
|
|
9
|
-
get(path: string): any;
|
|
9
|
+
get(path: string): any | undefined;
|
|
10
10
|
clear(): void;
|
|
11
11
|
}
|
|
12
12
|
export declare type StorageConfig = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageStore.d.ts","sourceRoot":"","sources":["../../../src/Storage/StorageStore.ts"],"names":[],"mappings":"AAMA,qBAAa,YAAY;IACxB,
|
|
1
|
+
{"version":3,"file":"StorageStore.d.ts","sourceRoot":"","sources":["../../../src/Storage/StorageStore.ts"],"names":[],"mappings":"AAMA,qBAAa,YAAY;IACxB,OAAO,CAAC,IAAI,CAA4B;IACxC,OAAO,CAAC,UAAU,CAAe;IACjC,OAAO,CAAC,QAAQ,CAAiB;IACjC,OAAO,CAAC,GAAG,CAAgB;IACpB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;gBAE3B,MAAM,CAAC,EAAE,aAAa;IA8C3B,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI;IAyBnC,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,SAAS;IAiClC,KAAK,IAAI,IAAI;CAcpB;AAED,oBAAY,aAAa,GAAG;IAC3B,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,CAAC,EAAE;QACR,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,GAAG,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,oBAAY,WAAW;IACtB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,MAAM,WAAW;CACjB"}
|
|
@@ -6,7 +6,7 @@ export class StorageStore {
|
|
|
6
6
|
constructor(config) {
|
|
7
7
|
this.type = null;
|
|
8
8
|
this.expiration = 31536000000; // one year (ms)
|
|
9
|
-
this.sameSite =
|
|
9
|
+
this.sameSite = 'Lax';
|
|
10
10
|
this.key = 'ss-storage';
|
|
11
11
|
this.state = {};
|
|
12
12
|
if (config) {
|
|
@@ -79,10 +79,12 @@ export class StorageStore {
|
|
|
79
79
|
get(path) {
|
|
80
80
|
switch (this.type) {
|
|
81
81
|
case StorageType.SESSION:
|
|
82
|
-
|
|
82
|
+
const sessionData = window.sessionStorage.getItem(this.key);
|
|
83
|
+
this.state = sessionData ? JSON.parse(sessionData) : {};
|
|
83
84
|
break;
|
|
84
85
|
case StorageType.LOCAL:
|
|
85
|
-
|
|
86
|
+
const localData = window.localStorage.getItem(this.key);
|
|
87
|
+
this.state = localData ? JSON.parse(localData) : {};
|
|
86
88
|
break;
|
|
87
89
|
case StorageType.COOKIE:
|
|
88
90
|
const data = utils.cookies.get(this.key);
|
|
@@ -100,8 +102,8 @@ export class StorageStore {
|
|
|
100
102
|
value = value[p];
|
|
101
103
|
}
|
|
102
104
|
else {
|
|
103
|
-
value =
|
|
104
|
-
|
|
105
|
+
value = {};
|
|
106
|
+
return;
|
|
105
107
|
}
|
|
106
108
|
}
|
|
107
109
|
return value;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { AbstractStore } from './Abstract/AbstractStore';
|
|
|
2
2
|
export { AutocompleteStore } from './Autocomplete/AutocompleteStore';
|
|
3
3
|
export { FinderStore } from './Finder/FinderStore';
|
|
4
4
|
export { SearchStore } from './Search/SearchStore';
|
|
5
|
+
export * from './Search/Stores/';
|
|
5
6
|
export { RecommendationStore } from './Recommendation/RecommendationStore';
|
|
6
7
|
export { StorageStore, StorageConfig, StorageType } from './Storage/StorageStore';
|
|
7
8
|
export * from './types';
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAElF,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAElF,cAAc,SAAS,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -2,6 +2,7 @@ export { AbstractStore } from './Abstract/AbstractStore';
|
|
|
2
2
|
export { AutocompleteStore } from './Autocomplete/AutocompleteStore';
|
|
3
3
|
export { FinderStore } from './Finder/FinderStore';
|
|
4
4
|
export { SearchStore } from './Search/SearchStore';
|
|
5
|
+
export * from './Search/Stores/';
|
|
5
6
|
export { RecommendationStore } from './Recommendation/RecommendationStore';
|
|
6
7
|
export { StorageStore, StorageType } from './Storage/StorageStore';
|
|
7
8
|
export * from './types';
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare type SearchStoreConfig = StoreConfig & {
|
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
|
-
declare type FacetStoreConfig = {
|
|
24
|
+
export declare type FacetStoreConfig = {
|
|
25
25
|
trim?: boolean;
|
|
26
26
|
pinFiltered?: boolean;
|
|
27
27
|
storeRange?: boolean;
|
|
@@ -65,10 +65,11 @@ export declare type RecommendationStoreConfig = StoreConfig & {
|
|
|
65
65
|
branch?: string;
|
|
66
66
|
realtime?: boolean;
|
|
67
67
|
batched?: boolean;
|
|
68
|
+
order?: number;
|
|
68
69
|
};
|
|
69
70
|
export declare type StoreConfigs = SearchStoreConfig | AutocompleteStoreConfig | FinderStoreConfig | RecommendationStoreConfig;
|
|
70
71
|
export declare type StoreServices = {
|
|
71
|
-
urlManager
|
|
72
|
+
urlManager: UrlManager;
|
|
72
73
|
};
|
|
73
74
|
export declare enum ErrorType {
|
|
74
75
|
WARNING = "warning",
|
|
@@ -83,5 +84,4 @@ export declare type SelectedSelection = {
|
|
|
83
84
|
export declare type FinderStoreState = {
|
|
84
85
|
persisted: boolean;
|
|
85
86
|
};
|
|
86
|
-
export {};
|
|
87
87
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/esm/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,KAAK,EAAE,wCAAwC,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAExI,oBAAY,WAAW,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACvB,CAAC;AAGF,oBAAY,iBAAiB,GAAG,WAAW,GAAG;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACtC,QAAQ,CAAC,EAAE;QACV,SAAS,CAAC,EAAE;YACX,aAAa,CAAC,EAAE,OAAO,CAAC;YACxB,YAAY,CAAC,EAAE,OAAO,CAAC;SACvB,CAAC;QACF,MAAM,CAAC,EAAE,gBAAgB,GAAG;YAC3B,MAAM,CAAC,EAAE;gBACR,CAAC,KAAK,EAAE,MAAM,GAAG,gBAAgB,CAAC;aACl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B,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,KAAK,UAAU;CACf;AAED,oBAAY,iBAAiB,GAAG;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,wCAAwC,EAAE,CAAC;IACjD,KAAK,EAAE,GAAG,CAAC;CACX,CAAC;AAEF,oBAAY,gBAAgB,GAAG;IAC9B,SAAS,EAAE,OAAO,CAAC;CACnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@searchspring/snap-store-mobx",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.0",
|
|
4
4
|
"description": "Snap MobX Store",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -20,15 +20,16 @@
|
|
|
20
20
|
"test:watch": "jest --watch"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@searchspring/snap-toolbox": "^0.
|
|
24
|
-
"mobx": "
|
|
23
|
+
"@searchspring/snap-toolbox": "^0.29.0",
|
|
24
|
+
"mobx": "6.6.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@searchspring/snap-
|
|
27
|
+
"@searchspring/snap-client": "^0.29.0",
|
|
28
|
+
"@searchspring/snap-url-manager": "^0.29.0"
|
|
28
29
|
},
|
|
29
30
|
"sideEffects": false,
|
|
30
31
|
"files": [
|
|
31
32
|
"dist/**/*"
|
|
32
33
|
],
|
|
33
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "8519941d9efa15462c21be62a51fa43000177584"
|
|
34
35
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FacetStore.d.ts","sourceRoot":"","sources":["../../../../src/Autocomplete/Stores/FacetStore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC7F,OAAO,KAAK,EAAE,wBAAwB,EAAE,6BAA6B,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE5H,qBAAa,UAAW,SAAQ,KAAK;IACpC,MAAM,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,gBAAgB,CAE9C;gBAGA,MAAM,EAAE,iBAAiB,GAAG,uBAAuB,EACnD,QAAQ,EAAE,aAAa,EACvB,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,wBAAwB,EAAE,EACtC,cAAc,EAAE,6BAA6B,EAC7C,IAAI,EAAE,iBAAiB,EACvB,SAAS,EAAE,UAAU;CA2BtB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryStore.d.ts","sourceRoot":"","sources":["../../../../src/Autocomplete/Stores/QueryStore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,KAAK,EAAE,yBAAyB,EAAE,0CAA0C,EAAE,MAAM,2BAA2B,CAAC;AACvH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,qBAAa,UAAU;IACtB,KAAK,EAAE,KAAK,CAAC;IACb,aAAa,EAAE,KAAK,CAAC;gBAET,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,0CAA0C,EAAE,MAAM,EAAE,yBAAyB;CAehI;AAMD,cAAM,KAAK;IACV,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,UAAU,CAAC;gBAEJ,UAAU,KAAA,EAAE,KAAK,KAAA;CAS7B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StateStore.d.ts","sourceRoot":"","sources":["../../../../src/Autocomplete/Stores/StateStore.ts"],"names":[],"mappings":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MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,GAAG,EAAE,UAAU,CAAC;gBAEJ,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE;QAAE,MAAM,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,MAAM,IAAI,EAAE,SAAS,EAAE,UAAU;CAwB3I"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { StoreServices } from '../../types';
|
|
2
|
-
import type { StateStore } from './StateStore';
|
|
3
|
-
export declare class TrendingStore extends Array {
|
|
4
|
-
static get [Symbol.species](): ArrayConstructor;
|
|
5
|
-
constructor(services: StoreServices, trendingData: any, resetTerms: () => void, rootState: StateStore);
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=TrendingStore.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TrendingStore.d.ts","sourceRoot":"","sources":["../../../../src/Autocomplete/Stores/TrendingStore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,qBAAa,aAAc,SAAQ,KAAK;IACvC,MAAM,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,gBAAgB,CAE9C;gBAEW,QAAQ,EAAE,aAAa,EAAE,YAAY,KAAA,EAAE,UAAU,EAAE,MAAM,IAAI,EAAE,SAAS,EAAE,UAAU;CAoBhG"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { FinderStoreConfig, StoreServices, SelectedSelection, FinderStoreState } from '../../types';
|
|
2
|
-
import type { StorageStore } from '../../Storage/StorageStore';
|
|
3
|
-
import type { MetaResponseModel, SearchResponseModelFacet } from '@searchspring/snapi-types';
|
|
4
|
-
declare type SelectionStoreData = {
|
|
5
|
-
state: FinderStoreState;
|
|
6
|
-
facets: SearchResponseModelFacet[];
|
|
7
|
-
meta: MetaResponseModel;
|
|
8
|
-
loading: boolean;
|
|
9
|
-
storage: StorageStore;
|
|
10
|
-
selections: SelectedSelection[];
|
|
11
|
-
};
|
|
12
|
-
export declare class SelectionStore extends Array {
|
|
13
|
-
static get [Symbol.species](): ArrayConstructor;
|
|
14
|
-
constructor(config: FinderStoreConfig, services: StoreServices, { state, facets, meta, loading, storage, selections }: SelectionStoreData);
|
|
15
|
-
}
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=SelectionStore.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SelectionStore.d.ts","sourceRoot":"","sources":["../../../../src/Finder/Stores/SelectionStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAqB,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC5H,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,wBAAwB,EAA4C,MAAM,2BAA2B,CAAC;AAEvI,aAAK,kBAAkB,GAAG;IACzB,KAAK,EAAE,gBAAgB,CAAC;IACxB,MAAM,EAAE,wBAAwB,EAAE,CAAC;IACnC,IAAI,EAAE,iBAAiB,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,YAAY,CAAC;IACtB,UAAU,EAAE,iBAAiB,EAAE,CAAC;CAChC,CAAC;AACF,qBAAa,cAAe,SAAQ,KAAK;IACxC,MAAM,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,gBAAgB,CAE9C;gBAEW,MAAM,EAAE,iBAAiB,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,kBAAkB;CA+FzI"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileStore.d.ts","sourceRoot":"","sources":["../../../../src/Recommendation/Stores/ProfileStore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,qBAAa,YAAY;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;gBAEtB,QAAQ,EAAE,aAAa,EAAE,OAAO,KAAA;CAe5C"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProfileStore = void 0;
|
|
4
|
-
var mobx_1 = require("mobx");
|
|
5
|
-
var ProfileStore = /** @class */ (function () {
|
|
6
|
-
function ProfileStore(services, profile) {
|
|
7
|
-
this.display = {};
|
|
8
|
-
if (!(profile === null || profile === void 0 ? void 0 : profile.tag)) {
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
this.tag = profile.tag;
|
|
12
|
-
this.placement = profile.placement;
|
|
13
|
-
this.display = profile.display;
|
|
14
|
-
(0, mobx_1.makeObservable)(this, {
|
|
15
|
-
tag: mobx_1.observable,
|
|
16
|
-
placement: mobx_1.observable,
|
|
17
|
-
display: mobx_1.observable,
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
return ProfileStore;
|
|
21
|
-
}());
|
|
22
|
-
exports.ProfileStore = ProfileStore;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { StorageStore } from '../../Storage/StorageStore';
|
|
2
|
-
import type { AutocompleteStoreConfig, SearchStoreConfig, StoreServices } from '../../types';
|
|
3
|
-
import type { MetaResponseModel, SearchResponseModelPagination, SearchResponseModelFacet } from '@searchspring/snapi-types';
|
|
4
|
-
export declare class FacetStore extends Array {
|
|
5
|
-
static get [Symbol.species](): ArrayConstructor;
|
|
6
|
-
constructor(config: SearchStoreConfig | AutocompleteStoreConfig, services: StoreServices, storage: StorageStore, facetsData: SearchResponseModelFacet[], pagination: SearchResponseModelPagination, meta: MetaResponseModel);
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=FacetStore.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FacetStore.d.ts","sourceRoot":"","sources":["../../../../src/Search/Stores/FacetStore.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC7F,OAAO,KAAK,EACX,iBAAiB,EAMjB,6BAA6B,EAC7B,wBAAwB,EAMxB,MAAM,2BAA2B,CAAC;AAEnC,qBAAa,UAAW,SAAQ,KAAK;IACpC,MAAM,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,gBAAgB,CAE9C;gBAEA,MAAM,EAAE,iBAAiB,GAAG,uBAAuB,EACnD,QAAQ,EAAE,aAAa,EACvB,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,wBAAwB,EAAO,EAC3C,UAAU,EAAE,6BAA6B,EACzC,IAAI,EAAE,iBAAiB;CA8CxB"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { StoreServices } from '../../types';
|
|
2
|
-
import type { SearchResponseModelFilter, MetaResponseModel } from '@searchspring/snapi-types';
|
|
3
|
-
export declare class FilterStore extends Array {
|
|
4
|
-
static get [Symbol.species](): ArrayConstructor;
|
|
5
|
-
constructor(services: StoreServices, filtersData: SearchResponseModelFilter[], meta: MetaResponseModel);
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=FilterStore.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FilterStore.d.ts","sourceRoot":"","sources":["../../../../src/Search/Stores/FilterStore.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EACX,yBAAyB,EACzB,iBAAiB,EAKjB,MAAM,2BAA2B,CAAC;AAEnC,qBAAa,WAAY,SAAQ,KAAK;IACrC,MAAM,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,gBAAgB,CAE9C;gBAEW,QAAQ,EAAE,aAAa,EAAE,WAAW,EAAE,yBAAyB,EAAO,EAAE,IAAI,EAAE,iBAAiB;CAuC3G"}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.FilterStore = void 0;
|
|
19
|
-
var mobx_1 = require("mobx");
|
|
20
|
-
var FilterStore = /** @class */ (function (_super) {
|
|
21
|
-
__extends(FilterStore, _super);
|
|
22
|
-
function FilterStore(services, filtersData, meta) {
|
|
23
|
-
if (filtersData === void 0) { filtersData = []; }
|
|
24
|
-
var filters = filtersData.map(function (filter) {
|
|
25
|
-
var facetMeta = meta.facets[filter.field];
|
|
26
|
-
switch (filter.type) {
|
|
27
|
-
case 'range':
|
|
28
|
-
var rangeFilter = filter;
|
|
29
|
-
return new RangeFilter(services, {
|
|
30
|
-
facet: {
|
|
31
|
-
field: rangeFilter.field,
|
|
32
|
-
label: (facetMeta === null || facetMeta === void 0 ? void 0 : facetMeta.label) || rangeFilter.field,
|
|
33
|
-
},
|
|
34
|
-
value: {
|
|
35
|
-
low: rangeFilter.value.low,
|
|
36
|
-
high: rangeFilter.value.high,
|
|
37
|
-
label: rangeFilter.label || "".concat(rangeFilter.value.low, " - ").concat(rangeFilter.value.high),
|
|
38
|
-
},
|
|
39
|
-
});
|
|
40
|
-
case 'value':
|
|
41
|
-
default:
|
|
42
|
-
var valueFilter = filter;
|
|
43
|
-
return new Filter(services, {
|
|
44
|
-
facet: {
|
|
45
|
-
field: valueFilter.field,
|
|
46
|
-
label: (facetMeta === null || facetMeta === void 0 ? void 0 : facetMeta.label) || valueFilter.field,
|
|
47
|
-
},
|
|
48
|
-
value: {
|
|
49
|
-
value: valueFilter.value,
|
|
50
|
-
label: valueFilter.label,
|
|
51
|
-
},
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
return _super.apply(this, filters) || this;
|
|
56
|
-
}
|
|
57
|
-
Object.defineProperty(FilterStore, Symbol.species, {
|
|
58
|
-
get: function () {
|
|
59
|
-
return Array;
|
|
60
|
-
},
|
|
61
|
-
enumerable: false,
|
|
62
|
-
configurable: true
|
|
63
|
-
});
|
|
64
|
-
return FilterStore;
|
|
65
|
-
}(Array));
|
|
66
|
-
exports.FilterStore = FilterStore;
|
|
67
|
-
var Filter = /** @class */ (function () {
|
|
68
|
-
function Filter(services, filter) {
|
|
69
|
-
var _a;
|
|
70
|
-
this.facet = filter.facet;
|
|
71
|
-
this.value = filter.value;
|
|
72
|
-
this.label = "".concat(filter.facet.label, ": ").concat(filter.value.label);
|
|
73
|
-
this.url = (_a = services === null || services === void 0 ? void 0 : services.urlManager) === null || _a === void 0 ? void 0 : _a.remove('page').remove("filter.".concat(this.facet.field), this.value.value);
|
|
74
|
-
(0, mobx_1.makeObservable)(this, {
|
|
75
|
-
facet: mobx_1.observable,
|
|
76
|
-
value: mobx_1.observable,
|
|
77
|
-
label: mobx_1.observable,
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
return Filter;
|
|
81
|
-
}());
|
|
82
|
-
var RangeFilter = /** @class */ (function () {
|
|
83
|
-
function RangeFilter(services, filter) {
|
|
84
|
-
var _a;
|
|
85
|
-
this.facet = filter.facet;
|
|
86
|
-
this.value = filter.value;
|
|
87
|
-
this.label = "".concat(filter.facet.label, ": ").concat(filter.value.label);
|
|
88
|
-
this.url = (_a = services === null || services === void 0 ? void 0 : services.urlManager) === null || _a === void 0 ? void 0 : _a.remove('page').remove("filter.".concat(filter.facet.field), { low: filter.value.low, high: filter.value.high });
|
|
89
|
-
(0, mobx_1.makeObservable)(this, {
|
|
90
|
-
facet: mobx_1.observable,
|
|
91
|
-
value: mobx_1.observable,
|
|
92
|
-
label: mobx_1.observable,
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
return RangeFilter;
|
|
96
|
-
}());
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { StoreServices } from '../../types';
|
|
2
|
-
import type { SearchResponseModelMerchandising } from '@searchspring/snapi-types';
|
|
3
|
-
declare enum ContentType {
|
|
4
|
-
HEADER = "header",
|
|
5
|
-
BANNER = "banner",
|
|
6
|
-
FOOTER = "footer",
|
|
7
|
-
LEFT = "left",
|
|
8
|
-
INLINE = "inline"
|
|
9
|
-
}
|
|
10
|
-
export declare class MerchandisingStore {
|
|
11
|
-
redirect: string;
|
|
12
|
-
content: Partial<Record<ContentType, Content[]>>;
|
|
13
|
-
constructor(services: StoreServices, merchData: SearchResponseModelMerchandising);
|
|
14
|
-
}
|
|
15
|
-
declare class Content extends Array {
|
|
16
|
-
static get [Symbol.species](): ArrayConstructor;
|
|
17
|
-
constructor(content: any);
|
|
18
|
-
}
|
|
19
|
-
export {};
|
|
20
|
-
//# sourceMappingURL=MerchandisingStore.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MerchandisingStore.d.ts","sourceRoot":"","sources":["../../../../src/Search/Stores/MerchandisingStore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,2BAA2B,CAAC;AAElF,aAAK,WAAW;IACf,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,MAAM,WAAW;CACjB;AACD,qBAAa,kBAAkB;IAC9B,QAAQ,SAAM;IACd,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC,CAAM;gBAE1C,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,gCAAgC;CAahF;AAED,cAAM,OAAQ,SAAQ,KAAK;IAC1B,MAAM,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,gBAAgB,CAE9C;gBAEW,OAAO,KAAA;CAGnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PaginationStore.d.ts","sourceRoot":"","sources":["../../../../src/Search/Stores/PaginationStore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAEjE,qBAAa,eAAe;IAC3B,OAAO,CAAC,QAAQ,CAAgB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE;QAChB,KAAK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a,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,yBAAyB,EAAE,sCAAsC,EAAE,MAAM,2BAA2B,CAAC;AACnH,qBAAa,UAAU;IACtB,KAAK,EAAE,KAAK,CAAC;IACb,UAAU,EAAE,KAAK,CAAC;IAClB,aAAa,EAAE,KAAK,CAAC;IACrB,SAAS,EAAE,sCAAsC,CAAC;gBAEtC,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,yBAAyB;CAyBtE;AASD,cAAM,KAAK;IACV,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,UAAU,CAAC;gBAEJ,QAAQ,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM;CASlD"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { SearchStoreConfig, AutocompleteStoreConfig, StoreServices } from '../../types';
|
|
2
|
-
import type { SearchResponseModelResult, SearchResponseModelPagination, SearchResponseModelMerchandising } from '@searchspring/snapi-types';
|
|
3
|
-
export declare class ResultStore extends Array {
|
|
4
|
-
static get [Symbol.species](): ArrayConstructor;
|
|
5
|
-
constructor(config: SearchStoreConfig | AutocompleteStoreConfig, services: StoreServices, resultData: SearchResponseModelResult[], paginationData?: SearchResponseModelPagination, merchData?: SearchResponseModelMerchandising);
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=ResultStore.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ResultStore.d.ts","sourceRoot":"","sources":["../../../../src/Search/Stores/ResultStore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC7F,OAAO,KAAK,EACX,yBAAyB,EACzB,6BAA6B,EAC7B,gCAAgC,EAIhC,MAAM,2BAA2B,CAAC;AAEnC,qBAAa,WAAY,SAAQ,KAAK;IACrC,MAAM,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,gBAAgB,CAE9C;gBAGA,MAAM,EAAE,iBAAiB,GAAG,uBAAuB,EACnD,QAAQ,EAAE,aAAa,EACvB,UAAU,EAAE,yBAAyB,EAAE,EACvC,cAAc,CAAC,EAAE,6BAA6B,EAC9C,SAAS,CAAC,EAAE,gCAAgC;CAuB7C"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { UrlManager } from '@searchspring/snap-url-manager';
|
|
2
|
-
import type { StoreServices } from '../../types';
|
|
3
|
-
import type { MetaResponseModel, SearchResponseModelSearch, SearchResponseModelSorting } from '@searchspring/snapi-types';
|
|
4
|
-
export declare class SortingStore {
|
|
5
|
-
options: Option[];
|
|
6
|
-
constructor(services: StoreServices, sorting: SearchResponseModelSorting[], search: SearchResponseModelSearch, meta: MetaResponseModel);
|
|
7
|
-
get current(): Option;
|
|
8
|
-
}
|
|
9
|
-
declare class Option {
|
|
10
|
-
active: boolean;
|
|
11
|
-
default: boolean;
|
|
12
|
-
field: string;
|
|
13
|
-
label: string;
|
|
14
|
-
direction: string;
|
|
15
|
-
type: string;
|
|
16
|
-
value: string;
|
|
17
|
-
url: UrlManager;
|
|
18
|
-
constructor(services: StoreServices, option: any, index: any);
|
|
19
|
-
}
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=SortingStore.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SortingStore.d.ts","sourceRoot":"","sources":["../../../../src/Search/Stores/SortingStore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EACX,iBAAiB,EAIjB,yBAAyB,EACzB,0BAA0B,EAC1B,MAAM,2BAA2B,CAAC;AAOnC,qBAAa,YAAY;IACxB,OAAO,EAAE,MAAM,EAAE,CAAM;gBAEX,QAAQ,EAAE,aAAa,EAAE,OAAO,EAAE,0BAA0B,EAAE,EAAE,MAAM,EAAE,yBAAyB,EAAE,IAAI,EAAE,iBAAiB;IAuCtI,IAAI,OAAO,IAAI,MAAM,CAEpB;CACD;AAED,cAAM,MAAM;IACX,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,UAAU,CAAC;gBAEJ,QAAQ,EAAE,aAAa,EAAE,MAAM,KAAA,EAAE,KAAK,KAAA;CAuBlD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FacetStore.d.ts","sourceRoot":"","sources":["../../../../src/Autocomplete/Stores/FacetStore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC7F,OAAO,KAAK,EAAE,wBAAwB,EAAE,6BAA6B,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE5H,qBAAa,UAAW,SAAQ,KAAK;IACpC,MAAM,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,gBAAgB,CAE9C;gBAGA,MAAM,EAAE,iBAAiB,GAAG,uBAAuB,EACnD,QAAQ,EAAE,aAAa,EACvB,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,wBAAwB,EAAE,EACtC,cAAc,EAAE,6BAA6B,EAC7C,IAAI,EAAE,iBAAiB,EACvB,SAAS,EAAE,UAAU;CA2BtB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryStore.d.ts","sourceRoot":"","sources":["../../../../src/Autocomplete/Stores/QueryStore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,KAAK,EAAE,yBAAyB,EAAE,0CAA0C,EAAE,MAAM,2BAA2B,CAAC;AACvH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,qBAAa,UAAU;IACtB,KAAK,EAAE,KAAK,CAAC;IACb,aAAa,EAAE,KAAK,CAAC;gBAET,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,0CAA0C,EAAE,MAAM,EAAE,yBAAyB;CAehI;AAMD,cAAM,KAAK;IACV,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,UAAU,CAAC;gBAEJ,UAAU,KAAA,EAAE,KAAK,KAAA;CAS7B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StateStore.d.ts","sourceRoot":"","sources":["../../../../src/Autocomplete/Stores/StateStore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,qBAAa,UAAU;IACtB,KAAK,EAAE;QACN,KAAK,EAAE,IAAI,CAAC;QACZ,MAAM,EAAE,IAAI,CAAC;KACb,CAAC;IACF,YAAY,EAAE,gBAAgB,CAAa;IAC3C,KAAK,EAAE,MAAM,GAAG,SAAS,CAAa;IACtC,GAAG,EAAE,UAAU,CAAC;gBAEJ,QAAQ,EAAE,aAAa;IAgBnC,KAAK,IAAI,IAAI;CAKb;AAED,qBAAa,IAAI;IAChB,OAAO,CAAC,KAAK,CAAU;IACvB,OAAO,CAAC,UAAU,CAAU;gBAEhB,KAAK,UAAQ;IAIzB,KAAK,IAAI,IAAI;IAIb,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED,IAAI,IAAI,IAAI;IAIZ,MAAM,IAAI,IAAI;CAG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