import { AfterViewInit, ChangeDetectorRef, OnInit } from '@angular/core'; import { FormControl, FormGroup } from '@angular/forms'; import { ActivatedRoute } from '@angular/router'; import { PartnerService } from '../shared/services/partner-service.service'; import { CouponComponent } from './coupon-information/coupon/coupon.component'; import { PromocodeComponent } from './promocode-information/promocode/promocode.component'; import { PartnerVoucherService } from '../shared/services/partner-voucher-service'; import { PartnerInformationModel } from '../shared/model/partner-information-model'; import { SelectedBranchesModel } from '../shared/model/selected-branches-model'; import { PartnerIdentifierService } from "../shared/services/partner-identifier.service"; import { MatTableDataSource } from '@angular/material/table'; import { AuthenticationService, ColumnDefinition, TablePageDetails, PopupService } from 'loyalty-common'; import { ShowingBranchesModel } from '../shared/model/showing-branches-model'; import { TranslateService } from '@ngx-translate/core'; import * as i0 from "@angular/core"; export declare class GiftManagementComponent implements OnInit, AfterViewInit { private cdr; private route; private translateService; private partnerService; private partnerVoucherService; private partnerIdentifierService; private popupService; private authService; isPartnerGroup: boolean; branches: any[]; branchesClone: any[]; showedSelection: SelectedBranchesModel[]; addSelectedClicked: boolean; maxColumns: number; dataSource: MatTableDataSource; pageDetails: TablePageDetails; displayedColumns: ColumnDefinition[]; branchId: string; floatNumbersOnly: RegExp; entryFromBranch: boolean; partnerId: string; lang: string | null; partnerGroup: boolean; allBranches: boolean; someBranches: boolean; addedSelectBranches: boolean; selectedBranchesValues: SelectedBranchesModel[]; validAddSelect: boolean; valueType: string; showingSelection: ShowingBranchesModel[]; noOfAdds: number; permissions: string[] | null; isPartnerCreation: boolean; giftDto: PartnerInformationModel; branchValue: number; constructor(cdr: ChangeDetectorRef, route: ActivatedRoute, translateService: TranslateService, partnerService: PartnerService, partnerVoucherService: PartnerVoucherService, partnerIdentifierService: PartnerIdentifierService, popupService: PopupService, authService: AuthenticationService); selectedBranchesForm: FormGroup<{ branchSelection: FormControl; branch: FormControl; branchValue: FormControl; someBranches: FormControl; allBranches: FormControl; }>; giftManagementForm: FormGroup<{ giftType: FormControl; }>; promocodeComponent: PromocodeComponent; couponComponent: CouponComponent; isPromocodeVisible: boolean; isCouponVisible: boolean; ngAfterViewInit(): void; ngOnInit(): void; resetGiftDto(): void; resetSelected(): void; resetShowingSelectionTable(): void; onCreatePromocode(): void; isCreatePromocodeValid(): boolean; onAddNewPromocode(): void; isAddPromocodeDisabled(): boolean; removePromocode(): void; removeCoupon(): void; getBranches(): void; createGiftPromo(): void; parseStringArrayToIntList(values: string[]): number[]; formatDate(dateString: string): string; createGiftCoupon(): void; saveAllGifts(): void; unselectAll(): void; resetShowedSelection(): void; onCreateCoupon(): void; verifySelected(): boolean; isCreateCouponValid(): boolean; isPromocodeButtonsVisible(): boolean; isCouponButtonsVisible(): boolean; isBranchEntry(): void; isItEntry(id: string): boolean; partnerGroupButtonCheck(): void; checkIfPartnerGroup(): void; addSelected(): void; mapSelectionsForTable(): void; pushSelectedData(): void; changePage(page: number): void; isAddSelectionValid(): boolean; isSavingValid(): boolean; checkSomeCheckbox(): void; checkAllCheckbox(): void; permissionExists(permissionName: string): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }