simpo-component-library 1.4.144 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. package/esm2022/lib/directive/background-directive.mjs +1 -1
  2. package/esm2022/lib/directive/border-directive.mjs +11 -23
  3. package/esm2022/lib/directive/removeCarousel-directive.mjs +73 -0
  4. package/esm2022/lib/ecommerce/json/user-cart.json +40 -0
  5. package/esm2022/lib/ecommerce/json/user-details.json +15 -0
  6. package/esm2022/lib/ecommerce/json/user-favourite.json +32 -0
  7. package/esm2022/lib/ecommerce/sections/address/address.component.mjs +17 -49
  8. package/esm2022/lib/ecommerce/sections/authenticate-user/authenticate-user.component.mjs +36 -69
  9. package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +49 -202
  10. package/esm2022/lib/ecommerce/sections/cart/cart.modal.mjs +1 -1
  11. package/esm2022/lib/ecommerce/sections/checkout/checkout.component.mjs +3 -7
  12. package/esm2022/lib/ecommerce/sections/featured-category/featured-category.component.mjs +4 -4
  13. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +34 -77
  14. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.modal.mjs +2 -11
  15. package/esm2022/lib/ecommerce/sections/order-details/order-details.component.mjs +10 -74
  16. package/esm2022/lib/ecommerce/sections/pagnination/pagnination.component.mjs +7 -13
  17. package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +30 -88
  18. package/esm2022/lib/ecommerce/sections/product-desc/product-desc.modal.mjs +1 -1
  19. package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +30 -106
  20. package/esm2022/lib/ecommerce/sections/product-list/product-list.modal.mjs +1 -1
  21. package/esm2022/lib/ecommerce/sections/user-basic-info/user-basic-info.component.mjs +17 -43
  22. package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +24 -156
  23. package/esm2022/lib/ecommerce/sections/user-profile/user-profile.modal.mjs +1 -1
  24. package/esm2022/lib/ecommerce/sections/whislist/whislist.component.mjs +17 -147
  25. package/esm2022/lib/ecommerce/styles/OrderedItems.modal.mjs +2 -3
  26. package/esm2022/lib/ecommerce/styles/cart.modal.mjs +1 -2
  27. package/esm2022/lib/sections/banner-section/banner-section.component.mjs +2 -1
  28. package/esm2022/lib/sections/carousel-banner/carousel-banner.component.mjs +166 -0
  29. package/esm2022/lib/sections/carousel-banner/carousel-banner.model.mjs +2 -0
  30. package/esm2022/lib/sections/choose-us-section/choose-us-section.component.mjs +3 -3
  31. package/esm2022/lib/sections/contact-us/contact-us.component.mjs +3 -5
  32. package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +8 -14
  33. package/esm2022/lib/sections/navbar-section/navbar-section.model.mjs +1 -1
  34. package/esm2022/lib/services/cart.service.mjs +109 -40
  35. package/esm2022/lib/services/events.service.mjs +2 -3
  36. package/esm2022/lib/services/rest.service.mjs +2 -17
  37. package/esm2022/lib/services/storage.service.mjs +30 -83
  38. package/esm2022/lib/styles/index.mjs +1 -8
  39. package/esm2022/lib/styles/style.model.mjs +1 -1
  40. package/esm2022/lib/styles/types.mjs +1 -1
  41. package/esm2022/public-api.mjs +3 -3
  42. package/fesm2022/simpo-component-library.mjs +816 -1459
  43. package/fesm2022/simpo-component-library.mjs.map +1 -1
  44. package/lib/directive/removeCarousel-directive.d.ts +35 -0
  45. package/lib/ecommerce/sections/address/address.component.d.ts +7 -12
  46. package/lib/ecommerce/sections/authenticate-user/authenticate-user.component.d.ts +6 -22
  47. package/lib/ecommerce/sections/cart/cart.component.d.ts +6 -14
  48. package/lib/ecommerce/sections/cart/cart.modal.d.ts +1 -10
  49. package/lib/ecommerce/sections/checkout/checkout.component.d.ts +0 -1
  50. package/lib/ecommerce/sections/featured-products/featured-products.component.d.ts +7 -14
  51. package/lib/ecommerce/sections/featured-products/featured-products.modal.d.ts +1 -4
  52. package/lib/ecommerce/sections/order-details/order-details.component.d.ts +2 -15
  53. package/lib/ecommerce/sections/pagnination/pagnination.component.d.ts +2 -3
  54. package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +3 -17
  55. package/lib/ecommerce/sections/product-desc/product-desc.modal.d.ts +1 -2
  56. package/lib/ecommerce/sections/product-list/product-list.component.d.ts +2 -21
  57. package/lib/ecommerce/sections/product-list/product-list.modal.d.ts +0 -2
  58. package/lib/ecommerce/sections/user-basic-info/user-basic-info.component.d.ts +1 -11
  59. package/lib/ecommerce/sections/user-profile/user-profile.component.d.ts +10 -36
  60. package/lib/ecommerce/sections/user-profile/user-profile.modal.d.ts +8 -5
  61. package/lib/ecommerce/sections/whislist/whislist.component.d.ts +6 -20
  62. package/lib/ecommerce/styles/OrderedItems.modal.d.ts +1 -2
  63. package/lib/ecommerce/styles/cart.modal.d.ts +0 -1
  64. package/lib/sections/carousel-banner/carousel-banner.component.d.ts +28 -0
  65. package/lib/sections/carousel-banner/carousel-banner.model.d.ts +42 -0
  66. package/lib/sections/navbar-section/navbar-section.component.d.ts +0 -1
  67. package/lib/sections/navbar-section/navbar-section.model.d.ts +1 -1
  68. package/lib/services/cart.service.d.ts +5 -8
  69. package/lib/services/events.service.d.ts +3 -4
  70. package/lib/services/rest.service.d.ts +0 -3
  71. package/lib/services/storage.service.d.ts +44 -11
  72. package/lib/styles/index.d.ts +0 -6
  73. package/lib/styles/style.model.d.ts +1 -4
  74. package/lib/styles/types.d.ts +0 -1
  75. package/package.json +1 -1
  76. package/public-api.d.ts +2 -2
  77. package/simpo-component-library-1.5.0.tgz +0 -0
  78. package/esm2022/lib/constants/business.constant.mjs +0 -5
  79. package/esm2022/lib/directive/spacing-horizontal.directive.mjs +0 -48
  80. package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.component.mjs +0 -97
  81. package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.model.mjs +0 -2
  82. package/esm2022/lib/pipes/amount.pipe.mjs +0 -35
  83. package/esm2022/lib/services/endUser.service.mjs +0 -28
  84. package/lib/constants/business.constant.d.ts +0 -3
  85. package/lib/directive/spacing-horizontal.directive.d.ts +0 -18
  86. package/lib/ecommerce/sections/verify-payment/verify-payment.component.d.ts +0 -27
  87. package/lib/ecommerce/sections/verify-payment/verify-payment.model.d.ts +0 -23
  88. package/lib/pipes/amount.pipe.d.ts +0 -7
  89. package/lib/services/endUser.service.d.ts +0 -13
  90. package/simpo-component-library-1.4.144.tgz +0 -0
