simpo-component-library 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (186) hide show
  1. package/README.md +24 -24
  2. package/esm2022/lib/components/delete-hover-element/delete-hover-element.component.mjs +3 -3
  3. package/esm2022/lib/components/hover-elements/hover-elements.component.mjs +7 -5
  4. package/esm2022/lib/constants/business.constant.mjs +14 -0
  5. package/esm2022/lib/directive/background-directive.mjs +1 -1
  6. package/esm2022/lib/directive/blur-content.directive.mjs +1 -1
  7. package/esm2022/lib/directive/border-directive.mjs +23 -11
  8. package/esm2022/lib/directive/borderlessImage.directive.mjs +1 -1
  9. package/esm2022/lib/directive/button-directive.directive.mjs +1 -1
  10. package/esm2022/lib/directive/color.directive.mjs +1 -1
  11. package/esm2022/lib/directive/column-directive.directive.mjs +1 -1
  12. package/esm2022/lib/directive/container-alignment.directive.mjs +1 -1
  13. package/esm2022/lib/directive/container-fir.directive.mjs +1 -1
  14. package/esm2022/lib/directive/content-title-spacing.directive.mjs +1 -1
  15. package/esm2022/lib/directive/corner-directive.mjs +1 -1
  16. package/esm2022/lib/directive/hoverborder.directive.mjs +1 -1
  17. package/esm2022/lib/directive/image-container.directive.mjs +1 -1
  18. package/esm2022/lib/directive/image-directive.directive.mjs +1 -1
  19. package/esm2022/lib/directive/image-position.directive.mjs +1 -1
  20. package/esm2022/lib/directive/position-layout-directive.directive.mjs +1 -1
  21. package/esm2022/lib/directive/spacing-horizontal.directive.mjs +48 -0
  22. package/esm2022/lib/directive/sticky-directive.mjs +1 -1
  23. package/esm2022/lib/directive/text-background-directive.directive.mjs +1 -1
  24. package/esm2022/lib/directive/text-size.directive.mjs +1 -1
  25. package/esm2022/lib/directive/wrap-containers.directive.mjs +31 -0
  26. package/esm2022/lib/ecommerce/sections/address/address.component.mjs +134 -28
  27. package/esm2022/lib/ecommerce/sections/authenticate-user/authenticate-user.component.mjs +104 -39
  28. package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +296 -61
  29. package/esm2022/lib/ecommerce/sections/cart/cart.modal.mjs +1 -1
  30. package/esm2022/lib/ecommerce/sections/checkout/checkout.component.mjs +13 -3
  31. package/esm2022/lib/ecommerce/sections/checkout/checkout.modal.mjs +1 -1
  32. package/esm2022/lib/ecommerce/sections/featured-category/featured-category.component.mjs +13 -4
  33. package/esm2022/lib/ecommerce/sections/featured-category/featured-category.modal.mjs +1 -1
  34. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +212 -42
  35. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.modal.mjs +11 -2
  36. package/esm2022/lib/ecommerce/sections/item-varient/item-varient.component.mjs +11 -0
  37. package/esm2022/lib/ecommerce/sections/order-details/order-details.component.mjs +77 -10
  38. package/esm2022/lib/ecommerce/sections/pagnination/pagnination.component.mjs +13 -7
  39. package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +272 -39
  40. package/esm2022/lib/ecommerce/sections/product-desc/product-desc.modal.mjs +1 -1
  41. package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +252 -33
  42. package/esm2022/lib/ecommerce/sections/product-list/product-list.modal.mjs +1 -1
  43. package/esm2022/lib/ecommerce/sections/user-basic-info/user-basic-info.component.mjs +44 -17
  44. package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +300 -28
  45. package/esm2022/lib/ecommerce/sections/user-profile/user-profile.modal.mjs +1 -1
  46. package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.component.mjs +124 -0
  47. package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.model.mjs +2 -0
  48. package/esm2022/lib/ecommerce/sections/whislist/whislist.component.mjs +183 -17
  49. package/esm2022/lib/ecommerce/styles/BaseCollection.modal.mjs +1 -1
  50. package/esm2022/lib/ecommerce/styles/Collection.modal.mjs +1 -1
  51. package/esm2022/lib/ecommerce/styles/OrderedItems.modal.mjs +11 -3
  52. package/esm2022/lib/ecommerce/styles/cart.modal.mjs +2 -1
  53. package/esm2022/lib/ecommerce/styles/category.modal.mjs +1 -1
  54. package/esm2022/lib/ecommerce/styles/order.modal.mjs +1 -1
  55. package/esm2022/lib/ecommerce/styles/product.modal.mjs +10 -1
  56. package/esm2022/lib/ecommerce/styles/user.modal.mjs +1 -1
  57. package/esm2022/lib/elements/below-image-card/below-image-card.component.mjs +3 -3
  58. package/esm2022/lib/elements/button/button.component.mjs +3 -3
  59. package/esm2022/lib/elements/button/button.model.mjs +1 -1
  60. package/esm2022/lib/elements/covering-image-card/covering-image-card.component.mjs +3 -3
  61. package/esm2022/lib/elements/heading-element/heading-element.component.mjs +3 -3
  62. package/esm2022/lib/elements/index.mjs +1 -1
  63. package/esm2022/lib/elements/simpo-button/simpo-button.component.mjs +3 -3
  64. package/esm2022/lib/elements/text/text.component.mjs +3 -3
  65. package/esm2022/lib/elements/top-of-image-card/top-of-image-card.component.mjs +3 -3
  66. package/esm2022/lib/pipes/amount.pipe.mjs +35 -0
  67. package/esm2022/lib/pipes/gender.pipe.mjs +36 -0
  68. package/esm2022/lib/sections/BaseSection.mjs +1 -1
  69. package/esm2022/lib/sections/add-new-section/add-new-section.component.mjs +3 -3
  70. package/esm2022/lib/sections/banner-carousel/banner-carousel.component.mjs +3 -3
  71. package/esm2022/lib/sections/banner-carousel/banner-carousel.model.mjs +1 -1
  72. package/esm2022/lib/sections/banner-grid-section/banner-grid-section.component.mjs +9 -4
  73. package/esm2022/lib/sections/banner-grid-section/banner-grid-section.model.mjs +1 -1
  74. package/esm2022/lib/sections/banner-section/banner-section.component.mjs +3 -3
  75. package/esm2022/lib/sections/blog-list/blog-list.component.mjs +3 -3
  76. package/esm2022/lib/sections/blog-list/blog-list.model.mjs +1 -1
  77. package/esm2022/lib/sections/carousel-banner/carousel-banner.component.mjs +12 -12
  78. package/esm2022/lib/sections/carousel-banner/carousel-banner.model.mjs +1 -1
  79. package/esm2022/lib/sections/choose-us-section/choose-us-section.component.mjs +3 -3
  80. package/esm2022/lib/sections/choose-us-section/choose-us-section.model.mjs +1 -1
  81. package/esm2022/lib/sections/contact-us/contact-us.component.mjs +7 -5
  82. package/esm2022/lib/sections/faq-section/faq-section.component.mjs +3 -3
  83. package/esm2022/lib/sections/faq-section/faq-section.modal.mjs +1 -1
  84. package/esm2022/lib/sections/features-section/features-section.component.mjs +3 -3
  85. package/esm2022/lib/sections/features-section/features-section.model.mjs +1 -1
  86. package/esm2022/lib/sections/footer-section/footer-section.component.mjs +3 -3
  87. package/esm2022/lib/sections/header-text/header-text.component.mjs +3 -3
  88. package/esm2022/lib/sections/header-text/header-text.model.mjs +1 -1
  89. package/esm2022/lib/sections/image-carousel-section/image-carousel-section.component.mjs +3 -3
  90. package/esm2022/lib/sections/image-carousel-section/image-carousel.model.mjs +1 -1
  91. package/esm2022/lib/sections/image-grid-section/image-grid-section.component.mjs +3 -3
  92. package/esm2022/lib/sections/image-grid-section/image-grid-section.model.mjs +1 -1
  93. package/esm2022/lib/sections/image-section/image-section.component.mjs +3 -3
  94. package/esm2022/lib/sections/image-section/image-section.model.mjs +1 -1
  95. package/esm2022/lib/sections/location-section/location-section.component.mjs +3 -3
  96. package/esm2022/lib/sections/location-section/location-section.modal.mjs +1 -1
  97. package/esm2022/lib/sections/logo-showcase/logo-showcase.component.mjs +3 -3
  98. package/esm2022/lib/sections/logo-showcase/logo-showcase.modal.mjs +1 -1
  99. package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +42 -18
  100. package/esm2022/lib/sections/navbar-section/navbar-section.model.mjs +1 -1
  101. package/esm2022/lib/sections/pricing-section/pricing-section.component.mjs +3 -3
  102. package/esm2022/lib/sections/pricing-section/pricing-section.modal.mjs +1 -1
  103. package/esm2022/lib/sections/process-modern/process-modern.component.mjs +3 -3
  104. package/esm2022/lib/sections/process-modern/process-modern.model.mjs +1 -1
  105. package/esm2022/lib/sections/process-section/process-section.component.mjs +3 -3
  106. package/esm2022/lib/sections/process-section/process-section.modal.mjs +1 -1
  107. package/esm2022/lib/sections/recent-blog-post-section/recent-blog-post-section.component.mjs +3 -3
  108. package/esm2022/lib/sections/recent-blog-post-section/recent-blog-post-section.model.mjs +1 -1
  109. package/esm2022/lib/sections/service-section/service-section.component.mjs +3 -3
  110. package/esm2022/lib/sections/service-section/service-section.model.mjs +1 -1
  111. package/esm2022/lib/sections/skeleton-loader-section/skeleton-loader-section.component.mjs +3 -3
  112. package/esm2022/lib/sections/team-member-section/team-member-section.component.mjs +3 -3
  113. package/esm2022/lib/sections/team-member-section/team-member-section.model.mjs +1 -1
  114. package/esm2022/lib/sections/testimonial-fullwidth/testimonial-fullwidth.component.mjs +3 -3
  115. package/esm2022/lib/sections/testimonial-fullwidth/testimonial-fullwidth.model.mjs +1 -1
  116. package/esm2022/lib/sections/testimonial-section/testimonial-section.component.mjs +3 -3
  117. package/esm2022/lib/sections/testimonial-section/testimonial-section.model.mjs +1 -1
  118. package/esm2022/lib/sections/text-image-section/text-image-section.component.mjs +3 -3
  119. package/esm2022/lib/sections/text-section/text-section.component.mjs +2 -2
  120. package/esm2022/lib/sections/text-section/text-section.model.mjs +1 -1
  121. package/esm2022/lib/sections/video-section/video-section.component.mjs +11 -3
  122. package/esm2022/lib/sections/video-section/video-section.model.mjs +1 -1
  123. package/esm2022/lib/sections/view-blog/view-blog.component.mjs +3 -3
  124. package/esm2022/lib/services/cart.service.mjs +54 -120
  125. package/esm2022/lib/services/endUser.service.mjs +28 -0
  126. package/esm2022/lib/services/events.service.mjs +4 -1
  127. package/esm2022/lib/services/rest.service.mjs +58 -16
  128. package/esm2022/lib/services/storage.service.mjs +103 -35
  129. package/esm2022/lib/styles/index.mjs +8 -1
  130. package/esm2022/lib/styles/style.model.mjs +1 -1
  131. package/esm2022/lib/styles/types.mjs +1 -1
  132. package/esm2022/public-api.mjs +4 -1
  133. package/fesm2022/simpo-component-library.mjs +2535 -729
  134. package/fesm2022/simpo-component-library.mjs.map +1 -1
  135. package/lib/components/hover-elements/hover-elements.component.d.ts +2 -1
  136. package/lib/constants/business.constant.d.ts +11 -0
  137. package/lib/directive/spacing-horizontal.directive.d.ts +18 -0
  138. package/lib/directive/wrap-containers.directive.d.ts +14 -0
  139. package/lib/ecommerce/sections/address/address.component.d.ts +30 -9
  140. package/lib/ecommerce/sections/authenticate-user/authenticate-user.component.d.ts +31 -6
  141. package/lib/ecommerce/sections/cart/cart.component.d.ts +26 -11
  142. package/lib/ecommerce/sections/cart/cart.modal.d.ts +10 -1
  143. package/lib/ecommerce/sections/checkout/checkout.component.d.ts +2 -0
  144. package/lib/ecommerce/sections/featured-category/featured-category.component.d.ts +2 -0
  145. package/lib/ecommerce/sections/featured-products/featured-products.component.d.ts +27 -9
  146. package/lib/ecommerce/sections/featured-products/featured-products.modal.d.ts +5 -1
  147. package/lib/ecommerce/sections/item-varient/item-varient.component.d.ts +5 -0
  148. package/lib/ecommerce/sections/order-details/order-details.component.d.ts +16 -2
  149. package/lib/ecommerce/sections/pagnination/pagnination.component.d.ts +3 -2
  150. package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +33 -4
  151. package/lib/ecommerce/sections/product-desc/product-desc.modal.d.ts +4 -1
  152. package/lib/ecommerce/sections/product-list/product-list.component.d.ts +39 -3
  153. package/lib/ecommerce/sections/product-list/product-list.modal.d.ts +2 -0
  154. package/lib/ecommerce/sections/user-basic-info/user-basic-info.component.d.ts +11 -1
  155. package/lib/ecommerce/sections/user-profile/user-profile.component.d.ts +52 -13
  156. package/lib/ecommerce/sections/user-profile/user-profile.modal.d.ts +6 -8
  157. package/lib/ecommerce/sections/verify-payment/verify-payment.component.d.ts +34 -0
  158. package/lib/ecommerce/sections/verify-payment/verify-payment.model.d.ts +23 -0
  159. package/lib/ecommerce/sections/whislist/whislist.component.d.ts +22 -6
  160. package/lib/ecommerce/styles/OrderedItems.modal.d.ts +6 -2
  161. package/lib/ecommerce/styles/cart.modal.d.ts +1 -0
  162. package/lib/ecommerce/styles/product.modal.d.ts +4 -0
  163. package/lib/ecommerce/styles/user.modal.d.ts +3 -3
  164. package/lib/pipes/amount.pipe.d.ts +7 -0
  165. package/lib/pipes/gender.pipe.d.ts +8 -0
  166. package/lib/sections/banner-grid-section/banner-grid-section.component.d.ts +1 -0
  167. package/lib/sections/banner-grid-section/banner-grid-section.model.d.ts +1 -0
  168. package/lib/sections/carousel-banner/carousel-banner.component.d.ts +7 -5
  169. package/lib/sections/carousel-banner/carousel-banner.model.d.ts +41 -26
  170. package/lib/sections/navbar-section/navbar-section.component.d.ts +6 -1
  171. package/lib/sections/navbar-section/navbar-section.model.d.ts +1 -1
  172. package/lib/sections/video-section/video-section.component.d.ts +4 -2
  173. package/lib/services/cart.service.d.ts +13 -8
  174. package/lib/services/endUser.service.d.ts +13 -0
  175. package/lib/services/events.service.d.ts +5 -2
  176. package/lib/services/rest.service.d.ts +16 -2
  177. package/lib/services/storage.service.d.ts +11 -44
  178. package/lib/styles/index.d.ts +6 -0
  179. package/lib/styles/style.model.d.ts +4 -1
  180. package/lib/styles/types.d.ts +2 -0
  181. package/package.json +1 -1
  182. package/public-api.d.ts +3 -0
  183. package/esm2022/lib/ecommerce/json/user-cart.json +0 -40
  184. package/esm2022/lib/ecommerce/json/user-details.json +0 -15
  185. package/esm2022/lib/ecommerce/json/user-favourite.json +0 -32
  186. package/simpo-component-library-1.5.0.tgz +0 -0
