simpo-component-library 2.0.18 → 2.0.19

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,10 +3,12 @@ import { OrderedItems } from '../ecommerce/styles/OrderedItems.modal';
3
3
  import * as i0 from "@angular/core";
4
4
  import * as i1 from "./storage.service";
5
5
  import * as i2 from "./rest.service";
6
+ import * as i3 from "primeng/api";
6
7
  export class CartService {
7
- constructor(storageService, restService) {
8
+ constructor(storageService, restService, messageService) {
8
9
  this.storageService = storageService;
9
10
  this.restService = restService;
11
+ this.messageService = messageService;
10
12
  }
11
13
  addItemFromCartPage(product, userCart) {
12
14
  if (product.quantity) {
@@ -82,6 +84,65 @@ export class CartService {
82
84
  clearCartItems() {
83
85
  this.storageService.clearUserCart();
84
86
  }
87
+ addItemToLocalCart(product, type) {
88
+ if (this.isItemOutOfStock(product)) {
89
+ this.messageService.add({ severity: 'warn', summary: 'Cart', detail: 'Item is not available as of now. We will notify you once available' });
90
+ return;
91
+ }
92
+ if (!product?.quantity)
93
+ product.quantity = 0;
94
+ if (type == 'ADD') {
95
+ product.quantity += 1;
96
+ }
97
+ else {
98
+ product.quantity -= 1;
99
+ }
100
+ this.storageService.getUserCart().then((cartResponse) => {
101
+ cartResponse.onsuccess = (cartData) => {
102
+ const userCart = cartData.target.result ?? [];
103
+ let orderedItem = new OrderedItems();
104
+ if (product?.itemVariant?.length) {
105
+ const itemVarient = this.getItemVarient(product, product.varientId);
106
+ if (itemVarient) {
107
+ itemVarient.quantity = product.quantity;
108
+ orderedItem = this.objectMapper(product, itemVarient.variantId);
109
+ }
110
+ }
111
+ else {
112
+ orderedItem = this.objectMapper(product);
113
+ }
114
+ let productFound = false;
115
+ for (let localProduct of userCart) {
116
+ if (localProduct.varientId === product.varientId) {
117
+ localProduct.quantity = type === 'ADD' ? localProduct.quantity + 1 : localProduct.quantity - 1;
118
+ if (localProduct.quantity == 0) {
119
+ this.removeItemFromCart(localProduct);
120
+ }
121
+ else {
122
+ this.storageService.addProductToCart(localProduct);
123
+ }
124
+ productFound = true;
125
+ break;
126
+ }
127
+ }
128
+ if (!productFound) {
129
+ orderedItem.quantity = type === 'ADD' ? 1 : -1;
130
+ this.storageService.addProductToCart(orderedItem);
131
+ }
132
+ };
133
+ });
134
+ }
135
+ isItemOutOfStock(product) {
136
+ return product.itemInventory?.openingStock == 0;
137
+ }
138
+ getItemVarient(product, varientId) {
139
+ let selectedVarient = null;
140
+ product?.itemVariant?.forEach((varient) => {
141
+ if (varient.variantId == varientId)
142
+ selectedVarient = varient;
143
+ });
144
+ return selectedVarient;
145
+ }
85
146
  storeDataToServer() {
86
147
  // const userCart = UserCart as never as Cart;
87
148
  // const userWishlist = UserFavourites as never as Cart;
@@ -94,7 +155,7 @@ export class CartService {
94
155
  // this.restService.addItemToDB(UserFavourites)
95
156
  // ]);
96
157
  }
97
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: CartService, deps: [{ token: i1.StorageServiceService }, { token: i2.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
158
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: CartService, deps: [{ token: i1.StorageServiceService }, { token: i2.RestService }, { token: i3.MessageService }], target: i0.ɵɵFactoryTarget.Injectable }); }
98
159
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: CartService, providedIn: 'root' }); }
99
160
  }
100
161
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: CartService, decorators: [{
@@ -102,5 +163,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImpor
102
163
  args: [{
103
164
  providedIn: 'root',
104
165
  }]
105
- }], ctorParameters: () => [{ type: i1.StorageServiceService }, { type: i2.RestService }] });
106
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FydC5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xuICAgIC8vICAgdGhpcy5yZXN0U2VydmljZS5hZGRJdGVtVG9EQihVc2VyRmF2b3VyaXRlcylcclxuICAgIC8vIF0pO1xyXG4gIH1cclxufSJdfQ==
166
+ }], ctorParameters: () => [{ type: i1.StorageServiceService }, { type: i2.RestService }, { type: i3.MessageService }] });
167
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FydC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2ltcG8tdWkvc3JjL2xpYi9zZXJ2aWNlcy9jYXJ0LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFnQixVQUFVLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFDakUsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLHdDQUF3QyxDQUFDOzs7OztBQVV0RSxNQUFNLE9BQU8sV0FBVztJQUN0QixZQUNtQixjQUFxQyxFQUNyQyxXQUF3QixFQUN4QixjQUE4QjtRQUY5QixtQkFBYyxHQUFkLGNBQWMsQ0FBdUI7UUFDckMsZ0JBQVcsR0FBWCxXQUFXLENBQWE7UUFDeEIsbUJBQWMsR0FBZCxjQUFjLENBQWdCO0lBRWpELENBQUM7SUFHTSxtQkFBbUIsQ0FBQyxPQUFxQixFQUFFLFFBQWE7UUFDN0QsSUFBSSxPQUFPLENBQUMsUUFBUSxFQUFFLENBQUM7WUFDckIsK0JBQStCO1lBQy9CLDhEQUE4RDtZQUM5RCx1Q0FBdUM7WUFDdkMsd0JBQXdCO1lBQ3hCLE1BQU07WUFDTixJQUFJLENBQUMsY0FBYyxDQUFDLGdCQUFnQixDQUFDLE9BQXVCLENBQUMsQ0FBQztZQUM5RCxPQUFPLElBQUksQ0FBQyxXQUFXLENBQUMsV0FBVyxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQ2hEL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ZW1Ub0RCKFVzZXJGYXZvdXJpdGVzKVxyXG4gICAgLy8gXSk7XHJcbiAgfVxyXG59XHJcbiJdfQ==
@@ -6,12 +6,14 @@ import * as i1 from "./events.service";
6
6
  import * as i2 from "ngx-cookie-service";
7
7
  import * as i3 from "./rest.service";
8
8
  import * as i4 from "@angular/router";
9
+ import * as i5 from "primeng/api";
9
10
  export class StorageServiceService {
10
- constructor(eventService, cookieService, restService, router) {
11
+ constructor(eventService, cookieService, restService, router, messageService) {
11
12
  this.eventService = eventService;
12
13
  this.cookieService = cookieService;
13
14
  this.restService = restService;
14
15
  this.router = router;
16
+ this.messageService = messageService;
15
17
  this.totalCartItems = 0;
16
18
  this.databaseName = "USER";
17
19
  this.databaseVersion = 1;
@@ -282,7 +284,7 @@ export class StorageServiceService {
282
284
  storePaymentFor(paymentFor) {
283
285
  this.cookieService.set("paymentFor", paymentFor, 7);
284
286
  }
285
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: StorageServiceService, deps: [{ token: i1.EventsService }, { token: i2.CookieService }, { token: i3.RestService }, { token: i4.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
287
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: StorageServiceService, deps: [{ token: i1.EventsService }, { token: i2.CookieService }, { token: i3.RestService }, { token: i4.Router }, { token: i5.MessageService }], target: i0.ɵɵFactoryTarget.Injectable }); }
286
288
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: StorageServiceService, providedIn: 'root' }); }
287
289
  }