@@ -1,5 +1,8 @@
1
1
  import { Injectable } from '@angular/core';
2
+ import UserCart from "../ecommerce/json/user-cart.json";
3
+ import UserFavourites from "../ecommerce/json/user-favourite.json";
2
4
  import { OrderedItems } from '../ecommerce/styles/OrderedItems.modal';
5
+ import { forkJoin } from 'rxjs';
3
6
  import * as i0 from "@angular/core";
4
7
  import * as i1 from "./storage.service";
5
8
  import * as i2 from "./rest.service";
@@ -8,88 +11,154 @@ export class CartService {
8
11
  this.storageService = storageService;
9
12
  this.restService = restService;
10
13
  }
11
- addItemFromCartPage(product, userCart) {
14
+ addItemFromCartPage(product) {
12
15
  if (product.quantity) {
13
- // let productIdx: number = -1;
14
- // UserCart.orderedItems.forEach((item: OrderedItems, idx)=> {
15
- // if (item.itemId == product.itemId)
16
- // productIdx = idx;
17
- // });
16
+ let productIdx = -1;
17
+ UserCart.orderedItems.forEach((item, idx) => {
18
+ if (item.itemId == product.itemId)
19
+ productIdx = idx;
20
+ });
18
21
  this.storageService.addProductToCart(product);
19
- return this.restService.addItemToDB(userCart);
22
+ return this.restService.addItemToDB(UserCart);
20
23
  }
21
24
  else {
22
25
  // remove item from cart
23
26
  this.removeItemFromCart(product);
24
- return this.restService.addItemToDB(userCart);
27
+ return this.restService.addItemToDB(UserCart);
25
28
  }
26
29
  }
27
- addItemToCart(product) {
30
+ addItemToCart(product, isFromCart = false) {
28
31
  if (product.quantity) {
29
- const orderedItem = this.objectMapper(product);
30
- return this.storageService.addProductToCart(orderedItem);
32
+ const orderedItem = !isFromCart ? this.objectMapper(product) : product;
33
+ let productIdx = -1;
34
+ UserCart.orderedItems.forEach((item, idx) => {
35
+ if (item.itemId == product.itemId)
36
+ productIdx = idx;
37
+ });
38
+ if (productIdx >= 0) {
39
+ UserCart.orderedItems[productIdx].quantity = product.quantity;
40
+ }
41
+ else {
42
+ UserCart.orderedItems.push(orderedItem);
43
+ }
44
+ console.log(UserCart);
45
+ this.storageService.addProductToCart(orderedItem);
31
46
  }
32
47
  else {
33
- return this.removeItemFromCart(product);
48
+ // remove item from cart
49
+ this.removeItemFromCart(product);
34
50
  }
35
51
  }
36
52
  addItemToFavourite(product) {
37
53
  const orderedItem = this.objectMapper(product);
38
- this.storageService.addProductToWishlist(orderedItem);
39
- }
40
- addOrderedItemToFavourite(orderedItem) {
54
+ let productIdx = -1;
55
+ UserFavourites.orderedItems.forEach((item, idx) => {
56
+ if (item.itemId == product.itemId)
57
+ productIdx = idx;
58
+ });
59
+ if (productIdx >= 0) {
60
+ UserFavourites.orderedItems[productIdx].quantity = product.quantity;
61
+ }
62
+ else {
63
+ UserFavourites.orderedItems.push(orderedItem);
64
+ }
41
65
  this.storageService.addProductToWishlist(orderedItem);
42
66
  }
43
67
  removeItemFromFavourite(product) {
44
- this.storageService.removeProductFromWishlist(product.itemId);
68
+ const index = this.getItemIdxJSON(product.itemId, 'FAVOURITE');
69
+ if (index >= 0) {
70
+ const item = UserFavourites.orderedItems.splice(index, 1)[0];
71
+ // UserFavourites.orderedItems.push(item as never);
72
+ this.storageService.removeProductFromWishlist(product.itemId);
73
+ }
45
74
  }
46
75
  removeItemFromCart(product) {
47
- this.storageService.removeProductFromCart(product.itemId);
48
- }
49
- getItemIdxJSON(id, type) {
50
- return this.storageService.getProductFromCart(id);
76
+ const index = this.getItemIdxJSON(product.itemId, 'CART');
77
+ if (index >= 0) {
78
+ const item = UserCart.orderedItems.splice(index, 1)[0];
79
+ // UserCart.orderedItems.push(item as never);
80
+ this.storageService.removeProductFromCart(product.itemId);
81
+ }
51
82
  }
83
+ // public convertFavToCart(product: OrderedItems) {
84
+ // const index = this.getItemIdxJSON(product.getItemId, UserFavourites);
85
+ // if (index >= 0) {
86
+ // const item = UserFavourites.orderedItems.splice(index, 1)[0];
87
+ // UserCart.orderedItems.push(item as never);
88
+ // }
89
+ // }
90
+ // public convertCartToFav(product: OrderedItems) {
91
+ // const index = this.getItemIdxJSON(product.getItemId, UserCart);
92
+ // if (index >= 0) {
93
+ // const item = UserCart.orderedItems.splice(index, 1)[0];
94
+ // UserFavourites.orderedItems.push(item as never);
95
+ // }
96
+ // }
52
97
  storeItemToDB(product, type) {
53
98
  if (type == "CART") {
54
99
  const orderProduct = this.objectMapper(this.storageService.getProductFromCart(product.itemId));
55
100
  if (orderProduct) {
56
101
  this.storageService.addProductToCart(orderProduct);
102
+ UserCart.orderedItems.push(orderProduct);
57
103
  }
58
104
  }
59
105
  else {
60
106
  const orderProduct = this.objectMapper(this.storageService.getProductFromWishlist(product.itemId));
61
107
  if (orderProduct) {
62
108
  this.storageService.addProductToWishlist(orderProduct);
109
+ UserFavourites.orderedItems.push(orderProduct);
63
110
  }
64
111
  }
65
112
  }
113
+ getItemIdxJSON(itemId, type) {
114
+ const json = (type == "FAVOURITE") ? UserFavourites : UserCart;
115
+ let productIndex = -1;
116
+ json.orderedItems.forEach((p, idx) => {
117
+ if (p.itemId == itemId)
118
+ productIndex = idx;
119
+ });
120
+ return productIndex;
121
+ }
66
122
  getItemByIdx(itemId, type) {
67
123
  const productIdx = this.getItemIdxJSON(itemId, type);
68
- // console.log(type, productIdx);
69
- // const json = (type == "FAVOURITE") ? UserFavourites : UserCart;
70
- // if (productIdx >= 0)
71
- // return json.orderedItems[productIdx];
124
+ console.log(type, productIdx);
125
+ const json = (type == "FAVOURITE") ? UserFavourites : UserCart;
126
+ if (productIdx >= 0)
127
+ return json.orderedItems[productIdx];
72
128
  return null;
73
129
  }
74
130
  objectMapper(product) {
75
131
  return new OrderedItems(product);
76
132
  }
77
- storeCartDataToServer(cart) {
78
- }
79
- clearCartItems() {
80
- this.storageService.clearUserCart();
81
- }
82
133
  storeDataToServer() {
83
- // const userCart = UserCart as never as Cart;
84
- // const userWishlist = UserFavourites as never as Cart;
85
- // if (userCart.cartId?.length == 0)
86
- // delete userCart.cartId;
87
- // if (userWishlist.cartId?.length == 0)
88
- // delete userWishlist.cartId;
89
- // return forkJoin([
90
- // this.restService.addItemToDB(UserCart),
91
- // this.restService.addItemToDB(UserFavourites)
92
- // ]);
134
+ const userCart = UserCart;
135
+ const userWishlist = UserFavourites;
136
+ if (userCart.cartId?.length == 0)
137
+ delete userCart.cartId;
138
+ if (userWishlist.cartId?.length == 0)
139
+ delete userWishlist.cartId;
140
+ return forkJoin([
141
+ this.restService.addItemToDB(UserCart),
142
+ this.restService.addItemToDB(UserFavourites)
143
+ ]);
144
+ }
145
+ storeDBToJSON() {
146
+ // this.storageService.getUserCart().then((response)=> {
147
+ //
148
+ // })
149
+ // const userId = UserDetails.user?.userId;
150
+ // if (!userId)
151
+ // return;
152
+ // this.restService.getUserItems(userId, "CART").subscribe((response: any)=> {
153
+ // UserCart.orderedItems = response.data.orderedItems;
154
+ // UserCart.billdetails = response.data.billdetails;
155
+ // UserCart.totalAmount = response.totalAmount;
156
+ // })
157
+ // this.restService.getUserItems(userId, "WISHLIST").subscribe((response: any)=> {
158
+ // UserFavourites.orderedItems = response.data.orderedItems;
159
+ // UserFavourites.billdetails = response.data.billdetails;
160
+ // UserFavourites.totalAmount = response.totalAmount;
161
+ // })
93
162
  }
94
163
  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 }); }
