import { OnDestroy, OnInit, ElementRef } from '@angular/core'; import { CheckoutService } from '../services/checkout.service'; import { Router } from '@angular/router'; import { PaymentGuardCheckout } from '../checkout-guard/payment-guard'; import { CartItemsSummary } from '../models/cartItemsSummery.model'; import { FacebookPixelService, LanguageService } from '../../../services'; import { Subject } from 'rxjs'; import { BsDatepickerConfig, BsLocaleService } from 'ngx-bootstrap/datepicker'; import { ConfService } from '../../services/conf.service'; import { FormGroup, FormBuilder } from '@angular/forms'; import { Checkout, ShippingAddress } from '../models/checkout.modal'; import { ShippingMethod } from '../models/shippingMethods.modal'; import { TimeSlot } from '../models/timeSlot.modal'; import { TimeSlotObject } from '../models/timeSlots.model'; import { ToastrService } from 'ngx-toastr'; import { TranslatePipe } from '../../pipes/translate.pipe'; import * as i0 from "@angular/core"; export declare class ShippingComponent implements OnInit, OnDestroy { private checkoutService; private languageService; private router; private paymentGuardCheckout; private confService; private localeService; private formBuilder; private toastr; private translatePipe; private fbService; shippingMethods: ShippingMethod[]; orders: Checkout; language: any; selectedShippingMethod: any; adjustments: any[]; features: any; selectedTimeSlot: TimeSlotObject; days: TimeSlot; minDate: Date; minHour: string; maxDate: Date; bsConfig: Partial; selectedTimeByUser: string; datePickerValue: string; selectedDayName: string; startTime: number; endTime: number; api_days: any; avaliableTime: any[]; disabledDays: any[]; shippingAddress: ShippingAddress; loading: boolean; noShippingMethod: boolean; selectedDateStatus: boolean; selectedTimeStatus: boolean; submitted: boolean; hasTimeSlots: boolean; HaveNotEnabledDays: boolean; itemUnAvaliable: boolean; cartItemsSummary: CartItemsSummary; $destroyCheckoutDataSubject: Subject; $destroyShippingMethods: Subject; private destroySelectShipping; timeSlotsDate: ElementRef; timeSlotsAvaliableHours: ElementRef; selectMethodErr: boolean; serviceUnvailableMsg: string; storeLimitMsg: any; constructor(checkoutService: CheckoutService, languageService: LanguageService, router: Router, paymentGuardCheckout: PaymentGuardCheckout, confService: ConfService, localeService: BsLocaleService, formBuilder: FormBuilder, toastr: ToastrService, translatePipe: TranslatePipe, fbService: FacebookPixelService); timeSlotForm: FormGroup; ngOnInit(): void; get f(): { [key: string]: import("@angular/forms").AbstractControl; }; submitPayment(): void; submitPaymentDemo(): void; /** * @Todo * 1- first take the selected date that have slashes; * 2- second change the slashes to be - and return it; * @param selectedDate the date that selected */ changeDateFormat(selectedDate: string): string; /** * Represent the state of the spinner. * @return false; */ onLoad(): boolean; /** * Represent the state of the spinner. * @param shipmentCode string; * @return false; */ getSelectedShippment(shipmentCode: any): void; ngOnDestroy(): void; /** * Stop the spinner If the shipping methods represents successfully * @return void */ private stopSpinner; /** * used by @function mapShippingMethod() to map the shipping methods * @param shippingMethodsApi shipping method api response * @return Shipping Methods */ private mapShippingMethod; /** * If Selected Shipping Success Go To Payment . */ private selectShippingSuccess; /** * Nagivate To Payment . */ private goToPayment; /** * Set status of payment true in localstorage. * Set behaviour of payment true */ private accessPaymentSuccess; /** * Set status of payment fakse in localstorage. * Set behaviour of payment false */ private accessPaymentFalied; backToShippingAddress(): void; getSelectedShippingMethod(shippingMethod: any): void; getTimesEvent(e: any): void; getDeliveryDate(): void; private setDatePickerMinDate; private getAvaliableDeliveryDates; private getSelectedTimeSlots; getAvaliablesHoursForSpecificDate(selectedDay: any): import("../models/timeSlot.modal").Duration[]; getSelectedDeliveryDate(evt: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }