ng-easycommerce 0.0.689 → 0.0.690

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.
@@ -1,46 +1,48 @@
1
- import { OnInit, Renderer2, OnChanges, EventEmitter, OnDestroy, TemplateRef } from '@angular/core';
2
- import { ActivatedRoute } from '@angular/router';
3
- import { ComponentHelper } from "../../../classes/component-helper";
4
- import { ConnectionService } from '../../../api/connection.service';
1
+ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { ComponentHelper } from '../../../classes/component-helper';
5
3
  import { ToastService } from '../../../utils/toast.service';
6
- import { Constants } from '../../../core.consts';
7
4
  import { CartService } from '../../../services/cart.service';
8
- import { DomSanitizer } from '@angular/platform-browser';
9
- import { BsModalRef, BsModalService } from 'ngx-bootstrap/modal';
10
- export declare class MobbexEcComponent extends ComponentHelper implements OnInit, OnDestroy, OnChanges {
11
- renderer: Renderer2;
12
- connection: ConnectionService;
5
+ export declare class MobbexEcComponent extends ComponentHelper implements OnInit, OnDestroy {
13
6
  toastrService: ToastService;
14
- consts: Constants;
15
7
  cartService: CartService;
16
- toastr: ToastService;
17
- activedRoute: ActivatedRoute;
18
- sanitizer: DomSanitizer;
19
- modalService: BsModalService;
20
8
  paymentServiceInst: any;
21
9
  method: any;
22
10
  total_amount: number;
23
11
  allData: any;
24
12
  user_data: any;
25
13
  ready: EventEmitter<any>;
26
- protected template: TemplateRef<any>;
27
- protected modalRef: BsModalRef | null;
28
- protected dataMobbex: any;
29
14
  loading: boolean;
30
- isDobleAuth: boolean;
31
- urls: any[];
32
- url: any;
33
- closeModal: string;
34
- ventana: any;
35
- protected dataRedirect: () => string;
36
- constructor(renderer: Renderer2, connection: ConnectionService, toastrService: ToastService, consts: Constants, cartService: CartService, toastr: ToastService, activedRoute: ActivatedRoute, sanitizer: DomSanitizer, modalService: BsModalService);
15
+ processing: boolean;
16
+ url: string | null;
17
+ private checkoutData;
18
+ private popup;
19
+ private pollTimer;
20
+ private startedAt;
21
+ private finished;
22
+ private checkoutKey;
23
+ private bc;
24
+ private checkoutRequestInFlight;
25
+ constructor(toastrService: ToastService, cartService: CartService);
37
26
  ngOnInit(): void;
38
27
  ngOnDestroy(): void;
39
- ngOnChanges(): void;
40
- openModal(template: TemplateRef<any>): void;
41
- clearStorageState: () => void;
42
- clickClose: () => void;
43
- callState: () => void;
44
- processError: (err: any) => void;
45
- getCheckoutMobbex: () => void;
28
+ openCheckout: () => void;
29
+ cancelCheckout: () => void;
30
+ private getCheckoutMobbex;
31
+ private loadCheckout;
32
+ private startPolling;
33
+ private onStorage;
34
+ private onMessage;
35
+ private onBroadcastMessage;
36
+ private finishWithState;
37
+ private readState;
38
+ private normalizeState;
39
+ private getStateKeys;
40
+ private clearStorageState;
41
+ private clearStateKeys;
42
+ private processError;
43
+ private stopPolling;
44
+ private closePopup;
45
+ private safeGetStorage;
46
+ private safeRemoveStorage;
47
+ private safeSetStorage;
46
48
  }