95
164
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: CartService, providedIn: 'root' }); }
@@ -100,4 +169,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImpor
100
169
  providedIn: 'root',
101
170
  }]
102
171
  }], ctorParameters: () => [{ type: i1.StorageServiceService }, { type: i2.RestService }] });
103
- //# s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EventsService {
34
34
  this.openBlogListEvent = new EventEmitter();
35
35
  this.toggleEditorEvent = new EventEmitter();
36
36
  this.closeEditorEvent = new EventEmitter();
37
+ this.stopCarouselEvent = new EventEmitter();
37
38
  // Ecommerce event emitter
38
39
  this.redirectToPage = new EventEmitter();
39
40
  this.addToCart = new EventEmitter();
@@ -42,9 +43,7 @@ export class EventsService {
42
43
  this.environmentType = new EventEmitter();
43
44
  this.showLoadingScreen = new EventEmitter();
44
45
  this.cashFreeEvent = new EventEmitter();
45
- this.addressAddedIdx = new EventEmitter();
46
46
  }
47
- ngOnInit() { }
48
47
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: EventsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
49
48
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: EventsService, providedIn: 'root' }); }
50
49
  }
@@ -54,4 +53,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImpor
54
53
  providedIn: 'root',
55
54
  }]
56
55
  }], ctorParameters: () => [] });
