@searchstax-inc/searchstudio-ux-angular 1.0.0 → 1.1.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.
Files changed (39) hide show
  1. package/esm2022/lib/components/searchstax-input/searchstax-input.component.mjs +75 -0
  2. package/esm2022/lib/components/searchstax-results/searchstax-results.component.mjs +66 -0
  3. package/esm2022/lib/components/searchstax-search-external/searchstax-search-external.component.mjs +40 -0
  4. package/esm2022/lib/components/searchstax-search-facets/searchstax-search-facets.component.mjs +112 -0
  5. package/esm2022/lib/components/searchstax-search-overview/searchstax-search-overview.component.mjs +41 -0
  6. package/esm2022/lib/components/searchstax-search-pagination/searchstax-search-pagination.component.mjs +60 -0
  7. package/esm2022/lib/components/searchstax-search-related/searchstax-search-related.component.mjs +44 -0
  8. package/esm2022/lib/components/searchstax-search-sorting/searchstax-search-sorting.component.mjs +45 -0
  9. package/esm2022/lib/components/searchstax-wrapper.component.mjs +74 -0
  10. package/esm2022/lib/searchstudio-ux-angular.module.mjs +62 -0
  11. package/{esm2020 → esm2022}/lib/services/store-service.service.mjs +4 -4
  12. package/fesm2022/searchstax-inc-searchstudio-ux-angular.mjs +602 -0
  13. package/{fesm2020 → fesm2022}/searchstax-inc-searchstudio-ux-angular.mjs.map +1 -1
  14. package/lib/components/searchstax-input/searchstax-input.component.d.ts +1 -1
  15. package/lib/components/searchstax-results/searchstax-results.component.d.ts +1 -1
  16. package/lib/components/searchstax-search-external/searchstax-search-external.component.d.ts +1 -1
  17. package/lib/components/searchstax-search-facets/searchstax-search-facets.component.d.ts +1 -1
  18. package/lib/components/searchstax-search-overview/searchstax-search-overview.component.d.ts +1 -1
  19. package/lib/components/searchstax-search-pagination/searchstax-search-pagination.component.d.ts +1 -1
  20. package/lib/components/searchstax-search-related/searchstax-search-related.component.d.ts +1 -1
  21. package/lib/components/searchstax-search-sorting/searchstax-search-sorting.component.d.ts +1 -1
  22. package/lib/components/searchstax-wrapper.component.d.ts +1 -1
  23. package/package.json +9 -15
  24. package/esm2020/lib/components/searchstax-input/searchstax-input.component.mjs +0 -75
  25. package/esm2020/lib/components/searchstax-results/searchstax-results.component.mjs +0 -66
  26. package/esm2020/lib/components/searchstax-search-external/searchstax-search-external.component.mjs +0 -40
  27. package/esm2020/lib/components/searchstax-search-facets/searchstax-search-facets.component.mjs +0 -112
  28. package/esm2020/lib/components/searchstax-search-overview/searchstax-search-overview.component.mjs +0 -41
  29. package/esm2020/lib/components/searchstax-search-pagination/searchstax-search-pagination.component.mjs +0 -60
  30. package/esm2020/lib/components/searchstax-search-related/searchstax-search-related.component.mjs +0 -44
  31. package/esm2020/lib/components/searchstax-search-sorting/searchstax-search-sorting.component.mjs +0 -45
  32. package/esm2020/lib/components/searchstax-wrapper.component.mjs +0 -78
  33. package/esm2020/lib/searchstudio-ux-angular.module.mjs +0 -62
  34. package/fesm2015/searchstax-inc-searchstudio-ux-angular.mjs +0 -628
  35. package/fesm2015/searchstax-inc-searchstudio-ux-angular.mjs.map +0 -1
  36. package/fesm2020/searchstax-inc-searchstudio-ux-angular.mjs +0 -606
  37. /package/{esm2020 → esm2022}/public-api.mjs +0 -0
  38. /package/{esm2020 → esm2022}/searchstax-inc-searchstudio-ux-angular.mjs +0 -0
  39. /package/{searchstax-inc-searchstudio-ux-angular.d.ts → index.d.ts} +0 -0
@@ -0,0 +1,602 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, EventEmitter, Component, Input, Output, NgModule } from '@angular/core';
3
+ import { Searchstax } from '@searchstax-inc/searchstudio-ux-js';
4
+ import * as i2 from '@angular/common';
5
+ import { CommonModule } from '@angular/common';
6
+
7
+ class StoreServiceService {
8
+ constructor() {
9
+ this.searchstax = new Searchstax('vue');
10
+ }
11
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: StoreServiceService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
12
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: StoreServiceService, providedIn: 'root' }); }
13
+ }
14
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: StoreServiceService, decorators: [{
15
+ type: Injectable,
16
+ args: [{
17
+ providedIn: 'root'
18
+ }]
19
+ }], ctorParameters: function () { return []; } });
20
+
21
+ class SearchstaxWrapper {
22
+ constructor(storeServiceService) {
23
+ this.storeServiceService = storeServiceService;
24
+ this.language = 'en';
25
+ this.searchURL = '';
26
+ this.suggesterURL = '';
27
+ this.trackApiKey = '';
28
+ this.searchAuth = '';
29
+ this.authType = 'basic';
30
+ this.autoCorrect = true;
31
+ this.initialized = new EventEmitter();
32
+ this.hooks = {};
33
+ if (this.beforeSearch) {
34
+ this.hooks.beforeSearch = this.beforeSearch;
35
+ }
36
+ if (this.afterSearch) {
37
+ this.hooks.afterSearch = this.afterSearch;
38
+ }
39
+ }
40
+ ngOnInit() {
41
+ this.storeServiceService.searchstax.initialize({
42
+ language: this.language,
43
+ searchURL: this.searchURL,
44
+ suggesterURL: this.suggesterURL,
45
+ trackApiKey: this.trackApiKey,
46
+ searchAuth: this.searchAuth,
47
+ authType: this.authType,
48
+ autoCorrect: this.autoCorrect,
49
+ router: this.router,
50
+ hooks: this.hooks
51
+ });
52
+ this.initialized.emit(this.storeServiceService.searchstax);
53
+ }
54
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SearchstaxWrapper, deps: [{ token: StoreServiceService }], target: i0.ɵɵFactoryTarget.Component }); }
55
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: SearchstaxWrapper, selector: "app-searchstax-wrapper", inputs: { language: "language", searchURL: "searchURL", suggesterURL: "suggesterURL", trackApiKey: "trackApiKey", searchAuth: "searchAuth", authType: "authType", autoCorrect: "autoCorrect", router: "router", beforeSearch: "beforeSearch", afterSearch: "afterSearch" }, outputs: { initialized: "initialized" }, ngImport: i0, template: `
56
+ <div>
57
+ <ng-content></ng-content>
58
+ </div>
59
+ `, isInline: true }); }
60
+ }
61
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SearchstaxWrapper, decorators: [{
62
+ type: Component,
63
+ args: [{ selector: 'app-searchstax-wrapper', template: `
64
+ <div>
65
+ <ng-content></ng-content>
66
+ </div>
67
+ ` }]
68
+ }], ctorParameters: function () { return [{ type: StoreServiceService }]; }, propDecorators: { language: [{
69
+ type: Input
70
+ }], searchURL: [{
71
+ type: Input
72
+ }], suggesterURL: [{
73
+ type: Input
74
+ }], trackApiKey: [{
75
+ type: Input
76
+ }], searchAuth: [{
77
+ type: Input
78
+ }], authType: [{
79
+ type: Input
80
+ }], autoCorrect: [{
81
+ type: Input
82
+ }], router: [{
83
+ type: Input
84
+ }], beforeSearch: [{
85
+ type: Input
86
+ }], afterSearch: [{
87
+ type: Input
88
+ }], initialized: [{
89
+ type: Output
90
+ }] } });
91
+
92
+ class SearchstaxInputWidget {
93
+ constructor(storeServiceService) {
94
+ this.storeServiceService = storeServiceService;
95
+ this.searchInputId = '';
96
+ this.suggestAfterMinChars = 3;
97
+ this.hooks = {};
98
+ this.suggestions = [];
99
+ this.context = this;
100
+ }
101
+ ngOnInit() {
102
+ console.log('this.templateOverride', this.templateOverride);
103
+ if (this.storeServiceService.searchstax) {
104
+ this.attachObservables();
105
+ // const hooks: { [key: string]: (prop: any) => any } = {}
106
+ if (this.afterAutosuggest) {
107
+ this.hooks['afterAutosuggest'] = this.afterAutosuggest;
108
+ }
109
+ if (this.beforeAutosuggest) {
110
+ this.hooks['beforeAutosuggest'] = this.beforeAutosuggest;
111
+ }
112
+ setTimeout(() => {
113
+ this.storeServiceService.searchstax.addSearchInputWidget('searchstax-input-container', {
114
+ suggestAfterMinChars: this.suggestAfterMinChars,
115
+ hooks: this.hooks,
116
+ templates: {
117
+ mainTemplate: {
118
+ template: ``,
119
+ searchInputId: this.searchInputId ?? 'searchstax-search-input'
120
+ }
121
+ }
122
+ });
123
+ }, 0);
124
+ }
125
+ else {
126
+ throw Error('Searchstax instance needs to be passed via props');
127
+ }
128
+ }
129
+ onMouseLeave(context) {
130
+ context.storeServiceService.searchstax.searchInputWidget?.resetAutosuggestSelection();
131
+ context.storeServiceService.searchstax.searchInputWidget?.markActiveAutosuggestItem();
132
+ }
133
+ onMouseOver(suggestion, context) {
134
+ context.storeServiceService.searchstax.searchInputWidget?.onSuggestionEnter(suggestion);
135
+ }
136
+ onMouseClick(e, context) {
137
+ e.stopImmediatePropagation();
138
+ context.storeServiceService.searchstax.searchInputWidget?.suggestionChosen();
139
+ }
140
+ attachObservables() {
141
+ this.storeServiceService.searchstax.dataLayer.$autosuggestResults.subscribe((suggestions) => {
142
+ this.suggestions = suggestions?.suggestions ?? [];
143
+ });
144
+ }
145
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SearchstaxInputWidget, deps: [{ token: StoreServiceService }], target: i0.ɵɵFactoryTarget.Component }); }
146
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: SearchstaxInputWidget, selector: "app-searchstax-input", inputs: { afterAutosuggest: "afterAutosuggest", beforeAutosuggest: "beforeAutosuggest", searchInputId: "searchInputId", suggestAfterMinChars: "suggestAfterMinChars", templateOverride: "templateOverride" }, ngImport: i0, template: "<div id=\"searchstax-input-container\">\n <div class=\"searchstax-search-input-container\">\n <div *ngIf=\"!templateOverride\" class=\"searchstax-search-input-wrapper\">\n <input\n type=\"text\"\n id=\"searchstax-search-input\"\n class=\"searchstax-search-input\"\n placeholder=\"SEARCH FOR...\"\n />\n <div\n class=\"searchstax-autosuggest-container\"\n [ngClass]=\"{ hidden: suggestions.length === 0 }\"\n (mouseleave)=\"(onMouseLeave)\"\n >\n <div\n class=\"searchstax-autosuggest-item\"\n *ngFor=\"let suggestion of suggestions\"\n >\n <div\n class=\"searchstax-autosuggest-item-term-container\"\n [innerHtml]=\"suggestion.term\"\n (mouseover)=\"onMouseOver(suggestion, context)\"\n (click)=\"onMouseClick($event, context)\"\n ></div>\n </div>\n </div>\n <button\n class=\"searchstax-spinner-icon\"\n id=\"searchstax-search-input-action-button\"\n ></button>\n </div>\n <div *ngIf=\"templateOverride\">\n <ng-container\n *ngTemplateOutlet=\"templateOverride; context: context\"\n ></ng-container>\n </div>\n\n <!-- <slot\n name=\"input\"\n :suggestions=\"suggestions\"\n :onMouseClick=\"onMouseClick\"\n :onMouseOver=\"onMouseOver\"\n :onMouseLeave=\"onMouseLeave\"\n ></slot> -->\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
147
+ }
148
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SearchstaxInputWidget, decorators: [{
149
+ type: Component,
150
+ args: [{ selector: 'app-searchstax-input', template: "<div id=\"searchstax-input-container\">\n <div class=\"searchstax-search-input-container\">\n <div *ngIf=\"!templateOverride\" class=\"searchstax-search-input-wrapper\">\n <input\n type=\"text\"\n id=\"searchstax-search-input\"\n class=\"searchstax-search-input\"\n placeholder=\"SEARCH FOR...\"\n />\n <div\n class=\"searchstax-autosuggest-container\"\n [ngClass]=\"{ hidden: suggestions.length === 0 }\"\n (mouseleave)=\"(onMouseLeave)\"\n >\n <div\n class=\"searchstax-autosuggest-item\"\n *ngFor=\"let suggestion of suggestions\"\n >\n <div\n class=\"searchstax-autosuggest-item-term-container\"\n [innerHtml]=\"suggestion.term\"\n (mouseover)=\"onMouseOver(suggestion, context)\"\n (click)=\"onMouseClick($event, context)\"\n ></div>\n </div>\n </div>\n <button\n class=\"searchstax-spinner-icon\"\n id=\"searchstax-search-input-action-button\"\n ></button>\n </div>\n <div *ngIf=\"templateOverride\">\n <ng-container\n *ngTemplateOutlet=\"templateOverride; context: context\"\n ></ng-container>\n </div>\n\n <!-- <slot\n name=\"input\"\n :suggestions=\"suggestions\"\n :onMouseClick=\"onMouseClick\"\n :onMouseOver=\"onMouseOver\"\n :onMouseLeave=\"onMouseLeave\"\n ></slot> -->\n </div>\n</div>\n" }]
151
+ }], ctorParameters: function () { return [{ type: StoreServiceService }]; }, propDecorators: { afterAutosuggest: [{
152
+ type: Input
153
+ }], beforeAutosuggest: [{
154
+ type: Input
155
+ }], searchInputId: [{
156
+ type: Input
157
+ }], suggestAfterMinChars: [{
158
+ type: Input
159
+ }], templateOverride: [{
160
+ type: Input
161
+ }] } });
162
+
163
+ class SearchstaxResultsWidget {
164
+ get hooks() {
165
+ const hooks = {};
166
+ if (this.afterLinkClick) {
167
+ hooks['afterLinkClick'] = this.afterLinkClick;
168
+ }
169
+ return hooks;
170
+ }
171
+ constructor(storeServiceService) {
172
+ this.storeServiceService = storeServiceService;
173
+ this.searchResults = null;
174
+ this.metadata = null;
175
+ this.searchTerm = '';
176
+ this.context = this;
177
+ }
178
+ ngOnInit() {
179
+ if (this.storeServiceService.searchstax) {
180
+ this.attachObservables();
181
+ setTimeout(() => {
182
+ this.storeServiceService.searchstax.addSearchResultsWidget('searchstax-results-container', {
183
+ templates: {},
184
+ hooks: this.hooks,
185
+ });
186
+ }, 0);
187
+ }
188
+ else {
189
+ throw Error('Searchstax instance needs to be passed via props');
190
+ }
191
+ }
192
+ attachObservables() {
193
+ this.storeServiceService.searchstax.dataLayer.$searchResults.subscribe((results) => {
194
+ this.searchResults = results;
195
+ });
196
+ this.storeServiceService.searchstax.dataLayer.$searchTermChange.subscribe((result) => {
197
+ this.searchTerm = result;
198
+ });
199
+ this.storeServiceService.searchstax.dataLayer.$searchResultsMetadata.subscribe((value) => {
200
+ this.metadata = value;
201
+ });
202
+ }
203
+ resultClicked(result, event, context) {
204
+ event.preventDefault();
205
+ event.stopPropagation();
206
+ context.storeServiceService.searchstax.executeLinkClick(result.uniqueId);
207
+ }
208
+ isImage(field) {
209
+ return field.isImage && typeof field.value === 'string';
210
+ }
211
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SearchstaxResultsWidget, deps: [{ token: StoreServiceService }], target: i0.ɵɵFactoryTarget.Component }); }
212
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: SearchstaxResultsWidget, selector: "app-searchstax-results", inputs: { afterLinkClick: "afterLinkClick", noResultsTemplate: "noResultsTemplate", resultsTemplate: "resultsTemplate" }, ngImport: i0, template: "<div id=\"searchstax-results-container\">\n <div class=\"searchstax-search-results-container\">\n <div id=\"searchstax-result-container\">\n <div\n *ngIf=\"\n searchResults && searchResults.length === 0 && !noResultsTemplate\n \"\n >\n <div class=\"searchstax-no-results\">\n Showing <strong>no results</strong> for\n <strong>\"{{ searchTerm }}\"</strong>\n <br />\n <span *ngIf=\"metadata?.spellingSuggestion\"\n >&nbsp;Did you mean\n <a href=\"#\" class=\"searchstax-suggestion-term\">{{\n metadata?.spellingSuggestion\n }}</a\n >?</span\n >\n </div>\n <div>\n <p>\n Try searching for search related terms or topics. We offer a wide\n variety of content to help you get the information you need.\n </p>\n <p>Lost? Click on the \u2018X\u201D in the Search Box to reset your search.</p>\n </div>\n </div>\n <div\n *ngIf=\"searchResults && searchResults.length === 0 && noResultsTemplate\"\n >\n <ng-container\n *ngTemplateOutlet=\"noResultsTemplate; context: context\"\n ></ng-container>\n </div>\n\n <div\n class=\"searchstax-search-results\"\n *ngIf=\"searchResults && searchResults.length && !resultsTemplate\"\n >\n <div\n class=\"searchstax-search-result\"\n [ngClass]=\"{ 'has-thumbnail': searchResult.thumbnail }\"\n *ngFor=\"let searchResult of searchResults\"\n >\n <div\n *ngIf=\"searchResult.promoted\"\n class=\"searchstax-search-result-promoted\"\n ></div>\n <a\n *ngIf=\"searchResult.url\"\n [href]=\"searchResult.url\"\n [attr.data-searchstax-unique-result-id]=\"searchResult.uniqueId\"\n (click)=\"resultClicked(searchResult, $event, context)\"\n class=\"searchstax-result-item-link\"\n ></a>\n <div\n *ngIf=\"searchResult.ribbon\"\n class=\"searchstax-search-result-ribbon\"\n >\n {{ searchResult.ribbon }}\n </div>\n <img\n *ngIf=\"searchResult.thumbnail\"\n [src]=\"searchResult.thumbnail\"\n class=\"searchstax-thumbnail\"\n />\n <div class=\"searchstax-search-result-title-container\">\n <span class=\"searchstax-search-result-title\">{{\n searchResult.title\n }}</span>\n </div>\n <p *ngIf=\"searchResult.paths\" class=\"searchstax-search-result-common\">\n {{ searchResult.paths }}\n </p>\n <p\n *ngIf=\"searchResult.description\"\n class=\"searchstax-search-result-description searchstax-search-result-common\"\n >\n {{ searchResult.description }}\n </p>\n <div *ngFor=\"let unmappedField of searchResult.unmappedFields\">\n <div\n *ngIf=\"isImage(unmappedField)\"\n class=\"searchstax-search-result-image-container\"\n >\n <img\n [src]=\"unmappedField.value\"\n class=\"searchstax-result-image\"\n />\n </div>\n <div *ngIf=\"!isImage(unmappedField)\">\n <p class=\"searchstax-search-result-common\">\n {{ unmappedField.value }}\n </p>\n </div>\n </div>\n </div>\n </div>\n\n <div *ngIf=\"searchResults && searchResults.length && resultsTemplate\">\n <ng-container\n *ngTemplateOutlet=\"resultsTemplate; context: context\"\n ></ng-container>\n </div>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
213
+ }
214
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SearchstaxResultsWidget, decorators: [{
215
+ type: Component,
216
+ args: [{ selector: 'app-searchstax-results', template: "<div id=\"searchstax-results-container\">\n <div class=\"searchstax-search-results-container\">\n <div id=\"searchstax-result-container\">\n <div\n *ngIf=\"\n searchResults && searchResults.length === 0 && !noResultsTemplate\n \"\n >\n <div class=\"searchstax-no-results\">\n Showing <strong>no results</strong> for\n <strong>\"{{ searchTerm }}\"</strong>\n <br />\n <span *ngIf=\"metadata?.spellingSuggestion\"\n >&nbsp;Did you mean\n <a href=\"#\" class=\"searchstax-suggestion-term\">{{\n metadata?.spellingSuggestion\n }}</a\n >?</span\n >\n </div>\n <div>\n <p>\n Try searching for search related terms or topics. We offer a wide\n variety of content to help you get the information you need.\n </p>\n <p>Lost? Click on the \u2018X\u201D in the Search Box to reset your search.</p>\n </div>\n </div>\n <div\n *ngIf=\"searchResults && searchResults.length === 0 && noResultsTemplate\"\n >\n <ng-container\n *ngTemplateOutlet=\"noResultsTemplate; context: context\"\n ></ng-container>\n </div>\n\n <div\n class=\"searchstax-search-results\"\n *ngIf=\"searchResults && searchResults.length && !resultsTemplate\"\n >\n <div\n class=\"searchstax-search-result\"\n [ngClass]=\"{ 'has-thumbnail': searchResult.thumbnail }\"\n *ngFor=\"let searchResult of searchResults\"\n >\n <div\n *ngIf=\"searchResult.promoted\"\n class=\"searchstax-search-result-promoted\"\n ></div>\n <a\n *ngIf=\"searchResult.url\"\n [href]=\"searchResult.url\"\n [attr.data-searchstax-unique-result-id]=\"searchResult.uniqueId\"\n (click)=\"resultClicked(searchResult, $event, context)\"\n class=\"searchstax-result-item-link\"\n ></a>\n <div\n *ngIf=\"searchResult.ribbon\"\n class=\"searchstax-search-result-ribbon\"\n >\n {{ searchResult.ribbon }}\n </div>\n <img\n *ngIf=\"searchResult.thumbnail\"\n [src]=\"searchResult.thumbnail\"\n class=\"searchstax-thumbnail\"\n />\n <div class=\"searchstax-search-result-title-container\">\n <span class=\"searchstax-search-result-title\">{{\n searchResult.title\n }}</span>\n </div>\n <p *ngIf=\"searchResult.paths\" class=\"searchstax-search-result-common\">\n {{ searchResult.paths }}\n </p>\n <p\n *ngIf=\"searchResult.description\"\n class=\"searchstax-search-result-description searchstax-search-result-common\"\n >\n {{ searchResult.description }}\n </p>\n <div *ngFor=\"let unmappedField of searchResult.unmappedFields\">\n <div\n *ngIf=\"isImage(unmappedField)\"\n class=\"searchstax-search-result-image-container\"\n >\n <img\n [src]=\"unmappedField.value\"\n class=\"searchstax-result-image\"\n />\n </div>\n <div *ngIf=\"!isImage(unmappedField)\">\n <p class=\"searchstax-search-result-common\">\n {{ unmappedField.value }}\n </p>\n </div>\n </div>\n </div>\n </div>\n\n <div *ngIf=\"searchResults && searchResults.length && resultsTemplate\">\n <ng-container\n *ngTemplateOutlet=\"resultsTemplate; context: context\"\n ></ng-container>\n </div>\n </div>\n </div>\n</div>\n" }]
217
+ }], ctorParameters: function () { return [{ type: StoreServiceService }]; }, propDecorators: { afterLinkClick: [{
218
+ type: Input
219
+ }], noResultsTemplate: [{
220
+ type: Input
221
+ }], resultsTemplate: [{
222
+ type: Input
223
+ }] } });
224
+
225
+ class SearchstaxSearchFeedbackWidget {
226
+ constructor(storeServiceService) {
227
+ this.storeServiceService = storeServiceService;
228
+ this.searchFeedbackData = null;
229
+ this.rand = Math.random();
230
+ this.context = this;
231
+ }
232
+ ngOnInit() {
233
+ if (this.storeServiceService.searchstax) {
234
+ this.attachObservables();
235
+ setTimeout(() => {
236
+ this.storeServiceService.searchstax.addSearchFeedbackWidget("search-feedback-container" + this.rand, {});
237
+ }, 0);
238
+ }
239
+ else {
240
+ throw Error("Searchstax instance needs to be passed via props");
241
+ }
242
+ }
243
+ onOriginalQueryClick(e, context) {
244
+ e.stopImmediatePropagation();
245
+ context.storeServiceService.searchstax.searchFeedbackWidget?.onOriginalQueryClick(e);
246
+ }
247
+ attachObservables() {
248
+ this.storeServiceService.searchstax.dataLayer.$searchFeedbackData.subscribe((searchFeedbackData) => {
249
+ this.searchFeedbackData = searchFeedbackData;
250
+ });
251
+ }
252
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SearchstaxSearchFeedbackWidget, deps: [{ token: StoreServiceService }], target: i0.ɵɵFactoryTarget.Component }); }
253
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: SearchstaxSearchFeedbackWidget, selector: "app-searchstax-search-feedback", inputs: { templateOverride: "templateOverride" }, ngImport: i0, template: "<div\n class=\"search-feedback-container\"\n [id]=\"'search-feedback-container' + rand\"\n>\n <div\n class=\"searchstax-feedback-container\"\n *ngIf=\"\n searchFeedbackData &&\n searchFeedbackData?.searchExecuted &&\n !templateOverride &&\n searchFeedbackData?.totalResults\n \"\n >\n Showing\n <b\n >{{ searchFeedbackData!.startResultIndex }} -\n {{ searchFeedbackData!.endResultIndex }}</b\n >\n of <b>{{ searchFeedbackData!.totalResults }}</b> results\n <span *ngIf=\"searchFeedbackData.searchTerm\"\n >for \"<b>{{ searchFeedbackData!.searchTerm }}</b\n >\"\n </span>\n <div class=\"searchstax-feedback-container-suggested\">\n <div *ngIf=\"searchFeedbackData.autoCorrectedQuery\">\n Search instead for\n <a\n href=\"#\"\n (click)=\"onOriginalQueryClick($event, context)\"\n class=\"searchstax-feedback-original-query\"\n >{{ searchFeedbackData!.originalQuery }}</a\n >\n </div>\n </div>\n </div>\n\n <div\n *ngIf=\"\n searchFeedbackData &&\n searchFeedbackData?.searchExecuted &&\n templateOverride &&\n searchFeedbackData?.totalResults\n \"\n >\n <ng-container\n *ngTemplateOutlet=\"templateOverride; context: context\"\n ></ng-container>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
254
+ }
255
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SearchstaxSearchFeedbackWidget, decorators: [{
256
+ type: Component,
257
+ args: [{ selector: "app-searchstax-search-feedback", template: "<div\n class=\"search-feedback-container\"\n [id]=\"'search-feedback-container' + rand\"\n>\n <div\n class=\"searchstax-feedback-container\"\n *ngIf=\"\n searchFeedbackData &&\n searchFeedbackData?.searchExecuted &&\n !templateOverride &&\n searchFeedbackData?.totalResults\n \"\n >\n Showing\n <b\n >{{ searchFeedbackData!.startResultIndex }} -\n {{ searchFeedbackData!.endResultIndex }}</b\n >\n of <b>{{ searchFeedbackData!.totalResults }}</b> results\n <span *ngIf=\"searchFeedbackData.searchTerm\"\n >for \"<b>{{ searchFeedbackData!.searchTerm }}</b\n >\"\n </span>\n <div class=\"searchstax-feedback-container-suggested\">\n <div *ngIf=\"searchFeedbackData.autoCorrectedQuery\">\n Search instead for\n <a\n href=\"#\"\n (click)=\"onOriginalQueryClick($event, context)\"\n class=\"searchstax-feedback-original-query\"\n >{{ searchFeedbackData!.originalQuery }}</a\n >\n </div>\n </div>\n </div>\n\n <div\n *ngIf=\"\n searchFeedbackData &&\n searchFeedbackData?.searchExecuted &&\n templateOverride &&\n searchFeedbackData?.totalResults\n \"\n >\n <ng-container\n *ngTemplateOutlet=\"templateOverride; context: context\"\n ></ng-container>\n </div>\n</div>\n" }]
258
+ }], ctorParameters: function () { return [{ type: StoreServiceService }]; }, propDecorators: { templateOverride: [{
259
+ type: Input
260
+ }] } });
261
+
262
+ class SearchstaxSearchPaginationWidget {
263
+ constructor(storeServiceService) {
264
+ this.storeServiceService = storeServiceService;
265
+ this.paginationData = null;
266
+ this.rand = Math.random();
267
+ this.context = this;
268
+ this.paginationAdded = false;
269
+ }
270
+ ngOnInit() {
271
+ if (this.storeServiceService.searchstax) {
272
+ this.attachObservables();
273
+ setTimeout(() => {
274
+ this.addWidget();
275
+ }, 0);
276
+ }
277
+ else {
278
+ throw Error("Searchstax instance needs to be passed via props");
279
+ }
280
+ }
281
+ nextPage(event, context) {
282
+ event.stopImmediatePropagation();
283
+ if (!context.paginationData?.isLastPage) {
284
+ context.storeServiceService.searchstax.searchPaginationWidget?.nextPage(event);
285
+ }
286
+ }
287
+ previousPage(event, context) {
288
+ event.stopImmediatePropagation();
289
+ if (!context.paginationData?.isFirstPage) {
290
+ context.storeServiceService.searchstax.searchPaginationWidget?.previousPage(event);
291
+ }
292
+ }
293
+ addWidget() {
294
+ if (!this.paginationAdded &&
295
+ this.storeServiceService.searchstax.routerHelper) {
296
+ this.paginationAdded = true;
297
+ this.storeServiceService.searchstax.addPaginationWidget("searchstax-pagination-container" + this.rand, {});
298
+ }
299
+ }
300
+ attachObservables() {
301
+ this.storeServiceService.searchstax.dataLayer.$searchObject.subscribe((pagination) => {
302
+ this.addWidget();
303
+ });
304
+ this.storeServiceService.searchstax.dataLayer.$paginationData.subscribe((pagination) => {
305
+ this.paginationData = pagination;
306
+ });
307
+ }
308
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SearchstaxSearchPaginationWidget, deps: [{ token: StoreServiceService }], target: i0.ɵɵFactoryTarget.Component }); }
309
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: SearchstaxSearchPaginationWidget, selector: "app-searchstax-search-pagination", inputs: { templateOverride: "templateOverride" }, ngImport: i0, template: "<div [id]=\"'searchstax-pagination-container' + rand\">\n <div\n class=\"searchstax-pagination-container\"\n *ngIf=\"paginationData?.totalResults && !templateOverride\"\n >\n <div class=\"searchstax-pagination-content\">\n <a\n class=\"searchstax-pagination-previous\"\n (click)=\"previousPage($event, context)\"\n id=\"searchstax-pagination-previous\"\n >\n &lt; Previous\n </a>\n <div class=\"searchstax-pagination-details\">\n {{ paginationData?.startResultIndex }} -\n {{ paginationData?.endResultIndex }} of\n {{ paginationData?.totalResults }}\n </div>\n <a\n class=\"searchstax-pagination-next\"\n (click)=\"nextPage($event, context)\"\n id=\"searchstax-pagination-next\"\n >Next ></a\n >\n </div>\n </div>\n\n <div *ngIf=\"paginationData?.totalResults && templateOverride\">\n <ng-container\n *ngTemplateOutlet=\"templateOverride; context: context\"\n ></ng-container>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
310
+ }
311
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SearchstaxSearchPaginationWidget, decorators: [{
312
+ type: Component,
313
+ args: [{ selector: "app-searchstax-search-pagination", template: "<div [id]=\"'searchstax-pagination-container' + rand\">\n <div\n class=\"searchstax-pagination-container\"\n *ngIf=\"paginationData?.totalResults && !templateOverride\"\n >\n <div class=\"searchstax-pagination-content\">\n <a\n class=\"searchstax-pagination-previous\"\n (click)=\"previousPage($event, context)\"\n id=\"searchstax-pagination-previous\"\n >\n &lt; Previous\n </a>\n <div class=\"searchstax-pagination-details\">\n {{ paginationData?.startResultIndex }} -\n {{ paginationData?.endResultIndex }} of\n {{ paginationData?.totalResults }}\n </div>\n <a\n class=\"searchstax-pagination-next\"\n (click)=\"nextPage($event, context)\"\n id=\"searchstax-pagination-next\"\n >Next ></a\n >\n </div>\n </div>\n\n <div *ngIf=\"paginationData?.totalResults && templateOverride\">\n <ng-container\n *ngTemplateOutlet=\"templateOverride; context: context\"\n ></ng-container>\n </div>\n</div>\n" }]
314
+ }], ctorParameters: function () { return [{ type: StoreServiceService }]; }, propDecorators: { templateOverride: [{
315
+ type: Input
316
+ }] } });
317
+
318
+ class SearchstaxSearchFacetsWidget {
319
+ // @ViewChildren("facetContainers") facetContainers: QueryList<ElementRef>;
320
+ constructor(storeServiceService) {
321
+ this.storeServiceService = storeServiceService;
322
+ this.facetsTemplateDataDesktop = null;
323
+ this.facetsTemplateDataMobile = null;
324
+ this.context = this;
325
+ this.selectedFacetsCheckboxes = [];
326
+ this.selectedFacetsRange = [];
327
+ this.rand = Math.random();
328
+ }
329
+ ngOnInit() {
330
+ if (this.storeServiceService.searchstax) {
331
+ this.attachObservables();
332
+ setTimeout(() => {
333
+ this.addWidget();
334
+ }, 0);
335
+ }
336
+ else {
337
+ throw Error("Searchstax instance needs to be passed via props");
338
+ }
339
+ }
340
+ addWidget() {
341
+ this.storeServiceService.searchstax.addFacetsWidget('searchstax-facets-container' + this.rand, {
342
+ facetingType: this.facetingType,
343
+ specificFacets: this.specificFacets,
344
+ itemsPerPageDesktop: this.itemsPerPageDesktop,
345
+ itemsPerPageMobile: this.itemsPerPageMobile
346
+ });
347
+ }
348
+ attachObservables() {
349
+ this.storeServiceService.searchstax.dataLayer.$facetsTemplateData.subscribe((data) => {
350
+ if (data?.isMobile) {
351
+ this.facetsTemplateDataMobile = data;
352
+ }
353
+ else {
354
+ this.facetsTemplateDataDesktop = data;
355
+ }
356
+ });
357
+ this.storeServiceService.searchstax.dataLayer.$selectedFacetsTemplateData.subscribe((data) => {
358
+ const da = data ?? [];
359
+ this.selectedFacetsCheckboxes = da.filter((d) => d.type === 'checkbox');
360
+ });
361
+ }
362
+ unselectFacet(facet, context) {
363
+ context.storeServiceService.searchstax.searchFacetsWidget?.unselectFacet(facet);
364
+ }
365
+ unselectAll(context) {
366
+ context.storeServiceService.searchstax.searchFacetsWidget?.removeSelectedFacets();
367
+ }
368
+ isNotDeactivated(name, context) {
369
+ return !context.storeServiceService.searchstax.searchFacetsWidget?.deactivatedFacets[name];
370
+ }
371
+ toggleFacetGroup(name, context) {
372
+ if (context.storeServiceService.searchstax.searchFacetsWidget)
373
+ if (this.isNotDeactivated(name, context)) {
374
+ context.storeServiceService.searchstax.searchFacetsWidget.deactivatedFacets[name] = true;
375
+ }
376
+ else {
377
+ context.storeServiceService.searchstax.searchFacetsWidget.deactivatedFacets[name] = false;
378
+ }
379
+ }
380
+ isChecked(facetValue, context) {
381
+ return context.storeServiceService.searchstax.searchFacetsWidget?.isChecked(facetValue);
382
+ }
383
+ selectFacet(el, event, data, isInput, context) {
384
+ const wrapperDiv = document.createElement('div');
385
+ wrapperDiv.innerHTML = el.outerHTML;
386
+ context.storeServiceService.searchstax.searchFacetsWidget?.onFacetSelect(event, data, el, isInput);
387
+ }
388
+ showMoreLessDesktop(e, data, context) {
389
+ context.storeServiceService.searchstax.searchFacetsWidget?.onShowMoreLessClick(e, data, false);
390
+ }
391
+ showMoreLessMobile(e, data, context) {
392
+ context.storeServiceService.searchstax.searchFacetsWidget?.onShowMoreLessClick(e, data, true);
393
+ }
394
+ openOverlay(context) {
395
+ context.storeServiceService.searchstax.searchFacetsWidget?.openOverlay();
396
+ }
397
+ closeOverlay(context) {
398
+ context.storeServiceService.searchstax.searchFacetsWidget?.closeOverlay();
399
+ }
400
+ facetValues(facet) {
401
+ return facet.values;
402
+ }
403
+ facetMobileData(facet) {
404
+ return facet;
405
+ }
406
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SearchstaxSearchFacetsWidget, deps: [{ token: StoreServiceService }], target: i0.ɵɵFactoryTarget.Component }); }
407
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: SearchstaxSearchFacetsWidget, selector: "app-searchstax-search-facets", inputs: { templateOverrideMobile: "templateOverrideMobile", templateOverrideDesktop: "templateOverrideDesktop", facetingType: "facetingType", itemsPerPageDesktop: "itemsPerPageDesktop", itemsPerPageMobile: "itemsPerPageMobile", specificFacets: "specificFacets" }, ngImport: i0, template: "<div [id]=\"'searchstax-facets-container' + rand\">\n <div\n *ngIf=\"facetsTemplateDataDesktop?.hasResultsOrExternalPromotions && !templateOverrideDesktop\"\n class=\"searchstax-facets-container-desktop\"\n >\n <div\n class=\"searchstax-facet-container\"\n *ngFor=\"let facet of facetsTemplateDataDesktop?.facets\"\n [class]=\"{ active: isNotDeactivated(facet.name, context) }\"\n >\n <div>\n <div class=\"searchstax-facet-title-container\" (click)=\"toggleFacetGroup(facet.name, context)\">\n <div class=\"searchstax-facet-title\">{{ facet.label }}</div>\n <div class=\"searchstax-facet-title-arrow active\"></div>\n </div>\n <div class=\"searchstax-facet-values-container\">\n <div\n *ngFor=\"let facetValue of facetValues(facet); index as key\"\n class=\"searchstax-facet-value-container\"\n [class]=\"{ 'searchstax-facet-value-disabled': facetValue.disabled }\"\n #ref\n >\n <div class=\"searchstax-facet-input\">\n <input\n type=\"checkbox\"\n class=\"searchstax-facet-input-checkbox\"\n [checked]=\"isChecked(facetValue, context)\"\n [disabled]=\"facetValue.disabled\"\n (click)=\"selectFacet(ref, $event, facetValue, true, context)\"\n />\n </div>\n <div class=\"searchstax-facet-value-label\" (click)=\"selectFacet(ref, $event, facetValue, false, context)\">\n {{ facetValue.value }}\n </div>\n <div class=\"searchstax-facet-value-count\" (click)=\"selectFacet(ref, $event, facetValue, false, context)\">\n ({{ facetValue.count }})\n </div>\n </div>\n <div class=\"searchstax-facet-show-more-container\" *ngIf=\"facet.hasMoreFacets\">\n <div class=\"searchstax-facet-show-more-container\" (click)=\"showMoreLessDesktop($event, facet, context)\">\n <div\n *ngIf=\"facet.showingAllFacets\"\n class=\"searchstax-facet-show-less-button searchstax-facet-show-button\"\n >\n less\n </div>\n <div\n *ngIf=\"!facet.showingAllFacets\"\n class=\"searchstax-facet-show-more-button searchstax-facet-show-button\"\n >\n more\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div *ngIf=\"facetsTemplateDataDesktop?.hasResultsOrExternalPromotions && templateOverrideDesktop\">\n <ng-container *ngTemplateOutlet=\"templateOverrideDesktop; context: context\"></ng-container>\n </div>\n\n <div\n class=\"searchstax-facets-container-mobile\"\n *ngIf=\"facetsTemplateDataMobile?.hasResultsOrExternalPromotions && !templateOverrideMobile\"\n >\n <div class=\"searchstax-facets-pills-container\">\n <div class=\"searchstax-facets-pill searchstax-facets-pill-filter-by\" (click)=\"openOverlay(context)\">\n <div class=\"searchstax-facets-pill-label\">Filter By</div>\n </div>\n <div class=\"searchstax-facets-pills-selected\">\n <div\n class=\"searchstax-facets-pill searchstax-facets-pill-facets\"\n *ngFor=\"let facet of selectedFacetsCheckboxes\"\n (click)=\"unselectFacet(facet, context)\"\n >\n <div class=\"searchstax-facets-pill-label\">{{ facet.value }} ({{ facet.count }})</div>\n <div class=\"searchstax-facets-pill-icon-close\"></div>\n </div>\n </div>\n <div\n class=\"searchstax-facets-pill searchstax-clear-filters searchstax-facets-pill-clear-all\"\n *ngIf=\"selectedFacetsCheckboxes.length\"\n (click)=\"unselectAll(context)\"\n >\n <div class=\"searchstax-facets-pill-label\">Clear Filters</div>\n </div>\n </div>\n <div\n class=\"searchstax-facets-mobile-overlay\"\n [class]=\"{ 'searchstax-show': facetMobileData(facetsTemplateDataMobile)?.overlayOpened }\"\n >\n <div class=\"searchstax-facets-mobile-overlay-header\">\n <div class=\"searchstax-facets-mobile-overlay-header-title\">Filter By</div>\n <div class=\"searchstax-search-close\" (click)=\"closeOverlay(context)\"></div>\n </div>\n <div class=\"searchstax-facets-container-mobile\">\n <div\n *ngFor=\"let facet of facetsTemplateDataMobile?.facets\"\n class=\"searchstax-facet-container\"\n [class]=\"{ active: isNotDeactivated(facet.name, context) }\"\n >\n <div>\n <div class=\"searchstax-facet-title-container\" (click)=\"toggleFacetGroup(facet.name, context)\">\n <div class=\"searchstax-facet-title\">{{ facet.label }}</div>\n <div class=\"searchstax-facet-title-arrow active\"></div>\n </div>\n <div class=\"searchstax-facet-values-container\">\n <div\n *ngFor=\"let facetValue of facetValues(facet); index as key\"\n class=\"searchstax-facet-value-container\"\n [class]=\"{ 'searchstax-facet-value-disabled': facetValue.disabled }\"\n #ref\n >\n <div class=\"searchstax-facet-input\">\n <input\n type=\"checkbox\"\n class=\"searchstax-facet-input-checkbox\"\n [checked]=\"isChecked(facetValue, context)\"\n [disabled]=\"facetValue.disabled\"\n (click)=\"selectFacet(ref, $event, facetValue, true, context)\"\n />\n </div>\n <div\n class=\"searchstax-facet-value-label\"\n (click)=\"selectFacet(ref, $event, facetValue, false, context)\"\n >\n {{ facetValue.value }}\n </div>\n <div\n class=\"searchstax-facet-value-count\"\n (click)=\"selectFacet(ref, $event, facetValue, false, context)\"\n >\n ({{ facetValue.count }})\n </div>\n </div>\n <div class=\"searchstax-facet-show-more-container\" *ngIf=\"facet.hasMoreFacets\">\n <div class=\"searchstax-facet-show-more-container\" (click)=\"showMoreLessDesktop($event, facet, context)\">\n <div\n *ngIf=\"facet.showingAllFacets\"\n class=\"searchstax-facet-show-less-button searchstax-facet-show-button\"\n >\n less\n </div>\n <div\n *ngIf=\"!facet.showingAllFacets\"\n class=\"searchstax-facet-show-more-button searchstax-facet-show-button\"\n >\n more\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <button class=\"searchstax-facets-mobile-overlay-done\" (click)=\"closeOverlay(context)\">Done</button>\n </div>\n </div>\n <div *ngIf=\"facetsTemplateDataMobile?.hasResultsOrExternalPromotions && templateOverrideMobile\">\n <ng-container *ngTemplateOutlet=\"templateOverrideMobile; context: context\"></ng-container>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
408
+ }
409
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SearchstaxSearchFacetsWidget, decorators: [{
410
+ type: Component,
411
+ args: [{ selector: "app-searchstax-search-facets", template: "<div [id]=\"'searchstax-facets-container' + rand\">\n <div\n *ngIf=\"facetsTemplateDataDesktop?.hasResultsOrExternalPromotions && !templateOverrideDesktop\"\n class=\"searchstax-facets-container-desktop\"\n >\n <div\n class=\"searchstax-facet-container\"\n *ngFor=\"let facet of facetsTemplateDataDesktop?.facets\"\n [class]=\"{ active: isNotDeactivated(facet.name, context) }\"\n >\n <div>\n <div class=\"searchstax-facet-title-container\" (click)=\"toggleFacetGroup(facet.name, context)\">\n <div class=\"searchstax-facet-title\">{{ facet.label }}</div>\n <div class=\"searchstax-facet-title-arrow active\"></div>\n </div>\n <div class=\"searchstax-facet-values-container\">\n <div\n *ngFor=\"let facetValue of facetValues(facet); index as key\"\n class=\"searchstax-facet-value-container\"\n [class]=\"{ 'searchstax-facet-value-disabled': facetValue.disabled }\"\n #ref\n >\n <div class=\"searchstax-facet-input\">\n <input\n type=\"checkbox\"\n class=\"searchstax-facet-input-checkbox\"\n [checked]=\"isChecked(facetValue, context)\"\n [disabled]=\"facetValue.disabled\"\n (click)=\"selectFacet(ref, $event, facetValue, true, context)\"\n />\n </div>\n <div class=\"searchstax-facet-value-label\" (click)=\"selectFacet(ref, $event, facetValue, false, context)\">\n {{ facetValue.value }}\n </div>\n <div class=\"searchstax-facet-value-count\" (click)=\"selectFacet(ref, $event, facetValue, false, context)\">\n ({{ facetValue.count }})\n </div>\n </div>\n <div class=\"searchstax-facet-show-more-container\" *ngIf=\"facet.hasMoreFacets\">\n <div class=\"searchstax-facet-show-more-container\" (click)=\"showMoreLessDesktop($event, facet, context)\">\n <div\n *ngIf=\"facet.showingAllFacets\"\n class=\"searchstax-facet-show-less-button searchstax-facet-show-button\"\n >\n less\n </div>\n <div\n *ngIf=\"!facet.showingAllFacets\"\n class=\"searchstax-facet-show-more-button searchstax-facet-show-button\"\n >\n more\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div *ngIf=\"facetsTemplateDataDesktop?.hasResultsOrExternalPromotions && templateOverrideDesktop\">\n <ng-container *ngTemplateOutlet=\"templateOverrideDesktop; context: context\"></ng-container>\n </div>\n\n <div\n class=\"searchstax-facets-container-mobile\"\n *ngIf=\"facetsTemplateDataMobile?.hasResultsOrExternalPromotions && !templateOverrideMobile\"\n >\n <div class=\"searchstax-facets-pills-container\">\n <div class=\"searchstax-facets-pill searchstax-facets-pill-filter-by\" (click)=\"openOverlay(context)\">\n <div class=\"searchstax-facets-pill-label\">Filter By</div>\n </div>\n <div class=\"searchstax-facets-pills-selected\">\n <div\n class=\"searchstax-facets-pill searchstax-facets-pill-facets\"\n *ngFor=\"let facet of selectedFacetsCheckboxes\"\n (click)=\"unselectFacet(facet, context)\"\n >\n <div class=\"searchstax-facets-pill-label\">{{ facet.value }} ({{ facet.count }})</div>\n <div class=\"searchstax-facets-pill-icon-close\"></div>\n </div>\n </div>\n <div\n class=\"searchstax-facets-pill searchstax-clear-filters searchstax-facets-pill-clear-all\"\n *ngIf=\"selectedFacetsCheckboxes.length\"\n (click)=\"unselectAll(context)\"\n >\n <div class=\"searchstax-facets-pill-label\">Clear Filters</div>\n </div>\n </div>\n <div\n class=\"searchstax-facets-mobile-overlay\"\n [class]=\"{ 'searchstax-show': facetMobileData(facetsTemplateDataMobile)?.overlayOpened }\"\n >\n <div class=\"searchstax-facets-mobile-overlay-header\">\n <div class=\"searchstax-facets-mobile-overlay-header-title\">Filter By</div>\n <div class=\"searchstax-search-close\" (click)=\"closeOverlay(context)\"></div>\n </div>\n <div class=\"searchstax-facets-container-mobile\">\n <div\n *ngFor=\"let facet of facetsTemplateDataMobile?.facets\"\n class=\"searchstax-facet-container\"\n [class]=\"{ active: isNotDeactivated(facet.name, context) }\"\n >\n <div>\n <div class=\"searchstax-facet-title-container\" (click)=\"toggleFacetGroup(facet.name, context)\">\n <div class=\"searchstax-facet-title\">{{ facet.label }}</div>\n <div class=\"searchstax-facet-title-arrow active\"></div>\n </div>\n <div class=\"searchstax-facet-values-container\">\n <div\n *ngFor=\"let facetValue of facetValues(facet); index as key\"\n class=\"searchstax-facet-value-container\"\n [class]=\"{ 'searchstax-facet-value-disabled': facetValue.disabled }\"\n #ref\n >\n <div class=\"searchstax-facet-input\">\n <input\n type=\"checkbox\"\n class=\"searchstax-facet-input-checkbox\"\n [checked]=\"isChecked(facetValue, context)\"\n [disabled]=\"facetValue.disabled\"\n (click)=\"selectFacet(ref, $event, facetValue, true, context)\"\n />\n </div>\n <div\n class=\"searchstax-facet-value-label\"\n (click)=\"selectFacet(ref, $event, facetValue, false, context)\"\n >\n {{ facetValue.value }}\n </div>\n <div\n class=\"searchstax-facet-value-count\"\n (click)=\"selectFacet(ref, $event, facetValue, false, context)\"\n >\n ({{ facetValue.count }})\n </div>\n </div>\n <div class=\"searchstax-facet-show-more-container\" *ngIf=\"facet.hasMoreFacets\">\n <div class=\"searchstax-facet-show-more-container\" (click)=\"showMoreLessDesktop($event, facet, context)\">\n <div\n *ngIf=\"facet.showingAllFacets\"\n class=\"searchstax-facet-show-less-button searchstax-facet-show-button\"\n >\n less\n </div>\n <div\n *ngIf=\"!facet.showingAllFacets\"\n class=\"searchstax-facet-show-more-button searchstax-facet-show-button\"\n >\n more\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <button class=\"searchstax-facets-mobile-overlay-done\" (click)=\"closeOverlay(context)\">Done</button>\n </div>\n </div>\n <div *ngIf=\"facetsTemplateDataMobile?.hasResultsOrExternalPromotions && templateOverrideMobile\">\n <ng-container *ngTemplateOutlet=\"templateOverrideMobile; context: context\"></ng-container>\n </div>\n</div>\n" }]
412
+ }], ctorParameters: function () { return [{ type: StoreServiceService }]; }, propDecorators: { templateOverrideMobile: [{
413
+ type: Input
414
+ }], templateOverrideDesktop: [{
415
+ type: Input
416
+ }], facetingType: [{
417
+ type: Input
418
+ }], itemsPerPageDesktop: [{
419
+ type: Input
420
+ }], itemsPerPageMobile: [{
421
+ type: Input
422
+ }], specificFacets: [{
423
+ type: Input
424
+ }] } });
425
+
426
+ class SearchstaxSearchSortingWidget {
427
+ constructor(storeServiceService) {
428
+ this.storeServiceService = storeServiceService;
429
+ this.sortingData = null;
430
+ this.rand = Math.random();
431
+ this.context = this;
432
+ this.selectedSorting = "";
433
+ }
434
+ ngOnInit() {
435
+ if (this.storeServiceService.searchstax) {
436
+ this.attachObservables();
437
+ setTimeout(() => {
438
+ this.storeServiceService.searchstax.addSearchSortingWidget("search-sorting-container" + this.rand, {});
439
+ }, 0);
440
+ }
441
+ else {
442
+ throw Error("Searchstax instance needs to be passed via props");
443
+ }
444
+ }
445
+ orderChange(e, context) {
446
+ e.stopImmediatePropagation();
447
+ context.storeServiceService.searchstax.searchSortingWidget?.setOrderQuery(e.target.value);
448
+ }
449
+ attachObservables() {
450
+ this.storeServiceService.searchstax.dataLayer.$searchSortingData.subscribe((sortingData) => {
451
+ this.sortingData = sortingData;
452
+ });
453
+ this.storeServiceService.searchstax.dataLayer.$searchObject.subscribe((searchObject) => {
454
+ this.selectedSorting = decodeURIComponent(searchObject?.order ?? '');
455
+ });
456
+ }
457
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SearchstaxSearchSortingWidget, deps: [{ token: StoreServiceService }], target: i0.ɵɵFactoryTarget.Component }); }
458
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: SearchstaxSearchSortingWidget, selector: "app-searchstax-search-sorting", inputs: { templateOverride: "templateOverride" }, ngImport: i0, template: "<div class=\"search-feedback-container\" [id]=\"'search-sorting-container' + rand\">\n <div\n class=\"searchstax-sorting-container\"\n *ngIf=\"sortingData && sortingData?.searchExecuted && sortingData?.hasResultsOrExternalPromotions && !templateOverride\"\n >\n <label class=\"searchstax-sorting-label\" for=\"sort-by\">Sort By</label>\n <select\n id=\"searchstax-search-order-select\"\n class=\"searchstax-search-order-select\"\n [value]=\"selectedSorting\"\n (change)=\"orderChange($event, context)\"\n >\n <option value=\"\">Relevance</option>\n <option value=\"date desc\">Newest Content</option>\n <option value=\"date asc\">Oldest Content</option>\n </select>\n </div>\n\n <div\n *ngIf=\"\n sortingData && sortingData?.searchExecuted && sortingData?.hasResultsOrExternalPromotions && templateOverride\n \"\n >\n <ng-container *ngTemplateOutlet=\"templateOverride; context: context\"></ng-container>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
459
+ }
460
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SearchstaxSearchSortingWidget, decorators: [{
461
+ type: Component,
462
+ args: [{ selector: "app-searchstax-search-sorting", template: "<div class=\"search-feedback-container\" [id]=\"'search-sorting-container' + rand\">\n <div\n class=\"searchstax-sorting-container\"\n *ngIf=\"sortingData && sortingData?.searchExecuted && sortingData?.hasResultsOrExternalPromotions && !templateOverride\"\n >\n <label class=\"searchstax-sorting-label\" for=\"sort-by\">Sort By</label>\n <select\n id=\"searchstax-search-order-select\"\n class=\"searchstax-search-order-select\"\n [value]=\"selectedSorting\"\n (change)=\"orderChange($event, context)\"\n >\n <option value=\"\">Relevance</option>\n <option value=\"date desc\">Newest Content</option>\n <option value=\"date asc\">Oldest Content</option>\n </select>\n </div>\n\n <div\n *ngIf=\"\n sortingData && sortingData?.searchExecuted && sortingData?.hasResultsOrExternalPromotions && templateOverride\n \"\n >\n <ng-container *ngTemplateOutlet=\"templateOverride; context: context\"></ng-container>\n </div>\n</div>\n" }]
463
+ }], ctorParameters: function () { return [{ type: StoreServiceService }]; }, propDecorators: { templateOverride: [{
464
+ type: Input
465
+ }] } });
466
+
467
+ class SearchstaxSearchRelatedSearchesWidget {
468
+ constructor(storeServiceService) {
469
+ this.storeServiceService = storeServiceService;
470
+ this.relatedData = null;
471
+ this.rand = Math.random();
472
+ this.context = this;
473
+ }
474
+ ngOnInit() {
475
+ if (this.storeServiceService.searchstax) {
476
+ this.attachObservables();
477
+ setTimeout(() => {
478
+ this.storeServiceService.searchstax.addRelatedSearchesWidget("searchstax-related-searches-container" + this.rand, { relatedSearchesURL: this.relatedSearchesURL ?? "", relatedSearchesAPIKey: this.relatedSearchesAPIKey ?? "" });
479
+ }, 0);
480
+ }
481
+ else {
482
+ throw Error("Searchstax instance needs to be passed via props");
483
+ }
484
+ }
485
+ executeSearch(result, context) {
486
+ context.storeServiceService.searchstax.relatedSearchesWidget?.executeSearch(result);
487
+ }
488
+ attachObservables() {
489
+ this.storeServiceService.searchstax.dataLayer.$searchRelatedSearchesData.subscribe((relatedData) => {
490
+ this.relatedData = relatedData;
491
+ });
492
+ }
493
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SearchstaxSearchRelatedSearchesWidget, deps: [{ token: StoreServiceService }], target: i0.ɵɵFactoryTarget.Component }); }
494
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: SearchstaxSearchRelatedSearchesWidget, selector: "app-searchstax-related-searches", inputs: { relatedSearchesURL: "relatedSearchesURL", relatedSearchesAPIKey: "relatedSearchesAPIKey", templateOverride: "templateOverride" }, ngImport: i0, template: "<div\n class=\"searchstax-related-searches-container\"\n [id]=\"'searchstax-related-searches-container' + rand\"\n *ngIf=\"relatedData && relatedData?.searchExecuted && relatedData?.hasRelatedSearches && !templateOverride\"\n>\n Related searches: <span id=\"searchstax-related-searches\"></span>\n <span class=\"searchstax-related-search\" *ngIf=\"relatedData.relatedSearches\">\n <span\n *ngFor=\"let related of relatedData.relatedSearches\"\n (click)=\"executeSearch(related, context)\"\n class=\"searchstax-related-search searchstax-related-search-item\"\n >\n {{ related.related_search }}<span *ngIf=\"!related.last\">,</span>\n </span>\n </span>\n</div>\n\n<div *ngIf=\"relatedData && relatedData?.searchExecuted && relatedData?.hasRelatedSearches && templateOverride\">\n <ng-container *ngTemplateOutlet=\"templateOverride; context: context\"></ng-container>\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
495
+ }
496
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SearchstaxSearchRelatedSearchesWidget, decorators: [{
497
+ type: Component,
498
+ args: [{ selector: "app-searchstax-related-searches", template: "<div\n class=\"searchstax-related-searches-container\"\n [id]=\"'searchstax-related-searches-container' + rand\"\n *ngIf=\"relatedData && relatedData?.searchExecuted && relatedData?.hasRelatedSearches && !templateOverride\"\n>\n Related searches: <span id=\"searchstax-related-searches\"></span>\n <span class=\"searchstax-related-search\" *ngIf=\"relatedData.relatedSearches\">\n <span\n *ngFor=\"let related of relatedData.relatedSearches\"\n (click)=\"executeSearch(related, context)\"\n class=\"searchstax-related-search searchstax-related-search-item\"\n >\n {{ related.related_search }}<span *ngIf=\"!related.last\">,</span>\n </span>\n </span>\n</div>\n\n<div *ngIf=\"relatedData && relatedData?.searchExecuted && relatedData?.hasRelatedSearches && templateOverride\">\n <ng-container *ngTemplateOutlet=\"templateOverride; context: context\"></ng-container>\n</div>\n" }]
499
+ }], ctorParameters: function () { return [{ type: StoreServiceService }]; }, propDecorators: { relatedSearchesURL: [{
500
+ type: Input
501
+ }], relatedSearchesAPIKey: [{
502
+ type: Input
503
+ }], templateOverride: [{
504
+ type: Input
505
+ }] } });
506
+
507
+ class SearchstaxSearchExternalPromotionsWidget {
508
+ constructor(storeServiceService) {
509
+ this.storeServiceService = storeServiceService;
510
+ this.externalPromotionsData = null;
511
+ this.rand = Math.random();
512
+ this.context = this;
513
+ }
514
+ ngOnInit() {
515
+ if (this.storeServiceService.searchstax) {
516
+ this.attachObservables();
517
+ setTimeout(() => {
518
+ this.storeServiceService.searchstax.addExternalPromotionsWidget("searchstax-external-promotions-layout-container" + this.rand, {});
519
+ }, 0);
520
+ }
521
+ else {
522
+ throw Error("Searchstax instance needs to be passed via props");
523
+ }
524
+ }
525
+ trackClick(externalPromotion, event, context) {
526
+ context.storeServiceService.searchstax.externalPromotionsWidget?.trackClick(externalPromotion, event);
527
+ }
528
+ attachObservables() {
529
+ this.storeServiceService.searchstax.dataLayer.$searchExternalPromotionsData.subscribe((externalPromotionsData) => {
530
+ this.externalPromotionsData = externalPromotionsData;
531
+ });
532
+ }
533
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SearchstaxSearchExternalPromotionsWidget, deps: [{ token: StoreServiceService }], target: i0.ɵɵFactoryTarget.Component }); }
534
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: SearchstaxSearchExternalPromotionsWidget, selector: "app-searchstax-external-promotions", inputs: { templateOverride: "templateOverride" }, ngImport: i0, template: "<div [id]=\"'searchstax-external-promotions-layout-container' + rand\">\n <div\n class=\"searchstax-external-promotions-container\"\n id=\"searchstax-external-promotions-container\"\n *ngIf=\"\n externalPromotionsData &&\n externalPromotionsData?.searchExecuted &&\n externalPromotionsData?.hasExternalPromotions &&\n !templateOverride\n \"\n >\n <div\n class=\"searchstax-external-promotion searchstax-search-result\"\n *ngFor=\"let externalPromotion of externalPromotionsData.externalPromotions\"\n >\n <div class=\"icon-elevated\"></div>\n <a\n *ngIf=\"externalPromotion.url\"\n [href]=\"externalPromotion.url\"\n (click)=\"trackClick(externalPromotion, $event, context)\"\n class=\"searchstax-result-item-link\"\n ></a>\n <div class=\"searchstax-search-result-title-container\">\n <span class=\"searchstax-search-result-title\">{{ externalPromotion.name }}</span>\n </div>\n <p\n *ngIf=\"externalPromotion.description\"\n class=\"searchstax-search-result-description searchstax-search-result-common\"\n >\n {{ externalPromotion.description }}\n </p>\n <p *ngIf=\"externalPromotion.url\" class=\"searchstax-search-result-description searchstax-search-result-common\">\n {{ externalPromotion.url }}\n </p>\n </div>\n </div>\n <div\n *ngIf=\"\n externalPromotionsData &&\n externalPromotionsData?.searchExecuted &&\n externalPromotionsData?.hasExternalPromotions &&\n templateOverride\n \"\n >\n <ng-container *ngTemplateOutlet=\"templateOverride; context: context\"></ng-container>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
535
+ }
536
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SearchstaxSearchExternalPromotionsWidget, decorators: [{
537
+ type: Component,
538
+ args: [{ selector: "app-searchstax-external-promotions", template: "<div [id]=\"'searchstax-external-promotions-layout-container' + rand\">\n <div\n class=\"searchstax-external-promotions-container\"\n id=\"searchstax-external-promotions-container\"\n *ngIf=\"\n externalPromotionsData &&\n externalPromotionsData?.searchExecuted &&\n externalPromotionsData?.hasExternalPromotions &&\n !templateOverride\n \"\n >\n <div\n class=\"searchstax-external-promotion searchstax-search-result\"\n *ngFor=\"let externalPromotion of externalPromotionsData.externalPromotions\"\n >\n <div class=\"icon-elevated\"></div>\n <a\n *ngIf=\"externalPromotion.url\"\n [href]=\"externalPromotion.url\"\n (click)=\"trackClick(externalPromotion, $event, context)\"\n class=\"searchstax-result-item-link\"\n ></a>\n <div class=\"searchstax-search-result-title-container\">\n <span class=\"searchstax-search-result-title\">{{ externalPromotion.name }}</span>\n </div>\n <p\n *ngIf=\"externalPromotion.description\"\n class=\"searchstax-search-result-description searchstax-search-result-common\"\n >\n {{ externalPromotion.description }}\n </p>\n <p *ngIf=\"externalPromotion.url\" class=\"searchstax-search-result-description searchstax-search-result-common\">\n {{ externalPromotion.url }}\n </p>\n </div>\n </div>\n <div\n *ngIf=\"\n externalPromotionsData &&\n externalPromotionsData?.searchExecuted &&\n externalPromotionsData?.hasExternalPromotions &&\n templateOverride\n \"\n >\n <ng-container *ngTemplateOutlet=\"templateOverride; context: context\"></ng-container>\n </div>\n</div>\n" }]
539
+ }], ctorParameters: function () { return [{ type: StoreServiceService }]; }, propDecorators: { templateOverride: [{
540
+ type: Input
541
+ }] } });
542
+
543
+ class SearchstudioUxAngularModule {
544
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SearchstudioUxAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
545
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.11", ngImport: i0, type: SearchstudioUxAngularModule, declarations: [SearchstaxWrapper,
546
+ SearchstaxInputWidget,
547
+ SearchstaxResultsWidget,
548
+ SearchstaxSearchFeedbackWidget,
549
+ SearchstaxSearchPaginationWidget,
550
+ SearchstaxSearchFacetsWidget,
551
+ SearchstaxSearchSortingWidget,
552
+ SearchstaxSearchRelatedSearchesWidget,
553
+ SearchstaxSearchExternalPromotionsWidget], imports: [CommonModule], exports: [SearchstaxWrapper,
554
+ SearchstaxInputWidget,
555
+ SearchstaxResultsWidget,
556
+ SearchstaxSearchFeedbackWidget,
557
+ SearchstaxSearchPaginationWidget,
558
+ SearchstaxSearchFacetsWidget,
559
+ SearchstaxSearchSortingWidget,
560
+ SearchstaxSearchRelatedSearchesWidget,
561
+ SearchstaxSearchExternalPromotionsWidget] }); }
562
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SearchstudioUxAngularModule, imports: [CommonModule] }); }
563
+ }
564
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SearchstudioUxAngularModule, decorators: [{
565
+ type: NgModule,
566
+ args: [{
567
+ declarations: [
568
+ SearchstaxWrapper,
569
+ SearchstaxInputWidget,
570
+ SearchstaxResultsWidget,
571
+ SearchstaxSearchFeedbackWidget,
572
+ SearchstaxSearchPaginationWidget,
573
+ SearchstaxSearchFacetsWidget,
574
+ SearchstaxSearchSortingWidget,
575
+ SearchstaxSearchRelatedSearchesWidget,
576
+ SearchstaxSearchExternalPromotionsWidget
577
+ ],
578
+ imports: [CommonModule],
579
+ exports: [
580
+ SearchstaxWrapper,
581
+ SearchstaxInputWidget,
582
+ SearchstaxResultsWidget,
583
+ SearchstaxSearchFeedbackWidget,
584
+ SearchstaxSearchPaginationWidget,
585
+ SearchstaxSearchFacetsWidget,
586
+ SearchstaxSearchSortingWidget,
587
+ SearchstaxSearchRelatedSearchesWidget,
588
+ SearchstaxSearchExternalPromotionsWidget
589
+ ],
590
+ }]
591
+ }] });
592
+
593
+ /*
594
+ * Public API Surface of searchstudio-ux-angular
595
+ */
596
+
597
+ /**
598
+ * Generated bundle index. Do not edit.
599
+ */
600
+
601
+ export { SearchstaxInputWidget, SearchstaxResultsWidget, SearchstaxSearchExternalPromotionsWidget, SearchstaxSearchFacetsWidget, SearchstaxSearchFeedbackWidget, SearchstaxSearchPaginationWidget, SearchstaxSearchRelatedSearchesWidget, SearchstaxSearchSortingWidget, SearchstaxWrapper, SearchstudioUxAngularModule, StoreServiceService };
602
+ //# sourceMappingURL=searchstax-inc-searchstudio-ux-angular.mjs.map