@@ -1,4 +1,5 @@
1
1
  import { Component, Input } from '@angular/core';
2
+ import { ToastModule } from 'primeng/toast';
2
3
  import { FormsModule } from '@angular/forms';
3
4
  import { CommonModule } from '@angular/common';
4
5
  import { ButtonDirectiveDirective } from '../../../directive/button-directive.directive';
@@ -8,11 +9,14 @@ import { HoverDirective } from '../../../directive/hover-element-directive';
8
9
  import { ContentFitDirective } from '../../../directive/content-fit-directive';
9
10
  import { SimpoComponentModule } from '../../../components/index';
10
11
  import BaseSection from '../../../sections/BaseSection';
11
- import UserCart from './../../json/user-cart.json';
12
- import UserInfo from './../../json/user-details.json';
13
12
  import { AddressComponent } from "../address/address.component";
14
13
  import { AuthenticateUserComponent } from '../authenticate-user/authenticate-user.component';
15
14
  import { MatDialogModule } from '@angular/material/dialog';
15
+ import { BUSINESS_CONSTANTS } from '../../../constants/business.constant';
16
+ import { MessageService } from 'primeng/api';
17
+ import Swal from 'sweetalert2';
18
+ import { BackgroundDirective } from '../../../directive/background-directive';
19
+ import { MatBottomSheetModule } from '@angular/material/bottom-sheet';
16
20
  import * as i0 from "@angular/core";
17
21
  import * as i1 from ".././../../services/events.service";
18
22
  import * as i2 from "../../../services/cart.service";
@@ -20,13 +24,15 @@ import * as i3 from "@angular/router";
20
24
  import * as i4 from "../../../services/rest.service";
21
25
  import * as i5 from "@angular/material/dialog";
22
26
  import * as i6 from "../../../services/storage.service";
23
- import * as i7 from "ngx-cookie-service";
24
- import * as i8 from "@angular/common";
25
- import * as i9 from "../../../components/hover-elements/hover-elements.component";
26
- import * as i10 from "../../../components/delete-hover-element/delete-hover-element.component";
27
- import * as i11 from "ngx-skeleton-loader";
27
+ import * as i7 from "primeng/api";
28
+ import * as i8 from "@angular/material/bottom-sheet";
29
+ import * as i9 from "@angular/common";
30
+ import * as i10 from "../../../components/hover-elements/hover-elements.component";
31
+ import * as i11 from "../../../components/delete-hover-element/delete-hover-element.component";
32
+ import * as i12 from "ngx-skeleton-loader";
33
+ import * as i13 from "primeng/toast";
28
34
  export class CartComponent extends BaseSection {
29
- constructor(_eventService, cartService, router, restService, matDialog, storageService, cookieService) {
35
+ constructor(_eventService, cartService, router, restService, matDialog, storageService, messageService, bottomSheet) {
30
36
  super();
31
37
  this._eventService = _eventService;
32
38
  this.cartService = cartService;
@@ -34,74 +40,215 @@ export class CartComponent extends BaseSection {
34
40
  this.restService = restService;
35
41
  this.matDialog = matDialog;
36
42
  this.storageService = storageService;
37
- this.cookieService = cookieService;
43
+ this.messageService = messageService;
44
+ this.bottomSheet = bottomSheet;
45
+ this.edit = false;
38
46
  this.isLoading = false;
39
- this.selectedAddressIdx = -1;
40
47
  this.currentTab = "BAG";
41
- this.loadingItems = [];
48
+ this.userDetails = null;
49
+ this.USER_CART_ITEMS = null;
50
+ this.selectedAddressIdx = 0;
51
+ this.cartInfo = {
52
+ orderedItems: null,
53
+ businessId: localStorage.getItem("bId") ?? localStorage.getItem("businessId"),
54
+ billdetails: {
55
+ "totalNetValue": 0,
56
+ "totalGrossValue": 0,
57
+ "totalTax": 0,
58
+ "totalOfferedValue": 0,
59
+ "deliveryCharges": 0
60
+ },
61
+ platform: "WEB",
62
+ cartType: "CART",
63
+ addressDetails: null,
64
+ userDetails: {
65
+ "userId": "",
66
+ "userName": "",
67
+ "mobile": "",
68
+ "email": ""
69
+ },
70
+ totalAmount: 0
71
+ };
42
72
  }
43
73
  ngOnInit() {
44
74
  this._eventService.showLoadingScreen.subscribe((response) => {
45
75
  this.isLoading = response;
76
+ if (!this.isLoading) {
77
+ this.getIndexDBData();
78
+ }
46
79
  });
47
80
  if (this.storageService.getUser()) {
48
- const userDetails = this.storageService.getUser();
49
- console.log("user deatils", userDetails);
50
- UserInfo.user.addressDetailsList = userDetails.addressDetailsList;
51
- UserCart.userDetails = { ...UserCart.userDetails, ...UserInfo.user.contact, userId: userDetails.userId };
52
- this.cartService.storeDataToServer().subscribe((response) => {
53
- console.log("a: ", UserCart, this.responseData, response);
54
- if (response[0].data) {
55
- UserCart.billdetails = response[0].data.billdetails;
56
- UserCart.cartId = response[0].data.cartId;
57
- UserCart.orderedItems = response[0].data.orderedItems;
81
+ this.userDetails = this.storageService.getUser();
82
+ this.cartInfo.userDetails = {
83
+ "userId": this.userDetails?.userId,
84
+ "userName": this.userDetails?.contact.name,
85
+ "mobile": this.userDetails?.contact.mobile,
86
+ "email": this.userDetails?.contact.email,
87
+ };
88
+ this.restService.getUserItems(this.userDetails.userId, "CART").subscribe((response) => {
89
+ const tempUserCart = response?.data?.[0]?.orderedItems ?? [];
90
+ localStorage.setItem('cartId', response.data?.[0]?.cartId);
91
+ this.cartInfo["cartId"] = response.data?.[0]?.cartId;
92
+ if (response.data?.[0]?.orderedItems?.length > 0) {
93
+ this.storageService.addAllProductsToCart(tempUserCart).oncomplete = () => {
94
+ this.storageService.getUserCart().then((cartResponse) => {
95
+ cartResponse.onsuccess = (cartData) => {
96
+ // this.cartInfo["orderedItems"]?.forEach((item: OrderedItems)=> item.itemVariant = null);
97
+ const restResponse = this.restService.addItemToDB(this.cartInfo).toPromise();
98
+ restResponse.finally(() => {
99
+ this.cartInfo.billdetails.totalGrossValue = 0;
100
+ this.cartInfo.billdetails.totalTax = 0;
101
+ this.cartInfo.billdetails.totalNetValue = 0;
102
+ this.cartInfo.totalAmount = 0;
103
+ this.USER_CART_ITEMS = cartData.target.result;
104
+ this.USER_CART_ITEMS.forEach((item) => {
105
+ this.cartInfo.billdetails.totalGrossValue += (item.discountedPrice * (item.quantity ?? 1));
106
+ this.cartInfo.billdetails.totalTax += (item.quantity * (item.itemTax ?? 0));
107
+ });
108
+ this.cartInfo.billdetails.totalNetValue = this.cartInfo.billdetails.totalGrossValue - this.cartInfo.billdetails.deliveryCharges;
109
+ this.cartInfo.orderedItems = this.USER_CART_ITEMS;
110
+ this.cartInfo.totalAmount = this.cartInfo.billdetails.totalNetValue + this.cartInfo.billdetails.totalTax;
111
+ this.responseData = this.cartInfo;
112
+ console.log(this.responseData);
113
+ });
114
+ };
115
+ cartResponse.onerror = (cartData) => {
116
+ this.messageService.add({ severity: 'error', summary: 'Error', detail: 'Failed to update cart details' });
117
+ };
118
+ });
119
+ };
120
+ }
121
+ else {
122
+ this.storageService.getUserCart().then((cartResponse) => {
123
+ cartResponse.onsuccess = (cartData) => {
124
+ console.log("cart Data", cartData);
125
+ this.USER_CART_ITEMS = cartData.target.result;
126
+ this.cartInfo.billdetails.totalGrossValue = 0;
127
+ this.cartInfo.billdetails.totalTax = 0;
128
+ this.cartInfo.billdetails.totalNetValue = 0;
129
+ this.cartInfo.totalAmount = 0;
130
+ this.USER_CART_ITEMS.forEach((item) => {
131
+ this.cartInfo.billdetails.totalGrossValue += (item.discountedPrice * (item.quantity ?? 1));
132
+ this.cartInfo.billdetails.totalTax += (item.quantity * (item.itemTax ?? 0));
133
+ });
134
+ this.cartInfo.billdetails.totalNetValue = this.cartInfo.billdetails.totalGrossValue - this.cartInfo.billdetails.deliveryCharges;
135
+ this.cartInfo.totalAmount = this.cartInfo.billdetails.totalNetValue + this.cartInfo.billdetails.totalTax;
136
+ this.cartInfo.orderedItems = this.USER_CART_ITEMS;
137
+ console.log(this.responseData);
138
+ // this.cartInfo["orderedItems"]?.forEach((item: OrderedItems)=> item.itemVariant = null);
139
+ this.responseData = this.cartInfo;
140
+ this.restService.addItemToDB(this.responseData).subscribe((response) => {
141
+ localStorage.setItem('cartId', response.data?.cartId);
142
+ this.cartInfo["cartId"] = response.data?.cartId;
143
+ this.responseData["cartId"] = this.cartInfo["cartId"];
144
+ });
145
+ };
146
+ });
58
147
  }
59
- console.log("a: ", UserCart, this.responseData, response);
60
- this.responseData = this.storageService.calculateBillingDetails();
61
148
  });
62
149
  }
63
150
  else {
64
- console.log("B");
65
- this.responseData = this.storageService.calculateBillingDetails();
151
+ this.getIndexDBData();
152
+ // this.responseData = this.storageService.calculateBillingDetails();
66
153
  console.log(this.responseData);
67
154
  }
155
+ console.log(this.responseData);
68
156
  this.styles = this.data?.styles;
69
157
  }
70
- // userDetails: any;
71
- // getUserInfo() {
72
- // const userId = "dc915bd4-fa6f-446e-bce2-440b6804af22";
73
- //
74
- // return this.restService.getUserInfo(userId).subscribe((response: any)=> {
75
- // this.userDetails = response.data;
76
- //
77
- // })
78
- // }
158
+ getIndexDBData() {
159
+ this.storageService.getUserCart().then((cartResponse) => {
160
+ console.log(cartResponse);
161
+ this.cartInfo.billdetails.totalGrossValue = 0;
162
+ this.cartInfo.billdetails.totalTax = 0;
163
+ this.cartInfo.billdetails.totalNetValue = 0;
164
+ this.cartInfo.totalAmount = 0;
165
+ cartResponse.onsuccess = (cartData) => {
166
+ this.USER_CART_ITEMS = cartData.target.result;
167
+ this.USER_CART_ITEMS.forEach((item) => {
168
+ this.cartInfo.billdetails.totalGrossValue += (item.discountedPrice * (item.quantity ?? 1));
169
+ this.cartInfo.billdetails.totalTax += (item.quantity * (item.itemTax ?? 0));
170
+ });
171
+ this.cartInfo.billdetails.totalNetValue = this.cartInfo.billdetails.totalGrossValue - this.cartInfo.billdetails.deliveryCharges;
172
+ this.cartInfo.totalAmount = this.cartInfo.billdetails.totalNetValue + this.cartInfo.billdetails.totalTax;
173
+ this.cartInfo.orderedItems = this.USER_CART_ITEMS;
174
+ this.responseData = this.cartInfo;
175
+ };
176
+ });
177
+ }
79
178
  proceedToCheckout() {
80
179
  if (this.storageService.getUser()) {
81
180
  this.currentTab = "ADDRESS";
181
+ if (this.isMobile) {
182
+ document.body.scrollTop = 0;
183
+ document.documentElement.scrollTop = 0;
184
+ }
82
185
  }
83
186
  else {
187
+ this.messageService.add({ severity: 'info', summary: 'Login', detail: 'Please login with mobile number to order' });
84
188
  if (window.innerWidth <= 475)
85
- this.router.navigate(['/auth']);
189
+ this.bottomSheet.open(AuthenticateUserComponent, { data: this.data });
86
190
  else {
87
191
  this.matDialog.open(AuthenticateUserComponent, {
88
192
  height: '50vh',
89
193
  width: '35vw',
90
194
  data: this.data
195
+ }).afterClosed().subscribe((response) => {
196
+ this.userDetails = this.storageService.getUser();
197
+ this.cartInfo.userDetails = {
198
+ "userId": this.userDetails?.userId,
199
+ "userName": this.userDetails?.contact.name,
200
+ "mobile": this.userDetails?.contact.mobile,
201
+ "email": this.userDetails?.contact.email,
202
+ };
91
203
  });
92
204
  }
93
205
  }
94
206
  }
207
+ goToProductDetails(product) {
208
+ this.router.navigate(['/details'], { queryParams: { id: product.itemId, varientId: product.varientId } });
209
+ }
95
210
  proceedToListPage() {
96
- // this._eventService.redirectToPage.emit({ redirectTo: '/list'});
97
211
  this.router.navigate(['/']);
98
212
  }
99
213
  removeItem(item) {
214
+ Swal.fire({
215
+ icon: "warning",
216
+ html: "<span>You can move </span> <b>" + item.itemName + "</b> <span>to wishlist so you can buy later.</span>",
217
+ showCancelButton: true,
218
+ confirmButtonText: "Move to wishlist",
219
+ cancelButtonText: "Delete item",
220
+ cancelButtonColor: "#928c8c",
221
+ }).then((response) => {
222
+ if (response.isConfirmed) {
223
+ this.removeItemFromCart(item);
224
+ this.moveItemToWishlist(item);
225
+ }
226
+ else if (response.isDismissed) {
227
+ this.removeItemFromCart(item);
228
+ }
229
+ });
230
+ }
231
+ moveItemToWishlist(item) {
232
+ this.cartService.addItemToFavFromCart(item);
233
+ }
234
+ removeItemFromCart(item) {
100
235
  item.quantity = 0;
101
- this.loadingItems.push(item.itemId);
102
- this.cartService.addItemFromCartPage(item).subscribe((response) => {
103
- this.loadingItems = this.loadingItems.filter((idx) => idx != item.itemId);
104
- this.responseData = this.storageService.calculateBillingDetails();
236
+ if (this.USER_CART_ITEMS)
237
+ this.USER_CART_ITEMS = this.USER_CART_ITEMS.filter((product) => product.varientId != item.varientId);
238
+ this.cartInfo.orderedItems = this.USER_CART_ITEMS;
239
+ this.responseData = this.cartInfo;
240
+ this.cartService.addItemFromCartPage(item, this.responseData).subscribe((response) => {
241
+ this.cartInfo.billdetails.totalGrossValue = 0;
242
+ this.cartInfo.billdetails.totalTax = 0;
243
+ this.cartInfo.billdetails.totalNetValue = 0;
244
+ this.cartInfo.totalAmount = 0;
245
+ response?.data?.orderedItems.forEach((item) => {
246
+ this.cartInfo.billdetails.totalGrossValue += (item.discountedPrice * (item.quantity ?? 1));
247
+ this.cartInfo.billdetails.totalTax += (item.quantity * (item.itemTax ?? 0));
248
+ });
249
+ this.cartInfo.billdetails.totalNetValue = this.cartInfo.billdetails.totalGrossValue - this.cartInfo.billdetails.deliveryCharges;
250
+ this.cartInfo.totalAmount = this.cartInfo.billdetails.totalNetValue + this.cartInfo.billdetails.totalTax;
251
+ this.cartInfo.orderedItems = this.USER_CART_ITEMS;
105
252
  });
106
253
  }
107
254
  addToCart(item, type) {
@@ -111,25 +258,52 @@ export class CartComponent extends BaseSection {
111
258
  else {
112
259
  item.quantity -= 1;
113
260
  }
114
- this.loadingItems.push(item.itemId);
115
- this.cartService.addItemFromCartPage(item).subscribe((response) => {
116
- this.loadingItems = this.loadingItems.filter((idx) => idx != item.itemId);
117
- this.responseData = this.storageService.calculateBillingDetails();
118
- });
261
+ if (item.quantity) {
262
+ this.cartService.addItemFromCartPage(item, this.responseData).subscribe((response) => {
263
+ this.cartInfo.billdetails.totalGrossValue = 0;
264
+ this.cartInfo.billdetails.totalTax = 0;
265
+ this.cartInfo.billdetails.totalNetValue = 0;
266
+ this.cartInfo.totalAmount = 0;
267
+ response?.data?.orderedItems.forEach((item) => {
268
+ this.cartInfo.billdetails.totalGrossValue += (item.discountedPrice * (item.quantity ?? 1));
269
+ this.cartInfo.billdetails.totalTax += (item.quantity * (item.itemTax ?? 0));
270
+ });
271
+ this.cartInfo.billdetails.totalNetValue = this.cartInfo.billdetails.totalGrossValue - this.cartInfo.billdetails.deliveryCharges;
272
+ this.cartInfo.totalAmount = this.cartInfo.billdetails.totalNetValue + this.cartInfo.billdetails.totalTax;
273
+ this.cartInfo.orderedItems = this.USER_CART_ITEMS;
274
+ });
275
+ }
276
+ else {
277
+ this.removeItem(item);
278
+ }
119
279
  }
120
- proceedToPayment() {
280
+ async proceedToPayment() {
121
281
  if (!this.storageService.getUser()) {
122
- console.log("User not logged In");
282
+ this.messageService.add({ severity: 'info', summary: 'Login', detail: 'Please login with mobile number to order' });
123
283
  return;
124
284
  }
125
285
  const userDetail = this.storageService.getUser();
126
- console.log("User Details", userDetail);
127
- const address = UserInfo.user.addressDetailsList[0];
128
- console.log("a: ", UserCart, this.responseData);
286
+ const address = userDetail?.addressDetailsList[this.selectedAddressIdx];
287
+ if (address?.receiverName?.length == 0) {
288
+ this.messageService.add({ severity: 'error', summary: 'Payment Failure', detail: 'Please provide address details' });
289
+ return;
290
+ }
291
+ if (localStorage.getItem("cartId"))
292
+ this.cartInfo["cartId"] = localStorage.getItem("cartId");
293
+ else {
294
+ this.messageService.add({ severity: 'info', summary: 'Please wait', detail: 'We are processing your payment', life: 2000 });
295
+ await this.restService.addItemToDB(this.cartInfo).toPromise().then((response) => {
296
+ localStorage.setItem("cartId", response.data?.cartId);
297
+ this.cartInfo["cartId"] = response.data?.cartId;
298
+ });
299
+ }
300
+ this.cartInfo["addressDetails"] = address;
301
+ const updateAddress = await this.restService.addItemToDB(this.cartInfo).toPromise();
129
302
  const payload = {
130
- "userId": userDetail.userId ?? UserInfo.user.userId,
131
- "cartId": UserCart.cartId,
132
- "orderAmount": this.responseData.billdetails.totalNetValue,
303
+ "userId": userDetail.userId,
304
+ "cartId": localStorage.getItem('cartId'),
305
+ "orderAmount": Number(Number(this.responseData.totalAmount).toFixed(2)),
306
+ "isPaymentGatewayEnabled": true,
133
307
  "contactDetails": {
134
308
  "name": address.receiverName,
135
309
  "mobile": address.receiverPhone,
@@ -139,16 +313,74 @@ export class CartComponent extends BaseSection {
139
313
  };
140
314
  this.restService.createPaymentToken(payload).subscribe((paymentDetails) => {
141
315
  this._eventService.cashFreeEvent.emit(paymentDetails);
316
+ }, (error) => {
317
+ if (error.errorCode == 1001 || error.errorCode == 1002) {
318
+ Swal.fire({
319
+ icon: "info",
320
+ html: "<p>" + error.message.replace(/ *\([^)]*\) */g, "") + "</p>",
321
+ showCancelButton: error.errorCode == 1002,
322
+ confirmButtonText: "Remove item & Place Order",
323
+ cancelButtonText: "Reduce quantity",
324
+ cancelButtonColor: "#928c8c",
325
+ }).then(async (response) => {
326
+ this.messageService.add({ severity: 'info', summary: 'Processing', detail: 'Please wait, updaing your cart', life: 2000 });
327
+ const regExp = /{([^}]+)}/g;
328
+ const id = regExp.exec(error.message)?.[1];
329
+ let itemDetail = null;
330
+ const productDetailsAsync = await this.restService.getProductDetails(id).toPromise().then((response) => {
331
+ itemDetail = response[0];
332
+ });
333
+ if (response.isDismissed) {
334
+ this.cartInfo.orderedItems.forEach((item) => {
335
+ if (item.itemId == itemDetail?.itemId)
336
+ item.quantity = itemDetail?.itemInventory.openingStock;
337
+ });
338
+ const addItemDBAsync = await this.restService.addItemToDB(this.cartInfo).toPromise();
339
+ const addItemIndexDBAsync = await this.storageService.addAllProductsToCart(this.cartInfo.orderedItems);
340
+ }
341
+ else if (response.isConfirmed) {
342
+ this.cartInfo.orderedItems = this.cartInfo.orderedItems.filter((item) => item.itemId != itemDetail?.itemId);
343
+ const addItemDBAsync = await this.restService.addItemToDB(this.cartInfo).toPromise();
344
+ const addItemIndexDBAsync = await this.storageService.addAllProductsToCart(this.cartInfo.orderedItems);
345
+ this.proceedToPayment();
346
+ }
347
+ });
348
+ }
349
+ else {
350
+ this.messageService.add({ severity: 'error', summary: 'Payment Failure', detail: 'Please try again' });
351
+ }
142
352
  });
143
353
  }
144
- isItemLoading(itemId) {
145
- return this.loadingItems.includes(itemId);
354
+ addressSelected(index) {
355
+ this.selectedAddressIdx = index;
356
+ }
357
+ isItemOutOfStock(product) {
358
+ return false; // need condition
359
+ }
360
+ getKeys(object) {
361
+ if (object)
362
+ return Object.keys(object);
363
+ return [];
364
+ }
365
+ editSection() {
366
+ this._eventService.toggleEditorEvent.emit(false);
367
+ setTimeout(() => {
368
+ this._eventService.editSection.emit({ data: this.data });
369
+ }, 100);
146
370
  }
147
371
  get getAddressList() {
148
- return UserInfo.user ? [...UserInfo.user?.addressDetailsList] : [];
372
+ return this.userDetails ? [...this.userDetails?.addressDetailsList] : [];
373
+ }
374
+ get isMobile() {
375
+ return window.innerWidth <= 475;
376
+ }
377
+ get currency() {
378
+ return BUSINESS_CONSTANTS.CURRENCY;
149
379
  }
150
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: CartComponent, deps: [{ token: i1.EventsService }, { token: i2.CartService }, { token: i3.Router }, { token: i4.RestService }, { token: i5.MatDialog }, { token: i6.StorageServiceService }, { token: i7.CookieService }], target: i0.ɵɵFactoryTarget.Component }); }
151
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.4", type: CartComponent, isStandalone: true, selector: "simpo-cart", inputs: { data: "data", responseData: "responseData", index: "index", edit: "edit", delete: "delete" }, usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"!isLoading\">\r\n <section class=\"total-container\" [id]=\"data?.id\" [simpoLayout]=\"styles?.layout\" >\r\n <div class=\"d-flex align-items-center justify-content-center mb-4\" style=\"margin-top: 50px;\" *ngIf=\"responseData?.orderedItems?.length\">\r\n <span class=\"timeline\" [ngClass]=\"{'isActive': currentTab == 'BAG'}\" (click)=\"currentTab = 'BAG'\">Bag</span>\r\n <div class=\"bar\"></div>\r\n <span class=\"timeline\" [ngClass]=\"{'isActive': currentTab == 'ADDRESS'}\" (click)=\"currentTab = 'ADDRESS'\">Address</span>\r\n <div class=\"bar\"></div>\r\n <span class=\"timeline\" [ngClass]=\"{'isActive': currentTab == 'PAYMENT'}\" (click)=\"currentTab = 'PAYMENT'\">Payment</span>\r\n </div>\r\n <div class=\"cart-parent container\" *ngIf=\"(responseData?.orderedItems?.length || 0) > 0\" [id]=\"data?.id\" [simpoAnimation]=\"styles?.animation\">\r\n <ng-container [ngSwitch]=\"currentTab\">\r\n <div class=\"left-panel\" *ngSwitchCase=\"'BAG'\">\r\n <div class=\"my-bag\">\r\n My Bag&nbsp; <span>({{responseData?.orderedItems?.length}} Items)</span>\r\n </div>\r\n <div class=\"cart-items\">\r\n <ng-container *ngFor=\"let item of responseData?.orderedItems; let idx = index\">\r\n <div class=\"row item-parent\">\r\n <div class=\"h-100\" style=\"padding: 0px; width: fit-content;\">\r\n <img class=\"product-img\" [src]=\"item.imgUrl\" alt=\"\">\r\n </div>\r\n <div class=\"col-md-6 h-100\">\r\n <div class=\"lh-23\">\r\n <div class=\"item-name heading-large\">{{item.itemName}}</div>\r\n <div class=\"price-with-tax\">\r\n &#8377; {{item.price + (item.itemTax ?? 0)}}\r\n </div>\r\n <div class=\"item-quantity\">\r\n <ng-container *ngIf=\"!isItemLoading(item.itemId)\">\r\n <span class=\"cursor\" (click)=\"addToCart(item, 'SUBSTRACT')\">-</span>\r\n <span>{{item.quantity}}</span>\r\n <span class=\"cursor\" (click)=\"addToCart(item, 'ADD')\">+</span>\r\n </ng-container>\r\n <ng-container *ngIf=\"isItemLoading(item.itemId)\">\r\n <div class=\"d-flex\"> <i class=\"fa fa-spinner fa-spin\" style=\"font-size:24px; margin-right: 10px;\"></i> <span>Loading...</span></div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col-md-4 position-relative\" style=\"margin-left: auto;\">\r\n <div class=\"item-price\">&#8377; {{(item.price + (item.itemTax ?? 0)) * item.quantity}}</div>\r\n <div>\r\n <mat-icon class=\"delete-item\" (click)=\"removeItem(item)\">delete</mat-icon>\r\n </div>\r\n </div>\r\n </div>\r\n <hr *ngIf=\"responseData?.orderedItems?.length != (idx +1)\">\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div class=\"left-panel\" *ngSwitchCase=\"'ADDRESS'\">\r\n <simpo-address [isCart]=\"true\" [responseData]=\"getAddressList\" [selectedAddressIdx]=\"selectedAddressIdx\"></simpo-address>\r\n </div>\r\n <div class=\"left-panel\" *ngSwitchCase=\"'PAYMENT'\"></div>\r\n </ng-container>\r\n <div class=\"right-panel\">\r\n <div class=\"my-bag\">\r\n Price Details\r\n </div>\r\n <div class=\"price-details\">\r\n <div class=\"price-parent-block\" *ngIf=\"responseData?.billdetails?.totalNetValue\">\r\n <div class=\"price-type\">Total Price</div>\r\n <div class=\"price-value\">&#8377; {{responseData.billdetails.totalNetValue}}</div>\r\n </div>\r\n <div class=\"price-parent-block\" *ngIf=\"responseData?.billdetails?.totalTax\">\r\n <div class=\"price-type\">Total Tax</div>\r\n <div class=\"price-value\">&#8377; {{responseData?.billdetails?.totalTax}}</div>\r\n </div>\r\n <div class=\"price-parent-block\"\r\n *ngIf=\"responseData?.billdetails?.deliveryCharges && responseData.billdetails.deliveryCharges > 0\">\r\n <div class=\"price-type\">Delivery Charge</div>\r\n <div class=\"price-value\">&#8377; {{responseData.billdetails.deliveryCharges}}</div>\r\n </div>\r\n <hr>\r\n <div class=\"price-parent-block\" *ngIf=\"responseData?.totalAmount\">\r\n <div class=\"price-type\" style=\"color: black;font-weight: 600;\">Total Amount</div>\r\n <div class=\"price-value\" style=\"font-weight: 600;\">&#8377; {{responseData.totalAmount}}</div>\r\n </div>\r\n\r\n <div class=\"button-parent\">\r\n <ng-container *ngIf=\"currentTab == 'BAG'\">\r\n <div class=\"btn\" (click)=\"proceedToCheckout()\">Checkout Cart</div>\r\n <div class=\"btn\" (click)=\"proceedToListPage()\">Continue Shopping</div>\r\n </ng-container>\r\n \r\n <ng-container *ngIf=\"currentTab == 'ADDRESS'\">\r\n <div class=\"btn\" (click)=\"proceedToPayment()\">Place Order</div>\r\n </ng-container>\r\n <!-- <div *ngFor=\"let button of data?.action?.buttons;let i = index\">\r\n <button class=\"btn\" (click)=\"i == 0 ? proceedToCheckout() : proceedToListPage()\" simpoButtonDirective [id]=\"data?.id+button.id\" [buttonStyle]=\"button?.styles\"\r\n [color]=\"styles?.background?.accentColor\">{{button?.content?.label}}</button>\r\n </div> -->\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <section class=\"empty-cart\" *ngIf=\"(responseData?.orderedItems?.length || 0) == 0\">\r\n <div>\r\n <div class=\"cart-image\">\r\n <img src=\"https://prod-simpo.s3.ap-south-1.amazonaws.com/prod-images/107213c1716543334040empty-cart.png\" alt=\"\">\r\n </div>\r\n <div class=\"cart-text\">\r\n <div class=\"heading-medium d-flex justify-content-center\">\r\n Your cart is empty\r\n </div>\r\n <div class=\"description d-flex mt-4\">\r\n Looks like you have not added anything to your cart. Go ahead & explore top categories.\r\n </div>\r\n </div>\r\n </div>\r\n </section>\r\n <div [ngClass]=\"{'hover_effect': edit}\" *ngIf=\"showEditors\">\r\n <simpo-hover-elements [data]=\"data\" [index]=\"index\" [editOptions]=\"edit\"></simpo-hover-elements>\r\n </div>\r\n <div *ngIf=\"showDelete\" [ngClass]=\"{'hover_effect': delete}\">\r\n <simpo-delete-hover-element [data]=\"data\" [index]=\"index\"></simpo-delete-hover-element>\r\n </div>\r\n\r\n </section>\r\n</ng-container>\r\n\r\n<ngx-skeleton-loader *ngIf=\"isLoading\" count=\"1\" appearance=\"circle\" [theme]=\"{\r\n width: '100%',\r\n height: '40vh',\r\n 'border-radius': '10px',\r\n 'position': 'relative',\r\n 'right': '5px'\r\n}\">\r\n</ngx-skeleton-loader>\r\n", styles: [".cart-parent{display:flex;margin-top:15px;gap:20px}.left-panel{width:65%}.timeline{cursor:pointer}.cart-items{padding:10px;margin-top:10px;margin-bottom:15px;border-radius:5px;box-shadow:0 0 1px #28293d14,0 0 2px #60617029}.isActive{color:#0267c1;font-weight:600}.bar{width:150px;border-top:2px solid lightgray;margin:0 5px}.right-panel{width:35%}.my-bag{font-size:16px;font-weight:600;color:#000}.my-bag span{color:#939393}.item-parent{margin:10px 0}.lh-23{line-height:23px}.item-name{color:#141514;font-size:16px;line-height:30px;font-weight:600}.price-with-tax{font-weight:400;font-size:16px;color:#626262}.item-sku{font-weight:400;font-size:14px;color:#626262}.item-price{display:flex;justify-content:flex-end;font-weight:600;font-size:16px;color:#141514}.product-img{border-radius:5px;height:95px;width:100px;padding:0}.quantity-box{display:flex;gap:5px;align-items:center;border:1px solid #E8E8E8;width:45px;height:22px}.quantity-box input{outline:none;text-align:center;border:none;width:30px;height:100%}.quantity-box .plus{font-size:20px;position:relative;top:-3px;font-weight:500}.quantity-box .minus{font-size:30px;position:relative;top:-3px;font-weight:500}.delete-item{color:#626262;cursor:pointer}.item-quantity{margin-top:5px;display:flex;min-width:90px;max-width:fit-content;border:1px solid lightgray;justify-content:space-between;align-items:center;padding:5px 10px;border-radius:3px}.coupon{display:flex;justify-content:space-between;border:1px solid #E8E8E8;border-radius:5px;padding:10px;margin-top:10px}.apply-coupon{font-weight:500;color:#626262;font-size:15px}.coupon-desc{color:#939393;font-size:12px;font-weight:500}.apply-coupon-btn{color:#0267c1;font-size:16px;font-weight:600}.price-details{padding:10px;margin-top:10px;border-radius:5px;box-shadow:0 0 1px #28293d14,0 0 2px #60617029;margin-bottom:15px}.price-parent-block{display:flex;justify-content:space-between;margin-top:5px}.price-type{font-weight:400;font-size:16px;color:#434443}.price-value{font-weight:500;font-size:18px;color:#141514}.button-parent{margin-top:20px;display:flex;flex-direction:column;gap:10px}hr{border:1px solid #E8E8E8}.btn{height:40px;font-size:16px!important;border:1px solid lightgray}.cursor{cursor:pointer}.delete-item{text-align:right;position:absolute;right:16px;bottom:10px}.quantity{display:flex;border:2px solid #E6E6E6;align-items:center;gap:15px;height:47px;margin-top:1rem;border-radius:5px}.quantity .plus{position:relative;left:10px;font-size:18px;font-weight:600;cursor:pointer;color:#848484}.quantity .minus{position:relative;right:15px;font-size:18px;font-weight:600;color:#848484;cursor:pointer}.quantity input{width:60px;border:none;outline:none;text-align:center}.label{color:#000}.total-container{min-height:80vh;position:relative;display:block!important}.hover_effect{position:absolute;width:100%;top:0;left:0;height:100%}.cart-image{width:13%;display:flex;margin-right:auto;margin-left:auto}.cart-image img{width:100%}.heading-medium{font-weight:600;color:#000}.description{font-size:18px;color:#7f7676;margin-left:auto;margin-right:auto;width:30%;text-align:center}@media screen and (max-width: 475px){.cart-parent{flex-direction:column}.left-panel,.right-panel{width:100%}.cart-image{width:42%}.description{width:84%}.heading-medium{font-size:28px}}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i8.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i8.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i8.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i8.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "ngmodule", type: SimpoComponentModule }, { kind: "component", type: i9.HoverElementsComponent, selector: "simpo-hover-elements", inputs: ["data", "index", "editOptions", "isMerged"], outputs: ["edit"] }, { kind: "component", type: i10.DeleteHoverElementComponent, selector: "simpo-delete-hover-element", inputs: ["index", "data"], outputs: ["edit"] }, { kind: "component", type: i11.NgxSkeletonLoaderComponent, selector: "ngx-skeleton-loader", inputs: ["count", "loadingText", "appearance", "animation", "ariaLabel", "theme"] }, { kind: "directive", type: AnimationDirective, selector: "[simpoAnimation]", inputs: ["simpoAnimation"] }, { kind: "directive", type: ContentFitDirective, selector: "[simpoLayout]", inputs: ["simpoLayout"] }, { kind: "component", type: AddressComponent, selector: "simpo-address", inputs: ["responseData", "data", "isCart", "selectedAddressIdx"] }] }); }
380
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: CartComponent, deps: [{ token: i1.EventsService }, { token: i2.CartService }, { token: i3.Router }, { token: i4.RestService }, { token: i5.MatDialog }, { token: i6.StorageServiceService }, { token: i7.MessageService }, { token: i8.MatBottomSheet }], target: i0.ɵɵFactoryTarget.Component }); }
381
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.4", type: CartComponent, isStandalone: true, selector: "simpo-cart", inputs: { data: "data", responseData: "responseData", index: "index", edit: "edit", delete: "delete" }, providers: [MessageService], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"!isLoading\">\n <p-toast position=\"bottom-right\" [baseZIndex]=\"10000000000\" [autoZIndex]=\"true\"></p-toast>\n\n <section class=\"total-container\" [id]=\"data?.id\" [simpoLayout]=\"styles?.layout\" [id]=\"data?.id\" [simpoBackground]=\"styles?.background\" [attr.class]=\"isMobile ? 'py-5' : ''\" simpoHover (hovering)=\"showEditTabs($event)\" (click)=\"editSection()\" >\n <div class=\"d-flex align-items-center justify-content-center m-auto mb-4\" [style.marginTop.px]=\"isMobile ? '': '50'\" [style.width.%]=\"isMobile ? '90' : ''\" *ngIf=\"responseData?.orderedItems?.length\">\n <span class=\"timeline\" [ngClass]=\"{'isActive': currentTab == 'BAG'}\" (click)=\"currentTab = 'BAG'\">Bag</span>\n <div class=\"bar\"></div>\n <span class=\"timeline\" [ngClass]=\"{'isActive': currentTab == 'ADDRESS'}\" (click)=\"currentTab = 'ADDRESS'\">Address</span>\n <div class=\"bar\"></div>\n <span class=\"timeline\" [ngClass]=\"{'isActive': currentTab == 'PAYMENT'}\" style=\"cursor: auto;\">Payment</span>\n </div>\n <div class=\"cart-parent container\" *ngIf=\"(responseData?.orderedItems?.length || 0) > 0\" [id]=\"data?.id\" [simpoAnimation]=\"styles?.animation\">\n <ng-container [ngSwitch]=\"currentTab\">\n <div class=\"left-panel\" *ngSwitchCase=\"'BAG'\">\n <div class=\"my-bag\">\n My Bag&nbsp; <span>({{responseData?.orderedItems?.length}} Items)</span>\n </div>\n <div class=\"cart-items\">\n <ng-container *ngFor=\"let item of responseData?.orderedItems; let idx = index\">\n <div class=\"item-parent d-flex\">\n <div class=\"h-100\" style=\"padding: 0px; width: fit-content;\">\n <img loading=\"lazy\" onerror=\"this.src='https://i.postimg.cc/hPS2JpV0/no-image-available.jpg'\" class=\"product-img\" [src]=\"item.imgUrl ?? 'https://i.postimg.cc/hPS2JpV0/no-image-available.jpg'\" alt=\"\" (click)=\"goToProductDetails(item)\">\n </div>\n <div class=\"col-md-6 h-100\" [style.width.px]=\"isMobile ? '200' : ''\" style=\"margin-left: px;\">\n <div class=\"lh-23\">\n <div class=\"item-name trim-text heading-large\">{{item.itemName}}</div>\n <div class=\"price-with-tax\">\n <span [innerHTML]='currency'></span> {{(item.discountedPrice) | number: '1.0-2'}}\n </div>\n <ng-container *ngIf=\"item.itemVariant\"> \n <div class=\"d-flex align-items-center\" *ngFor=\"let varient of getKeys(item.itemVariant.properties)\">\n <div class=\"fw-bold\">{{ varient }} : </div>\n <!-- <div class=\"fw-normal\" style=\"margin-left: 5px; height: 13px; width: 13px; border-radius: 50%;\" *ngIf=\"varient.toLowerCase() == 'color'\" [style.backgroundColor]=\"item.itemVariant.properties[varient]\"></div> -->\n <div class=\"fw-normal\" style=\"margin-left: 5px;\"> {{ item.itemVariant.properties[varient] | uppercase }}</div>\n </div>\n </ng-container>\n <div class=\"item-quantity\">\n <span class=\"cursor\" (click)=\"addToCart(item, 'SUBSTRACT')\">-</span>\n <span>{{item.quantity}}</span>\n <span class=\"cursor\" (click)=\"addToCart(item, 'ADD')\">+</span>\n </div>\n </div>\n </div>\n <div class=\"col-md-4 position-relative\" style=\"margin-left: auto;\">\n <div class=\"item-price\"><span [innerHTML]='currency'></span> {{((item.discountedPrice) * item.quantity) | number: '1.0-2'}}</div>\n <div>\n <mat-icon class=\"delete-item\" (click)=\"removeItem(item)\" [style.right.px]=\"isMobile ? '5' : '0'\">delete</mat-icon>\n </div>\n </div>\n </div>\n <hr *ngIf=\"responseData?.orderedItems?.length != (idx +1)\">\n </ng-container>\n </div>\n </div>\n <div class=\"left-panel\" *ngSwitchCase=\"'ADDRESS'\">\n <simpo-address [isCart]=\"true\" [responseData]=\"getAddressList\" [data]=\"data\" (selectedAddress)=\"addressSelected($event)\"></simpo-address>\n </div>\n <div class=\"left-panel\" *ngSwitchCase=\"'PAYMENT'\"></div>\n </ng-container>\n <div class=\"right-panel\">\n <div class=\"my-bag\">\n Price Details\n </div>\n <div class=\"price-details\">\n <div class=\"price-parent-block\">\n <div class=\"price-type\">Total Price</div>\n <div class=\"price-value\"><span [innerHTML]='currency'></span> {{(responseData?.billdetails?.totalNetValue ?? 0) | number: '1.0-2'}}</div>\n </div>\n <div class=\"price-parent-block\">\n <div class=\"price-type\">Total Tax</div>\n <div class=\"price-value\"><span [innerHTML]='currency'></span> {{(responseData?.billdetails?.totalTax ?? 0) | number: '1.0-2'}}</div>\n </div>\n <div class=\"price-parent-block\"\n *ngIf=\"responseData?.billdetails?.deliveryCharges && responseData.billdetails.deliveryCharges > 0\">\n <div class=\"price-type\">Delivery Charge</div>\n <div class=\"price-value\"><span [innerHtml]='currency'></span> {{responseData.billdetails.deliveryCharges | number: '1.0-2'}}</div>\n </div>\n <hr>\n <div class=\"price-parent-block\">\n <div class=\"price-type\" style=\"color: black;font-weight: 600;\">Total Amount</div>\n <div class=\"price-value\" style=\"font-weight: 600;\"><span [innerHtml]='currency'></span> {{(responseData?.totalAmount ?? 0) | number: '1.0-2'}}</div>\n </div>\n\n <div class=\"button-parent\">\n <ng-container *ngIf=\"currentTab == 'BAG'\">\n <div class=\"btn mobile-fixed\" (click)=\"proceedToCheckout()\" [style.backgroundColor]=\"data?.styles?.background?.accentColor\" [style.color]=\"data?.styles?.background?.color\">{{data?.action?.buttons?.[0]?.content?.label ?? 'Checkout Cart'}}</div>\n <div class=\"btn\" (click)=\"proceedToListPage()\" simpoButtonDirective [buttonStyle]=\"data?.action?.buttons?.[1]?.styles\" [color]=\"data?.styles?.background?.accentColor\">{{data?.action?.buttons?.[1]?.content?.label ?? 'Continue Shopping'}}</div>\n </ng-container>\n \n <ng-container *ngIf=\"currentTab == 'ADDRESS'\">\n <div class=\"btn mobile-fixed\" (click)=\"proceedToPayment()\" [style.backgroundColor]=\"data?.styles?.background?.accentColor\" [style.color]=\"data?.styles?.background?.color\">{{data?.action?.buttons?.[2]?.content?.label ?? 'Place Order'}}</div>\n </ng-container>\n <!-- <div *ngFor=\"let button of data?.action?.buttons;let i = index\">\n <button class=\"btn\" (click)=\"i == 0 ? proceedToCheckout() : proceedToListPage()\" simpoButtonDirective [id]=\"data?.id+button.id\" [buttonStyle]=\"button?.styles\"\n [color]=\"styles?.background?.accentColor\">{{button?.content?.label}}</button>\n </div> -->\n </div>\n </div>\n </div>\n </div>\n\n <section class=\"empty-cart\" *ngIf=\"(responseData?.orderedItems?.length || 0) == 0\">\n <div>\n <div class=\"cart-image\">\n <img loading=\"lazy\" onerror=\"this.src='https://i.postimg.cc/hPS2JpV0/no-image-available.jpg'\" [src]=\"data?.content?.image?.url\" [alt]=\"data?.content?.image?.altText\">\n </div>\n <div class=\"cart-text\">\n <ng-container *ngFor=\"let text of data?.content?.inputText\">\n <div class=\"d-flex justify-content-center\" [ngClass]=\"{'heading-medium': text.label == 'Heading', 'description': text.label == 'Text'}\">{{text.value}}</div>\n </ng-container>\n <!-- <div class=\"description d-flex mt-4\">\n Looks like you have not added anything to your cart. Go ahead & explore top categories.\n </div> -->\n </div>\n </div>\n </section>\n <div [ngClass]=\"{'hover_effect': edit}\" *ngIf=\"showEditors\">\n <simpo-hover-elements [data]=\"data\" [index]=\"index\" [editOptions]=\"edit\" [isEcommerce]=\"true\"></simpo-hover-elements>\n </div>\n <div *ngIf=\"showDelete\" [ngClass]=\"{'hover_effect': delete}\">\n <simpo-delete-hover-element [data]=\"data\" [index]=\"index\"></simpo-delete-hover-element>\n </div>\n\n </section>\n</ng-container>\n\n<ngx-skeleton-loader *ngIf=\"isLoading\" count=\"1\" appearance=\"circle\" [theme]=\"{\n width: '100%',\n height: '40vh',\n 'border-radius': '10px',\n 'position': 'relative',\n 'right': '5px'\n}\">\n</ngx-skeleton-loader>\n", styles: [".cart-parent{display:flex;margin-top:15px;gap:20px}.left-panel{width:65%}.timeline{cursor:pointer}.cart-items{padding:10px;margin-top:10px;margin-bottom:15px;border-radius:5px;box-shadow:0 0 1px #28293d14,0 0 2px #60617029}.isActive{color:#0267c1;font-weight:600}.bar{width:150px;border-top:2px solid lightgray;margin:0 5px}.right-panel{width:35%}.my-bag{font-size:16px;font-weight:600;color:#000;margin-left:8px}.my-bag span{color:#939393}.item-parent{margin:10px 0}.lh-23{line-height:23px}.item-name{color:#141514;font-size:16px;line-height:30px;font-weight:600}.price-with-tax{font-weight:400;font-size:16px;color:#626262}.item-sku{font-weight:400;font-size:14px;color:#626262}.item-price{display:flex;justify-content:flex-end;font-weight:600;font-size:16px;color:#141514}.product-img{border-radius:5px;height:100%;width:110px;padding:0;cursor:pointer}.quantity-box{display:flex;gap:5px;align-items:center;border:1px solid #E8E8E8;width:45px;height:22px}.quantity-box input{outline:none;text-align:center;border:none;width:30px;height:100%}.quantity-box .plus{font-size:20px;position:relative;top:-3px;font-weight:500}.quantity-box .minus{font-size:30px;position:relative;top:-3px;font-weight:500}.delete-item{color:#df2e2e;cursor:pointer}.item-quantity{margin-top:5px;display:flex;min-width:90px;max-width:fit-content;border:1px solid lightgray;justify-content:space-between;align-items:center;padding:5px 10px;border-radius:3px}.coupon{display:flex;justify-content:space-between;border:1px solid #E8E8E8;border-radius:5px;padding:10px;margin-top:10px}.apply-coupon{font-weight:500;color:#626262;font-size:15px}.coupon-desc{color:#939393;font-size:12px;font-weight:500}.apply-coupon-btn{color:#0267c1;font-size:16px;font-weight:600}.price-details{padding:10px;margin-top:10px;border-radius:5px;box-shadow:0 0 1px #28293d14,0 0 2px #60617029;margin-bottom:15px}.price-parent-block{display:flex;justify-content:space-between;margin-top:5px}.price-type{font-weight:400;font-size:16px;color:#434443}.price-value{font-weight:500;font-size:18px;color:#141514}.button-parent{margin-top:20px;display:flex;flex-direction:column;gap:10px}hr{border:1px solid #E8E8E8}.btn{height:40px;font-size:16px!important;border:1px solid lightgray}.cursor{cursor:pointer}.delete-item{text-align:right;position:absolute;right:16px;bottom:10px}.quantity{display:flex;border:2px solid #E6E6E6;align-items:center;gap:15px;height:47px;margin-top:1rem;border-radius:5px}.quantity .plus{position:relative;left:10px;font-size:18px;font-weight:600;cursor:pointer;color:#848484}.quantity .minus{position:relative;right:15px;font-size:18px;font-weight:600;color:#848484;cursor:pointer}.quantity input{width:60px;border:none;outline:none;text-align:center}.label{color:#000}.total-container{min-height:80vh;position:relative;display:block!important}.hover_effect{position:absolute;width:100%;top:0;left:0;height:100%}.cart-image{width:13%;display:flex;margin-right:auto;margin-left:auto}.cart-image img{width:100%}.heading-medium{font-weight:600;color:#000}.description{font-size:18px;color:#7f7676;margin-left:auto;margin-right:auto;width:30%;text-align:center}@media screen and (max-width: 475px){.cart-parent{flex-direction:column}.left-panel{width:100%}.right-panel{width:100%;background:#fff;z-index:1000}.cart-image{width:42%}.description{width:84%}.heading-medium{font-size:28px}.item-price{white-space:nowrap;display:unset}.product-img{width:82px}[class*=col-md]{padding-left:5px!important;padding-right:5px!important}.mobile-fixed{height:40px;font-size:16px!important;border:1px solid lightgray;width:100%;position:relative;bottom:10px}}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i9.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i9.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i9.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i9.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "pipe", type: i9.UpperCasePipe, name: "uppercase" }, { kind: "pipe", type: i9.DecimalPipe, name: "number" }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "ngmodule", type: SimpoComponentModule }, { kind: "component", type: i10.HoverElementsComponent, selector: "simpo-hover-elements", inputs: ["data", "index", "editOptions", "isMerged", "isEcommerce"], outputs: ["edit"] }, { kind: "component", type: i11.DeleteHoverElementComponent, selector: "simpo-delete-hover-element", inputs: ["index", "data"], outputs: ["edit"] }, { kind: "component", type: i12.NgxSkeletonLoaderComponent, selector: "ngx-skeleton-loader", inputs: ["count", "loadingText", "appearance", "animation", "ariaLabel", "theme"] }, { kind: "directive", type: BackgroundDirective, selector: "[simpoBackground]", inputs: ["simpoBackground", "scrollValue"] }, { kind: "ngmodule", type: MatBottomSheetModule }, { kind: "directive", type:
382
+ //DIRECTIVE
383
+ ButtonDirectiveDirective, selector: "[simpoButtonDirective]", inputs: ["buttonStyle", "color", "scrollValue"] }, { kind: "directive", type: AnimationDirective, selector: "[simpoAnimation]", inputs: ["simpoAnimation"] }, { kind: "directive", type: ContentFitDirective, selector: "[simpoLayout]", inputs: ["simpoLayout"] }, { kind: "directive", type: HoverDirective, selector: "[simpoHover]", outputs: ["hovering"] }, { kind: "component", type: AddressComponent, selector: "simpo-address", inputs: ["responseData", "data", "index", "edit", "delete", "isCart"], outputs: ["selectedAddress"] }, { kind: "ngmodule", type: ToastModule }, { kind: "component", type: i13.Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "life", "style", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "breakpoints"], outputs: ["onClose"] }] }); }
152
384
  }