57
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnRzLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9zaW1wby11aS9zcmMvbGliL3NlcnZpY2VzL2V2ZW50cy5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsVUFBVSxFQUFVLE1BQU0sZUFBZSxDQUFDOztBQUtqRSxNQUFNLE9BQU8sYUFBYTtJQUN4QjtRQU1BLGdCQUFXLEdBQUcsSUFBSSxZQUFZLEVBQVcsQ0FBQztRQUMxQyxjQUFTLEdBQUcsSUFBSSxZQUFZLEVBQVc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FbWl0dGVyPHVua25vd24+KCk7XHJcbiAgZmVhdHVyZUNvbGxlY3Rpb25MaXN0ID0gbmV3IEV2ZW50RW1pdHRlcjx1bmtub3duPigpO1xyXG4gIGVudmlyb25tZW50VHlwZSA9IG5ldyBFdmVudEVtaXR0ZXI8c3RyaW5nPigpO1xyXG5cclxuICBzaG93TG9hZGluZ1NjcmVlbiA9IG5ldyBFdmVudEVtaXR0ZXI8Ym9vbGVhbj4oKTtcclxuXHJcbiAgY2FzaEZyZWVFdmVudCA9IG5ldyBFdmVudEVtaXR0ZXI8dW5rbm93bj4oKTtcclxufVxyXG4iXX0=
@@ -24,7 +24,7 @@ export class RestService {
24
24
  this.environmentTypeSubscriber?.unsubscribe();
25
25
  }
