import { MediaMatcher } from '@angular/cdk/layout'; import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit, QueryList } from '@angular/core'; import { DomSanitizer, SafeHtml } from '@angular/platform-browser'; import { Observable } from 'rxjs'; import { EventTracerComponent } from '../../_components/abstracts/event-tracer.component'; import { CatalogSetting, Recipe, Supplier } from '../../_models'; import { AnalyticsService, BasketsService, CatalogSettingsService, ContextRegistryService, ContextService, HistoryService, PackageService, RecipesService, SponsorService, SuppliersService, UserService } from '../../_services'; import { BasketUtilsService } from '../../_services/basket-utils.service'; import { Icon } from '../../_types/icon.enum'; import { IAdditionnalFilters, RecipeFilter, RecipeFilters } from '../../_types/recipe-filters'; import { CatalogCategoryComponent } from './catalog-category/catalog-category.component'; import { CatalogHeaderComponent } from './catalog-header/catalog-header.component'; import { CatalogToolbarComponent } from './catalog-toolbar/catalog-toolbar.component'; import * as i0 from "@angular/core"; interface Category { key: string; title: string; subtitle: string; filters: RecipeFilters; } export declare class RecipeCatalogComponent extends EventTracerComponent implements AfterViewInit, OnInit, OnDestroy { cdr: ChangeDetectorRef; sponsorService: SponsorService; supplierService: SuppliersService; packageService: PackageService; private recipesService; mediaMatcher: MediaMatcher; usersService: UserService; catalogSettingService: CatalogSettingsService; basketsService: BasketsService; contextService: ContextService; historyService: HistoryService; private contextRegistryService; basketUtilsService: BasketUtilsService; private sanitizer; catalogHeader: CatalogHeaderComponent; catalogToolbar: CatalogToolbarComponent; topAnchor: ElementRef; returnHomeButton: ElementRef; categoriesComp: QueryList; headerPictureUrl: string; initialRoute: string; filtersPosition: string; homeLabel: string; displayInfos: boolean; displayPricing: boolean; displayRecipeVariant: number; maxRecipesPerCategory: number; customFilters: { difficulty?: RecipeFilter[]; cost?: RecipeFilter[]; time?: RecipeFilter[]; }; filters: RecipeFilters; isFilterCollapsed: boolean; icon: typeof Icon; categories: Category[]; recipeToUpdate: Recipe; filterToRemove: string; isMobile: boolean; showUserFeedback: boolean; recipeCount: number; totalPrice: number; isMyMealClose: boolean; catalogSetting: CatalogSetting; catalogSettingHasLoaded: boolean; guests: number; forceListView: boolean; historyDisplayed: boolean; historyHTML: SafeHtml; historySearch: string; private subscriptions; private headerHeightSubscription; private supplierId; private _isPreferenceModalOpen; private stickyToolbarObserver; constructor(analyticsService: AnalyticsService, cdr: ChangeDetectorRef, sponsorService: SponsorService, supplierService: SuppliersService, packageService: PackageService, recipesService: RecipesService, mediaMatcher: MediaMatcher, usersService: UserService, catalogSettingService: CatalogSettingsService, basketsService: BasketsService, contextService: ContextService, historyService: HistoryService, contextRegistryService: ContextRegistryService, basketUtilsService: BasketUtilsService, sanitizer: DomSanitizer); set isPreferenceModalOpen(value: boolean); get isPreferenceModalOpen(): boolean; ngOnInit(): void; ngAfterViewInit(): void; ngOnDestroy(): void; currentPath(): string; openFeaturesFromURL(): void; displayHomePage(): boolean; toggleHistory(display: boolean): void; initCatalogHeader(supplier: Supplier): void; private deepCloneAndResetValues; initFilters(): void; updateFilters(filters: RecipeFilters, forceListView?: boolean): void; seeAllRecipes(): void; updateSearch(search: string): void; categoryHidden(hidden: boolean): void; categoryTitleClicked(event: { title: string; subtitle: string; filters: IAdditionnalFilters; }): void; goToPromotions(): void; checkAndSetFavoritesFilter(): void; setPromotionsFilter(): void; setFavoritesFilter(): void; storeMethodIfCallbackNeeded(method: string): Observable; private isUserLoggedIn; private executeStoredMethodIfLoggedIn; private getStoredMethod; setPriceFilters(cost: string[]): void; removeFilter(filterText: string): void; returnToTop(): void; returnToHomePage(): void; onFilterCollapsed(): void; reloadPackages(): void; isSearchPage(): boolean; isFavoritesPage(): boolean; isPromotionsPage(): boolean; isAllRecipesPage(): boolean; isCategoryPage(): boolean; isDefaultPage(): boolean; private loadPackages; private loadHistoryContent; private initCategories; private selectCategoryFromUrl; private assessShowUserFeedback; private setDirectAccess; /** * Initializes the header height listener and subscribes to changes in the supplier header height. */ private initHeaderHeightListener; /** * Set the sticky observer for the toolbar. */ private setStickyObserver; private setStickyToolbarStyle; static ɵfac: i0.ɵɵFactoryDef; static ɵcmp: i0.ɵɵComponentDefWithMeta; } export {}; //# sourceMappingURL=recipe-catalog.component.d.ts.map