@annalib/anna-feature-spots-approval 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +63 -0
- package/anna-feature-shared-lib/index.d.ts +5 -0
- package/anna-feature-shared-lib/public-api.d.ts +16 -0
- package/anna-feature-shared-lib/src/biz-rules/constants/generic-business-rule-page.constants.d.ts +5 -0
- package/anna-feature-shared-lib/src/biz-rules/models/generic-business-rule-history-popup.model.d.ts +10 -0
- package/anna-feature-shared-lib/src/biz-rules/services/generic-business-rule-common-SI-BI-logic.service.d.ts +20 -0
- package/anna-feature-shared-lib/src/constants/generic-feature-related-constants.d.ts +3 -0
- package/anna-feature-shared-lib/src/daily-revision-listing/components/action-comments-popup/action-comments-popup.component.d.ts +35 -0
- package/anna-feature-shared-lib/src/daily-revision-listing/components/offer-rejection-popup/offer-rejection-popup.component.d.ts +44 -0
- package/anna-feature-shared-lib/src/daily-revision-listing/models/generic-daily-revision-listing.model.d.ts +64 -0
- package/anna-feature-shared-lib/src/daily-revision-listing/models/generic-offers-awaiting-approval.model.d.ts +36 -0
- package/anna-feature-shared-lib/src/daily-revision-listing/models/generic-todays-anna-offers-listing.model.d.ts +34 -0
- package/anna-feature-shared-lib/src/daily-revision-listing/models/generic-todays-user-offers-listing.model.d.ts +39 -0
- package/anna-feature-shared-lib/src/daily-revision-listing/models/spot-approval-generic.model.d.ts +12 -0
- package/anna-feature-shared-lib/src/daily-revision-listing/services/generic-daily-revision-listing.service.d.ts +12 -0
- package/anna-feature-shared-lib/src/generic-primary-order-panel/models/generic-primary-order-panel.model.d.ts +5 -0
- package/anna-feature-shared-lib/src/generic-primary-order-panel/services/generic-primary-order-panel.service.d.ts +13 -0
- package/anna-feature-shared-lib/src/order-listing/constants/generic-order-listing.constant.d.ts +18 -0
- package/anna-feature-shared-lib/src/spot-approval/models/spot-approval-generic-in-feature-shared-lib.model.d.ts +7 -0
- package/anna-feature-shared-lib/src/spot-approval/services/spot-approval-generic-in-feature-shared-lib.service.d.ts +14 -0
- package/drr-listing/index.d.ts +5 -0
- package/drr-listing/public-api.d.ts +8 -0
- package/drr-listing/src/daily-revision-filter-modal/config/daily-revision-listing-backend-service.token.d.ts +10 -0
- package/drr-listing/src/daily-revision-filter-modal/daily-revision-filter-modal.component.d.ts +89 -0
- package/drr-listing/src/daily-revision-filter-modal/models/daily-revision-filter-modal.model.d.ts +41 -0
- package/drr-listing/src/daily-revision-listing/config/daily-revision-listing-backend-service.token.d.ts +18 -0
- package/drr-listing/src/daily-revision-listing/constants/daily-revision-listing.constant.d.ts +80 -0
- package/drr-listing/src/daily-revision-listing/constants/orders.constant.d.ts +69 -0
- package/drr-listing/src/daily-revision-listing/daily-revision-listing.component.d.ts +154 -0
- package/drr-listing/src/daily-revision-listing/models/daily-revision-listing.model.d.ts +33 -0
- package/drr-listing/src/daily-revision-listing/services/daily-revision-listing.service.d.ts +25 -0
- package/fesm2022/annalib-anna-feature-spots-approval-anna-feature-shared-lib.mjs +670 -0
- package/fesm2022/annalib-anna-feature-spots-approval-anna-feature-shared-lib.mjs.map +1 -0
- package/fesm2022/annalib-anna-feature-spots-approval-drr-listing.mjs +2844 -0
- package/fesm2022/annalib-anna-feature-spots-approval-drr-listing.mjs.map +1 -0
- package/fesm2022/annalib-anna-feature-spots-approval-spot-approval-shared-lib.mjs +112 -0
- package/fesm2022/annalib-anna-feature-spots-approval-spot-approval-shared-lib.mjs.map +1 -0
- package/fesm2022/annalib-anna-feature-spots-approval-spots-approval.mjs +12115 -0
- package/fesm2022/annalib-anna-feature-spots-approval-spots-approval.mjs.map +1 -0
- package/fesm2022/annalib-anna-feature-spots-approval-src-lib-all-offers-listing.mjs +1369 -0
- package/fesm2022/annalib-anna-feature-spots-approval-src-lib-all-offers-listing.mjs.map +1 -0
- package/fesm2022/annalib-anna-feature-spots-approval-src-lib-spot-approval-seller-or-buyer-revision.mjs +1223 -0
- package/fesm2022/annalib-anna-feature-spots-approval-src-lib-spot-approval-seller-or-buyer-revision.mjs.map +1 -0
- package/fesm2022/annalib-anna-feature-spots-approval.mjs +88 -0
- package/fesm2022/annalib-anna-feature-spots-approval.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/anna-feature-spots-approval.module.d.ts +20 -0
- package/package.json +57 -0
- package/public-api.d.ts +1 -0
- package/spot-approval-shared-lib/index.d.ts +5 -0
- package/spot-approval-shared-lib/public-api.d.ts +2 -0
- package/spot-approval-shared-lib/src/revision-offer-status-progress-view/revision-offer-status-progress-view.component.d.ts +19 -0
- package/spot-approval-shared-lib/src/revision-summary-panel/revision-summary-panel.component.d.ts +21 -0
- package/spots-approval/index.d.ts +5 -0
- package/spots-approval/public-api.d.ts +21 -0
- package/spots-approval/src/add-os-spots-popup/add-os-spots-popup.component.d.ts +59 -0
- package/spots-approval/src/anna-revision/anna-revision.component.d.ts +551 -0
- package/spots-approval/src/badly-behaved-spot-details-popup/badly-behaved-spot-details-popup.component.d.ts +38 -0
- package/spots-approval/src/badly-behaved-spot-details-popup/models/badly-behaved-spot-details-popup.model.d.ts +15 -0
- package/spots-approval/src/badly-behaved-spot-details-popup/services/badly-behaved-spot-details-popup.service.d.ts +7 -0
- package/spots-approval/src/cancel-offers-popup/cancel-offers-popup.component.d.ts +36 -0
- package/spots-approval/src/config/spots-approval-backend-service.token.d.ts +30 -0
- package/spots-approval/src/constants/create-or-edit-offers.constant.d.ts +44 -0
- package/spots-approval/src/constants/spots-approval.constant.d.ts +129 -0
- package/spots-approval/src/create-or-edit-adu-or-bonus/create-or-edit-adu-or-bonus.component.d.ts +214 -0
- package/spots-approval/src/create-or-edit-offers-popup/create-or-edit-offers-popup.component.d.ts +333 -0
- package/spots-approval/src/credit-confirmation-table-popup/credit-confirmation-table-popup.component.d.ts +72 -0
- package/spots-approval/src/models/anna-revisions-backend.model.d.ts +325 -0
- package/spots-approval/src/models/anna-revisions-enums.model.d.ts +53 -0
- package/spots-approval/src/models/anna-revisions-response.model.d.ts +355 -0
- package/spots-approval/src/models/anna-revisions-total-rows.model.d.ts +124 -0
- package/spots-approval/src/models/create-or-edit-offer-total-rows.model.d.ts +73 -0
- package/spots-approval/src/models/create-or-edit-offers-popup.model.d.ts +384 -0
- package/spots-approval/src/models/order-revision-detail.model.d.ts +156 -0
- package/spots-approval/src/offered-mg-edit-table/offered-mg-edit-table.component.d.ts +74 -0
- package/spots-approval/src/other-spots-edit-table/other-spots-edit-table.component.d.ts +44 -0
- package/spots-approval/src/political-rate-warning-popup/political-rate-warning-popup.component.d.ts +26 -0
- package/spots-approval/src/revision-header/revision-header.component.d.ts +21 -0
- package/spots-approval/src/revision-summary/revision-summary.component.d.ts +22 -0
- package/spots-approval/src/select-spot-length-popup/select-spot-length-popup.component.d.ts +37 -0
- package/spots-approval/src/services/create-or-edit-offers-popup.service.d.ts +25 -0
- package/spots-approval/src/services/generic-spots-approval.service.d.ts +99 -0
- package/spots-approval/src/services/spots-approval.service.d.ts +81 -0
- package/spots-approval/src/spot-details-popup/spot-details-popup.component.d.ts +57 -0
- package/src/lib/all-offers-listing/index.d.ts +5 -0
- package/src/lib/all-offers-listing/public-api.d.ts +6 -0
- package/src/lib/all-offers-listing/src/all-offers-listing.component.d.ts +162 -0
- package/src/lib/all-offers-listing/src/configs/all-offers-listing-backend.token.d.ts +11 -0
- package/src/lib/all-offers-listing/src/models/all-offers-filter.model.d.ts +12 -0
- package/src/lib/all-offers-listing/src/models/all-offers-listing-backend.model.d.ts +88 -0
- package/src/lib/all-offers-listing/src/models/all-offers-listing.constant.d.ts +84 -0
- package/src/lib/all-offers-listing/src/models/all-offers-listing.model.d.ts +95 -0
- package/src/lib/all-offers-listing/src/services/all-offers-listing.service.d.ts +25 -0
- package/src/lib/spot-approval-seller-or-buyer-revision/index.d.ts +5 -0
- package/src/lib/spot-approval-seller-or-buyer-revision/public-api.d.ts +6 -0
- package/src/lib/spot-approval-seller-or-buyer-revision/src/seller-or-buyer-revision/models/seller-or-buyer-revision-additional-data.model.d.ts +73 -0
- package/src/lib/spot-approval-seller-or-buyer-revision/src/seller-or-buyer-revision/models/seller-or-buyer-revision-backend.model.d.ts +57 -0
- package/src/lib/spot-approval-seller-or-buyer-revision/src/seller-or-buyer-revision/models/seller-or-buyer-revision-response.model.d.ts +117 -0
- package/src/lib/spot-approval-seller-or-buyer-revision/src/seller-or-buyer-revision/models/seller-or-buyer-revision-total-row.model.d.ts +29 -0
- package/src/lib/spot-approval-seller-or-buyer-revision/src/seller-or-buyer-revision/models/seller-or-buyer-revision.constant.d.ts +13 -0
- package/src/lib/spot-approval-seller-or-buyer-revision/src/seller-or-buyer-revision/models/seller-or-buyer-revision.token.d.ts +14 -0
- package/src/lib/spot-approval-seller-or-buyer-revision/src/seller-or-buyer-revision/seller-or-buyer-revision.component.d.ts +128 -0
|
@@ -0,0 +1,1369 @@
|
|
|
1
|
+
import * as i7 from '@angular/common';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { InjectionToken, Injectable, ViewChild, Input, Inject, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
5
|
+
import * as i1 from '@angular/router';
|
|
6
|
+
import * as i4 from '@annalib/anna-core';
|
|
7
|
+
import { SvgOrIconNames, TableClassNameConstant, Constants, AnnaCoreModule, AnnaNonEditableGenericTableComponent } from '@annalib/anna-core';
|
|
8
|
+
import * as i6 from '@annalib/anna-design-components-lib';
|
|
9
|
+
import { StartDateConsideringFactor, SkeletonLoaderComponent, EasyFiltersComponent, OrderContainerFilterModalComponent, SingleSelectComponent } from '@annalib/anna-design-components-lib';
|
|
10
|
+
import { AnnaFeatureLibModule } from '@annalib/anna-feature-lib';
|
|
11
|
+
import { ActionCommentsPopupComponent, OfferRejectionPopupComponent } from '@annalib/anna-feature-lib/anna-feature-shared-lib';
|
|
12
|
+
import * as i3 from '@ng-bootstrap/ng-bootstrap';
|
|
13
|
+
import dayjs from 'dayjs';
|
|
14
|
+
import { cloneDeep, uniqBy, findLastIndex, isEqual } from 'lodash-es';
|
|
15
|
+
import * as i2 from 'ngx-toastr';
|
|
16
|
+
import { Subject } from 'rxjs';
|
|
17
|
+
import { takeUntil } from 'rxjs/operators';
|
|
18
|
+
|
|
19
|
+
/** Token to inject the acl service */
|
|
20
|
+
const ALL_OFFERS_LISTING_SERVICE_TOKEN = new InjectionToken("IAllOffersListingBackendService token");
|
|
21
|
+
|
|
22
|
+
class OffersListingEasyFilterConstant {
|
|
23
|
+
static { this.CONFIRMED = "CONFIRMED"; }
|
|
24
|
+
static { this.CANCELLED = "CANCELLED"; }
|
|
25
|
+
static { this.SM_APPROVED = "SM APPROVED"; }
|
|
26
|
+
static { this.SM_REJECTED = "SM REJECTED"; }
|
|
27
|
+
static { this.BUYER_TIMEDOUT = "BUYER TIMEDOUT"; }
|
|
28
|
+
static { this.BUYER_REJECTED = "BUYER REJECTED"; }
|
|
29
|
+
static { this.SELLER_REJECTED = "SELLER REJECTED"; }
|
|
30
|
+
static { this.REV_TYPE_ANNA = "ANNA"; }
|
|
31
|
+
static { this.REV_TYPE_SELLER = "SELLER USER REVISION"; }
|
|
32
|
+
static { this.REV_TYPE_BUYER = "BUYER REVISION"; }
|
|
33
|
+
}
|
|
34
|
+
class OffersStatusFromBE {
|
|
35
|
+
static { this.OS_SPOTS = "O/S Spots"; }
|
|
36
|
+
static { this.SELLER_PENDING = "Seller Pending"; }
|
|
37
|
+
static { this.SELLER_APPROVED = "Seller Approved"; }
|
|
38
|
+
static { this.SELLER_REJECTED = "Seller Rejected"; }
|
|
39
|
+
static { this.SELLER_TIMEDOUT = "Seller Timedout"; }
|
|
40
|
+
static { this.SELLER_CANCELLED = "Seller Cancelled"; }
|
|
41
|
+
static { this.REP_ENTRY_IN_PROGRESS = "Rep Entry In Progress"; }
|
|
42
|
+
static { this.REP_ENTRY_FAILED = "Rep Entry Failed"; }
|
|
43
|
+
static { this.BUYER_PENDING = "Buyer Pending"; }
|
|
44
|
+
static { this.SELLER_RECONFIRM = "Seller Reconfirm"; }
|
|
45
|
+
static { this.SELLER_RECONFIRMED = "Seller Reconfirmed"; }
|
|
46
|
+
static { this.SELLER_RECONFIRM_TIMEDOUT = "Seller Reconfirm Timedout"; }
|
|
47
|
+
static { this.BUYER_APPROVED = "Buyer Approved"; }
|
|
48
|
+
static { this.BUYER_REJECTED = "Buyer Rejected"; }
|
|
49
|
+
static { this.BUYER_TIMEDOUT = "Buyer Timedout"; }
|
|
50
|
+
static { this.WOT_ENTRY_IN_PROGRESS = "WOT Entry In Progress"; }
|
|
51
|
+
static { this.WOT_ENTRY_FAILED = "WOT Entry Failed"; }
|
|
52
|
+
static { this.SM_PENDING = "SM Pending"; }
|
|
53
|
+
static { this.SM_APPROVED = "SM Approved"; }
|
|
54
|
+
static { this.SM_REJECTED = "SM Rejected"; }
|
|
55
|
+
static { this.CONFIRM_IN_PROGRESS = "Confirm In Progress"; }
|
|
56
|
+
static { this.CANCEL_IN_PROGRESS = "Cancel In Progress"; }
|
|
57
|
+
static { this.RECALL_IN_PROGRESS = "Recall In Progress"; }
|
|
58
|
+
static { this.CONFIRMED = "Confirmed"; }
|
|
59
|
+
static { this.CANCELLED = "Cancelled"; }
|
|
60
|
+
static { this.RECALLED = "Recalled"; }
|
|
61
|
+
static { this.REP_ENTRY_FAILED_RETRYING = "Rep Entry Failed (retrying)"; }
|
|
62
|
+
static { this.BUYER_REP_PENDING = "Buyer (Rep) Pending"; }
|
|
63
|
+
static { this.BUYER_AGY_PENDING = "Buyer (Agy) Pending"; }
|
|
64
|
+
static { this.BUYER_TIMEDOUT_LOG_CLOSED = "Buyer Timedout (Log Closed)"; }
|
|
65
|
+
static { this.WOT_ENTRY_FAILED_RETRYING = "WOT Entry Failed (retrying)"; }
|
|
66
|
+
static { this.AUTO_CANCELLED_LOG_CLOSURE = "Auto-Cancelled (Log Closure)"; }
|
|
67
|
+
static { this.CANCEL_IN_PROGRESS_LOG_CLOSURE = "Cancel in progress (Log Closure)"; }
|
|
68
|
+
static { this.CANCEL_FAILED_LOG_CLOSURE = "Cancel Failed (Log Closure)"; }
|
|
69
|
+
static { this.AUTO_REJECTED_LOG_CLOSURE = "Auto-rejected (Log Closure)"; }
|
|
70
|
+
static { this.USER_CONFIRMED = "User Confirmed"; }
|
|
71
|
+
static { this.USER_CANCELLED = "User Cancelled"; }
|
|
72
|
+
static { this.USER_EDITED_AND_CONFIRMED = "User edited & Confirmed"; }
|
|
73
|
+
static { this.USER_EDITED_AND_CANCELLED = "User edited & Cancelled"; }
|
|
74
|
+
static { this.USER_EDITED = "User edited"; }
|
|
75
|
+
static { this.USER_STN_CANCELLED = "User Stn Cancelled"; }
|
|
76
|
+
static { this.REV_TYPE_ANNA = "ANNA"; }
|
|
77
|
+
static { this.REV_TYPE_SELLER = "SELLER"; }
|
|
78
|
+
static { this.REV_TYPE_BUYER = "BUYER"; }
|
|
79
|
+
}
|
|
80
|
+
class SpotTypeFromBE {
|
|
81
|
+
static { this.PREEMPTION = "Preemption"; }
|
|
82
|
+
static { this.PREEMPTION_REQUESTED_FOR_CREDIT_BY_BUYER = "Buyer Credit Requested"; }
|
|
83
|
+
static { this.PREEMPTION_SELLER_MARKED_FOR_CREDIT = "Preemption: Marked for Credit"; }
|
|
84
|
+
static { this.MAKEGOOD_OFFERED = "Offered MG"; }
|
|
85
|
+
static { this.MAKEGOOD_APPROVED = "Added MG"; }
|
|
86
|
+
static { this.MAKEGOOD_REJECTED = "Rejected MG"; }
|
|
87
|
+
static { this.MAKEGOOD_AUTO_APPROVED = "Offered MG: Auto-approved"; }
|
|
88
|
+
static { this.ADU_OFFERED = "Offered ADU"; }
|
|
89
|
+
static { this.ADU_APPROVED = "Added ADU"; }
|
|
90
|
+
static { this.ADU_REJECTED = "Rejected ADU"; }
|
|
91
|
+
static { this.ADU_AUTO_APPROVED = "Offered ADU: Auto-approved"; }
|
|
92
|
+
static { this.OUTSTANDING_NO_ACTION = "Outstanding PE"; }
|
|
93
|
+
static { this.OUTSTANDING_MARKED_FOR_CREDIT = "Outstanding PE"; }
|
|
94
|
+
static { this.OUTSTANDING_MARKED_FOR_MAKEGOOD = "Outstanding PE"; }
|
|
95
|
+
static { this.OUTSTANDING_MARKED_FOR_CREDIT_2 = "Outstanding PE: Marked for Credit"; }
|
|
96
|
+
static { this.USER_PREEMPTION = "MadeGood Preemption"; }
|
|
97
|
+
static { this.USER_MAKEGOOD = "User MG"; }
|
|
98
|
+
static { this.USER_ADU = "User ADU"; }
|
|
99
|
+
static { this.BUYER_ADDED = "Buyer Added"; }
|
|
100
|
+
static { this.BUYER_DELETED = "Buyer Deleted"; }
|
|
101
|
+
static { this.USER_CREDITED = "User Credited"; }
|
|
102
|
+
static { this.USER_UNRESOLVED = "User Unresolved"; }
|
|
103
|
+
static { this.UNDEFINED = "Undefined"; }
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// Angular import statements
|
|
107
|
+
class AllOffersListingService {
|
|
108
|
+
static getClassNameFromOffersStatus(offersStatus) {
|
|
109
|
+
switch (offersStatus) {
|
|
110
|
+
case OffersStatusFromBE.OS_SPOTS:
|
|
111
|
+
return "os-spots";
|
|
112
|
+
case OffersStatusFromBE.SM_PENDING:
|
|
113
|
+
return "sm-pending";
|
|
114
|
+
case OffersStatusFromBE.SELLER_PENDING:
|
|
115
|
+
return "seller-pending";
|
|
116
|
+
case OffersStatusFromBE.SELLER_APPROVED:
|
|
117
|
+
return "seller-approved";
|
|
118
|
+
case OffersStatusFromBE.SELLER_CANCELLED:
|
|
119
|
+
return "seller-cancelled";
|
|
120
|
+
case OffersStatusFromBE.SELLER_REJECTED:
|
|
121
|
+
return "seller-rejected";
|
|
122
|
+
case OffersStatusFromBE.SELLER_TIMEDOUT:
|
|
123
|
+
return "seller-reconfirm-timedout";
|
|
124
|
+
case OffersStatusFromBE.REP_ENTRY_IN_PROGRESS:
|
|
125
|
+
return "rep-entry-in-progress";
|
|
126
|
+
case OffersStatusFromBE.REP_ENTRY_FAILED:
|
|
127
|
+
return "rep-entry-failed";
|
|
128
|
+
case OffersStatusFromBE.BUYER_PENDING:
|
|
129
|
+
return "buyer-pending";
|
|
130
|
+
case OffersStatusFromBE.SELLER_RECONFIRM:
|
|
131
|
+
return "seller-reconfirm";
|
|
132
|
+
case OffersStatusFromBE.SELLER_RECONFIRMED:
|
|
133
|
+
return "seller-reconfirmed";
|
|
134
|
+
case OffersStatusFromBE.SELLER_RECONFIRM_TIMEDOUT:
|
|
135
|
+
return "seller-reconfirm-timedout";
|
|
136
|
+
case OffersStatusFromBE.BUYER_APPROVED:
|
|
137
|
+
return "buyer-approved";
|
|
138
|
+
case OffersStatusFromBE.BUYER_REJECTED:
|
|
139
|
+
return "buyer-rejected";
|
|
140
|
+
case OffersStatusFromBE.BUYER_TIMEDOUT:
|
|
141
|
+
return "buyer-timedout";
|
|
142
|
+
case OffersStatusFromBE.WOT_ENTRY_IN_PROGRESS:
|
|
143
|
+
return "wot-entry-in-progress";
|
|
144
|
+
case OffersStatusFromBE.WOT_ENTRY_FAILED:
|
|
145
|
+
return "wot-entry-failed";
|
|
146
|
+
case OffersStatusFromBE.SM_APPROVED:
|
|
147
|
+
return "sm-approved";
|
|
148
|
+
case OffersStatusFromBE.SM_REJECTED:
|
|
149
|
+
return "sm-rejected";
|
|
150
|
+
case OffersStatusFromBE.CONFIRM_IN_PROGRESS:
|
|
151
|
+
return "confirm-in-progress";
|
|
152
|
+
case OffersStatusFromBE.CANCEL_IN_PROGRESS:
|
|
153
|
+
return "cancel-in-progress";
|
|
154
|
+
case OffersStatusFromBE.RECALL_IN_PROGRESS:
|
|
155
|
+
return "recall-in-progress";
|
|
156
|
+
case OffersStatusFromBE.CONFIRMED:
|
|
157
|
+
return "confirmed";
|
|
158
|
+
case OffersStatusFromBE.CANCELLED:
|
|
159
|
+
return "cancelled";
|
|
160
|
+
case OffersStatusFromBE.RECALLED:
|
|
161
|
+
return "recalled";
|
|
162
|
+
case OffersStatusFromBE.AUTO_CANCELLED_LOG_CLOSURE:
|
|
163
|
+
return "auto-cancelled-log-closure";
|
|
164
|
+
case OffersStatusFromBE.CANCEL_IN_PROGRESS_LOG_CLOSURE:
|
|
165
|
+
return "cancel-in-progress-log-closure";
|
|
166
|
+
case OffersStatusFromBE.CANCEL_FAILED_LOG_CLOSURE:
|
|
167
|
+
return "cancel-failed-log-closure";
|
|
168
|
+
case OffersStatusFromBE.AUTO_REJECTED_LOG_CLOSURE:
|
|
169
|
+
return "auto-rejected-log-closure";
|
|
170
|
+
case OffersStatusFromBE.USER_CANCELLED:
|
|
171
|
+
return "user-cancelled";
|
|
172
|
+
case OffersStatusFromBE.USER_EDITED_AND_CANCELLED:
|
|
173
|
+
return "user-edited-and-cancelled";
|
|
174
|
+
case OffersStatusFromBE.USER_STN_CANCELLED:
|
|
175
|
+
return "user-stn-cancelled";
|
|
176
|
+
case OffersStatusFromBE.USER_CONFIRMED:
|
|
177
|
+
return "user-confirmed";
|
|
178
|
+
case OffersStatusFromBE.USER_EDITED_AND_CONFIRMED:
|
|
179
|
+
return "user-edited-and-confirmed";
|
|
180
|
+
case OffersStatusFromBE.USER_EDITED:
|
|
181
|
+
return "user-edited";
|
|
182
|
+
default:
|
|
183
|
+
return null;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
// constructor() {}
|
|
187
|
+
static returnTooltipAndIconForSolvedType(solvedType, metric, valueToUse) {
|
|
188
|
+
switch (solvedType) {
|
|
189
|
+
case "LINE":
|
|
190
|
+
return {
|
|
191
|
+
icon: SvgOrIconNames.ALPHA_B_CIRCLE,
|
|
192
|
+
tooltipMsg: `The booked ${metric} for this spot is calculated based on the booked ${metric} (${valueToUse}) of the inventory code of the spot.`,
|
|
193
|
+
};
|
|
194
|
+
case "ROLLING_ESTIMATES":
|
|
195
|
+
return {
|
|
196
|
+
icon: SvgOrIconNames.ALPHA_R_CIRCLE,
|
|
197
|
+
tooltipMsg: `The booked ${metric} for this spot is calculated based on the ANNA Estimate value (${valueToUse}) of the program.`,
|
|
198
|
+
};
|
|
199
|
+
case "ESTIMATES":
|
|
200
|
+
return {
|
|
201
|
+
icon: SvgOrIconNames.ALPHA_E_CIRCLE,
|
|
202
|
+
tooltipMsg: `The booked ${metric} for this spot is calculated based on the station’s estimated ${metric} (${valueToUse}) of the program.`,
|
|
203
|
+
};
|
|
204
|
+
case "AVERAGE":
|
|
205
|
+
return {
|
|
206
|
+
icon: SvgOrIconNames.ALPHA_A_CIRCLE,
|
|
207
|
+
tooltipMsg: `The booked ${metric} for this spot is calculated based on the average booked ${metric} (${valueToUse}).`,
|
|
208
|
+
};
|
|
209
|
+
default:
|
|
210
|
+
return null;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
static returnEstimatePriorities(data, estimatePriority) {
|
|
214
|
+
const firstAndSecondEstimatePrioritiesForRTGMetric = `${this.returnEstimateValueBasedOnKeyForRTGMetric(data, estimatePriority[0])} | ${this.returnEstimateValueBasedOnKeyForRTGMetric(data, estimatePriority[1])}`;
|
|
215
|
+
const thirdAndFourthEstimatePrioritiesForRTGMetric = `${this.returnEstimateValueBasedOnKeyForRTGMetric(data, estimatePriority[2])} | ${this.returnEstimateValueBasedOnKeyForRTGMetric(data, estimatePriority[3])}`;
|
|
216
|
+
const firstAndSecondEstimatePrioritiesForIMPSMetric = `${this.returnEstimateValueBasedOnKeyForIMPSMetric(data, estimatePriority[0])} | ${this.returnEstimateValueBasedOnKeyForIMPSMetric(data, estimatePriority[1])}`;
|
|
217
|
+
const thirdAndFourthEstimatePrioritiesForIMPSGMetric = `${this.returnEstimateValueBasedOnKeyForIMPSMetric(data, estimatePriority[2])} | ${this.returnEstimateValueBasedOnKeyForIMPSMetric(data, estimatePriority[3])}`;
|
|
218
|
+
return [
|
|
219
|
+
firstAndSecondEstimatePrioritiesForRTGMetric,
|
|
220
|
+
thirdAndFourthEstimatePrioritiesForRTGMetric,
|
|
221
|
+
firstAndSecondEstimatePrioritiesForIMPSMetric,
|
|
222
|
+
thirdAndFourthEstimatePrioritiesForIMPSGMetric,
|
|
223
|
+
];
|
|
224
|
+
}
|
|
225
|
+
// TODO ADD THE KEYS IN BE
|
|
226
|
+
static returnEstimateValueBasedOnKeyForRTGMetric(BEData, key) {
|
|
227
|
+
switch (key) {
|
|
228
|
+
case "AverageRTG":
|
|
229
|
+
return BEData.BookedAvgRatings !== null ? BEData.BookedAvgRatings : "-";
|
|
230
|
+
case "BookedRTG":
|
|
231
|
+
return BEData.BookedRatings !== null ? BEData.BookedRatings : "-";
|
|
232
|
+
case "RollingEstimate":
|
|
233
|
+
return BEData.RollingEstimateRatings === 0 ? "-" : BEData.RollingEstimateRatings;
|
|
234
|
+
case "StationEstimate":
|
|
235
|
+
return BEData.StationEstimateRatings === 0 ? "-" : BEData.StationEstimateRatings;
|
|
236
|
+
// no default
|
|
237
|
+
}
|
|
238
|
+
return "-";
|
|
239
|
+
}
|
|
240
|
+
static returnEstimateValueBasedOnKeyForIMPSMetric(data, key) {
|
|
241
|
+
switch (key) {
|
|
242
|
+
case "AverageRTG":
|
|
243
|
+
return data.BookedAvgImpressions !== null ? data.BookedAvgImpressions : "-";
|
|
244
|
+
case "BookedRTG":
|
|
245
|
+
return data.BookedImpressions !== null ? data.BookedImpressions : "-";
|
|
246
|
+
case "RollingEstimate":
|
|
247
|
+
return data.RollingEstimateImpressions === 0 ? "-" : data.RollingEstimateImpressions;
|
|
248
|
+
case "StationEstimate":
|
|
249
|
+
return data.StationEstimateImpressions === 0 ? "-" : data.StationEstimateImpressions;
|
|
250
|
+
// no default
|
|
251
|
+
}
|
|
252
|
+
return "-";
|
|
253
|
+
}
|
|
254
|
+
static convertToCommaSeperatedString(arrList) {
|
|
255
|
+
let nameList = "";
|
|
256
|
+
for (let i = 0; i < arrList.length; i++) {
|
|
257
|
+
if (i !== arrList.length - 1) {
|
|
258
|
+
nameList = `${nameList} ‘${arrList[i]}’, `;
|
|
259
|
+
}
|
|
260
|
+
else {
|
|
261
|
+
nameList = `${nameList} ‘${arrList[i]}’ `;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
return nameList;
|
|
265
|
+
}
|
|
266
|
+
getAllRejectionReasons() {
|
|
267
|
+
return [
|
|
268
|
+
"Incorrect Daypart",
|
|
269
|
+
"Incorrect Program",
|
|
270
|
+
"Incorrect Date Range",
|
|
271
|
+
"Shortage of Impressions/Ratings",
|
|
272
|
+
"Other (please specify)",
|
|
273
|
+
];
|
|
274
|
+
}
|
|
275
|
+
// static getAllowedActionKeyForUI(allowedActions: { [action: string]: boolean }): IAllOffersActions {
|
|
276
|
+
static getAllowedActionKeyForUI(allowedActions) {
|
|
277
|
+
let allowedObject = {};
|
|
278
|
+
if ("Approve" in allowedActions) {
|
|
279
|
+
allowedObject = {
|
|
280
|
+
...allowedObject,
|
|
281
|
+
Approve: allowedActions.Approve,
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
if ("Reject" in allowedActions) {
|
|
285
|
+
allowedObject = {
|
|
286
|
+
...allowedObject,
|
|
287
|
+
Reject: allowedActions.Reject,
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
if ("No Action" in allowedActions) {
|
|
291
|
+
allowedObject = {
|
|
292
|
+
...allowedObject,
|
|
293
|
+
NoAction: allowedActions["No Action"],
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
if ("Mark for Credit" in allowedActions) {
|
|
297
|
+
allowedObject = {
|
|
298
|
+
...allowedObject,
|
|
299
|
+
MarkForCredit: allowedActions["Mark for Credit"],
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
return allowedObject;
|
|
303
|
+
}
|
|
304
|
+
getAllowedActionInPascalCase(radioButtonName) {
|
|
305
|
+
switch (radioButtonName) {
|
|
306
|
+
case "Approve":
|
|
307
|
+
return "Approve";
|
|
308
|
+
case "Reject":
|
|
309
|
+
return "Reject";
|
|
310
|
+
case "Mark For Credit":
|
|
311
|
+
return "Credit";
|
|
312
|
+
case "No Action":
|
|
313
|
+
return "NoAction";
|
|
314
|
+
default:
|
|
315
|
+
return null;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
/// later check!!
|
|
319
|
+
static getSelectedRadioButton(actionAllowed) {
|
|
320
|
+
if (actionAllowed?.Approve) {
|
|
321
|
+
return "approve";
|
|
322
|
+
}
|
|
323
|
+
else if (actionAllowed?.MarkForCredit) {
|
|
324
|
+
return "credit";
|
|
325
|
+
}
|
|
326
|
+
else if (actionAllowed?.Reject) {
|
|
327
|
+
return "reject";
|
|
328
|
+
}
|
|
329
|
+
else if (actionAllowed?.NoAction) {
|
|
330
|
+
return "noAction";
|
|
331
|
+
}
|
|
332
|
+
return null;
|
|
333
|
+
}
|
|
334
|
+
getRadioButtonValue(radioButtonName) {
|
|
335
|
+
switch (radioButtonName) {
|
|
336
|
+
case "Approve":
|
|
337
|
+
return "approve";
|
|
338
|
+
case "Reject":
|
|
339
|
+
return "reject";
|
|
340
|
+
case "MarkForCredit":
|
|
341
|
+
return "credit";
|
|
342
|
+
case "NoAction":
|
|
343
|
+
return "noAction";
|
|
344
|
+
default:
|
|
345
|
+
return null;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
getRadioButtonLabelDisplay(radioButtonName) {
|
|
349
|
+
switch (radioButtonName) {
|
|
350
|
+
case "Approve":
|
|
351
|
+
return "Approve";
|
|
352
|
+
case "Reject":
|
|
353
|
+
return "Reject";
|
|
354
|
+
case "MarkForCredit":
|
|
355
|
+
return "Mark for Credit";
|
|
356
|
+
case "noAction":
|
|
357
|
+
return "No Action";
|
|
358
|
+
default:
|
|
359
|
+
return null;
|
|
360
|
+
}
|
|
361
|
+
// case "rejectCreditRequest":
|
|
362
|
+
// return " Reject Credit Request";
|
|
363
|
+
// case "credit":
|
|
364
|
+
// return "Request for Credit";
|
|
365
|
+
}
|
|
366
|
+
static isPEOrMGSpot(spotType) {
|
|
367
|
+
switch (spotType) {
|
|
368
|
+
case SpotTypeFromBE.MAKEGOOD_OFFERED:
|
|
369
|
+
case SpotTypeFromBE.MAKEGOOD_APPROVED:
|
|
370
|
+
case SpotTypeFromBE.MAKEGOOD_REJECTED:
|
|
371
|
+
case SpotTypeFromBE.MAKEGOOD_AUTO_APPROVED:
|
|
372
|
+
case SpotTypeFromBE.ADU_OFFERED:
|
|
373
|
+
case SpotTypeFromBE.ADU_APPROVED:
|
|
374
|
+
case SpotTypeFromBE.ADU_REJECTED:
|
|
375
|
+
case SpotTypeFromBE.ADU_AUTO_APPROVED:
|
|
376
|
+
case SpotTypeFromBE.USER_PREEMPTION:
|
|
377
|
+
case SpotTypeFromBE.USER_MAKEGOOD:
|
|
378
|
+
case SpotTypeFromBE.USER_ADU:
|
|
379
|
+
return true;
|
|
380
|
+
default:
|
|
381
|
+
return false;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AllOffersListingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
385
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AllOffersListingService, providedIn: "root" }); }
|
|
386
|
+
}
|
|
387
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AllOffersListingService, decorators: [{
|
|
388
|
+
type: Injectable,
|
|
389
|
+
args: [{
|
|
390
|
+
providedIn: "root",
|
|
391
|
+
}]
|
|
392
|
+
}] });
|
|
393
|
+
|
|
394
|
+
class OffersData {
|
|
395
|
+
constructor(data, userType) {
|
|
396
|
+
this.estimatePriority = [];
|
|
397
|
+
this.offers = [];
|
|
398
|
+
this.estimatePriority = data.EstimatePriority;
|
|
399
|
+
this.spDayparts = data.SpecialDayparts;
|
|
400
|
+
data?.Offers?.forEach((offer) => {
|
|
401
|
+
this.offers.push(new AllOffersList(offer, this.spDayparts, this.estimatePriority, userType));
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
class AllOffersList {
|
|
406
|
+
constructor(BEData, spDaypart, estimatePriorities, userType) {
|
|
407
|
+
this.lastEditedOrAddedBy = "";
|
|
408
|
+
this.enableAllowedActions = false;
|
|
409
|
+
this.reofferComment = null;
|
|
410
|
+
this.gtClass = "";
|
|
411
|
+
this.daypartWithSPTooltip = [];
|
|
412
|
+
this.offerIdWithStatusTagText = [];
|
|
413
|
+
this.spotTypeActionKey = [];
|
|
414
|
+
this.bookedRateWithTooltipKey = [];
|
|
415
|
+
this.ratingWithSolveTypeAndBadlyBehaveSpotsTooltip = [];
|
|
416
|
+
this.impressionWithSolveTypeAndBadlyBehaveSpotsTooltip = [];
|
|
417
|
+
this.hideofferIdTd = false;
|
|
418
|
+
this.hidespotTypeTd = false;
|
|
419
|
+
this.hideselectedActionTd = false;
|
|
420
|
+
this.hiderecallOfferColumnTd = false;
|
|
421
|
+
this.hidebizRuleTypeStandardOrRelaxedTd = false;
|
|
422
|
+
this.hidelengthTd = false;
|
|
423
|
+
this.hideinventoryCodeTd = false;
|
|
424
|
+
this.hidedaypartTd = false;
|
|
425
|
+
this.hidescheduledDateAndTimeTd = false;
|
|
426
|
+
this.hidelastActionByTd = false;
|
|
427
|
+
this.bizRuleTypeStandardOrRelaxedRowspan = 1;
|
|
428
|
+
this.recallOfferColumnRowspan = 1;
|
|
429
|
+
this.selectedActionRowspan = 1;
|
|
430
|
+
this.spotTypeRowspan = 1;
|
|
431
|
+
this.offerIdRowspan = 1;
|
|
432
|
+
this.lengthRowspan = 1;
|
|
433
|
+
this.inventoryCodeRowspan = 1;
|
|
434
|
+
this.daypartRowspan = 1;
|
|
435
|
+
this.scheduledDateAndTimeRowspan = 1;
|
|
436
|
+
this.lastActionByRowspan = 1;
|
|
437
|
+
this.offerId = BEData.OfferId;
|
|
438
|
+
this.groupId = BEData.GroupId;
|
|
439
|
+
this.offerStatus = BEData.OfferStatus;
|
|
440
|
+
this.spotType = BEData.SpotType;
|
|
441
|
+
this.lastUpdatedOn = BEData.LastUpdatedOn ? `Last updated: ${BEData.LastUpdatedOn}` : null;
|
|
442
|
+
this.sellerLineNumber = BEData.SellerLine;
|
|
443
|
+
this.buyerLineNumber = BEData.BuyerLine;
|
|
444
|
+
this.weekStartDate = BEData.WeekStartDate;
|
|
445
|
+
this.length = BEData.Len;
|
|
446
|
+
this.buyerProgramName = BEData.BuyerProgramName;
|
|
447
|
+
this.sellerProgramName = BEData.SellerProgramName;
|
|
448
|
+
this.inventoryCode = BEData.InventoryCode;
|
|
449
|
+
this.bizRuleTypeStandardOrRelaxed = BEData.BizRule;
|
|
450
|
+
this.rate = BEData.Rate;
|
|
451
|
+
this.avgRate = BEData.AvgRate;
|
|
452
|
+
this.rating = BEData.Ratings;
|
|
453
|
+
this.imps = BEData.Impressions;
|
|
454
|
+
this.daypart = BEData.Daypart;
|
|
455
|
+
this.revenueClass = BEData.RevenueClass;
|
|
456
|
+
this.revisionType = BEData.RevisionType;
|
|
457
|
+
this.annaEstImps = BEData.AnnaEstImps;
|
|
458
|
+
this.projectedImpressions = BEData.ProjectedImpressions;
|
|
459
|
+
this.highlightRate = BEData.HighlightRate;
|
|
460
|
+
this.scheduledDateAndTime = BEData.ScheduledDayAndTime;
|
|
461
|
+
this.lastActionBy = BEData.LastActionBy ? BEData.LastActionBy : "-";
|
|
462
|
+
this.reOfferBy = BEData.ReofferedBy;
|
|
463
|
+
this.cancelledBy = BEData.CancelledBy;
|
|
464
|
+
this.approveOfferComment = BEData.ApproveOfferComment;
|
|
465
|
+
this.rejectActionComment = BEData.RejectOfferComments;
|
|
466
|
+
this.markForCreditComment = BEData.MarkForCreditComment;
|
|
467
|
+
this.sellerCancellationComment = BEData.SellerCancellationComment;
|
|
468
|
+
this.reofferComment = BEData.ReofferComment;
|
|
469
|
+
this.excludeFromFutureOffers = BEData.ExcludeFromFutureOffers;
|
|
470
|
+
this.allowedAction = BEData.Action ? AllOffersListingService.getAllowedActionKeyForUI(BEData.Action) : null;
|
|
471
|
+
this.selectedAction = AllOffersListingService.getSelectedRadioButton(BEData.Action);
|
|
472
|
+
this.rejectionHeader = BEData.RejectionHeader;
|
|
473
|
+
this.allowActionInRejectionPopup = BEData.AllowActionInRejectionPopup;
|
|
474
|
+
this.showActionInRejectionPopup = BEData.ShowActionInRejectionPopup;
|
|
475
|
+
// additionalKeys
|
|
476
|
+
// offer tag key
|
|
477
|
+
this.offerIdWithStatusTagText = [
|
|
478
|
+
{
|
|
479
|
+
showObjectKey: false,
|
|
480
|
+
additionalText: this.offerId?.toString(),
|
|
481
|
+
additionalTextClass: "",
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
showObjectKey: false,
|
|
485
|
+
additionalText: this.offerStatus,
|
|
486
|
+
additionalTextClass: `status-tag ${AllOffersListingService.getClassNameFromOffersStatus(this.offerStatus)}`,
|
|
487
|
+
},
|
|
488
|
+
];
|
|
489
|
+
// added or edited key
|
|
490
|
+
if (BEData.LastEditedOrAddedBy && AllOffersListingService.isPEOrMGSpot(this.spotType)) {
|
|
491
|
+
if (BEData.IsFreeFlowGroup) {
|
|
492
|
+
this.lastEditedOrAddedBy = `<i style="color: darkgray;">(Added by ${BEData.LastEditedOrAddedBy})</i>`;
|
|
493
|
+
}
|
|
494
|
+
else {
|
|
495
|
+
this.lastEditedOrAddedBy = `<i style="color: darkgray;">(Edited by ${BEData.LastEditedOrAddedBy})</i>`;
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
const isPESpotExcludedFromFuture = BEData.ExcludeFromFutureOffers &&
|
|
499
|
+
(this.spotType?.toString().includes("Preemption") || this.spotType?.toString().includes("PE"));
|
|
500
|
+
const isPESpotExcludedFromFutureMsg = "This preemption has been excluded from further attempts for MakeGoods";
|
|
501
|
+
this.spotTypeActionKey = [
|
|
502
|
+
{
|
|
503
|
+
showObjectKey: false,
|
|
504
|
+
additionalText: this.spotType.toString(),
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
showObjectKey: false,
|
|
508
|
+
svgOrIconName: isPESpotExcludedFromFuture ? SvgOrIconNames.CANCEL_ICON : null,
|
|
509
|
+
svgOrIconTooltipMsg: isPESpotExcludedFromFuture ? isPESpotExcludedFromFutureMsg : null,
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
showObjectKey: false,
|
|
513
|
+
svgOrIconName: BEData.Remarks ? SvgOrIconNames.INFORMATION_OUTLINE_ICON : null,
|
|
514
|
+
svgOrIconTooltipMsg: BEData.Remarks ? BEData.Remarks : null,
|
|
515
|
+
},
|
|
516
|
+
];
|
|
517
|
+
// rate highlight key
|
|
518
|
+
const showHighlightedRate = userType === "SELLER" && this.highlightRate;
|
|
519
|
+
const showHighlightedRateMsg = `Booked Rate is less than 80% of the Booked Average Rate`;
|
|
520
|
+
this.bookedRateWithTooltipKey = [
|
|
521
|
+
{
|
|
522
|
+
showObjectKey: true,
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
showObjectKey: false,
|
|
526
|
+
svgOrIconName: showHighlightedRate ? SvgOrIconNames.INFORMATION_OUTLINE_ICON : null,
|
|
527
|
+
svgOrIconTooltipMsg: showHighlightedRate ? showHighlightedRateMsg : null,
|
|
528
|
+
},
|
|
529
|
+
];
|
|
530
|
+
// badly behaving spot key and solve type
|
|
531
|
+
const badSpotTooltipCondition = userType === "SELLER" && BEData.HighlightRatingsOrImpressions;
|
|
532
|
+
let badSpotTooltipMsgForImps = `The Booked IMPS is greater than 120% of the Projected IMPS value of ${this.projectedImpressions}`;
|
|
533
|
+
if (badSpotTooltipCondition && BEData.IsRatingImpressionBumped) {
|
|
534
|
+
badSpotTooltipMsgForImps += " <br/> ";
|
|
535
|
+
}
|
|
536
|
+
if (BEData.IsRatingImpressionBumped) {
|
|
537
|
+
badSpotTooltipMsgForImps += `The IMPS of the offer has been bumped for this Program Change`;
|
|
538
|
+
}
|
|
539
|
+
const solvedTypeIconMsgObj = AllOffersListingService.returnTooltipAndIconForSolvedType(BEData.SolvedType, "IMPS", BEData.ImpressionsUsedToSolve);
|
|
540
|
+
// imps
|
|
541
|
+
this.impressionWithSolveTypeAndBadlyBehaveSpotsTooltip = [
|
|
542
|
+
{
|
|
543
|
+
showObjectKey: false,
|
|
544
|
+
additionalText: BEData.Impressions.toString(),
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
showObjectKey: false,
|
|
548
|
+
svgOrIconName: badSpotTooltipCondition ? SvgOrIconNames.INFORMATION_OUTLINE_ICON : null,
|
|
549
|
+
svgOrIconTooltipMsg: badSpotTooltipCondition ? badSpotTooltipMsgForImps : null,
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
showObjectKey: false,
|
|
553
|
+
svgOrIconName: BEData.ShowSolvedTypeIcon ? solvedTypeIconMsgObj.icon : null,
|
|
554
|
+
svgOrIconTooltipMsg: BEData.ShowSolvedTypeIcon ? solvedTypeIconMsgObj.tooltipMsg : null,
|
|
555
|
+
},
|
|
556
|
+
];
|
|
557
|
+
// rtg
|
|
558
|
+
let badSpotTooltipMsgForRtg = `The Booked RTG is greater than 120% of the Projected RTG value of ${BEData.ProjectedRatings}`;
|
|
559
|
+
if (badSpotTooltipCondition && BEData.IsRatingImpressionBumped) {
|
|
560
|
+
badSpotTooltipMsgForRtg += " <br/>";
|
|
561
|
+
}
|
|
562
|
+
if (BEData.IsRatingImpressionBumped) {
|
|
563
|
+
badSpotTooltipMsgForRtg += ` The RTG of the offer has been bumped for this Program Change`;
|
|
564
|
+
}
|
|
565
|
+
const solvedTypeIconMsgObjForRtg = AllOffersListingService.returnTooltipAndIconForSolvedType(BEData.SolvedType, "RTG", BEData.RatingsUsedToSolve);
|
|
566
|
+
this.ratingWithSolveTypeAndBadlyBehaveSpotsTooltip = [
|
|
567
|
+
{
|
|
568
|
+
showObjectKey: false,
|
|
569
|
+
additionalText: BEData.Ratings.toString(),
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
showObjectKey: false,
|
|
573
|
+
svgOrIconName: badSpotTooltipCondition ? SvgOrIconNames.INFORMATION_OUTLINE_ICON : null,
|
|
574
|
+
svgOrIconTooltipMsg: badSpotTooltipCondition ? badSpotTooltipMsgForRtg : null,
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
showObjectKey: false,
|
|
578
|
+
svgOrIconName: BEData.ShowSolvedTypeIcon ? solvedTypeIconMsgObjForRtg.icon : null,
|
|
579
|
+
svgOrIconTooltipMsg: BEData.ShowSolvedTypeIcon ? solvedTypeIconMsgObjForRtg.tooltipMsg : null,
|
|
580
|
+
},
|
|
581
|
+
];
|
|
582
|
+
// estimate priorities
|
|
583
|
+
const estimatePrioritiesData = AllOffersListingService.returnEstimatePriorities(BEData, estimatePriorities);
|
|
584
|
+
this.firstTwoEstimatePrioritiesForRTGMetric = estimatePrioritiesData[0];
|
|
585
|
+
this.lastTwoEstimatePrioritiesForRTGMetric = estimatePrioritiesData[1];
|
|
586
|
+
this.firstTwoEstimatePrioritiesForIMPSMetric = estimatePrioritiesData[2];
|
|
587
|
+
this.lastTwoEstimatePrioritiesForIMPSMetric = estimatePrioritiesData[3];
|
|
588
|
+
// SP daypart
|
|
589
|
+
const showTooltipForSportsDP = BEData.ShowSolvedTypeIcon && spDaypart.includes(this.daypart);
|
|
590
|
+
this.daypartWithSPTooltip = [
|
|
591
|
+
{
|
|
592
|
+
showObjectKey: true,
|
|
593
|
+
svgOrIconName: showTooltipForSportsDP ? SvgOrIconNames.INFORMATION_OUTLINE_ICON : null,
|
|
594
|
+
svgOrIconTooltipMsg: showTooltipForSportsDP
|
|
595
|
+
? `Approval is always required for all offers with Daypart as ${AllOffersListingService.convertToCommaSeperatedString(spDaypart)}.`
|
|
596
|
+
: null,
|
|
597
|
+
},
|
|
598
|
+
];
|
|
599
|
+
if (this.highlightRate && userType === "SELLER") {
|
|
600
|
+
this.gtClass = this.gtClass?.concat(TableClassNameConstant.redColorCellBorder);
|
|
601
|
+
}
|
|
602
|
+
if (BEData.HighlightRatingsOrImpressions && userType === "SELLER") {
|
|
603
|
+
this.gtClass = this.gtClass?.concat(TableClassNameConstant.orangeColorCellBorder);
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
class AllOffersListingComponent {
|
|
609
|
+
constructor(router, route, cdRef, toastr, modalService, annaSortService, annaGtService, annaFilterService, annaGlobalConfig, persistingFilterService, allOffersListingService, quarterFilterService, consumingProjectAllOfferListingService) {
|
|
610
|
+
this.router = router;
|
|
611
|
+
this.route = route;
|
|
612
|
+
this.cdRef = cdRef;
|
|
613
|
+
this.toastr = toastr;
|
|
614
|
+
this.modalService = modalService;
|
|
615
|
+
this.annaSortService = annaSortService;
|
|
616
|
+
this.annaGtService = annaGtService;
|
|
617
|
+
this.annaFilterService = annaFilterService;
|
|
618
|
+
this.annaGlobalConfig = annaGlobalConfig;
|
|
619
|
+
this.persistingFilterService = persistingFilterService;
|
|
620
|
+
this.allOffersListingService = allOffersListingService;
|
|
621
|
+
this.quarterFilterService = quarterFilterService;
|
|
622
|
+
this.consumingProjectAllOfferListingService = consumingProjectAllOfferListingService;
|
|
623
|
+
this.userType = "SELLER";
|
|
624
|
+
this.PeriodOptions = ["Quarter", "Month", "Week", "Custom Range"];
|
|
625
|
+
this.periodFilterLoader = true;
|
|
626
|
+
this.showSkeletonLoading = true;
|
|
627
|
+
this.allOffersTableData = [];
|
|
628
|
+
this.clonedAllOffersTableData = [];
|
|
629
|
+
this.gtDimension = { rowHeight: 44, headerHeight: 40, dataOnTopHeight: 281, marginFromBottom: 20 };
|
|
630
|
+
// selectedEasyFilter: Filter;
|
|
631
|
+
this.offersListingEasyFilterConstant = OffersListingEasyFilterConstant;
|
|
632
|
+
this.disableResetAllFilter = true;
|
|
633
|
+
this.ngUnsubscribe = new Subject();
|
|
634
|
+
this.numberOfEasyFilterLoader = 7;
|
|
635
|
+
this.estimatePriorities = [];
|
|
636
|
+
this.metricTypeList = [];
|
|
637
|
+
this.offerRejectionPossibleReasons = [];
|
|
638
|
+
this.noPeriodFilterFound = false;
|
|
639
|
+
this.startDateConsideringFactor = StartDateConsideringFactor.FLIGHT_START_DATE;
|
|
640
|
+
this.initVariables();
|
|
641
|
+
this.setGtGeneralConfig();
|
|
642
|
+
this.setMetricConfig();
|
|
643
|
+
}
|
|
644
|
+
ngOnChanges(changes) {
|
|
645
|
+
if (changes?.orderDefaultMetricType?.currentValue) {
|
|
646
|
+
if (this.orderDefaultMetricType === "GRP") {
|
|
647
|
+
this.selectedMetricType = this.metricTypeList[0];
|
|
648
|
+
}
|
|
649
|
+
else {
|
|
650
|
+
this.selectedMetricType = this.metricTypeList[1];
|
|
651
|
+
}
|
|
652
|
+
this.cdRef.detectChanges();
|
|
653
|
+
this.setTableHeader();
|
|
654
|
+
}
|
|
655
|
+
if (changes?.primaryOrderData?.currentValue) {
|
|
656
|
+
this.fetchFilterDataForOffers();
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
ngOnInit() {
|
|
660
|
+
this.initVariables();
|
|
661
|
+
this.detectUrlChanges();
|
|
662
|
+
this.setTableHeader();
|
|
663
|
+
this.easyFilters = this.consumingProjectAllOfferListingService.getOffersListingEasyFilters();
|
|
664
|
+
}
|
|
665
|
+
fetchFilterDataForOffers() {
|
|
666
|
+
this.periodFilterLoader = true;
|
|
667
|
+
this.consumingProjectAllOfferListingService
|
|
668
|
+
.getFiltersDataForOffers(this.stationId, this.orderId)
|
|
669
|
+
.pipe(takeUntil(this.ngUnsubscribe))
|
|
670
|
+
.subscribe((response) => {
|
|
671
|
+
if (response) {
|
|
672
|
+
this.initPeriodSelectionVariables(response);
|
|
673
|
+
}
|
|
674
|
+
else {
|
|
675
|
+
this.getOrdersApiErrorHandler();
|
|
676
|
+
}
|
|
677
|
+
this.periodFilterLoader = false;
|
|
678
|
+
}, (error) => {
|
|
679
|
+
this.toastr.error(Constants.SERVER_ERROR_MSG);
|
|
680
|
+
this.getOrdersApiErrorHandler();
|
|
681
|
+
this.periodFilterLoader = false;
|
|
682
|
+
});
|
|
683
|
+
}
|
|
684
|
+
getWeekRangesMondayAndSundayForLatestOfferDate(response) {
|
|
685
|
+
this.noPeriodFilterFound = false;
|
|
686
|
+
response.LatestOffersDate = response.LastOfferDate;
|
|
687
|
+
if (!response.FirstOfferDate || !response.LastOfferDate) {
|
|
688
|
+
this.noPeriodFilterFound = true;
|
|
689
|
+
return {
|
|
690
|
+
StartDate: dayjs(this.primaryOrderData?.campaignStartDate).format("MM/DD/YYYY"),
|
|
691
|
+
EndDate: dayjs(this.primaryOrderData?.campaignEndDate).format("MM/DD/YYYY"),
|
|
692
|
+
};
|
|
693
|
+
}
|
|
694
|
+
let sunday;
|
|
695
|
+
let monday;
|
|
696
|
+
const givenDate = dayjs(response.LatestOffersDate, "MM/DD/YYYY");
|
|
697
|
+
const isSunday = dayjs(givenDate).day() === 0;
|
|
698
|
+
if (isSunday) {
|
|
699
|
+
sunday = givenDate;
|
|
700
|
+
monday = sunday.subtract(6, "days");
|
|
701
|
+
}
|
|
702
|
+
else {
|
|
703
|
+
monday = givenDate.startOf("week").add(1, "day"); // Start of week (Sunday) + 1 day for Monday
|
|
704
|
+
sunday = monday.add(6, "days");
|
|
705
|
+
}
|
|
706
|
+
return {
|
|
707
|
+
StartDate: dayjs(monday).format("MM/DD/YYYY"),
|
|
708
|
+
EndDate: dayjs(sunday).format("MM/DD/YYYY"),
|
|
709
|
+
};
|
|
710
|
+
}
|
|
711
|
+
initPeriodSelectionVariables(response) {
|
|
712
|
+
this.EntireRangeSelectionMessage = "Show order's entire offers";
|
|
713
|
+
this.startDateConsideringFactor = StartDateConsideringFactor.FLIGHT_START_DATE;
|
|
714
|
+
if (this.primaryOrderData?.orderInfo?.orderFlightStatus === "COMPLETED") {
|
|
715
|
+
this.startDateConsideringFactor = StartDateConsideringFactor.FLIGHT_END_DATE;
|
|
716
|
+
}
|
|
717
|
+
this.flightPeriodData = {
|
|
718
|
+
statDate: response.FirstOfferDate,
|
|
719
|
+
endDate: response.LastOfferDate,
|
|
720
|
+
};
|
|
721
|
+
response.LatestOffersWeekDate = this.getWeekRangesMondayAndSundayForLatestOfferDate(response);
|
|
722
|
+
this.quarterFilterService.publishQuarterFilterData({
|
|
723
|
+
filterData: response,
|
|
724
|
+
selectedFilter: null,
|
|
725
|
+
});
|
|
726
|
+
this.cdRef.markForCheck();
|
|
727
|
+
}
|
|
728
|
+
setTableHeader(loading = true) {
|
|
729
|
+
this.tableHeaders = this.consumingProjectAllOfferListingService.getTableHeadersForOffersListing(loading ? this.showSkeletonLoading : false, this.selectedMetricType?.text, this.estimatePriorities);
|
|
730
|
+
this.cdRef.detectChanges();
|
|
731
|
+
}
|
|
732
|
+
initVariables() {
|
|
733
|
+
this.applyFiltersFromTheUrl = false;
|
|
734
|
+
this.metricTypeList = [
|
|
735
|
+
{ id: 0, text: "GRP" },
|
|
736
|
+
{ id: 1, text: "IMP('000)" },
|
|
737
|
+
];
|
|
738
|
+
}
|
|
739
|
+
setGtGeneralConfig() {
|
|
740
|
+
this.gtGeneralConfig = { ...this.annaGlobalConfig.defaultGtGeneralConfig };
|
|
741
|
+
this.gtGeneralConfig.bufferSize = 1000;
|
|
742
|
+
this.gtGeneralConfig.verticalScrollOffsetForFilterTooltip = 200;
|
|
743
|
+
}
|
|
744
|
+
detectUrlChanges() {
|
|
745
|
+
this.route.queryParams.subscribe((params) => {
|
|
746
|
+
this.updateLatestFilters(params);
|
|
747
|
+
this.setPersistingVariableForColumnAndEasyFilter(params.filters);
|
|
748
|
+
});
|
|
749
|
+
}
|
|
750
|
+
setPersistingVariableForColumnAndEasyFilter(columnAndEasyFilter) {
|
|
751
|
+
this.allOffersListingService.latestOffersTabFilter = columnAndEasyFilter;
|
|
752
|
+
this.filtersFromRoute =
|
|
753
|
+
columnAndEasyFilter && this.persistingFilterService.getActualQueryParams(columnAndEasyFilter)
|
|
754
|
+
? JSON.parse(this.persistingFilterService.getActualQueryParams(columnAndEasyFilter))
|
|
755
|
+
: null;
|
|
756
|
+
this.applyFiltersFromTheUrl = !!this.filtersFromRoute;
|
|
757
|
+
this.initPersistedFilters();
|
|
758
|
+
}
|
|
759
|
+
initPersistedFilters() {
|
|
760
|
+
this.annaFilterService.tooltipSelectedMap = this.filtersFromRoute?.selectedFilterData
|
|
761
|
+
? new Map(JSON.parse(this.filtersFromRoute.selectedFilterData))
|
|
762
|
+
: new Map();
|
|
763
|
+
this.annaSortService.columnSortState = this.filtersFromRoute?.sortState
|
|
764
|
+
? new Map(JSON.parse(this.filtersFromRoute.sortState))
|
|
765
|
+
: new Map();
|
|
766
|
+
this.annaFilterService.selectedRadio = null;
|
|
767
|
+
this.annaFilterService.appliedFiltersArray = this.filtersFromRoute?.appliedFilters
|
|
768
|
+
? cloneDeep(this.filtersFromRoute.appliedFilters)
|
|
769
|
+
: [];
|
|
770
|
+
if (this.annaFilterService.tooltipSelectedMap.has("startDate")) {
|
|
771
|
+
const selectedDateObj = null;
|
|
772
|
+
const startDate = this.annaFilterService.tooltipSelectedMap.get("startDate");
|
|
773
|
+
selectedDateObj.fromDate = dayjs(startDate.fromDate);
|
|
774
|
+
selectedDateObj.toDate = dayjs(startDate.toDate);
|
|
775
|
+
this.annaFilterService.tooltipSelectedMap.set("startDate", selectedDateObj);
|
|
776
|
+
}
|
|
777
|
+
if (this.annaFilterService.tooltipSelectedMap.has("endDate")) {
|
|
778
|
+
const selectedDateObj = null;
|
|
779
|
+
const endDate = this.annaFilterService.tooltipSelectedMap.get("endDate");
|
|
780
|
+
selectedDateObj.fromDate = dayjs(endDate.fromDate);
|
|
781
|
+
selectedDateObj.toDate = dayjs(endDate.toDate);
|
|
782
|
+
this.annaFilterService.tooltipSelectedMap.set("endDate", selectedDateObj);
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
initFilters() {
|
|
786
|
+
this.annaFilterService.tooltipSelectedMap = new Map();
|
|
787
|
+
this.annaFilterService.selectedRadio = null;
|
|
788
|
+
this.annaFilterService.appliedFiltersArray = [];
|
|
789
|
+
this.annaSortService.noSortingAppliedData = [];
|
|
790
|
+
}
|
|
791
|
+
setBreadcrumbs() { }
|
|
792
|
+
fetchAllOffersListingData(filteredDate) {
|
|
793
|
+
this.showSkeletonLoading = true;
|
|
794
|
+
this.consumingProjectAllOfferListingService
|
|
795
|
+
.getAllOffersListingData(this.stationId, this.orderId, filteredDate.startDate, filteredDate.endDate)
|
|
796
|
+
.pipe(takeUntil(this.ngUnsubscribe))
|
|
797
|
+
.subscribe((response) => {
|
|
798
|
+
if (response?.Offers?.length) {
|
|
799
|
+
this.allOffersTableData = [];
|
|
800
|
+
this.estimatePriorities = response?.EstimatePriority;
|
|
801
|
+
this.allOffersTableData = new OffersData(response, this.userType).offers;
|
|
802
|
+
this.clonedAllOffersTableData = cloneDeep(this.allOffersTableData);
|
|
803
|
+
this.annaSortService.noSortingAppliedData = cloneDeep(this.allOffersTableData);
|
|
804
|
+
this.handleResponse();
|
|
805
|
+
}
|
|
806
|
+
else {
|
|
807
|
+
this.getOrdersApiErrorHandler();
|
|
808
|
+
}
|
|
809
|
+
}, (error) => {
|
|
810
|
+
this.toastr.error(Constants.SERVER_ERROR_MSG);
|
|
811
|
+
this.getOrdersApiErrorHandler();
|
|
812
|
+
});
|
|
813
|
+
}
|
|
814
|
+
getOrdersApiErrorHandler() {
|
|
815
|
+
this.allOffersTableData = [];
|
|
816
|
+
this.clonedAllOffersTableData = [];
|
|
817
|
+
this.showSkeletonLoading = false;
|
|
818
|
+
// this.enableDisableEasyFilter();
|
|
819
|
+
this.estimatePriorities = ["RollingEstimate", "StationEstimate", "BookedRTG", "AverageRTG"];
|
|
820
|
+
this.setTableHeader(false);
|
|
821
|
+
this.cdRef.detectChanges();
|
|
822
|
+
}
|
|
823
|
+
handleResponse() {
|
|
824
|
+
this.setTableHeader(false);
|
|
825
|
+
this.allOffersTableData = this.formatResponseForGenericTable(this.allOffersTableData);
|
|
826
|
+
this.clonedAllOffersTableData = cloneDeep(this.allOffersTableData);
|
|
827
|
+
this.handleFilteringAndSortingOfData();
|
|
828
|
+
this.showSkeletonLoading = false;
|
|
829
|
+
this.cdRef.detectChanges();
|
|
830
|
+
}
|
|
831
|
+
applyPeriodSelection(value) {
|
|
832
|
+
if (this.noPeriodFilterFound) {
|
|
833
|
+
this.getOrdersApiErrorHandler();
|
|
834
|
+
}
|
|
835
|
+
else {
|
|
836
|
+
this.fetchAllOffersListingData(value);
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
createTotalRowData() {
|
|
840
|
+
this.totalRowInfo = [];
|
|
841
|
+
}
|
|
842
|
+
metricChanged(metricSelected) {
|
|
843
|
+
this.selectedMetricType = metricSelected;
|
|
844
|
+
this.setTableHeader(false);
|
|
845
|
+
this.createTotalRowData();
|
|
846
|
+
this.setTableRowClass();
|
|
847
|
+
this.enabledisableResetAllFilter();
|
|
848
|
+
this.updateNavigationHistory();
|
|
849
|
+
this.cdRef.markForCheck();
|
|
850
|
+
}
|
|
851
|
+
setTableRowClass() {
|
|
852
|
+
let setWhiteBackground = true;
|
|
853
|
+
let previousRowGroupId = null;
|
|
854
|
+
let currentRowGroupId = null;
|
|
855
|
+
const GRAY_BG = "gray-background-row";
|
|
856
|
+
const WHITE_BG = "white-background-row";
|
|
857
|
+
this.allOffersTableData.forEach((row, index) => {
|
|
858
|
+
currentRowGroupId = row?.groupId;
|
|
859
|
+
const isPreviousGroupIdSameAsCurrent = previousRowGroupId === currentRowGroupId;
|
|
860
|
+
row.gtClass = row.gtClass?.replace(GRAY_BG, " ");
|
|
861
|
+
row.gtClass = row.gtClass?.replace(WHITE_BG, " ");
|
|
862
|
+
if (!this.isIndependentSpotGroupId(currentRowGroupId) &&
|
|
863
|
+
(this.isIndependentSpotGroupId(previousRowGroupId) || isPreviousGroupIdSameAsCurrent)) {
|
|
864
|
+
row.gtClass = setWhiteBackground ? `${row.gtClass} ${WHITE_BG} ` : `${row.gtClass} ${GRAY_BG} `;
|
|
865
|
+
previousRowGroupId = currentRowGroupId;
|
|
866
|
+
}
|
|
867
|
+
else if (!this.isIndependentSpotGroupId(currentRowGroupId) && !isPreviousGroupIdSameAsCurrent) {
|
|
868
|
+
setWhiteBackground = !setWhiteBackground;
|
|
869
|
+
row.gtClass = setWhiteBackground ? `${row.gtClass} ${WHITE_BG} ` : `${row.gtClass} ${GRAY_BG} `;
|
|
870
|
+
previousRowGroupId = currentRowGroupId;
|
|
871
|
+
}
|
|
872
|
+
else if (this.isIndependentSpotGroupId(currentRowGroupId)) {
|
|
873
|
+
if (index !== 0) {
|
|
874
|
+
setWhiteBackground = !setWhiteBackground;
|
|
875
|
+
}
|
|
876
|
+
row.gtClass = setWhiteBackground ? `${row.gtClass} ${WHITE_BG} ` : `${row.gtClass} ${GRAY_BG} `;
|
|
877
|
+
}
|
|
878
|
+
});
|
|
879
|
+
}
|
|
880
|
+
filterAppliedToTable(data) {
|
|
881
|
+
this.allOffersTableData = cloneDeep(this.formatResponseForGenericTable(data));
|
|
882
|
+
// this.enableDisableEasyFilter();
|
|
883
|
+
this.createTotalRowData();
|
|
884
|
+
this.enabledisableResetAllFilter();
|
|
885
|
+
this.updateNavigationHistory();
|
|
886
|
+
}
|
|
887
|
+
sortingAppliedToTable(data) {
|
|
888
|
+
this.allOffersTableData = cloneDeep(data);
|
|
889
|
+
this.enabledisableResetAllFilter();
|
|
890
|
+
this.updateNavigationHistory();
|
|
891
|
+
}
|
|
892
|
+
isIndependentSpot(arr) {
|
|
893
|
+
return arr.groupId === "00000000-0000-0000-0000-000000000000";
|
|
894
|
+
}
|
|
895
|
+
isIndependentSpotGroupId(groupId) {
|
|
896
|
+
return groupId === "00000000-0000-0000-0000-000000000000";
|
|
897
|
+
}
|
|
898
|
+
setAllHideAndRowSpanToDefault() { }
|
|
899
|
+
formatResponseForGenericTable(arr) {
|
|
900
|
+
for (let i = 0; i < arr?.length; i++) {
|
|
901
|
+
if (this.isIndependentSpot(arr[i])) {
|
|
902
|
+
arr[i].hideofferIdTd = false;
|
|
903
|
+
arr[i].hidelastActionByTd = false;
|
|
904
|
+
arr[i].hidespotTypeTd = false;
|
|
905
|
+
arr[i].hideselectedActionTd = false;
|
|
906
|
+
arr[i].hidebizRuleTypeStandardOrRelaxedTd = false;
|
|
907
|
+
arr[i].offerIdRowspan = 1;
|
|
908
|
+
arr[i].lastActionByRowspan = 1;
|
|
909
|
+
arr[i].spotTypeRowspan = 1;
|
|
910
|
+
arr[i].selectedActionRowspan = 1;
|
|
911
|
+
arr[i].bizRuleTypeStandardOrRelaxedRowspan = 1;
|
|
912
|
+
this.setActionColumnRadioConfig(arr[i]);
|
|
913
|
+
}
|
|
914
|
+
else {
|
|
915
|
+
const diffSpotTypeInPEMGGroup = cloneDeep(uniqBy(arr.filter((n) => n.groupId === arr[i].groupId), "spotType")).map((n) => n.spotType);
|
|
916
|
+
const lastIndexOfFirstStatusBelongingToGroup = findLastIndex(arr, (n) => n.spotType === arr[i].spotType && n.groupId === arr[i].groupId);
|
|
917
|
+
const lastSpotIndexOfGroup = findLastIndex(arr, (n) => n.groupId === arr[i].groupId);
|
|
918
|
+
const preemptionRowsCount = lastIndexOfFirstStatusBelongingToGroup - i + 1;
|
|
919
|
+
const spotsCountBelongingToGroup = lastSpotIndexOfGroup - i + 1;
|
|
920
|
+
let j = cloneDeep(i + 1);
|
|
921
|
+
const gtClass = arr[i].spotType === "ADU" ? " status-align-top-adu" : " status-align-top";
|
|
922
|
+
const statusGTClass = arr[i].spotType === "ADU" ? " status-align-top-adu" : " status-value-align-top";
|
|
923
|
+
if (spotsCountBelongingToGroup > 1) {
|
|
924
|
+
if (preemptionRowsCount > 1) {
|
|
925
|
+
arr[i].gtClass = arr[i].gtClass + gtClass + statusGTClass;
|
|
926
|
+
}
|
|
927
|
+
else {
|
|
928
|
+
arr[i].gtClass += gtClass;
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
else {
|
|
932
|
+
arr[i].gtClass = arr[i].gtClass?.replace("status-align-top", "");
|
|
933
|
+
}
|
|
934
|
+
arr[i].hidespotTypeTd = false;
|
|
935
|
+
arr[i].hideofferIdTd = false;
|
|
936
|
+
arr[i].hideselectedActionTd = false;
|
|
937
|
+
arr[i].hidebizRuleTypeStandardOrRelaxedTd = false;
|
|
938
|
+
arr[i].hidelengthTd = false;
|
|
939
|
+
arr[i].hideinventoryCodeTd = false;
|
|
940
|
+
arr[i].hidedaypartTd = false;
|
|
941
|
+
arr[i].hidescheduledDateAndTimeTd = false;
|
|
942
|
+
arr[i].hidelastActionByTd = false;
|
|
943
|
+
arr[i].hiderecallOfferColumnTd = false;
|
|
944
|
+
const filteredArray = arr.filter((n) => n.groupId === arr[i].groupId && n.bizRuleTypeStandardOrRelaxed !== "-");
|
|
945
|
+
const setDisplayBusinessRulesTo = filteredArray.length > 0 ? filteredArray[0].bizRuleTypeStandardOrRelaxed : "-";
|
|
946
|
+
arr[i].bizRuleTypeStandardOrRelaxed = setDisplayBusinessRulesTo;
|
|
947
|
+
arr[i].bizRuleTypeStandardOrRelaxedRowspan = spotsCountBelongingToGroup;
|
|
948
|
+
arr[i].offerIdRowspan = spotsCountBelongingToGroup;
|
|
949
|
+
arr[i].lastActionByRowspan = spotsCountBelongingToGroup;
|
|
950
|
+
arr[i].selectedActionRowspan = spotsCountBelongingToGroup;
|
|
951
|
+
arr[i].spotTypeRowspan = preemptionRowsCount;
|
|
952
|
+
// arr[i].offerIdRowspan = preemptionRowsCount;
|
|
953
|
+
arr[i].recallOfferColumnRowspan = spotsCountBelongingToGroup;
|
|
954
|
+
if (arr[i].spotType === "ADU") {
|
|
955
|
+
arr[i].lengthRowspan = spotsCountBelongingToGroup;
|
|
956
|
+
arr[i].inventoryCodeRowspan = spotsCountBelongingToGroup;
|
|
957
|
+
arr[i].daypartRowspan = spotsCountBelongingToGroup;
|
|
958
|
+
arr[i].scheduledDateAndTimeRowspan = spotsCountBelongingToGroup;
|
|
959
|
+
arr[i].lastActionByRowspan = spotsCountBelongingToGroup;
|
|
960
|
+
}
|
|
961
|
+
// if at least one preemption spot was marked for credit, that group should show mark for credit option
|
|
962
|
+
const array = cloneDeep(arr);
|
|
963
|
+
const markedForCreditObjectOfGroup = cloneDeep(array
|
|
964
|
+
.filter((n) => n.groupId === arr[i].groupId)
|
|
965
|
+
.filter((obj) => obj.allowedAction && obj.allowedAction.MarkForCredit));
|
|
966
|
+
if (markedForCreditObjectOfGroup.length > 0) {
|
|
967
|
+
arr[i].selectedAction = cloneDeep(markedForCreditObjectOfGroup[0].selectedAction);
|
|
968
|
+
// arr[i].selectedAction = cloneDeep(markedForCreditObjectOfGroup[0].allowedAction);
|
|
969
|
+
}
|
|
970
|
+
const sellerOfferCommentsForGroup = array.filter((n) => n.groupId === arr[i].groupId && n.approveOfferComment != null);
|
|
971
|
+
if (sellerOfferCommentsForGroup?.length > 0) {
|
|
972
|
+
arr[i].approveOfferComment = cloneDeep(sellerOfferCommentsForGroup[0].approveOfferComment);
|
|
973
|
+
}
|
|
974
|
+
const markForCreditComment = array.filter((n) => n.groupId === arr[i].groupId && n.markForCreditComment != null);
|
|
975
|
+
if (markForCreditComment?.length > 0) {
|
|
976
|
+
arr[i].markForCreditComment = cloneDeep(markForCreditComment[0]?.markForCreditComment);
|
|
977
|
+
}
|
|
978
|
+
const rejectionCommentGroup = array.filter((n) => n.groupId === arr[i].groupId && n.rejectActionComment?.length !== 0);
|
|
979
|
+
if (rejectionCommentGroup?.length > 0) {
|
|
980
|
+
arr[i].rejectActionComment = cloneDeep(rejectionCommentGroup[0]?.rejectActionComment);
|
|
981
|
+
}
|
|
982
|
+
this.setActionColumnRadioConfig(arr[i]);
|
|
983
|
+
while (j <= lastSpotIndexOfGroup) {
|
|
984
|
+
arr[j].hidespotTypeTd = true;
|
|
985
|
+
arr[j].hidelastActionByTd = true;
|
|
986
|
+
arr[j].hideofferIdTd = true;
|
|
987
|
+
arr[j].hideselectedActionTd = true;
|
|
988
|
+
arr[j].hiderecallOfferColumnTd = true;
|
|
989
|
+
arr[j].hidebizRuleTypeStandardOrRelaxedTd = true;
|
|
990
|
+
arr[j].bizRuleTypeStandardOrRelaxed = setDisplayBusinessRulesTo;
|
|
991
|
+
if (markForCreditComment?.length > 0) {
|
|
992
|
+
arr[j].markForCreditComment = cloneDeep(markForCreditComment[0]?.markForCreditComment);
|
|
993
|
+
}
|
|
994
|
+
this.setActionColumnRadioConfig(arr[j]);
|
|
995
|
+
if (arr[j].spotType === "ADU") {
|
|
996
|
+
arr[j].hidelengthTd = true;
|
|
997
|
+
arr[j].hideinventoryCodeTd = true;
|
|
998
|
+
arr[j].hidedaypartTd = true;
|
|
999
|
+
arr[j].hidescheduledDateAndTimeTd = true;
|
|
1000
|
+
arr[j].hidelastActionByTd = true;
|
|
1001
|
+
}
|
|
1002
|
+
j += 1;
|
|
1003
|
+
}
|
|
1004
|
+
const spotsInPEMGGroup = cloneDeep(arr.filter((n) => n.groupId === arr[i].groupId));
|
|
1005
|
+
for (let k = 1; k < diffSpotTypeInPEMGGroup.length; k++) {
|
|
1006
|
+
const PESpotsIndex = spotsInPEMGGroup?.findIndex((n) => n.spotType === diffSpotTypeInPEMGGroup[k]);
|
|
1007
|
+
const countOfPESpots = spotsInPEMGGroup.filter((n) => n.spotType === diffSpotTypeInPEMGGroup[k]).length;
|
|
1008
|
+
const MGSpotsIndex = i + PESpotsIndex;
|
|
1009
|
+
arr[MGSpotsIndex].hidespotTypeTd = false;
|
|
1010
|
+
arr[MGSpotsIndex].hideofferIdTd = true;
|
|
1011
|
+
arr[MGSpotsIndex].hidelastActionByTd = true;
|
|
1012
|
+
arr[MGSpotsIndex].spotTypeRowspan = countOfPESpots;
|
|
1013
|
+
arr[MGSpotsIndex].offerIdRowspan = countOfPESpots;
|
|
1014
|
+
arr[MGSpotsIndex].lastActionByRowspan = countOfPESpots;
|
|
1015
|
+
arr[i].hidespotTypeTd = false;
|
|
1016
|
+
arr[i].hideofferIdTd = false;
|
|
1017
|
+
arr[i].hidelastActionByTd = false;
|
|
1018
|
+
const diffStatusGtClass = arr[MGSpotsIndex].spotType === "ADU" ? " status-align-top-adu" : " status-align-top";
|
|
1019
|
+
arr[MGSpotsIndex].gtClass =
|
|
1020
|
+
countOfPESpots > 1 ? arr[MGSpotsIndex].gtClass + diffStatusGtClass : arr[MGSpotsIndex].gtClass;
|
|
1021
|
+
}
|
|
1022
|
+
i = j - 1;
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
return arr;
|
|
1026
|
+
}
|
|
1027
|
+
setActionColumnRadioConfig(spot) {
|
|
1028
|
+
if (spot.allowedAction) {
|
|
1029
|
+
const radioButtons = Object.keys(spot.allowedAction);
|
|
1030
|
+
// if rejectActionComment is not set then override with sellerOfferComments.
|
|
1031
|
+
// if (spot.sellerOfferOrRejectComments?.length) {
|
|
1032
|
+
// if (spot.selectedAction === "reject" && !spot.rejectActionComment?.length) {
|
|
1033
|
+
// spot.rejectActionComment = cloneDeep(spot.sellerOfferOrRejectComments);
|
|
1034
|
+
// }
|
|
1035
|
+
// // if (spot.selectedAction === "credit" && !spot.markForCreditComment?.length) {
|
|
1036
|
+
// // spot.markForCreditComment = cloneDeep(spot.sellerOfferOrRejectComments?.[0]);
|
|
1037
|
+
// // }
|
|
1038
|
+
// }
|
|
1039
|
+
const RadioButtonConfig = [];
|
|
1040
|
+
radioButtons.forEach((button) => {
|
|
1041
|
+
const commentIcon = this.getCommentIconWhichComeInPopup(spot, button);
|
|
1042
|
+
const icons = [];
|
|
1043
|
+
if (commentIcon && commentIcon !== "") {
|
|
1044
|
+
icons.push({
|
|
1045
|
+
class: commentIcon,
|
|
1046
|
+
name: (button === "Reject" && (!spot.rejectActionComment || spot.rejectActionComment?.length === 0) && spot.sellerCancellationComment) ?
|
|
1047
|
+
"sellerCancellationComment" : "actionComment",
|
|
1048
|
+
});
|
|
1049
|
+
}
|
|
1050
|
+
if (button === "Reject" && spot.sellerCancellationComment && icons.filter(n => n.name === "sellerCancellationComment")?.length === 0) {
|
|
1051
|
+
icons.push({
|
|
1052
|
+
class: "mdi mdi-comment-quote-outline",
|
|
1053
|
+
name: "sellerCancellationComment",
|
|
1054
|
+
});
|
|
1055
|
+
}
|
|
1056
|
+
RadioButtonConfig.push({
|
|
1057
|
+
value: this.allOffersListingService.getRadioButtonValue(button),
|
|
1058
|
+
isDisabled: true,
|
|
1059
|
+
label: this.allOffersListingService.getRadioButtonLabelDisplay(button),
|
|
1060
|
+
class: this.allOffersListingService.getRadioButtonValue(button),
|
|
1061
|
+
icons,
|
|
1062
|
+
tooltipMessage: this.getUndoOrCancelOrReofferedByMessage(spot, button),
|
|
1063
|
+
});
|
|
1064
|
+
});
|
|
1065
|
+
RadioButtonConfig[radioButtons.length - 1].class =
|
|
1066
|
+
`${RadioButtonConfig[radioButtons.length - 1].class} margin-bottom-zero`;
|
|
1067
|
+
spot.RadioButtonConfig = cloneDeep(RadioButtonConfig);
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
checkIsSelectedAction(spot, button) {
|
|
1071
|
+
if (spot.selectedAction === "credit" && button === "MarkForCredit") {
|
|
1072
|
+
return true;
|
|
1073
|
+
}
|
|
1074
|
+
return spot.selectedAction.toLowerCase() === button.toLowerCase();
|
|
1075
|
+
}
|
|
1076
|
+
getCommentIconWhichComeInPopup(spot, button) {
|
|
1077
|
+
const isSelectedAction = this.checkIsSelectedAction(spot, button);
|
|
1078
|
+
if (!isSelectedAction)
|
|
1079
|
+
return null;
|
|
1080
|
+
const messageIcon = "mdi mdi-comment-quote-outline";
|
|
1081
|
+
if (spot.selectedAction === "approve" && spot.approveOfferComment) {
|
|
1082
|
+
return messageIcon;
|
|
1083
|
+
}
|
|
1084
|
+
else if (spot.selectedAction === "credit" && spot.markForCreditComment) {
|
|
1085
|
+
return messageIcon;
|
|
1086
|
+
}
|
|
1087
|
+
else if (spot.selectedAction === "reject") {
|
|
1088
|
+
// not check if comment is present because for auto rejection offers like seller timeout we want to show the icon
|
|
1089
|
+
// with no message
|
|
1090
|
+
return messageIcon;
|
|
1091
|
+
}
|
|
1092
|
+
return null;
|
|
1093
|
+
}
|
|
1094
|
+
getUndoOrCancelOrReofferedByMessage(spot, button) {
|
|
1095
|
+
let tooltipMsg = "";
|
|
1096
|
+
const isSelectedAction = this.checkIsSelectedAction(spot, button);
|
|
1097
|
+
if (isSelectedAction) {
|
|
1098
|
+
if (spot.cancelledBy) {
|
|
1099
|
+
tooltipMsg = `This offer was cancelled by ${spot.cancelledBy}.`;
|
|
1100
|
+
}
|
|
1101
|
+
else if (spot.reOfferBy) {
|
|
1102
|
+
tooltipMsg = `This offer was reoffered by ${spot.reOfferBy}.`;
|
|
1103
|
+
}
|
|
1104
|
+
if (spot.reofferComment) {
|
|
1105
|
+
tooltipMsg += ` Reoffer comment: ${spot.reofferComment}.`;
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
return tooltipMsg;
|
|
1109
|
+
}
|
|
1110
|
+
radioButtonMessageIconClicked(event) {
|
|
1111
|
+
let actionRadioButtonComment = null;
|
|
1112
|
+
if (event.iconName && event.iconName === "sellerCancellationComment") {
|
|
1113
|
+
this.openSellerCancellationCommentPopup(event.data);
|
|
1114
|
+
return;
|
|
1115
|
+
}
|
|
1116
|
+
switch (event.data.selectedAction) {
|
|
1117
|
+
case "reject":
|
|
1118
|
+
this.openOfferRejectionReasonAndCommentModal(event.data, false);
|
|
1119
|
+
break;
|
|
1120
|
+
case "credit":
|
|
1121
|
+
case "approve":
|
|
1122
|
+
this.actionCommentPopupTitle =
|
|
1123
|
+
event.data.selectedAction === "credit" ? "Credit Offer Comment" : "Approve Offer Comment";
|
|
1124
|
+
if (event.data.selectedAction === "credit" && event.data.markForCreditComment) {
|
|
1125
|
+
actionRadioButtonComment = event.data.markForCreditComment;
|
|
1126
|
+
}
|
|
1127
|
+
else if (event.data.selectedAction === "approve" && event.data.approveOfferComment) {
|
|
1128
|
+
actionRadioButtonComment = event.data.approveOfferComment;
|
|
1129
|
+
}
|
|
1130
|
+
this.actionCommentsModal?.closeModal();
|
|
1131
|
+
this.actionCommentsModal?.openModal(event.data, actionRadioButtonComment);
|
|
1132
|
+
break;
|
|
1133
|
+
default:
|
|
1134
|
+
break;
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
openSellerCancellationCommentPopup(rowData) {
|
|
1138
|
+
this.actionCommentPopupTitle = "Cancel Offer Comment";
|
|
1139
|
+
this.actionCommentsModal?.closeModal();
|
|
1140
|
+
this.actionCommentsModal?.openModal(rowData, rowData.sellerCancellationComment, "");
|
|
1141
|
+
}
|
|
1142
|
+
openOfferRejectionReasonAndCommentModal(data, revertToApproveIfCancelClickedInPopup) {
|
|
1143
|
+
this.rowDataForRejectionPopup = data;
|
|
1144
|
+
this.rejectionPopupData = {
|
|
1145
|
+
showActionInRejectionPopup: data.showActionInRejectionPopup,
|
|
1146
|
+
allowActionInRejectionPopup: data.allowActionInRejectionPopup,
|
|
1147
|
+
rejectActionComment: data.rejectActionComment,
|
|
1148
|
+
excludeFromFutureOffers: data.excludeFromFutureOffers,
|
|
1149
|
+
rejectionHeader: data.rejectionHeader || "Reject Offers",
|
|
1150
|
+
};
|
|
1151
|
+
this.spotTypeForRejectionPoup = data.spotType;
|
|
1152
|
+
this.offerRejectionPossibleReasons = this.allOffersListingService.getAllRejectionReasons();
|
|
1153
|
+
setTimeout(() => {
|
|
1154
|
+
this.offerRejectionModal?.setRevertToApproveIfCancelClickedInPopup(revertToApproveIfCancelClickedInPopup);
|
|
1155
|
+
}, 0);
|
|
1156
|
+
}
|
|
1157
|
+
handleFilteringAndSortingOfData() {
|
|
1158
|
+
if (this.filtersFromRoute?.metricText) {
|
|
1159
|
+
this.selectedMetricType = this.metricTypeList.filter((metric) => metric.text === this.filtersFromRoute.metricText)[0];
|
|
1160
|
+
}
|
|
1161
|
+
else {
|
|
1162
|
+
this.selectedMetricType = this.metricTypeList.filter((metric) => metric.text === this.orderDefaultMetricType)[0];
|
|
1163
|
+
}
|
|
1164
|
+
this.annaSortService.columnSortState = this.filtersFromRoute?.sortState
|
|
1165
|
+
? new Map(JSON.parse(this.filtersFromRoute.sortState))
|
|
1166
|
+
: new Map();
|
|
1167
|
+
this.annaFilterService.updateStateOfAllTheKeys(this.annaSortService.columnSortState);
|
|
1168
|
+
this.allOffersTableData = this.annaFilterService.filterData(this.clonedAllOffersTableData, "");
|
|
1169
|
+
this.annaSortService.noSortingAppliedData = cloneDeep(this.allOffersTableData);
|
|
1170
|
+
this.callSort();
|
|
1171
|
+
this.enabledisableResetAllFilter();
|
|
1172
|
+
this.createTotalRowData();
|
|
1173
|
+
}
|
|
1174
|
+
callSort() {
|
|
1175
|
+
this.annaSortService.columnSortState.forEach((value, key) => {
|
|
1176
|
+
if (value === "ASC") {
|
|
1177
|
+
this.allOffersTableData = this.annaSortService.sortDataForComponentOtherThanLurAndCsrPage(true, this.allOffersTableData, key);
|
|
1178
|
+
}
|
|
1179
|
+
else if (value === "DESC") {
|
|
1180
|
+
this.allOffersTableData = this.annaSortService.sortDataForComponentOtherThanLurAndCsrPage(false, this.allOffersTableData, key);
|
|
1181
|
+
}
|
|
1182
|
+
});
|
|
1183
|
+
}
|
|
1184
|
+
easyFilterClicked(emittedObj) {
|
|
1185
|
+
this.nonEditableGTComponent.setScrollToInitialPosition();
|
|
1186
|
+
this.allOffersTableData = emittedObj.filteredData;
|
|
1187
|
+
this.createTotalRowData();
|
|
1188
|
+
this.enabledisableResetAllFilter();
|
|
1189
|
+
this.updateNavigationHistory();
|
|
1190
|
+
}
|
|
1191
|
+
enabledisableResetAllFilter() {
|
|
1192
|
+
let isSortApplied = false;
|
|
1193
|
+
this.annaSortService.columnSortState.forEach((val, key) => {
|
|
1194
|
+
if (val === "ASC" || val === "DESC") {
|
|
1195
|
+
isSortApplied = true;
|
|
1196
|
+
}
|
|
1197
|
+
});
|
|
1198
|
+
this.disableResetAllFilter = this.annaFilterService.appliedFiltersArray.length === 0 && !isSortApplied;
|
|
1199
|
+
}
|
|
1200
|
+
applyFilters() {
|
|
1201
|
+
this.allOffersTableData = this.annaFilterService.filterData(this.clonedAllOffersTableData, "");
|
|
1202
|
+
this.annaFilterService.updateStateOfTheCurrentFilterTab(new Map());
|
|
1203
|
+
this.createTotalRowData();
|
|
1204
|
+
this.enabledisableResetAllFilter();
|
|
1205
|
+
this.updateNavigationHistory();
|
|
1206
|
+
}
|
|
1207
|
+
clearAllFilter() {
|
|
1208
|
+
this.selectedMetricType = this.metricTypeList.find((metric) => metric.text === this.orderDefaultMetricType);
|
|
1209
|
+
this.nonEditableGTComponent?.setScrollToInitialPosition();
|
|
1210
|
+
this.annaFilterService.tooltipSelectedMap = new Map();
|
|
1211
|
+
this.annaFilterService.selectedRadio = null;
|
|
1212
|
+
this.annaFilterService.appliedFiltersArray = [];
|
|
1213
|
+
this.annaSortService.columnSortState = new Map();
|
|
1214
|
+
this.enabledisableResetAllFilter();
|
|
1215
|
+
this.allOffersTableData = cloneDeep(this.formatResponseForGenericTable(this.clonedAllOffersTableData));
|
|
1216
|
+
this.createTotalRowData();
|
|
1217
|
+
this.setTableHeader(false);
|
|
1218
|
+
this.performActionOnQueryParamChange = false;
|
|
1219
|
+
this.modifyQueryParam("filters", "DELETE");
|
|
1220
|
+
this.modifyQueryParam("breadcrumbs", "DELETE");
|
|
1221
|
+
const latestFilter = this.getLatestFilters();
|
|
1222
|
+
if (latestFilter) {
|
|
1223
|
+
this.router.navigate([], {
|
|
1224
|
+
queryParams: latestFilter,
|
|
1225
|
+
});
|
|
1226
|
+
}
|
|
1227
|
+
else {
|
|
1228
|
+
this.router.navigate([]);
|
|
1229
|
+
}
|
|
1230
|
+
this.annaSortService.noSortingAppliedData = cloneDeep(this.clonedAllOffersTableData);
|
|
1231
|
+
this.annaFilterService.updateStateOfAllTheKeys(this.annaSortService.columnSortState);
|
|
1232
|
+
}
|
|
1233
|
+
getLatestFilters() {
|
|
1234
|
+
return this.filtersFromRoute;
|
|
1235
|
+
}
|
|
1236
|
+
setLatestFilters(queryParams) {
|
|
1237
|
+
this.filtersFromRoute = queryParams;
|
|
1238
|
+
}
|
|
1239
|
+
updateNavigationHistory() {
|
|
1240
|
+
this.performActionOnQueryParamChange = false;
|
|
1241
|
+
const queryParams = this.prepareQueryParamOnFilterApplication();
|
|
1242
|
+
if (Object.keys(queryParams).length > 0) {
|
|
1243
|
+
this.router.navigate([], {
|
|
1244
|
+
queryParams,
|
|
1245
|
+
});
|
|
1246
|
+
}
|
|
1247
|
+
else {
|
|
1248
|
+
this.router.navigate([]);
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
prepareQueryParamOnFilterApplication() {
|
|
1252
|
+
const newFilters = {};
|
|
1253
|
+
// Column level filter
|
|
1254
|
+
if (this.annaFilterService.appliedFiltersArray.length > 0) {
|
|
1255
|
+
newFilters.appliedFilters = this.annaFilterService.appliedFiltersArray;
|
|
1256
|
+
newFilters.selectedFilterData = JSON.stringify(Array.from(this.annaFilterService.tooltipSelectedMap));
|
|
1257
|
+
// newFilters.easyFilter = this.selectedEasyFilter ? this.selectedEasyFilter.text : null;
|
|
1258
|
+
}
|
|
1259
|
+
// Column level sorting
|
|
1260
|
+
if (this.annaGtService.isSortingAppliedToTable()) {
|
|
1261
|
+
newFilters.sortState = JSON.stringify(Array.from(this.annaSortService.columnSortState));
|
|
1262
|
+
}
|
|
1263
|
+
if (this.selectedMetricType?.text !== this.orderDefaultMetricType) {
|
|
1264
|
+
newFilters.metricText = this.selectedMetricType?.text;
|
|
1265
|
+
}
|
|
1266
|
+
const existingParentQueryParams = this.queryParams ? cloneDeep(this.queryParams) : {};
|
|
1267
|
+
if (Object.keys(newFilters).length > 0) {
|
|
1268
|
+
const hashedQueryParams = this.persistingFilterService.storeKeyValueInLocalStorage(newFilters);
|
|
1269
|
+
this.annaGtService.updateQueryParamsFilter("filters", hashedQueryParams, "ADD", existingParentQueryParams);
|
|
1270
|
+
}
|
|
1271
|
+
else {
|
|
1272
|
+
this.annaGtService.updateQueryParamsFilter("filters", {}, "DELETE", existingParentQueryParams);
|
|
1273
|
+
}
|
|
1274
|
+
return existingParentQueryParams;
|
|
1275
|
+
}
|
|
1276
|
+
resetSorting() {
|
|
1277
|
+
this.annaSortService.columnSortState = new Map();
|
|
1278
|
+
}
|
|
1279
|
+
modifyQueryParam(key, operation, value) {
|
|
1280
|
+
// Fetching latest filters
|
|
1281
|
+
let latestFilter = this.getLatestFilters();
|
|
1282
|
+
latestFilter = latestFilter || {};
|
|
1283
|
+
// Perform Operation on the latestFilter
|
|
1284
|
+
if (operation === "ADD") {
|
|
1285
|
+
latestFilter[key] = value;
|
|
1286
|
+
}
|
|
1287
|
+
else if (operation === "DELETE") {
|
|
1288
|
+
delete latestFilter[key];
|
|
1289
|
+
}
|
|
1290
|
+
this.setLatestFilters(Object.keys(latestFilter).length > 0 ? latestFilter : null);
|
|
1291
|
+
}
|
|
1292
|
+
updateLatestFilters(queryParams) {
|
|
1293
|
+
const latestFilters = this.getLatestFilters();
|
|
1294
|
+
const updatedQueryParams = Object.keys(queryParams).length === 0 ? null : queryParams;
|
|
1295
|
+
if (!isEqual(updatedQueryParams, latestFilters)) {
|
|
1296
|
+
this.setLatestFilters(cloneDeep(updatedQueryParams));
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
setMetricConfig() {
|
|
1300
|
+
this.metricDropdownConfig = { ...this.annaGlobalConfig.defaultSingleSelectConfig };
|
|
1301
|
+
this.metricDropdownConfig.placeholder = "No data found";
|
|
1302
|
+
}
|
|
1303
|
+
ngOnDestroy() {
|
|
1304
|
+
// This aborts all HTTP requests with takeUntil pipe when navigated to some other page.
|
|
1305
|
+
this.ngUnsubscribe.next();
|
|
1306
|
+
this.ngUnsubscribe.complete();
|
|
1307
|
+
}
|
|
1308
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AllOffersListingComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i0.ChangeDetectorRef }, { token: i2.ToastrService }, { token: i3.NgbModal }, { token: i4.AnnaSortService }, { token: i4.AnnaGtHelperService }, { token: i4.AnnaFilterService }, { token: i4.AnnaGlobalConfigService }, { token: i4.AnnaPersistingFilterService }, { token: AllOffersListingService }, { token: i6.CalendarQuarterYearFilterService }, { token: ALL_OFFERS_LISTING_SERVICE_TOKEN }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1309
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: AllOffersListingComponent, isStandalone: true, selector: "anna-feature-all-offers-listing", inputs: { stationId: "stationId", orderId: "orderId", userType: "userType", persistingFilterPeriodData: "persistingFilterPeriodData", primaryOrderData: "primaryOrderData", queryParams: "queryParams", orderDefaultMetricType: "orderDefaultMetricType" }, viewQueries: [{ propertyName: "nonEditableGTComponent", first: true, predicate: AnnaNonEditableGenericTableComponent, descendants: true }, { propertyName: "actionCommentsModal", first: true, predicate: ["actionCommentsModal"], descendants: true }, { propertyName: "offerRejectionModal", first: true, predicate: ["offerRejectionReasonAndCommentModal"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"period-and-metric-filter\">\n <anna-design-order-container-filter-modal\n *ngIf=\"flightPeriodData\"\n [title]=\"'Edit Period'\"\n [selectedData]=\"persistingFilterPeriodData\"\n [flightPeriod]=\"flightPeriodData\"\n [message]=\"'Select period for which you want to view the offers for.'\"\n [PeriodOptions]=\"PeriodOptions\"\n [startDateConsideringFactor]=\"startDateConsideringFactor\"\n [parentQueryParams]=\"queryParams\"\n [defaultPeriodSelection]=\"'Week'\"\n [disablePeriodSelection]=\"periodFilterLoader || noPeriodFilterFound\"\n [EntireRangeSelectionMessage]=\"EntireRangeSelectionMessage\"\n (apply)=\"applyPeriodSelection($event)\"\n [removeQuarterSelectionsIfOnlyOneQuarter]=\"true\"\n >\n </anna-design-order-container-filter-modal>\n\n <anna-design-skt-loader\n *ngIf=\"!flightPeriodData\"\n [count]=\"1\"\n [theme]=\"{\n height: '24px',\n width: '280px',\n margin: '11px 0 0 0',\n display: 'inline-block'\n }\"\n >\n </anna-design-skt-loader>\n\n <anna-design-single-select\n *ngIf=\"!showSkeletonLoading && selectedMetricType\"\n [items]=\"metricTypeList\"\n class=\"order-metrics-dropdown\"\n [selectedItem]=\"selectedMetricType\"\n [config]=\"metricDropdownConfig\"\n [disabled]=\"showSkeletonLoading || allOffersTableData?.length === 0\"\n (valueChanged)=\"metricChanged($event)\"\n >\n </anna-design-single-select>\n</div>\n\n<div class=\"d-flex easy-reset-container\">\n <anna-design-easy-filters\n [showLoader]=\"showSkeletonLoading\"\n [numberOfItemsForLoader]=\"numberOfEasyFilterLoader\"\n [easyFilters]=\"easyFilters\"\n [tableData]=\"allOffersTableData\"\n [clonedTableData]=\"clonedAllOffersTableData\"\n (easyFilterClickEvent)=\"easyFilterClicked($event)\"\n >\n </anna-design-easy-filters>\n\n <button\n *ngIf=\"!showSkeletonLoading || !selectedMetricType\"\n class=\"clear-all-btn\"\n (click)=\"clearAllFilter()\"\n [disabled]=\"disableResetAllFilter\"\n >\n Reset all filters\n </button>\n</div>\n\n<anna-core-non-editable-generic-table-lib\n class=\"order-listing-generic-table all-offers-listing-table {{ userType }}\"\n [ngClass]=\"{\n 'no-data-table': !showSkeletonLoading && allOffersTableData && allOffersTableData?.length === 0,\n 'loading-state': showSkeletonLoading\n }\"\n [showSkeletonLoading]=\"showSkeletonLoading\"\n [tableHeaders]=\"tableHeaders\"\n [tableData]=\"allOffersTableData\"\n [clonedTableData]=\"clonedAllOffersTableData\"\n [gtGeneralConfig]=\"gtGeneralConfig\"\n [includeBorderInTableHeight]=\"false\"\n [gtDimension]=\"gtDimension\"\n [clickableRow]=\"false\"\n [showOrHideToggleForTotalRow]=\"false\"\n [tdsHaveRowSpan]=\"true\"\n [hideSomeTds]=\"true\"\n (filterAppliedToTable)=\"filterAppliedToTable($event)\"\n (sortingAppliedToTable)=\"sortingAppliedToTable($event)\"\n (radioButtonMessageIconClicked)=\"radioButtonMessageIconClicked($event)\"\n [tableBorderBottomClassRequired]=\"false\"\n>\n</anna-core-non-editable-generic-table-lib>\n\n<!-- MODALS -->\n<anna-feature-action-comments-popup\n #actionCommentsModal\n [title]=\"actionCommentPopupTitle\"\n [allowEdit]=\"false\"\n>\n</anna-feature-action-comments-popup>\n\n<anna-feature-offer-rejection-popup\n #offerRejectionReasonAndCommentModal\n [rejectionPopupData]=\"rejectionPopupData\"\n [spotType]=\"spotTypeForRejectionPoup\"\n [isSubmitCommentButtonEnabled]=\"false\"\n [offerRjectionPossibleReasons]=\"offerRejectionPossibleReasons\"\n>\n</anna-feature-offer-rejection-popup>\n", styles: [":host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .scroll-left-shadow-effect:not(.no-data-table) td:nth-of-type(14){filter:drop-shadow(2px 0 1px #d4d4d4)}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .scroll-left-shadow-effect:not(.no-data-table) .total-row td:nth-of-type(0){filter:drop-shadow(2px 0 2px #d4d4d4)}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td{top:40px!important;padding:2px 8px;background:#fff;position:sticky;position:-webkit-sticky}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td .upper-label{font-family:Roboto;font-size:var(--table-body-fs);font-weight:700;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#4a4a4a}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td .lower-label{font-family:Roboto;font-size:var(--table-body-fs);font-weight:700;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#a7a7a7;margin-top:-3px}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td br{display:block;content:\"\";margin-top:-6px}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td:nth-of-type(1){box-shadow:inset 1px 0 #000000bf,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td:nth-of-type(2){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td:nth-of-type(3){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td:nth-of-type(4){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td:nth-of-type(5){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td:nth-of-type(6){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td:nth-of-type(7){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td:nth-of-type(8){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td:nth-of-type(9){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td:nth-of-type(10){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td:nth-of-type(11){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td:nth-of-type(12){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td:nth-of-type(13){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td:nth-of-type(14){box-shadow:inset -1px 0 #000000bf,inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td{cursor:pointer;background:#fff;box-shadow:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td div:nth-child(1){color:#000;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-family:Roboto;font-size:var(--table-body-fs);font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:0px}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td div:nth-child(2){color:#a7a7a7;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-family:Roboto;font-size:var(--table-body-fs);font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:0px}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td:nth-of-type(1){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td:nth-of-type(2){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td:nth-of-type(3){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td:nth-of-type(4){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td:nth-of-type(5){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td:nth-of-type(6){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td:nth-of-type(7){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td:nth-of-type(8){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td:nth-of-type(9){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td:nth-of-type(10){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td:nth-of-type(11){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td:nth-of-type(12){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td:nth-of-type(13){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td:nth-of-type(14){box-shadow:inset 1px 0 #d4d4d4,inset -1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .scroll-left-shadow-effect:not(.no-data-table) td:nth-of-type(12){filter:drop-shadow(2px 0 1px #d4d4d4)}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .scroll-left-shadow-effect:not(.no-data-table) .total-row td:nth-of-type(0){filter:drop-shadow(2px 0 2px #d4d4d4)}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td{top:40px!important;padding:2px 8px;background:#fff;position:sticky;position:-webkit-sticky}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td .upper-label{font-family:Roboto;font-size:var(--table-body-fs);font-weight:700;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#4a4a4a}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td .lower-label{font-family:Roboto;font-size:var(--table-body-fs);font-weight:700;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#a7a7a7;margin-top:-3px}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td br{display:block;content:\"\";margin-top:-6px}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td:nth-of-type(1){box-shadow:inset 1px 0 #000000bf,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td:nth-of-type(2){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td:nth-of-type(3){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td:nth-of-type(4){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td:nth-of-type(5){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td:nth-of-type(6){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td:nth-of-type(7){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td:nth-of-type(8){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td:nth-of-type(9){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td:nth-of-type(10){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td:nth-of-type(11){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td:nth-of-type(12){box-shadow:inset -1px 0 #000000bf,inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td{cursor:pointer;background:#fff;box-shadow:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td div:nth-child(1){color:#000;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-family:Roboto;font-size:var(--table-body-fs);font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:0px}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td div:nth-child(2){color:#a7a7a7;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-family:Roboto;font-size:var(--table-body-fs);font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:0px}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td:nth-of-type(1){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td:nth-of-type(2){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td:nth-of-type(3){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td:nth-of-type(4){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td:nth-of-type(5){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td:nth-of-type(6){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td:nth-of-type(7){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td:nth-of-type(8){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td:nth-of-type(9){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td:nth-of-type(10){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td:nth-of-type(11){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td:nth-of-type(12){box-shadow:inset 1px 0 #d4d4d4,inset -1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER thead th.mat-column-selectedAction{box-shadow:inset -1px 0 #d4d4d4,inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td.mat-column-selectedAction{box-shadow:inset 1px 0 #d4d4d4,inset -1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .table-container::-webkit-scrollbar-track{margin-top:calc(105px - var(--hide-total-row-scrollbar-offset));margin-left:0}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .scroll-left-shadow-effect .header-row th:nth-of-type(0){border:none!important;filter:drop-shadow(2px 0 0px #d4d4d4)}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row{background:#ededed}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th{box-shadow:none!important;cursor:default;background:#ededed;padding:2px 8px;line-height:normal;position:sticky;position:-webkit-sticky;top:0}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th .upper-label{font-family:Roboto;font-size:var(--table-header-fs);font-weight:700;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#4a4a4a;margin-bottom:0}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th .lower-label{font-family:Roboto;font-size:var(--table-header-fs);font-weight:700;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#a7a7a7;margin-bottom:0}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th div.row{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;width:max-content}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th div.dummy-header{justify-content:center;margin-left:50%!important;margin-right:50%!important;width:-webkit-fill-available}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th div.sort-filter-container{display:flex;flex-wrap:nowrap;align-items:center;margin-left:.25rem;margin-right:auto}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th span.mdi-filter-variant{font-size:13px!important;top:-1px!important;position:relative}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th:nth-of-type(1){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th:nth-of-type(2){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th:nth-of-type(3){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th:nth-of-type(4){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th:nth-of-type(5){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th:nth-of-type(6){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th:nth-of-type(7){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th:nth-of-type(8){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th:nth-of-type(9){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th:nth-of-type(10){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th:nth-of-type(11){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th:nth-of-type(12){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th:nth-of-type(13){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th:nth-of-type(14){box-shadow:inset -1px 0 #d4d4d4,inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .table-container.no-data-table>div{height:128px!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .table-container.no-data-table>div tr td{filter:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:first-of-type td:nth-of-type(1){box-shadow:inset 1px 0 #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:first-of-type td:nth-of-type(2){box-shadow:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:first-of-type td:nth-of-type(3){box-shadow:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:first-of-type td:nth-of-type(4){box-shadow:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:first-of-type td:nth-of-type(5){box-shadow:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:first-of-type td:nth-of-type(6){box-shadow:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:first-of-type td:nth-of-type(7){box-shadow:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:first-of-type td:nth-of-type(8){box-shadow:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:first-of-type td:nth-of-type(9){box-shadow:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:first-of-type td:nth-of-type(10){box-shadow:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:first-of-type td:nth-of-type(11){box-shadow:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:first-of-type td:nth-of-type(12){box-shadow:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:first-of-type td:nth-of-type(13){box-shadow:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:first-of-type td:nth-of-type(14){box-shadow:inset -1px 0 #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:last-of-type td:nth-of-type(1){box-shadow:inset 1px -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:last-of-type td:nth-of-type(2){box-shadow:inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:last-of-type td:nth-of-type(3){box-shadow:inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:last-of-type td:nth-of-type(4){box-shadow:inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:last-of-type td:nth-of-type(5){box-shadow:inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:last-of-type td:nth-of-type(6){box-shadow:inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:last-of-type td:nth-of-type(7){box-shadow:inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:last-of-type td:nth-of-type(8){box-shadow:inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:last-of-type td:nth-of-type(9){box-shadow:inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:last-of-type td:nth-of-type(10){box-shadow:inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:last-of-type td:nth-of-type(11){box-shadow:inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:last-of-type td:nth-of-type(12){box-shadow:inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:last-of-type td:nth-of-type(13){box-shadow:inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:last-of-type td:nth-of-type(14){box-shadow:inset -1px -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .table-container#generic-table-conatiner::-webkit-scrollbar-track{margin-top:40px!important;margin-right:150px!important;margin-left:262px!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .table-container#generic-table-conatiner .horizontal-scroll-for-table-container{max-height:fit-content!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .table-container#generic-table-conatiner .horizontal-scroll-for-table-container table thead tr th ngx-skeleton-loader div{margin-bottom:4px!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .table-container#generic-table-conatiner .horizontal-scroll-for-table-container table thead tr th:nth-child(1),:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .table-container#generic-table-conatiner .horizontal-scroll-for-table-container table tbody tr td.mat-column-offerId{position:sticky!important;filter:drop-shadow(2px 0 2px #d4d4d4)!important;left:0!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .table-container#generic-table-conatiner .horizontal-scroll-for-table-container table tbody tr td.mat-column-offerId{z-index:205!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .table-container#generic-table-conatiner .horizontal-scroll-for-table-container table thead tr th:nth-child(1){z-index:505!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .table-container#generic-table-conatiner tbody tr td anna-core-icon-column{float:right!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .table-container#generic-table-conatiner .horizontal-scroll-for-table-container{max-height:calc(100vh - 297px)!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.no-data-table .table-container#generic-table-conatiner{border-left:none!important;height:fit-content!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.no-data-table .table-container#generic-table-conatiner tbody tr td.mat-column-offerId{filter:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.no-data-table .table-container#generic-table-conatiner tbody tr.no-border-tr td:nth-of-type(1){filter:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.no-data-table .table-container#generic-table-conatiner tbody tr td:nth-last-child(1).mat-column-selectedAction{filter:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.no-data-table .table-container#generic-table-conatiner tbody tr:first-of-type td:last-of-type{box-shadow:inset -1px 0 #d4d4d4,inset 0 0 #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.no-data-table .table-container#generic-table-conatiner tbody tr:last-of-type td:last-of-type{box-shadow:inset 0 -1px #d4d4d4,inset -1px 0 #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table thead .header-row th.mat-column-offerId:nth-of-type(1){box-shadow:inset 1px 1px #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important;filter:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table thead th.mat-column-selectedAction{z-index:501!important;position:sticky!important;right:0!important;filter:drop-shadow(0px 0 3px #d4d4d4)!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr td.mat-column-offerId:nth-of-type(1){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.redcolor-cell-border td.mat-column-rate{outline:1px solid #f44336!important;outline-offset:-1px!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.orangecolor-cell-border td.mat-column-ratingOrImps{outline:1px solid #f97b07!important;outline-offset:-1px!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.orangecolor-cell-border td.mat-column-ratingOrImps i.mdi.mdi-information-outline{margin-left:4px;float:right!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr td.mat-column-selectedAction{position:sticky!important;right:0!important;z-index:199!important;filter:drop-shadow(0px 0 3px #d4d4d4)!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag{color:#fff;display:inline-block;padding:2px 6px;font-weight:700;line-height:14.06px;border-radius:2px;background-color:gray}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.seller-pending,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.rep-entry-in-progress,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.seller-reconfirm,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.wot-entry-in-progress,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.confirm-in-progress,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.recall-in-progress{background-color:#f3bd18}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.seller-approved,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.buyer-approved,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.sm-approved,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.confirmed,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.user-confirmed,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.user-edited-and-confirmed,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.user-edited{background-color:#00c853}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.seller-rejected,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.rep-entry-failed,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.buyer-rejected,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.wot-entry-failed,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.sm-rejected,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.cancelled,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.seller-cancelled,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.auto-cancelled-log-closure,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.cancel-in-progress-log-closure,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.cancel-failed-log-closure,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.auto-rejected-log-closure,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.user-cancelled,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.user-edited-and-cancelled,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.user-stn-cancelled{background-color:#f31818}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.seller-reconfirm-timedout,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.buyer-timedout,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.sm-pending,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.cancel-in-progress{background-color:#f36618}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.buyer-pending{background-color:#208be1}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.seller-reconfirmed,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.recalled{background-color:#bd18f3}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.os-spots{background-color:#a2a8ad}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr td.mat-column-offerId div:last-of-type{font-style:italic;color:#a7a7a7}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr td mat-radio-group mat-radio-button .mdc-form-field>label{left:0!important;margin-right:4px!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .mdi.mdi-comment-quote-outline{cursor:pointer!important;margin-right:4px;position:relative;color:var(--primary-blue-color)}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr input+label{position:relative;top:-3px;margin:0 4px}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .mi.mdi-info-outline{color:var(--primary-blue-color);top:1px;position:relative}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr td{cursor:default!important}.easy-reset-container{margin:8px 0}.easy-reset-container button.clear-all-btn{padding:0;border:none;display:block;text-align:right;width:fit-content;background-color:transparent;text-decoration:underline;color:#268bff;line-height:1!important;font-size:var(--reset-all-filter-fs)!important;letter-spacing:normal!important;font-weight:400!important;margin:8px 0 0 auto;cursor:pointer!important}.easy-reset-container button.clear-all-btn:hover:enabled{color:#268bff}.easy-reset-container button.clear-all-btn:disabled{color:#4a4a4a;opacity:.5;cursor:not-allowed}.period-and-metric-filter{display:flex;justify-content:space-between;align-items:flex-end}.period-and-metric-filter .order-metrics-dropdown{width:114px}:host ::ng-deep ngx-skeleton-loader .skeleton-loader{margin-top:2px!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i7.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: AnnaCoreModule }, { kind: "component", type: i4.AnnaNonEditableGenericTableComponent, selector: "anna-core-non-editable-generic-table-lib", inputs: ["showSkeletonLoading", "tableHeaders", "tableData", "clonedTableData", "gtGeneralConfig", "totalRowInfo", "gtDimension", "extraHeaderRowForAdjustingColumnWidths", "tableClass", "maximumRowsWhichCanBeRenderedWithoutScroll", "fixNumberOfRowsForPopup", "fixRowsToRender", "includeBorderInTableHeight", "downloadInProgress", "percentDone", "starredInProgress", "clickableRow", "setTableHeightWhenRowSizeIsFixed", "tableBorderBottomClassRequired", "hideSomeTds", "tdsHaveRowSpan", "multipleTablesPresent", "showOrHideToggleForTotalRow", "enableCustomizableColumns", "customizableColumnsList"], outputs: ["toggleCheckbox", "toggleRowCheckbox", "toggleHeaderCheckbox", "undoIconClicked", "filterAppliedToTable", "sortingAppliedToTable", "rowClicked", "radioButtonSelected", "columnFilterOpened", "columnFilterClosed", "gtIconClicked", "gtSVGIconClicked", "gtTextActionClicked", "gtViewDetailClicked", "gtInnerHTMLClicked", "downloadSpotDetails", "clickableDataClicked", "totalRowIconClicked", "notificationIconHover", "notificationIconHoverLeave", "editableInputEdited", "radioButtonMessageIconClicked", "statusNotePopupOpened", "textPopupOpened", "digitOnlyInputChanged", "singleSelectDropdownValueEmit", "timeSelected", "totalRowRadioButtonClicked", "totalRowRadioButtonIconClicked", "columnsCustomized", "acfiRateInputChanged", "acfiRateCopyRequested"] }, { kind: "ngmodule", type: AnnaFeatureLibModule }, { kind: "component", type: ActionCommentsPopupComponent, selector: "anna-feature-action-comments-popup", inputs: ["title", "allowEdit", "applyCloseButtonText"], outputs: ["commented", "userActed", "cancel"] }, { kind: "component", type: OfferRejectionPopupComponent, selector: "anna-feature-offer-rejection-popup", inputs: ["spotType", "rejectionHeader", "rejectionPopupData", "isSubmitCommentButtonEnabled", "offerRjectionPossibleReasons", "hideExcludePECheckbox"], outputs: ["apply", "cancel", "userActed"] }, { kind: "component", type: SkeletonLoaderComponent, selector: "anna-design-skt-loader", inputs: ["theme", "count"] }, { kind: "component", type: EasyFiltersComponent, selector: "anna-design-easy-filters", inputs: ["showLoader", "tableData", "clonedTableData", "autoSelectionOfOnlyEnabledFilter", "showUnsavedChangesPopup", "isUnSavedChangesPresent", "defaultFilterNameToBeSelected", "filterToBeUpdatedManually", "easyFilters", "numberOfItemsForLoader"], outputs: ["easyFilterClickEvent", "easyFilterIsSelected", "getUpdatedDataAfterUserAction"] }, { kind: "component", type: OrderContainerFilterModalComponent, selector: "anna-design-order-container-filter-modal", inputs: ["title", "flightPeriod", "message", "showEntireFilghtPeriodSelection", "showCalendarTypeSelection", "selectedData", "disablePeriodSelection", "startDateConsideringFactor", "parentQueryParams", "PeriodOptions", "disableBroadcast", "EntireRangeSelectionMessage", "disableFiscal", "removeQuarterSelectionsIfOnlyOneQuarter", "defaultPeriodSelection", "showAllInMonthsDropdown", "showAllInQuartersDropdown", "error"], outputs: ["initialQuarterStartEndDateEmitter", "apply"] }, { kind: "component", type: SingleSelectComponent, selector: "anna-design-single-select", inputs: ["config", "loading", "showAdditionalDataInSelectedText", "disabled", "items", "selectedItem", "keyToUseForDisplay", "keyToUseForCheckingSelectedItem", "hideDropdownArrow", "borderbottomObject", "defaultDropdownHeight", "itemsToHideInDropdownIds", "showClearSelection"], outputs: ["valueChanged", "dropdownClosedEvent", "dropdownOpenedEvent", "clearSelectionClickedEvent"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1310
|
+
}
|
|
1311
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AllOffersListingComponent, decorators: [{
|
|
1312
|
+
type: Component,
|
|
1313
|
+
args: [{ selector: "anna-feature-all-offers-listing", imports: [
|
|
1314
|
+
CommonModule,
|
|
1315
|
+
AnnaCoreModule,
|
|
1316
|
+
AnnaFeatureLibModule,
|
|
1317
|
+
ActionCommentsPopupComponent,
|
|
1318
|
+
OfferRejectionPopupComponent,
|
|
1319
|
+
SkeletonLoaderComponent,
|
|
1320
|
+
EasyFiltersComponent,
|
|
1321
|
+
OrderContainerFilterModalComponent,
|
|
1322
|
+
SingleSelectComponent,
|
|
1323
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"period-and-metric-filter\">\n <anna-design-order-container-filter-modal\n *ngIf=\"flightPeriodData\"\n [title]=\"'Edit Period'\"\n [selectedData]=\"persistingFilterPeriodData\"\n [flightPeriod]=\"flightPeriodData\"\n [message]=\"'Select period for which you want to view the offers for.'\"\n [PeriodOptions]=\"PeriodOptions\"\n [startDateConsideringFactor]=\"startDateConsideringFactor\"\n [parentQueryParams]=\"queryParams\"\n [defaultPeriodSelection]=\"'Week'\"\n [disablePeriodSelection]=\"periodFilterLoader || noPeriodFilterFound\"\n [EntireRangeSelectionMessage]=\"EntireRangeSelectionMessage\"\n (apply)=\"applyPeriodSelection($event)\"\n [removeQuarterSelectionsIfOnlyOneQuarter]=\"true\"\n >\n </anna-design-order-container-filter-modal>\n\n <anna-design-skt-loader\n *ngIf=\"!flightPeriodData\"\n [count]=\"1\"\n [theme]=\"{\n height: '24px',\n width: '280px',\n margin: '11px 0 0 0',\n display: 'inline-block'\n }\"\n >\n </anna-design-skt-loader>\n\n <anna-design-single-select\n *ngIf=\"!showSkeletonLoading && selectedMetricType\"\n [items]=\"metricTypeList\"\n class=\"order-metrics-dropdown\"\n [selectedItem]=\"selectedMetricType\"\n [config]=\"metricDropdownConfig\"\n [disabled]=\"showSkeletonLoading || allOffersTableData?.length === 0\"\n (valueChanged)=\"metricChanged($event)\"\n >\n </anna-design-single-select>\n</div>\n\n<div class=\"d-flex easy-reset-container\">\n <anna-design-easy-filters\n [showLoader]=\"showSkeletonLoading\"\n [numberOfItemsForLoader]=\"numberOfEasyFilterLoader\"\n [easyFilters]=\"easyFilters\"\n [tableData]=\"allOffersTableData\"\n [clonedTableData]=\"clonedAllOffersTableData\"\n (easyFilterClickEvent)=\"easyFilterClicked($event)\"\n >\n </anna-design-easy-filters>\n\n <button\n *ngIf=\"!showSkeletonLoading || !selectedMetricType\"\n class=\"clear-all-btn\"\n (click)=\"clearAllFilter()\"\n [disabled]=\"disableResetAllFilter\"\n >\n Reset all filters\n </button>\n</div>\n\n<anna-core-non-editable-generic-table-lib\n class=\"order-listing-generic-table all-offers-listing-table {{ userType }}\"\n [ngClass]=\"{\n 'no-data-table': !showSkeletonLoading && allOffersTableData && allOffersTableData?.length === 0,\n 'loading-state': showSkeletonLoading\n }\"\n [showSkeletonLoading]=\"showSkeletonLoading\"\n [tableHeaders]=\"tableHeaders\"\n [tableData]=\"allOffersTableData\"\n [clonedTableData]=\"clonedAllOffersTableData\"\n [gtGeneralConfig]=\"gtGeneralConfig\"\n [includeBorderInTableHeight]=\"false\"\n [gtDimension]=\"gtDimension\"\n [clickableRow]=\"false\"\n [showOrHideToggleForTotalRow]=\"false\"\n [tdsHaveRowSpan]=\"true\"\n [hideSomeTds]=\"true\"\n (filterAppliedToTable)=\"filterAppliedToTable($event)\"\n (sortingAppliedToTable)=\"sortingAppliedToTable($event)\"\n (radioButtonMessageIconClicked)=\"radioButtonMessageIconClicked($event)\"\n [tableBorderBottomClassRequired]=\"false\"\n>\n</anna-core-non-editable-generic-table-lib>\n\n<!-- MODALS -->\n<anna-feature-action-comments-popup\n #actionCommentsModal\n [title]=\"actionCommentPopupTitle\"\n [allowEdit]=\"false\"\n>\n</anna-feature-action-comments-popup>\n\n<anna-feature-offer-rejection-popup\n #offerRejectionReasonAndCommentModal\n [rejectionPopupData]=\"rejectionPopupData\"\n [spotType]=\"spotTypeForRejectionPoup\"\n [isSubmitCommentButtonEnabled]=\"false\"\n [offerRjectionPossibleReasons]=\"offerRejectionPossibleReasons\"\n>\n</anna-feature-offer-rejection-popup>\n", styles: [":host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .scroll-left-shadow-effect:not(.no-data-table) td:nth-of-type(14){filter:drop-shadow(2px 0 1px #d4d4d4)}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .scroll-left-shadow-effect:not(.no-data-table) .total-row td:nth-of-type(0){filter:drop-shadow(2px 0 2px #d4d4d4)}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td{top:40px!important;padding:2px 8px;background:#fff;position:sticky;position:-webkit-sticky}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td .upper-label{font-family:Roboto;font-size:var(--table-body-fs);font-weight:700;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#4a4a4a}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td .lower-label{font-family:Roboto;font-size:var(--table-body-fs);font-weight:700;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#a7a7a7;margin-top:-3px}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td br{display:block;content:\"\";margin-top:-6px}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td:nth-of-type(1){box-shadow:inset 1px 0 #000000bf,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td:nth-of-type(2){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td:nth-of-type(3){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td:nth-of-type(4){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td:nth-of-type(5){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td:nth-of-type(6){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td:nth-of-type(7){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td:nth-of-type(8){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td:nth-of-type(9){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td:nth-of-type(10){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td:nth-of-type(11){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td:nth-of-type(12){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td:nth-of-type(13){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER .total-row td:nth-of-type(14){box-shadow:inset -1px 0 #000000bf,inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td{cursor:pointer;background:#fff;box-shadow:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td div:nth-child(1){color:#000;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-family:Roboto;font-size:var(--table-body-fs);font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:0px}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td div:nth-child(2){color:#a7a7a7;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-family:Roboto;font-size:var(--table-body-fs);font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:0px}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td:nth-of-type(1){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td:nth-of-type(2){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td:nth-of-type(3){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td:nth-of-type(4){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td:nth-of-type(5){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td:nth-of-type(6){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td:nth-of-type(7){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td:nth-of-type(8){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td:nth-of-type(9){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td:nth-of-type(10){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td:nth-of-type(11){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td:nth-of-type(12){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td:nth-of-type(13){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.SELLER tbody tr td:nth-of-type(14){box-shadow:inset 1px 0 #d4d4d4,inset -1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .scroll-left-shadow-effect:not(.no-data-table) td:nth-of-type(12){filter:drop-shadow(2px 0 1px #d4d4d4)}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .scroll-left-shadow-effect:not(.no-data-table) .total-row td:nth-of-type(0){filter:drop-shadow(2px 0 2px #d4d4d4)}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td{top:40px!important;padding:2px 8px;background:#fff;position:sticky;position:-webkit-sticky}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td .upper-label{font-family:Roboto;font-size:var(--table-body-fs);font-weight:700;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#4a4a4a}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td .lower-label{font-family:Roboto;font-size:var(--table-body-fs);font-weight:700;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#a7a7a7;margin-top:-3px}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td br{display:block;content:\"\";margin-top:-6px}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td:nth-of-type(1){box-shadow:inset 1px 0 #000000bf,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td:nth-of-type(2){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td:nth-of-type(3){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td:nth-of-type(4){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td:nth-of-type(5){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td:nth-of-type(6){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td:nth-of-type(7){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td:nth-of-type(8){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td:nth-of-type(9){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td:nth-of-type(10){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td:nth-of-type(11){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER .total-row td:nth-of-type(12){box-shadow:inset -1px 0 #000000bf,inset 1px 0 #d4d4d4,inset 0 1px #000000bf,inset 0 -1px #000000bf!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td{cursor:pointer;background:#fff;box-shadow:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td div:nth-child(1){color:#000;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-family:Roboto;font-size:var(--table-body-fs);font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:0px}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td div:nth-child(2){color:#a7a7a7;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-family:Roboto;font-size:var(--table-body-fs);font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:0px}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td:nth-of-type(1){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td:nth-of-type(2){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td:nth-of-type(3){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td:nth-of-type(4){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td:nth-of-type(5){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td:nth-of-type(6){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td:nth-of-type(7){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td:nth-of-type(8){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td:nth-of-type(9){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td:nth-of-type(10){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td:nth-of-type(11){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td:nth-of-type(12){box-shadow:inset 1px 0 #d4d4d4,inset -1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER thead th.mat-column-selectedAction{box-shadow:inset -1px 0 #d4d4d4,inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.BUYER tbody tr td.mat-column-selectedAction{box-shadow:inset 1px 0 #d4d4d4,inset -1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .table-container::-webkit-scrollbar-track{margin-top:calc(105px - var(--hide-total-row-scrollbar-offset));margin-left:0}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .scroll-left-shadow-effect .header-row th:nth-of-type(0){border:none!important;filter:drop-shadow(2px 0 0px #d4d4d4)}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row{background:#ededed}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th{box-shadow:none!important;cursor:default;background:#ededed;padding:2px 8px;line-height:normal;position:sticky;position:-webkit-sticky;top:0}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th .upper-label{font-family:Roboto;font-size:var(--table-header-fs);font-weight:700;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#4a4a4a;margin-bottom:0}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th .lower-label{font-family:Roboto;font-size:var(--table-header-fs);font-weight:700;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#a7a7a7;margin-bottom:0}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th div.row{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;width:max-content}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th div.dummy-header{justify-content:center;margin-left:50%!important;margin-right:50%!important;width:-webkit-fill-available}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th div.sort-filter-container{display:flex;flex-wrap:nowrap;align-items:center;margin-left:.25rem;margin-right:auto}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th span.mdi-filter-variant{font-size:13px!important;top:-1px!important;position:relative}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th:nth-of-type(1){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th:nth-of-type(2){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th:nth-of-type(3){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th:nth-of-type(4){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th:nth-of-type(5){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th:nth-of-type(6){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th:nth-of-type(7){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th:nth-of-type(8){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th:nth-of-type(9){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th:nth-of-type(10){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th:nth-of-type(11){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th:nth-of-type(12){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th:nth-of-type(13){box-shadow:inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .header-row th:nth-of-type(14){box-shadow:inset -1px 0 #d4d4d4,inset 1px 0 #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .table-container.no-data-table>div{height:128px!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .table-container.no-data-table>div tr td{filter:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:first-of-type td:nth-of-type(1){box-shadow:inset 1px 0 #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:first-of-type td:nth-of-type(2){box-shadow:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:first-of-type td:nth-of-type(3){box-shadow:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:first-of-type td:nth-of-type(4){box-shadow:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:first-of-type td:nth-of-type(5){box-shadow:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:first-of-type td:nth-of-type(6){box-shadow:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:first-of-type td:nth-of-type(7){box-shadow:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:first-of-type td:nth-of-type(8){box-shadow:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:first-of-type td:nth-of-type(9){box-shadow:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:first-of-type td:nth-of-type(10){box-shadow:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:first-of-type td:nth-of-type(11){box-shadow:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:first-of-type td:nth-of-type(12){box-shadow:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:first-of-type td:nth-of-type(13){box-shadow:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:first-of-type td:nth-of-type(14){box-shadow:inset -1px 0 #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:last-of-type td:nth-of-type(1){box-shadow:inset 1px -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:last-of-type td:nth-of-type(2){box-shadow:inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:last-of-type td:nth-of-type(3){box-shadow:inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:last-of-type td:nth-of-type(4){box-shadow:inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:last-of-type td:nth-of-type(5){box-shadow:inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:last-of-type td:nth-of-type(6){box-shadow:inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:last-of-type td:nth-of-type(7){box-shadow:inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:last-of-type td:nth-of-type(8){box-shadow:inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:last-of-type td:nth-of-type(9){box-shadow:inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:last-of-type td:nth-of-type(10){box-shadow:inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:last-of-type td:nth-of-type(11){box-shadow:inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:last-of-type td:nth-of-type(12){box-shadow:inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:last-of-type td:nth-of-type(13){box-shadow:inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.no-border-tr:last-of-type td:nth-of-type(14){box-shadow:inset -1px -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .table-container#generic-table-conatiner::-webkit-scrollbar-track{margin-top:40px!important;margin-right:150px!important;margin-left:262px!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .table-container#generic-table-conatiner .horizontal-scroll-for-table-container{max-height:fit-content!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .table-container#generic-table-conatiner .horizontal-scroll-for-table-container table thead tr th ngx-skeleton-loader div{margin-bottom:4px!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .table-container#generic-table-conatiner .horizontal-scroll-for-table-container table thead tr th:nth-child(1),:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .table-container#generic-table-conatiner .horizontal-scroll-for-table-container table tbody tr td.mat-column-offerId{position:sticky!important;filter:drop-shadow(2px 0 2px #d4d4d4)!important;left:0!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .table-container#generic-table-conatiner .horizontal-scroll-for-table-container table tbody tr td.mat-column-offerId{z-index:205!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .table-container#generic-table-conatiner .horizontal-scroll-for-table-container table thead tr th:nth-child(1){z-index:505!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .table-container#generic-table-conatiner tbody tr td anna-core-icon-column{float:right!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table .table-container#generic-table-conatiner .horizontal-scroll-for-table-container{max-height:calc(100vh - 297px)!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.no-data-table .table-container#generic-table-conatiner{border-left:none!important;height:fit-content!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.no-data-table .table-container#generic-table-conatiner tbody tr td.mat-column-offerId{filter:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.no-data-table .table-container#generic-table-conatiner tbody tr.no-border-tr td:nth-of-type(1){filter:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.no-data-table .table-container#generic-table-conatiner tbody tr td:nth-last-child(1).mat-column-selectedAction{filter:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.no-data-table .table-container#generic-table-conatiner tbody tr:first-of-type td:last-of-type{box-shadow:inset -1px 0 #d4d4d4,inset 0 0 #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table.no-data-table .table-container#generic-table-conatiner tbody tr:last-of-type td:last-of-type{box-shadow:inset 0 -1px #d4d4d4,inset -1px 0 #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table thead .header-row th.mat-column-offerId:nth-of-type(1){box-shadow:inset 1px 1px #d4d4d4,inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4!important;filter:none!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table thead th.mat-column-selectedAction{z-index:501!important;position:sticky!important;right:0!important;filter:drop-shadow(0px 0 3px #d4d4d4)!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr td.mat-column-offerId:nth-of-type(1){box-shadow:inset 1px 0 #d4d4d4,inset 0 -1px #d4d4d4!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.redcolor-cell-border td.mat-column-rate{outline:1px solid #f44336!important;outline-offset:-1px!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.orangecolor-cell-border td.mat-column-ratingOrImps{outline:1px solid #f97b07!important;outline-offset:-1px!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr.orangecolor-cell-border td.mat-column-ratingOrImps i.mdi.mdi-information-outline{margin-left:4px;float:right!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr td.mat-column-selectedAction{position:sticky!important;right:0!important;z-index:199!important;filter:drop-shadow(0px 0 3px #d4d4d4)!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag{color:#fff;display:inline-block;padding:2px 6px;font-weight:700;line-height:14.06px;border-radius:2px;background-color:gray}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.seller-pending,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.rep-entry-in-progress,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.seller-reconfirm,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.wot-entry-in-progress,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.confirm-in-progress,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.recall-in-progress{background-color:#f3bd18}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.seller-approved,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.buyer-approved,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.sm-approved,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.confirmed,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.user-confirmed,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.user-edited-and-confirmed,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.user-edited{background-color:#00c853}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.seller-rejected,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.rep-entry-failed,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.buyer-rejected,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.wot-entry-failed,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.sm-rejected,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.cancelled,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.seller-cancelled,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.auto-cancelled-log-closure,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.cancel-in-progress-log-closure,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.cancel-failed-log-closure,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.auto-rejected-log-closure,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.user-cancelled,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.user-edited-and-cancelled,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.user-stn-cancelled{background-color:#f31818}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.seller-reconfirm-timedout,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.buyer-timedout,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.sm-pending,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.cancel-in-progress{background-color:#f36618}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.buyer-pending{background-color:#208be1}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.seller-reconfirmed,:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.recalled{background-color:#bd18f3}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .status-tag.os-spots{background-color:#a2a8ad}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr td.mat-column-offerId div:last-of-type{font-style:italic;color:#a7a7a7}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr td mat-radio-group mat-radio-button .mdc-form-field>label{left:0!important;margin-right:4px!important}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .mdi.mdi-comment-quote-outline{cursor:pointer!important;margin-right:4px;position:relative;color:var(--primary-blue-color)}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr input+label{position:relative;top:-3px;margin:0 4px}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr .mi.mdi-info-outline{color:var(--primary-blue-color);top:1px;position:relative}:host ::ng-deep anna-core-non-editable-generic-table-lib.all-offers-listing-table tbody tr td{cursor:default!important}.easy-reset-container{margin:8px 0}.easy-reset-container button.clear-all-btn{padding:0;border:none;display:block;text-align:right;width:fit-content;background-color:transparent;text-decoration:underline;color:#268bff;line-height:1!important;font-size:var(--reset-all-filter-fs)!important;letter-spacing:normal!important;font-weight:400!important;margin:8px 0 0 auto;cursor:pointer!important}.easy-reset-container button.clear-all-btn:hover:enabled{color:#268bff}.easy-reset-container button.clear-all-btn:disabled{color:#4a4a4a;opacity:.5;cursor:not-allowed}.period-and-metric-filter{display:flex;justify-content:space-between;align-items:flex-end}.period-and-metric-filter .order-metrics-dropdown{width:114px}:host ::ng-deep ngx-skeleton-loader .skeleton-loader{margin-top:2px!important}\n"] }]
|
|
1324
|
+
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i0.ChangeDetectorRef }, { type: i2.ToastrService }, { type: i3.NgbModal }, { type: i4.AnnaSortService }, { type: i4.AnnaGtHelperService }, { type: i4.AnnaFilterService }, { type: i4.AnnaGlobalConfigService }, { type: i4.AnnaPersistingFilterService }, { type: AllOffersListingService }, { type: i6.CalendarQuarterYearFilterService }, { type: undefined, decorators: [{
|
|
1325
|
+
type: Inject,
|
|
1326
|
+
args: [ALL_OFFERS_LISTING_SERVICE_TOKEN]
|
|
1327
|
+
}] }], propDecorators: { stationId: [{
|
|
1328
|
+
type: Input,
|
|
1329
|
+
args: [{ required: true }]
|
|
1330
|
+
}], orderId: [{
|
|
1331
|
+
type: Input,
|
|
1332
|
+
args: [{ required: true }]
|
|
1333
|
+
}], userType: [{
|
|
1334
|
+
type: Input,
|
|
1335
|
+
args: [{ required: true }]
|
|
1336
|
+
}], persistingFilterPeriodData: [{
|
|
1337
|
+
type: Input,
|
|
1338
|
+
args: [{ required: true }]
|
|
1339
|
+
}], primaryOrderData: [{
|
|
1340
|
+
type: Input,
|
|
1341
|
+
args: [{ required: true }]
|
|
1342
|
+
}], queryParams: [{
|
|
1343
|
+
type: Input,
|
|
1344
|
+
args: [{ required: true }]
|
|
1345
|
+
}], orderDefaultMetricType: [{
|
|
1346
|
+
type: Input
|
|
1347
|
+
}], nonEditableGTComponent: [{
|
|
1348
|
+
type: ViewChild,
|
|
1349
|
+
args: [AnnaNonEditableGenericTableComponent]
|
|
1350
|
+
}], actionCommentsModal: [{
|
|
1351
|
+
type: ViewChild,
|
|
1352
|
+
args: ["actionCommentsModal"]
|
|
1353
|
+
}], offerRejectionModal: [{
|
|
1354
|
+
type: ViewChild,
|
|
1355
|
+
args: ["offerRejectionReasonAndCommentModal"]
|
|
1356
|
+
}] } });
|
|
1357
|
+
|
|
1358
|
+
// export type IAllOffersActionsTypeFromBE = "Approve" | "Reject" | "Mark For Credit" | "No Action";
|
|
1359
|
+
class IAllOffersActions {
|
|
1360
|
+
}
|
|
1361
|
+
class IAllOffersActionsFromBE {
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
/**
|
|
1365
|
+
* Generated bundle index. Do not edit.
|
|
1366
|
+
*/
|
|
1367
|
+
|
|
1368
|
+
export { ALL_OFFERS_LISTING_SERVICE_TOKEN, AllOffersList, AllOffersListingComponent, AllOffersListingService, IAllOffersActions, IAllOffersActionsFromBE, OffersData, OffersListingEasyFilterConstant, OffersStatusFromBE, SpotTypeFromBE };
|
|
1369
|
+
//# sourceMappingURL=annalib-anna-feature-spots-approval-src-lib-all-offers-listing.mjs.map
|