26
26
  getFeaturedProduct(collectionId) {
27
- let subIndustryId = localStorage.getItem("subIndustryId");
27
+ let subIndustryId = localStorage.getItem("subindustryId");
28
28
  if (!subIndustryId)
29
29
  subIndustryId = "1eecee8d-efba-62f8-b7b5-b9742fceb17f";
30
30
  return this.http.get(this.BASE_URL + `ecommerce/product/collection/id?collectionId=${collectionId || ''}&subIndustryId=${subIndustryId || ''}`).pipe(map((response) => response.data?.map((product) => new Product(product))));
@@ -76,15 +76,6 @@ export class RestService {
76
76
  };
77
77
  return this.http.put(this.BASE_URL + `ecommerce/product/item/search`, payload);
78
78
  }
79
- getProductByCollectionId(collectionId) {
80
- const payload = {
81
- "businessId": localStorage.getItem("bId") ?? localStorage.getItem("businessId"),
82
- "collectionId": [collectionId],
83
- "pageNo": 0,
84
- "pageSize": 10
85
- };
86
- return this.http.put(this.BASE_URL + `ecommerce/product/item/search`, payload);
87
- }
88
79
  generateOTP(mobile, countryCode) {
89
80
  const businessId = localStorage.getItem("bId") ?? localStorage.getItem("businessId") ?? "1ef4fe51-6dfc-6199-b966-0f9244067fd0";
90
81
  return this.http.post(this.BASE_URL + `ecommerce/user/otp/trigger?mobile=${mobile}&countryCode=${countryCode}&businessId=${businessId}`, null);
@@ -115,14 +106,8 @@ export class RestService {
115
106
  updateProfile(payload) {
116
107
  return this.http.put(this.BASE_URL + `ecommerce/user/update/user`, payload);
117
108
  }
118
- getUserOrders(payload) {
119
- return this.http.put(this.BASE_URL + `ecommerce/order/user/order`, payload);
120
- }
121
109
  toggleItemCartToFav() {
122
110
  }
123
- moveWishlistToCart() {
124
- return this.http.get(this.BASE_URL + `ecommerce/update/cart`);
125
- }
126
111
  // Payment
127
112
  createPaymentToken(payload) {
128
113
  return this.http.post(this.BASE_URL + `ecommerce/payment/order`, payload);
@@ -142,4 +127,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImpor
142
127
  providedIn: 'root',
143
128
  }]
144
129
  }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.EventsService }] });