288
290
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: StorageServiceService, decorators: [{
@@ -290,5 +292,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImpor
290
292
  args: [{
291
293
  providedIn: 'root'
292
294
  }]
293
- }], ctorParameters: () => [{ type: i1.EventsService }, { type: i2.CookieService }, { type: i3.RestService }, { type: i4.Router }] });
294
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmFnZS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2ltcG8tdWkvc3JjL2xpYi9zZXJ2aWNlcy9zdG9yYWdlLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUtuRCxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBRWhDLE9BQU8sRUFBRSxJQUFJLEVBQUUsUUFBUSxFQUFFLE1BQU0sa0NBQWtDLENBQUM7Ozs7OztBQU1sRSxNQUFNLE9BQU8scUJBQXFCO0lBRWhDLFlBQ21CLFlBQTJCLEVBQzNCLGFBQTRCLEVBQzVCLFdBQXdCLEVBQ2pDLE1BQWU7UUFITixpQkFBWSxHQUFaLFlBQVksQ0FBZTtRQUMzQixrQkFBYSxHQUFiLGFBQWEsQ0FBZTtRQUM1QixnQkFBVyxHQUFYLFdBQVcsQ0FBYTtRQUNqQyxXQUFNLEdBQU4sTUFBTSxDQUFTO1FBV2pCLG1CQUFjLEdBQVcsQ0FBQyxDQUFDO1FBUW5DLGlCQUFZLEdBQVcsTUFBTSxDQUFDO1FBQzlCLG9CQUFlLEdBQVcsQ0FBQyxDQUFDO1FBQzVCLHVCQUFrQixHQUFXLFdBQVcsQ0FBQztRQUN6Qyw0QkFBdUIsR0FBVyxnQkFBZ0IsQ0FBQztRQUNuRCx1QkFBa0IsR0FBVyxNQUFNLENBQUM7UUFHcEMsc0JBQWlCLEdBQTBCLElBQUksQ0FBQztRQUNoRCwyQkFBc0IsR0FBMEIsSUF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XVhbnRpdHk7XHJcbiAgICAgICAgICAgICAgICAgICAgcHJvZHVjdEZvdW5kID0gdHJ1ZTtcclxuICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgaWYgKCFwcm9kdWN0Rm91bmQpIHtcclxuICAgICAgICAgICAgICAgICAgc2VydmVyREJQcm9kdWN0LnB1c2gobG9jYWxQcm9kdWN0KTtcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAgIHJlc29sdmUoc2VydmVyREJQcm9kdWN0KTtcclxuICAgICAgICAgICAgfSBjYXRjaCAoZXJyb3IpIHtcclxuICAgICAgICAgICAgICBjb25zb2xlLmVycm9yKFwiRXJyb3IgaW4gQVBJIGNhbGw6XCIsIGVycm9yKTtcclxuICAgICAgICAgICAgICByZWplY3QoZXJyb3IpO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICByZXNvbHZlKGluZGV4REJQcm9kdWN0KTtcclxuICAgICAgICAgIH1cclxuICAgICAgICB9O1xyXG4gICAgICB9KTtcclxuICAgIH0gY2F0Y2ggKGVycm9yKSB7XHJcbiAgICAgIGNvbnNvbGUuZXJyb3IoXCJFcnJvciByZXRyaWV2aW5nIGNhcnQ6XCIsIGVycm9yKTtcclxuICAgICAgdGhyb3cgZXJyb3I7XHJcbiAgICB9XHJcbiAgfVxyXG5cclxuXHJcbiAgYWRkUHJvZHVjdFRvQ2FydChwcm9kdWN0OiBPcmRlcmVkSXRlbXMpIHtcclxuXHJcbiAgICBjb25zdCB0cmFuc2FjdGlvbiA9IHRoaXMuZGF0YWJhc2UudHJhbnNhY3Rpb24odGhpcy5jYXJ0Q29sbGVjdGlvbk5hbWUsIFwicmVhZHdyaXRlXCIpO1xyXG4gICAgY29uc3QgcmVzcG9uc2UgPSB0cmFuc2FjdGlvbi5vYmplY3RTdG9yZSh0aG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uc3VjY2VzcyA9IGF3YWl0IGZ1bmN0aW9uIChldmVudDogYW55KSB7XHJcblxyXG4gIC8vICAgICAgICAgaWYgKGV2ZW50LnRhcmdldC5yZXN1bHQpIHtcclxuICAvLyAgICAgICAgICAgcmVzb2x2ZShldmVudC5yZXN1bHQpO1xyXG4gIC8vICAgICAgICAgfSBlbHNlIHtcclxuICAvLyAgICAgICAgICAgcmVzb2x2ZSgnU1VDQ0VTUycpO1xyXG4gIC8vICAgICAgICAgfVxyXG4gIC8vICAgICAgIH07XHJcbiAgLy8gICAgICAgcmVxdWVzdC5vbmVycm9yID0gYXdhaXQgZnVuY3Rpb24gKF9ldmVudCkge1xyXG4gIC8vICAgICAgICAgcmVqZWN0KFwiTm8gZGF0YVwiKTtcclxuICAvLyAgICAgICB9XHJcbiAgLy8gICAgIH1cclxuICAvLyAgIH0pO1xyXG4gIC8vIH1cclxufVxyXG4iXX0=
295
+ }], ctorParameters: () => [{ type: i1.EventsService }, { type: i2.CookieService }, { type: i3.RestService }, { type: i4.Router }, { type: i5.MessageService }] });
296
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmFnZS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2ltcG8tdWkvc3JjL2xpYi9zZXJ2aWNlcy9zdG9yYWdlLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUtuRCxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBRWhDLE9BQU8sRUFBRSxJQUFJLEVBQUUsUUFBUSxFQUFFLE1BQU0sa0NBQWtDLENBQUM7Ozs7Ozs7QUFRbEUsTUFBTSxPQUFPLHFCQUFxQjtJQUVoQyxZQUNtQixZQUEyQixF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aGlzLmdldFVzZXIoKTtcclxuICAgICAgICAgIGlmICh1c2VyRGV0YWlscz8udXNlcklkKSB7XHJcbiAgICAgICAgICAgIHRyeSB7XHJcbiAgICAgICAgICAgICAgY29uc3QgcmVzcG9uc2U6IGFueSA9IGF3YWl0IHRoaXMucmVzdFNlcnZpY2UuZ2V0VXNlckl0ZW1zKHVzZXJEZXRhaWxzPy51c2VySWQsIFwiQ0FSVFwiKS50b1Byb21pc2UoKTtcclxuICAgICAgICAgICAgICBsb2NhbFN0b3JhZ2Uuc2V0SXRlbSgnY2FydElkJywgcmVzcG9uc2UuZGF0YT8uWzBdPy5jYXJ0SWQpO1xyXG5cclxuICAgICAgICAgICAgICBjb25zdCBzZXJ2ZXJEQlByb2R1Y3QgPSByZXNwb25zZT8uZGF0YT8uWzBdPy5vcmRlcmVkSXRlbXMgPz8gW107XHJcblxyXG4gICAgICAgICAgICAgIGZvciAobGV0IGxvY2FsUHJvZHVjdCBvZiBpbmRleERCUHJvZHVjdCkge1xyXG4gICAgICAgICAgICAgICAgbGV0IHByb2R1Y3RGb3VuZCA9IGZhbHNlO1xyXG4gICAgICAgICAgICAgICAgZm9yIChsZXQgc2VydmVyUHJvZHVjdCBvZiBzZXJ2ZXJEQlByb2R1Y3QpIHtcclxuICAgICAgICAgICAgICAgICAgaWYgKHNlcnZlclByb2R1Y3QudmFyaWVudElkID09PSBsb2NhbFByb2R1Y3QudmFyaWVudElkKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgc2VydmVyUHJvZHVjdC5xdWFudGl0eSArPSBsb2NhbFByb2R1Y3QucXVhbnRpdHk7XHJcbiAgICAgICAgICAgICAgICAgICAgcHJvZHVjdEZvdW5kID0gdHJ1ZTtcclxuICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgaWYgKCFwcm9kdWN0Rm91bmQpIHtcclxuICAgICAgICAgICAgICAgICAgc2VydmVyREJQcm9kdWN0LnB1c2gobG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