153
385
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: CartComponent, decorators: [{
154
386
  type: Component,
@@ -158,14 +390,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImpor
158
390
  MatIcon,
159
391
  MatDialogModule,
160
392
  SimpoComponentModule,
393
+ BackgroundDirective,
394
+ MatBottomSheetModule,
161
395
  //DIRECTIVE
162
396
  ButtonDirectiveDirective,
163
397
  AnimationDirective,
164
398
  ContentFitDirective,
165
399
  HoverDirective,
166
400
  AddressComponent,
167
- ], template: "<ng-container *ngIf=\"!isLoading\">\r\n <section class=\"total-container\" [id]=\"data?.id\" [simpoLayout]=\"styles?.layout\" >\r\n <div class=\"d-flex align-items-center justify-content-center mb-4\" style=\"margin-top: 50px;\" *ngIf=\"responseData?.orderedItems?.length\">\r\n <span class=\"timeline\" [ngClass]=\"{'isActive': currentTab == 'BAG'}\" (click)=\"currentTab = 'BAG'\">Bag</span>\r\n <div class=\"bar\"></div>\r\n <span class=\"timeline\" [ngClass]=\"{'isActive': currentTab == 'ADDRESS'}\" (click)=\"currentTab = 'ADDRESS'\">Address</span>\r\n <div class=\"bar\"></div>\r\n <span class=\"timeline\" [ngClass]=\"{'isActive': currentTab == 'PAYMENT'}\" (click)=\"currentTab = 'PAYMENT'\">Payment</span>\r\n </div>\r\n <div class=\"cart-parent container\" *ngIf=\"(responseData?.orderedItems?.length || 0) > 0\" [id]=\"data?.id\" [simpoAnimation]=\"styles?.animation\">\r\n <ng-container [ngSwitch]=\"currentTab\">\r\n <div class=\"left-panel\" *ngSwitchCase=\"'BAG'\">\r\n <div class=\"my-bag\">\r\n My Bag&nbsp; <span>({{responseData?.orderedItems?.length}} Items)</span>\r\n </div>\r\n <div class=\"cart-items\">\r\n <ng-container *ngFor=\"let item of responseData?.orderedItems; let idx = index\">\r\n <div class=\"row item-parent\">\r\n <div class=\"h-100\" style=\"padding: 0px; width: fit-content;\">\r\n <img class=\"product-img\" [src]=\"item.imgUrl\" alt=\"\">\r\n </div>\r\n <div class=\"col-md-6 h-100\">\r\n <div class=\"lh-23\">\r\n <div class=\"item-name heading-large\">{{item.itemName}}</div>\r\n <div class=\"price-with-tax\">\r\n &#8377; {{item.price + (item.itemTax ?? 0)}}\r\n </div>\r\n <div class=\"item-quantity\">\r\n <ng-container *ngIf=\"!isItemLoading(item.itemId)\">\r\n <span class=\"cursor\" (click)=\"addToCart(item, 'SUBSTRACT')\">-</span>\r\n <span>{{item.quantity}}</span>\r\n <span class=\"cursor\" (click)=\"addToCart(item, 'ADD')\">+</span>\r\n </ng-container>\r\n <ng-container *ngIf=\"isItemLoading(item.itemId)\">\r\n <div class=\"d-flex\"> <i class=\"fa fa-spinner fa-spin\" style=\"font-size:24px; margin-right: 10px;\"></i> <span>Loading...</span></div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col-md-4 position-relative\" style=\"margin-left: auto;\">\r\n <div class=\"item-price\">&#8377; {{(item.price + (item.itemTax ?? 0)) * item.quantity}}</div>\r\n <div>\r\n <mat-icon class=\"delete-item\" (click)=\"removeItem(item)\">delete</mat-icon>\r\n </div>\r\n </div>\r\n </div>\r\n <hr *ngIf=\"responseData?.orderedItems?.length != (idx +1)\">\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div class=\"left-panel\" *ngSwitchCase=\"'ADDRESS'\">\r\n <simpo-address [isCart]=\"true\" [responseData]=\"getAddressList\" [selectedAddressIdx]=\"selectedAddressIdx\"></simpo-address>\r\n </div>\r\n <div class=\"left-panel\" *ngSwitchCase=\"'PAYMENT'\"></div>\r\n </ng-container>\r\n <div class=\"right-panel\">\r\n <div class=\"my-bag\">\r\n Price Details\r\n </div>\r\n <div class=\"price-details\">\r\n <div class=\"price-parent-block\" *ngIf=\"responseData?.billdetails?.totalNetValue\">\r\n <div class=\"price-type\">Total Price</div>\r\n <div class=\"price-value\">&#8377; {{responseData.billdetails.totalNetValue}}</div>\r\n </div>\r\n <div class=\"price-parent-block\" *ngIf=\"responseData?.billdetails?.totalTax\">\r\n <div class=\"price-type\">Total Tax</div>\r\n <div class=\"price-value\">&#8377; {{responseData?.billdetails?.totalTax}}</div>\r\n </div>\r\n <div class=\"price-parent-block\"\r\n *ngIf=\"responseData?.billdetails?.deliveryCharges && responseData.billdetails.deliveryCharges > 0\">\r\n <div class=\"price-type\">Delivery Charge</div>\r\n <div class=\"price-value\">&#8377; {{responseData.billdetails.deliveryCharges}}</div>\r\n </div>\r\n <hr>\r\n <div class=\"price-parent-block\" *ngIf=\"responseData?.totalAmount\">\r\n <div class=\"price-type\" style=\"color: black;font-weight: 600;\">Total Amount</div>\r\n <div class=\"price-value\" style=\"font-weight: 600;\">&#8377; {{responseData.totalAmount}}</div>\r\n </div>\r\n\r\n <div class=\"button-parent\">\r\n <ng-container *ngIf=\"currentTab == 'BAG'\">\r\n <div class=\"btn\" (click)=\"proceedToCheckout()\">Checkout Cart</div>\r\n <div class=\"btn\" (click)=\"proceedToListPage()\">Continue Shopping</div>\r\n </ng-container>\r\n \r\n <ng-container *ngIf=\"currentTab == 'ADDRESS'\">\r\n <div class=\"btn\" (click)=\"proceedToPayment()\">Place Order</div>\r\n </ng-container>\r\n <!-- <div *ngFor=\"let button of data?.action?.buttons;let i = index\">\r\n <button class=\"btn\" (click)=\"i == 0 ? proceedToCheckout() : proceedToListPage()\" simpoButtonDirective [id]=\"data?.id+button.id\" [buttonStyle]=\"button?.styles\"\r\n [color]=\"styles?.background?.accentColor\">{{button?.content?.label}}</button>\r\n </div> -->\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <section class=\"empty-cart\" *ngIf=\"(responseData?.orderedItems?.length || 0) == 0\">\r\n <div>\r\n <div class=\"cart-image\">\r\n <img src=\"https://prod-simpo.s3.ap-south-1.amazonaws.com/prod-images/107213c1716543334040empty-cart.png\" alt=\"\">\r\n </div>\r\n <div class=\"cart-text\">\r\n <div class=\"heading-medium d-flex justify-content-center\">\r\n Your cart is empty\r\n </div>\r\n <div class=\"description d-flex mt-4\">\r\n Looks like you have not added anything to your cart. Go ahead & explore top categories.\r\n </div>\r\n </div>\r\n </div>\r\n </section>\r\n <div [ngClass]=\"{'hover_effect': edit}\" *ngIf=\"showEditors\">\r\n <simpo-hover-elements [data]=\"data\" [index]=\"index\" [editOptions]=\"edit\"></simpo-hover-elements>\r\n </div>\r\n <div *ngIf=\"showDelete\" [ngClass]=\"{'hover_effect': delete}\">\r\n <simpo-delete-hover-element [data]=\"data\" [index]=\"index\"></simpo-delete-hover-element>\r\n </div>\r\n\r\n </section>\r\n</ng-container>\r\n\r\n<ngx-skeleton-loader *ngIf=\"isLoading\" count=\"1\" appearance=\"circle\" [theme]=\"{\r\n width: '100%',\r\n height: '40vh',\r\n 'border-radius': '10px',\r\n 'position': 'relative',\r\n 'right': '5px'\r\n}\">\r\n</ngx-skeleton-loader>\r\n", styles: [".cart-parent{display:flex;margin-top:15px;gap:20px}.left-panel{width:65%}.timeline{cursor:pointer}.cart-items{padding:10px;margin-top:10px;margin-bottom:15px;border-radius:5px;box-shadow:0 0 1px #28293d14,0 0 2px #60617029}.isActive{color:#0267c1;font-weight:600}.bar{width:150px;border-top:2px solid lightgray;margin:0 5px}.right-panel{width:35%}.my-bag{font-size:16px;font-weight:600;color:#000}.my-bag span{color:#939393}.item-parent{margin:10px 0}.lh-23{line-height:23px}.item-name{color:#141514;font-size:16px;line-height:30px;font-weight:600}.price-with-tax{font-weight:400;font-size:16px;color:#626262}.item-sku{font-weight:400;font-size:14px;color:#626262}.item-price{display:flex;justify-content:flex-end;font-weight:600;font-size:16px;color:#141514}.product-img{border-radius:5px;height:95px;width:100px;padding:0}.quantity-box{display:flex;gap:5px;align-items:center;border:1px solid #E8E8E8;width:45px;height:22px}.quantity-box input{outline:none;text-align:center;border:none;width:30px;height:100%}.quantity-box .plus{font-size:20px;position:relative;top:-3px;font-weight:500}.quantity-box .minus{font-size:30px;position:relative;top:-3px;font-weight:500}.delete-item{color:#626262;cursor:pointer}.item-quantity{margin-top:5px;display:flex;min-width:90px;max-width:fit-content;border:1px solid lightgray;justify-content:space-between;align-items:center;padding:5px 10px;border-radius:3px}.coupon{display:flex;justify-content:space-between;border:1px solid #E8E8E8;border-radius:5px;padding:10px;margin-top:10px}.apply-coupon{font-weight:500;color:#626262;font-size:15px}.coupon-desc{color:#939393;font-size:12px;font-weight:500}.apply-coupon-btn{color:#0267c1;font-size:16px;font-weight:600}.price-details{padding:10px;margin-top:10px;border-radius:5px;box-shadow:0 0 1px #28293d14,0 0 2px #60617029;margin-bottom:15px}.price-parent-block{display:flex;justify-content:space-between;margin-top:5px}.price-type{font-weight:400;font-size:16px;color:#434443}.price-value{font-weight:500;font-size:18px;color:#141514}.button-parent{margin-top:20px;display:flex;flex-direction:column;gap:10px}hr{border:1px solid #E8E8E8}.btn{height:40px;font-size:16px!important;border:1px solid lightgray}.cursor{cursor:pointer}.delete-item{text-align:right;position:absolute;right:16px;bottom:10px}.quantity{display:flex;border:2px solid #E6E6E6;align-items:center;gap:15px;height:47px;margin-top:1rem;border-radius:5px}.quantity .plus{position:relative;left:10px;font-size:18px;font-weight:600;cursor:pointer;color:#848484}.quantity .minus{position:relative;right:15px;font-size:18px;font-weight:600;color:#848484;cursor:pointer}.quantity input{width:60px;border:none;outline:none;text-align:center}.label{color:#000}.total-container{min-height:80vh;position:relative;display:block!important}.hover_effect{position:absolute;width:100%;top:0;left:0;height:100%}.cart-image{width:13%;display:flex;margin-right:auto;margin-left:auto}.cart-image img{width:100%}.heading-medium{font-weight:600;color:#000}.description{font-size:18px;color:#7f7676;margin-left:auto;margin-right:auto;width:30%;text-align:center}@media screen and (max-width: 475px){.cart-parent{flex-direction:column}.left-panel,.right-panel{width:100%}.cart-image{width:42%}.description{width:84%}.heading-medium{font-size:28px}}\n"] }]
168
- }], ctorParameters: () => [{ type: i1.EventsService }, { type: i2.CartService }, { type: i3.Router }, { type: i4.RestService }, { type: i5.MatDialog }, { type: i6.StorageServiceService }, { type: i7.CookieService }], propDecorators: { data: [{
401
+ ToastModule
402
+ ], providers: [MessageService], template: "<ng-container *ngIf=\"!isLoading\">\n <p-toast position=\"bottom-right\" [baseZIndex]=\"10000000000\" [autoZIndex]=\"true\"></p-toast>\n\n <section class=\"total-container\" [id]=\"data?.id\" [simpoLayout]=\"styles?.layout\" [id]=\"data?.id\" [simpoBackground]=\"styles?.background\" [attr.class]=\"isMobile ? 'py-5' : ''\" simpoHover (hovering)=\"showEditTabs($event)\" (click)=\"editSection()\" >\n <div class=\"d-flex align-items-center justify-content-center m-auto mb-4\" [style.marginTop.px]=\"isMobile ? '': '50'\" [style.width.%]=\"isMobile ? '90' : ''\" *ngIf=\"responseData?.orderedItems?.length\">\n <span class=\"timeline\" [ngClass]=\"{'isActive': currentTab == 'BAG'}\" (click)=\"currentTab = 'BAG'\">Bag</span>\n <div class=\"bar\"></div>\n <span class=\"timeline\" [ngClass]=\"{'isActive': currentTab == 'ADDRESS'}\" (click)=\"currentTab = 'ADDRESS'\">Address</span>\n <div class=\"bar\"></div>\n <span class=\"timeline\" [ngClass]=\"{'isActive': currentTab == 'PAYMENT'}\" style=\"cursor: auto;\">Payment</span>\n </div>\n <div class=\"cart-parent container\" *ngIf=\"(responseData?.orderedItems?.length || 0) > 0\" [id]=\"data?.id\" [simpoAnimation]=\"styles?.animation\">\n <ng-container [ngSwitch]=\"currentTab\">\n <div class=\"left-panel\" *ngSwitchCase=\"'BAG'\">\n <div class=\"my-bag\">\n My Bag&nbsp; <span>({{responseData?.orderedItems?.length}} Items)</span>\n </div>\n <div class=\"cart-items\">\n <ng-container *ngFor=\"let item of responseData?.orderedItems; let idx = index\">\n <div class=\"item-parent d-flex\">\n <div class=\"h-100\" style=\"padding: 0px; width: fit-content;\">\n <img loading=\"lazy\" onerror=\"this.src='https://i.postimg.cc/hPS2JpV0/no-image-available.jpg'\" class=\"product-img\" [src]=\"item.imgUrl ?? 'https://i.postimg.cc/hPS2JpV0/no-image-available.jpg'\" alt=\"\" (click)=\"goToProductDetails(item)\">\n </div>\n <div class=\"col-md-6 h-100\" [style.width.px]=\"isMobile ? '200' : ''\" style=\"margin-left: px;\">\n <div class=\"lh-23\">\n <div class=\"item-name trim-text heading-large\">{{item.itemName}}</div>\n <div class=\"price-with-tax\">\n <span [innerHTML]='currency'></span> {{(item.discountedPrice) | number: '1.0-2'}}\n </div>\n <ng-container *ngIf=\"item.itemVariant\"> \n <div class=\"d-flex align-items-center\" *ngFor=\"let varient of getKeys(item.itemVariant.properties)\">\n <div class=\"fw-bold\">{{ varient }} : </div>\n <!-- <div class=\"fw-normal\" style=\"margin-left: 5px; height: 13px; width: 13px; border-radius: 50%;\" *ngIf=\"varient.toLowerCase() == 'color'\" [style.backgroundColor]=\"item.itemVariant.properties[varient]\"></div> -->\n <div class=\"fw-normal\" style=\"margin-left: 5px;\"> {{ item.itemVariant.properties[varient] | uppercase }}</div>\n </div>\n </ng-container>\n <div class=\"item-quantity\">\n <span class=\"cursor\" (click)=\"addToCart(item, 'SUBSTRACT')\">-</span>\n <span>{{item.quantity}}</span>\n <span class=\"cursor\" (click)=\"addToCart(item, 'ADD')\">+</span>\n </div>\n </div>\n </div>\n <div class=\"col-md-4 position-relative\" style=\"margin-left: auto;\">\n <div class=\"item-price\"><span [innerHTML]='currency'></span> {{((item.discountedPrice) * item.quantity) | number: '1.0-2'}}</div>\n <div>\n <mat-icon class=\"delete-item\" (click)=\"removeItem(item)\" [style.right.px]=\"isMobile ? '5' : '0'\">delete</mat-icon>\n </div>\n </div>\n </div>\n <hr *ngIf=\"responseData?.orderedItems?.length != (idx +1)\">\n </ng-container>\n </div>\n </div>\n <div class=\"left-panel\" *ngSwitchCase=\"'ADDRESS'\">\n <simpo-address [isCart]=\"true\" [responseData]=\"getAddressList\" [data]=\"data\" (selectedAddress)=\"addressSelected($event)\"></simpo-address>\n </div>\n <div class=\"left-panel\" *ngSwitchCase=\"'PAYMENT'\"></div>\n </ng-container>\n <div class=\"right-panel\">\n <div class=\"my-bag\">\n Price Details\n </div>\n <div class=\"price-details\">\n <div class=\"price-parent-block\">\n <div class=\"price-type\">Total Price</div>\n <div class=\"price-value\"><span [innerHTML]='currency'></span> {{(responseData?.billdetails?.totalNetValue ?? 0) | number: '1.0-2'}}</div>\n </div>\n <div class=\"price-parent-block\">\n <div class=\"price-type\">Total Tax</div>\n <div class=\"price-value\"><span [innerHTML]='currency'></span> {{(responseData?.billdetails?.totalTax ?? 0) | number: '1.0-2'}}</div>\n </div>\n <div class=\"price-parent-block\"\n *ngIf=\"responseData?.billdetails?.deliveryCharges && responseData.billdetails.deliveryCharges > 0\">\n <div class=\"price-type\">Delivery Charge</div>\n <div class=\"price-value\"><span [innerHtml]='currency'></span> {{responseData.billdetails.deliveryCharges | number: '1.0-2'}}</div>\n </div>\n <hr>\n <div class=\"price-parent-block\">\n <div class=\"price-type\" style=\"color: black;font-weight: 600;\">Total Amount</div>\n <div class=\"price-value\" style=\"font-weight: 600;\"><span [innerHtml]='currency'></span> {{(responseData?.totalAmount ?? 0) | number: '1.0-2'}}</div>\n </div>\n\n <div class=\"button-parent\">\n <ng-container *ngIf=\"currentTab == 'BAG'\">\n <div class=\"btn mobile-fixed\" (click)=\"proceedToCheckout()\" [style.backgroundColor]=\"data?.styles?.background?.accentColor\" [style.color]=\"data?.styles?.background?.color\">{{data?.action?.buttons?.[0]?.content?.label ?? 'Checkout Cart'}}</div>\n <div class=\"btn\" (click)=\"proceedToListPage()\" simpoButtonDirective [buttonStyle]=\"data?.action?.buttons?.[1]?.styles\" [color]=\"data?.styles?.background?.accentColor\">{{data?.action?.buttons?.[1]?.content?.label ?? 'Continue Shopping'}}</div>\n </ng-container>\n \n <ng-container *ngIf=\"currentTab == 'ADDRESS'\">\n <div class=\"btn mobile-fixed\" (click)=\"proceedToPayment()\" [style.backgroundColor]=\"data?.styles?.background?.accentColor\" [style.color]=\"data?.styles?.background?.color\">{{data?.action?.buttons?.[2]?.content?.label ?? 'Place Order'}}</div>\n </ng-container>\n <!-- <div *ngFor=\"let button of data?.action?.buttons;let i = index\">\n <button class=\"btn\" (click)=\"i == 0 ? proceedToCheckout() : proceedToListPage()\" simpoButtonDirective [id]=\"data?.id+button.id\" [buttonStyle]=\"button?.styles\"\n [color]=\"styles?.background?.accentColor\">{{button?.content?.label}}</button>\n </div> -->\n </div>\n </div>\n </div>\n </div>\n\n <section class=\"empty-cart\" *ngIf=\"(responseData?.orderedItems?.length || 0) == 0\">\n <div>\n <div class=\"cart-image\">\n <img loading=\"lazy\" onerror=\"this.src='https://i.postimg.cc/hPS2JpV0/no-image-available.jpg'\" [src]=\"data?.content?.image?.url\" [alt]=\"data?.content?.image?.altText\">\n </div>\n <div class=\"cart-text\">\n <ng-container *ngFor=\"let text of data?.content?.inputText\">\n <div class=\"d-flex justify-content-center\" [ngClass]=\"{'heading-medium': text.label == 'Heading', 'description': text.label == 'Text'}\">{{text.value}}</div>\n </ng-container>\n <!-- <div class=\"description d-flex mt-4\">\n Looks like you have not added anything to your cart. Go ahead & explore top categories.\n </div> -->\n </div>\n </div>\n </section>\n <div [ngClass]=\"{'hover_effect': edit}\" *ngIf=\"showEditors\">\n <simpo-hover-elements [data]=\"data\" [index]=\"index\" [editOptions]=\"edit\" [isEcommerce]=\"true\"></simpo-hover-elements>\n </div>\n <div *ngIf=\"showDelete\" [ngClass]=\"{'hover_effect': delete}\">\n <simpo-delete-hover-element [data]=\"data\" [index]=\"index\"></simpo-delete-hover-element>\n </div>\n\n </section>\n</ng-container>\n\n<ngx-skeleton-loader *ngIf=\"isLoading\" count=\"1\" appearance=\"circle\" [theme]=\"{\n width: '100%',\n height: '40vh',\n 'border-radius': '10px',\n 'position': 'relative',\n 'right': '5px'\n}\">\n</ngx-skeleton-loader>\n", styles: [".cart-parent{display:flex;margin-top:15px;gap:20px}.left-panel{width:65%}.timeline{cursor:pointer}.cart-items{padding:10px;margin-top:10px;margin-bottom:15px;border-radius:5px;box-shadow:0 0 1px #28293d14,0 0 2px #60617029}.isActive{color:#0267c1;font-weight:600}.bar{width:150px;border-top:2px solid lightgray;margin:0 5px}.right-panel{width:35%}.my-bag{font-size:16px;font-weight:600;color:#000;margin-left:8px}.my-bag span{color:#939393}.item-parent{margin:10px 0}.lh-23{line-height:23px}.item-name{color:#141514;font-size:16px;line-height:30px;font-weight:600}.price-with-tax{font-weight:400;font-size:16px;color:#626262}.item-sku{font-weight:400;font-size:14px;color:#626262}.item-price{display:flex;justify-content:flex-end;font-weight:600;font-size:16px;color:#141514}.product-img{border-radius:5px;height:100%;width:110px;padding:0;cursor:pointer}.quantity-box{display:flex;gap:5px;align-items:center;border:1px solid #E8E8E8;width:45px;height:22px}.quantity-box input{outline:none;text-align:center;border:none;width:30px;height:100%}.quantity-box .plus{font-size:20px;position:relative;top:-3px;font-weight:500}.quantity-box .minus{font-size:30px;position:relative;top:-3px;font-weight:500}.delete-item{color:#df2e2e;cursor:pointer}.item-quantity{margin-top:5px;display:flex;min-width:90px;max-width:fit-content;border:1px solid lightgray;justify-content:space-between;align-items:center;padding:5px 10px;border-radius:3px}.coupon{display:flex;justify-content:space-between;border:1px solid #E8E8E8;border-radius:5px;padding:10px;margin-top:10px}.apply-coupon{font-weight:500;color:#626262;font-size:15px}.coupon-desc{color:#939393;font-size:12px;font-weight:500}.apply-coupon-btn{color:#0267c1;font-size:16px;font-weight:600}.price-details{padding:10px;margin-top:10px;border-radius:5px;box-shadow:0 0 1px #28293d14,0 0 2px #60617029;margin-bottom:15px}.price-parent-block{display:flex;justify-content:space-between;margin-top:5px}.price-type{font-weight:400;font-size:16px;color:#434443}.price-value{font-weight:500;font-size:18px;color:#141514}.button-parent{margin-top:20px;display:flex;flex-direction:column;gap:10px}hr{border:1px solid #E8E8E8}.btn{height:40px;font-size:16px!important;border:1px solid lightgray}.cursor{cursor:pointer}.delete-item{text-align:right;position:absolute;right:16px;bottom:10px}.quantity{display:flex;border:2px solid #E6E6E6;align-items:center;gap:15px;height:47px;margin-top:1rem;border-radius:5px}.quantity .plus{position:relative;left:10px;font-size:18px;font-weight:600;cursor:pointer;color:#848484}.quantity .minus{position:relative;right:15px;font-size:18px;font-weight:600;color:#848484;cursor:pointer}.quantity input{width:60px;border:none;outline:none;text-align:center}.label{color:#000}.total-container{min-height:80vh;position:relative;display:block!important}.hover_effect{position:absolute;width:100%;top:0;left:0;height:100%}.cart-image{width:13%;display:flex;margin-right:auto;margin-left:auto}.cart-image img{width:100%}.heading-medium{font-weight:600;color:#000}.description{font-size:18px;color:#7f7676;margin-left:auto;margin-right:auto;width:30%;text-align:center}@media screen and (max-width: 475px){.cart-parent{flex-direction:column}.left-panel{width:100%}.right-panel{width:100%;background:#fff;z-index:1000}.cart-image{width:42%}.description{width:84%}.heading-medium{font-size:28px}.item-price{white-space:nowrap;display:unset}.product-img{width:82px}[class*=col-md]{padding-left:5px!important;padding-right:5px!important}.mobile-fixed{height:40px;font-size:16px!important;border:1px solid lightgray;width:100%;position:relative;bottom:10px}}\n"] }]
403
+ }], ctorParameters: () => [{ type: i1.EventsService }, { type: i2.CartService }, { type: i3.Router }, { type: i4.RestService }, { type: i5.MatDialog }, { type: i6.StorageServiceService }, { type: i7.MessageService }, { type: i8.MatBottomSheet }], propDecorators: { data: [{
169
404
  type: Input
170
405
  }], responseData: [{
171
406
  type: Input
@@ -176,4 +411,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImpor
176
411
  }], delete: [{
177
412
  type: Input
178
413
  }] } });
179
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FydC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9zaW1wby11aS9zcmMvbGliL2Vjb21tZXJjZS9zZWN0aW9ucy9jYXJ0L2NhcnQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2ltcG8tdWkvc3JjL2xpYi9lY29tbWVyY2Uvc2VjdGlvbnMvY2FydC9jYXJ0LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBR2pELE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUM3QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sK0NBQStDLENBQUM7QUFDekYsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ2pELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLHdDQUF3QyxDQUFDO0FBQzVFLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSw0Q0FBNEMsQ0FBQztBQUM1RSxPQUFPLEVBQUUsbUJBQW1C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VyZWRJdGVtczsgbGV0IGlkeCA9IGluZGV4XCI+XHJcbiAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cInJvdyBpdGVtLXBhcmVudFwiPlxyXG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImgtMTAwXCIgc3R5bGU9XCJwYWRkaW5nOiAwcHg7IHdpZHRoOiBmaXQtY29udGVudDtcIj5cclxuICAgICAgICAgICAgICAgICAgPGltZyBjbGFzcz1cInByb2R1Y3QtaW1nXCIgW3NyY109XCJpdGVtLmltZ1VybFwiIGFsdD1cIlwiPlxyXG4gICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiY29sLW1kLTYgaC0xMDBcIj5cclxuICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImxoLTIzXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cIml0ZW0tbmFtZSBoZWFkaW5nLWxhcmdlXCI+e3tpdGVtLml0ZW1OYW1lfX08L2Rpdj5cclxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwicHJpY2Utd2l0aC10YXhcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICYjODM3Nzsge3tpdGVtLnByaWNlICsgKGl0ZW0uaXRlbVRheCA/PyAwKX19XHJcbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cIml0ZW0tcXVhbnRpdHlcIj5cclxuICAgICAgICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCIhaXNJdGVtTG9hZGluZyhpdGVtLml0ZW1JZClcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9XCJjdXJzb3JcIiAoY2xpY2spPVwiYWRkVG9DYXJ0KGl0ZW0sICdTVUJTVFJBQ1QnKVwiPi08L3NwYW4+XHJcbiAgICAgICAgICAgICAgICAg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ICAgdGhpcy5jYXJ0SW5mby50b3RhbEFtb3VudCA9IDA7XG4gICAgICAgICAgICAgICAgICBcbiAgICAgICAgICAgICAgICAgIHRoaXMuVVNFUl9DQVJUX0lURU1TID0gY2FydERhdGEudGFyZ2V0LnJlc3VsdCBhcyB1bmtub3duIGFzIE9yZGVyZWRJdGVtc1tdO1xuICAgICAgICAgICAgICAgICAgdGhpcy5VU0VSX0NBUlRfSVRFTVMuZm9yRWFjaCgoaXRlbSk9PiB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuY2FydEluZm8uYmlsbGRldGFpbHMudG90YWxHcm9zc1ZhbHVlICs9IChpdGVtLmRpc2NvdW50ZWRQcmljZSAqIChpdGVtLnF1YW50aXR5ID8/IDEpKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5jYXJ0SW5mby5iaWxsZGV0YWlscy50b3RhbFRheCArPSAoaXRlbS5xdWFudGl0eSAqIChpdGVtLml0ZW1UYXggPz8gMCkpO1xuICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgIHRoaXMuY2FydEluZm8uYmlsbGRldGFpbHMudG90YWxOZXRWYWx1ZSA9IHRoaXMuY2FydEluZm8uYmlsbGRldGFpbHMudG90YWxHcm9zc1ZhbHVlIC0gdGhpcy5jYXJ0SW5mby5iaWxsZGV0YWlscy5kZWxpdmVyeUNoYXJnZXM7XG4gICAgICAgICAgICAgICAgICB0aGlzLmNhcnRJbmZvLm9yZGVyZWRJdGVtcyA9IHRoaXMuVVNFUl9DQVJUX0lURU1TO1xuICAgICAgICAgICAgICAgICAgdGhpcy5jYXJ0SW5mby50b3RhbEFtb3VudCA9IHRoaXMuY2FydEluZm8uYmlsbGRldGFpbHMudG90YWxOZXRWYWx1ZSArIHRoaXMuY2FydEluZm8uYmlsbGRldGFpbHMudG90YWxUYXg7XG4gICAgICAgICAgICAgICAgICB0aGlzLnJlc3BvbnNlRGF0YSA9IHRoaXMuY2FydEluZm87XG4gICAgICAgICAgICAg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c2VySWQsXG4gICAgICBcImNhcnRJZFwiOiBsb2NhbFN0b3JhZ2UuZ2V0SXRlbSgnY2FydElkJyksXG4gICAgICBcIm9yZGVyQW1vdW50XCI6IE51bWJlcihOdW1iZXIodGhpcy5yZXNwb25zZURhdGEudG90YWxBbW91bnQpLnRvRml4ZWQoMikpLFxuICAgICAgXCJpc1BheW1lbnRHYXRld2F5RW5hYmxlZFwiOiB0cnVlLFxuICAgICAgXCJjb250YWN0RGV0YWlsc1wiOiB7XG4gICAgICAgIFwibmFtZVwiOiBhZGRyZXNzLnJlY2VpdmVyTmFtZSxcbiAgICAgICAgXCJtb2JpbGVcIjogYWRkcmVzcy5yZWNlaXZlclBob25lLFxuICAgICAgICBcImNvdW50cnlDb2RlXCI6IFwiOTFcIixcbiAgICAgICAgXCJlbWFpbFwiOiBhZGRyZXNzLnJlY2VpdmVyRW1haWxcbiAgICAgIH1cbiAgICB9XG4gICAgdGhpcy5yZXN0U2VydmljZS5jcmVhdGVQYXltZW50VG9rZW4ocGF5bG9hZCkuc3Vic2NyaWJlKChwYXltZW50RGV0YWlsczogYW55KT0+IHtcbiAgICAgIHRoaXMuX2V2ZW50U2VydmljZS5jYXNoRnJlZUV2ZW50LmVtaXQocGF5bWVudERldGFpbHMpO1xuICAgIH0sIChlcnJvcik9PiB7XG4gICAgICBpZiAoZXJyb3IuZXJyb3JDb2RlID09IDEwMDEgfHwgZXJyb3IuZXJyb3JDb2RlID09IDEwMDIpIHtcbiAgICAgICAgU3dhbC5maXJlKHtcbiAgICAgICAgICBpY29uOiBcImluZm9cIixcbiAgICAgICAgICBodG1sOiBcIjxwPlwiICsgZXJyb3IubWVzc2FnZS5yZXBsYWNlKC8gKlxcKFteKV0qXFwpICovZywgXCJcIikgKyBcIjwvcD5cIixcbiAgICAgICAgICBzaG93Q2FuY2VsQnV0dG9uOiBlcnJvci5lcnJvckNvZGUgPT0gMTAwMixcbiAgICAgICAgICBjb25maXJtQnV0dG9uVGV4dDogXCJSZW1vdm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