145
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzdC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2ltcG8tdWkvc3JjL2xpYi9zZXJ2aWNlcy9yZXN0LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLFVBQVUsRUFBYSxNQUFNLGVBQWUsQ0FBQztBQUN0RCxPQUFPLEVBQUUsR0FBRyxFQUF3QyxNQUFNLE1BQU0sQ0FBQztBQUNqRSxPQUFPLEVBQUUsUUFBUSxFQUFpQixPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7Ozs7QUFLaEYsTUFBTSxPQUFPLFdBQVc7SUFLcEIsWUFDcUIsSUFBZ0IsRUFDaEIsWUFBMkI7UUFEM0IsU0FBSSxHQUFKLElBQUksQ0FBWTtRQUNoQixpQkFBWSxHQUFaLFlBQVksQ0FBZTtRQUx4QyxhQUFRLEdBQVcsMkJBQTJCLENBQUM7UUFDL0MsOEJBQXlCLEdBQX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yL29yZGVyYCwgcGF5bG9hZCk7XHJcbiAgICB9XHJcbiAgICB0b2dnbGVJdGVtQ2FydFRvRmF2KCkge1xyXG5cclxuICAgIH1cclxuICAgIG1vdmVXaXNobGlzdFRvQ2FydCgpIHtcclxuICAgICAgICByZXR1cm4gdGhpcy5odHRwLmdldCh0aGlzLkJBU0VfVVJMICsgYGVjb21tZXJjZS91cGRhdGUvY2FydGApO1xyXG4gICAgfVxyXG5cclxuICAgIC8vIFBheW1lbnRcclxuICAgIGNyZWF0ZVBheW1lbnRUb2tlbihwYXlsb2FkOiBhbnkpIHtcclxuICAgICAgICByZXR1cm4gdGhpcy5odHRwLnBvc3QodGhpcy5CQVNFX1VSTCArIGBlY29tbWVyY2UvcGF5bWVudC9vcmRlcmAsIHBheWxvYWQpO1xyXG4gICAgfVxyXG4gICAgcmVmdW5kUGF5bWVudChvcmRlcklkOiBzdHJpbmcsIHBheWxvYWQ6IGFueSkge1xyXG4gICAgICAgIHJldHVybiB0aGlzLmh0dHAucG9zdCh0aGlzLkJBU0VfVVJMICsgYGVjb21tZXJjZS9wYXltZW50L3JlZnVuZC9iYW5rP29yZGVySWQ9JHtvcmRlcklkfWAsIHBheWxvYWQpO1xyXG4gICAgfVxyXG4gICAgY2hlY2tQYXltZW50U3RhdHVzKHBheWxvYWQ6IGFueSkge1xyXG4gICAgICAgIHJldHVybiB0aGlzLmh0dHAucG9zdCh0aGlzLkJBU0VfVVJMICsgYGVjb21tZXJjZS9wYXltZW50L3N0YXR1c2AsIHBheWxvYWQpO1xyXG4gICAgfVxyXG59Il19
130
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzdC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2ltcG8tdWkvc3JjL2xpYi9zZXJ2aWNlcy9yZXN0LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtY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