@licklist/design 0.71.16 → 0.71.18-dev.0
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/dist/affiliate/form/AffiliateForm.d.ts.map +1 -1
- package/dist/auth/Layout/AuthNavComponent.d.ts.map +1 -1
- package/dist/auth/Login/LoginComponent.d.ts.map +1 -1
- package/dist/auth/Login/LoginComponent.js +2 -1
- package/dist/auth/Login/LoginFormComponent.d.ts.map +1 -1
- package/dist/auth/Logout/Logout.js +1 -0
- package/dist/auth/Register/RegisterComponent.d.ts.map +1 -1
- package/dist/auth/Register/RegisterFormComponent.d.ts.map +1 -1
- package/dist/auth/ResetPassword/ResetPasswordFormComponent.d.ts.map +1 -1
- package/dist/auth/Router.d.ts.map +1 -1
- package/dist/auth/Router.js +2 -0
- package/dist/calendar/utils/index.d.ts +1 -1
- package/dist/calendar/utils/index.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +2 -1
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +0 -1
- package/dist/events/event-card/utils.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts +2 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.js +2 -2
- package/dist/events/event-statistic-modal/hooks/useTableData.d.ts +1 -1
- package/dist/events/event-statistic-modal/hooks/useTableData.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/hooks/useTableData.js +2 -1
- package/dist/events/event-statistic-modal/utils/index.d.ts.map +1 -1
- package/dist/events/event-venue-map/EventVenueMap.d.ts.map +1 -1
- package/dist/events/event-venue-map/EventVenueMap.js +1 -0
- package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts.map +1 -1
- package/dist/events/event-venue-map/hooks/useCanvasSize.js +11 -4
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts +1 -1
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +1 -2
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts +1 -2
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.js +2 -2
- package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts +1 -2
- package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.js +1 -2
- package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.js +13 -5
- package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/utils/index.js +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +13 -0
- package/dist/iframe/page/components/PageBody/hooks/useResizePageBody.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
- package/dist/iframe/payment/payment-page/PaymentPage.d.ts.map +1 -1
- package/dist/iframe/payment/payment-page/PaymentPage.js +3 -11
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.d.ts.map +1 -1
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +2 -2
- package/dist/iframe/ryft/RyftPaymentForm.js +1 -0
- package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
- package/dist/iframe/ryft/utils/ryft-form.js +4 -5
- package/dist/index.js +1 -0
- package/dist/layout/DropDown.d.ts +2 -1
- package/dist/layout/DropDown.d.ts.map +1 -1
- package/dist/notification/email-template/card/EmailTemplateCard.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.js +3 -0
- package/dist/notification/sms-template/card/SmsTemplateCard.d.ts.map +1 -1
- package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
- package/dist/product-set/control/DateInput.d.ts.map +1 -1
- package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductCategoriesControl.js +48 -2
- package/dist/product-set/form/ProductSetForm.d.ts +4 -1
- package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.js +1 -1
- package/dist/product-set/form/ProductZonesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductZonesControl.js +0 -2
- package/dist/product-set/form/ProductsControl.js +1 -0
- package/dist/product-set/form/SelectCategoryModal.d.ts +12 -0
- package/dist/product-set/form/SelectCategoryModal.d.ts.map +1 -1
- package/dist/product-set/form/SelectCategoryModal.js +1 -1
- package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/SubProductsControl.js +0 -3
- package/dist/product-set/form/VenueMapsControl.d.ts +1 -1
- package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
- package/dist/product-set/form/VenueMapsControl.js +0 -3
- package/dist/product-set/product/ProductControl.d.ts.map +1 -1
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.d.ts.map +1 -1
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +6 -0
- package/dist/product-set/product/deposit/ProductDepositControl.d.ts.map +1 -1
- package/dist/product-set/product/deposit/ProductDepositControl.js +3 -0
- package/dist/product-set/product/duration/ProductDurationControl.d.ts.map +1 -1
- package/dist/product-set/product/duration/ProductDurationControl.js +6 -0
- package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
- package/dist/product-set/product/price/ProductPriceControl.js +3 -0
- package/dist/product-set/product/quantity/ProductQuantityConstantControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityConstantControl.js +6 -0
- package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityControl.js +6 -0
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +4 -1
- package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
- package/dist/product-set/product-category/ProductCategoryControl.js +12 -0
- package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceEndInput.js +3 -0
- package/dist/recurring-date-picker-input/RecurrenceEndInput.d.ts.map +1 -1
- package/dist/report/ReportRunnerModal/ReportRunnerModal.js +1 -0
- package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
- package/dist/resource/form/components/CapacityControl.js +3 -0
- package/dist/resource/form/components/SortControl.d.ts.map +1 -1
- package/dist/resource/form/components/SortControl.js +3 -0
- package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
- package/dist/sales/booking/results/components/ResultCard.js +0 -2
- package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
- package/dist/sales/coupon/control/CouponFormControl.js +21 -0
- package/dist/sales/life-time-sales/LifeTimeSalesChart.js +1 -0
- package/dist/sales/manual-booking/select-event/SelectEvent.js +1 -0
- package/dist/sales/manual-booking/select-menu/SelectMenu.js +1 -0
- package/dist/sales/manual-booking/summary/ManualBookingSummary.js +1 -0
- package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
- package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
- package/dist/setting/admin/PaymentFeeForm.js +16 -1
- package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/DashboardSettingForm.js +4 -1
- package/dist/setting/dashboard/snippet-templates/card/SnippetTemplateCard.d.ts.map +1 -1
- package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
- package/dist/snippet/snippet-template/preview/Preview.js +3 -1
- package/dist/sortable-tree/SortableTreeItem.d.ts +2 -1
- package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
- package/dist/sortable-tree/SortableTreeItem.js +10 -4
- package/dist/static/CurrencyNumberInput.d.ts.map +1 -1
- package/dist/static/CurrencyNumberInput.js +3 -0
- package/dist/static/date-range-input/utils/index.d.ts +1 -1
- package/dist/static/date-range-input/utils/index.d.ts.map +1 -1
- package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
- package/dist/static/form-number-input/FormNumberInput.js +3 -0
- package/dist/static/loader/FullScreenLoader.d.ts +8 -0
- package/dist/static/loader/FullScreenLoader.d.ts.map +1 -0
- package/dist/static/loader/FullScreenLoader.js +41 -0
- package/dist/static/loader/LoaderIndicator.d.ts +2 -3
- package/dist/static/loader/LoaderIndicator.d.ts.map +1 -1
- package/dist/static/loader/LoaderIndicator.js +4 -2
- package/dist/static/loader/index.d.ts +1 -0
- package/dist/static/loader/index.d.ts.map +1 -1
- package/dist/static/number-input/NumberInput.d.ts.map +1 -1
- package/dist/static/number-input/NumberInput.js +3 -0
- package/dist/styles/availability-indicator/AvailabilityIndicator.scss +1 -4
- package/dist/styles/date-time-button/DateTimeButton.scss +3 -1
- package/dist/styles/iframe-events/Calendar.scss +1 -1
- package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/dist/styles/product-set/ProductSetForm.scss +22 -0
- package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +2 -4
- package/dist/styles/sales/BookingResults.scss +1 -1
- package/dist/styles/static/Loader.scss +9 -0
- package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -1
- package/dist/zone/form/components/GameDurationControl.js +3 -0
- package/dist/zone/form/components/SortControl.d.ts.map +1 -1
- package/dist/zone/form/components/SortControl.js +3 -0
- package/package.json +9 -7
- package/src/affiliate/form/AffiliateForm.tsx +1 -0
- package/src/auth/Layout/AuthNavComponent.tsx +4 -0
- package/src/auth/Login/LoginComponent.tsx +3 -1
- package/src/auth/Login/LoginFormComponent.tsx +2 -0
- package/src/auth/Register/RegisterComponent.tsx +2 -0
- package/src/auth/Register/RegisterFormComponent.tsx +4 -0
- package/src/auth/ResetPassword/ResetPasswordFormComponent.tsx +4 -0
- package/src/auth/Router.tsx +2 -0
- package/src/calendar/Calendar.stories.tsx +2 -2
- package/src/calendar/utils/index.ts +1 -1
- package/src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx +9 -7
- package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +0 -1
- package/src/events/event-card/utils.ts +10 -9
- package/src/events/event-statistic-modal/EventStatisticModal.tsx +3 -1
- package/src/events/event-statistic-modal/hooks/useTableData.tsx +2 -1
- package/src/events/event-statistic-modal/utils/index.ts +2 -1
- package/src/events/event-venue-map/EventVenueMap.tsx +1 -0
- package/src/events/event-venue-map/hooks/useCanvasSize.ts +5 -1
- package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +0 -2
- package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +1 -6
- package/src/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.tsx +0 -3
- package/src/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.tsx +16 -10
- package/src/iframe/order-process/components/BookingSummary/utils/index.ts +11 -7
- package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +4 -7
- package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +9 -0
- package/src/iframe/page/components/PageBody/hooks/useResizePageBody.ts +1 -2
- package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +1 -0
- package/src/iframe/payment/payment-page/PaymentPage.tsx +7 -14
- package/src/iframe/payment/payment-status-page/PaymentStatusPage.tsx +19 -20
- package/src/iframe/ryft/utils/ryft-form.ts +6 -5
- package/src/layout/DropDown.tsx +1 -1
- package/src/notification/email-template/card/EmailTemplateCard.tsx +2 -0
- package/src/notification/email-template/control/EmailTemplateControl.tsx +1 -0
- package/src/notification/sms-template/card/SmsTemplateCard.tsx +2 -0
- package/src/product-set/control/DateAndRecurrenceInput.tsx +3 -4
- package/src/product-set/control/DateInput.tsx +3 -4
- package/src/product-set/form/ProductCategoriesControl.tsx +37 -1
- package/src/product-set/form/ProductSetForm.tsx +6 -2
- package/src/product-set/form/ProductZonesControl.tsx +1 -4
- package/src/product-set/form/SelectCategoryModal.tsx +2 -2
- package/src/product-set/form/SubProductsControl.tsx +0 -3
- package/src/product-set/form/VenueMapsControl.tsx +1 -4
- package/src/product-set/product/ProductControl.tsx +0 -1
- package/src/product-set/product/advanced-options/AdvancedOptions.tsx +1 -1
- package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +2 -0
- package/src/product-set/product/deposit/ProductDepositControl.tsx +1 -0
- package/src/product-set/product/duration/ProductDurationControl.tsx +2 -0
- package/src/product-set/product/price/ProductPriceControl.tsx +1 -0
- package/src/product-set/product/quantity/ProductQuantityConstantControl.tsx +2 -0
- package/src/product-set/product/quantity/ProductQuantityControl.tsx +2 -0
- package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +1 -0
- package/src/product-set/product-category/ProductCategoryControl.tsx +4 -0
- package/src/product-set/product-zone/ProductZoneControl.tsx +1 -1
- package/src/recurrence-input/RecurrenceEndInput.tsx +1 -0
- package/src/recurring-date-picker-input/RecurrenceEndInput.tsx +1 -0
- package/src/resource/form/components/CapacityControl.tsx +1 -0
- package/src/resource/form/components/SortControl.tsx +1 -0
- package/src/sales/booking/results/components/ResultCard.tsx +0 -2
- package/src/sales/coupon/control/CouponFormControl.tsx +7 -0
- package/src/setting/admin/AdminSettingForm.tsx +4 -0
- package/src/setting/admin/PaymentFeeForm.tsx +5 -0
- package/src/setting/dashboard/DashboardSettingForm.tsx +1 -0
- package/src/setting/dashboard/snippet-templates/card/SnippetTemplateCard.tsx +2 -0
- package/src/snippet/snippet-template/preview/Preview.tsx +1 -2
- package/src/sortable-tree/SortableTreeItem.tsx +6 -0
- package/src/static/CurrencyNumberInput.tsx +1 -0
- package/src/static/date-range-input/utils/index.ts +1 -1
- package/src/static/form-number-input/FormNumberInput.tsx +1 -0
- package/src/static/loader/FullScreenLoader.tsx +16 -0
- package/src/static/loader/LoaderIndicator.tsx +6 -3
- package/src/static/loader/index.ts +1 -0
- package/src/static/number-input/NumberInput.tsx +1 -0
- package/src/styles/availability-indicator/AvailabilityIndicator.scss +1 -4
- package/src/styles/date-time-button/DateTimeButton.scss +3 -1
- package/src/styles/iframe-events/Calendar.scss +1 -1
- package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/src/styles/product-set/ProductSetForm.scss +22 -0
- package/src/styles/ryft-payment-form/RyftPaymentForm.scss +2 -4
- package/src/styles/sales/BookingResults.scss +1 -1
- package/src/styles/static/Loader.scss +9 -0
- package/src/zone/form/components/GameDurationControl.tsx +1 -0
- package/src/zone/form/components/SortControl.tsx +1 -0
- package/yarn.lock +422 -367
|
@@ -15,10 +15,12 @@
|
|
|
15
15
|
height: 2.5rem;
|
|
16
16
|
border-width: 2px;
|
|
17
17
|
padding: 2px;
|
|
18
|
+
|
|
18
19
|
label,
|
|
19
20
|
.btn-switch-indicator {
|
|
20
21
|
border-radius: 0.375rem !important;
|
|
21
22
|
}
|
|
23
|
+
|
|
22
24
|
label {
|
|
23
25
|
height: 2rem;
|
|
24
26
|
}
|
|
@@ -34,6 +36,7 @@
|
|
|
34
36
|
margin-top: 1.5rem;
|
|
35
37
|
margin-bottom: 1.5rem;
|
|
36
38
|
}
|
|
39
|
+
|
|
37
40
|
@include media-breakpoint-down(sm) {
|
|
38
41
|
padding: 1.5rem 1rem;
|
|
39
42
|
margin-top: 0.5rem;
|
|
@@ -59,10 +62,21 @@
|
|
|
59
62
|
background-color: #ffdbdb;
|
|
60
63
|
color: #d52902;
|
|
61
64
|
}
|
|
65
|
+
|
|
62
66
|
.category-badge {
|
|
63
67
|
background-color: #e8f4f6;
|
|
64
68
|
color: #1a93aa;
|
|
65
69
|
}
|
|
70
|
+
|
|
71
|
+
.item-icon {
|
|
72
|
+
display: flex;
|
|
73
|
+
justify-items: center;
|
|
74
|
+
align-items: center;
|
|
75
|
+
font-size: 0.65rem;
|
|
76
|
+
padding: 0.2rem;
|
|
77
|
+
margin-right: 1rem;
|
|
78
|
+
}
|
|
79
|
+
|
|
66
80
|
.product-badge {
|
|
67
81
|
background-color: #e9f5ea;
|
|
68
82
|
color: #269b36;
|
|
@@ -75,10 +89,12 @@
|
|
|
75
89
|
|
|
76
90
|
.product-set-mobile-modal {
|
|
77
91
|
margin: 0;
|
|
92
|
+
|
|
78
93
|
.modal-content {
|
|
79
94
|
border-radius: 1rem 1rem 0 0;
|
|
80
95
|
border-width: 0;
|
|
81
96
|
margin: 0;
|
|
97
|
+
|
|
82
98
|
.modal-body {
|
|
83
99
|
padding: 1rem 0;
|
|
84
100
|
}
|
|
@@ -100,18 +116,22 @@
|
|
|
100
116
|
font-weight: 600;
|
|
101
117
|
font-size: 0.625rem;
|
|
102
118
|
}
|
|
119
|
+
|
|
103
120
|
.product-set-subtitle-dot {
|
|
104
121
|
margin-right: 0.375rem;
|
|
105
122
|
width: 0.375rem;
|
|
106
123
|
height: 0.375rem;
|
|
107
124
|
border-radius: 3px;
|
|
108
125
|
}
|
|
126
|
+
|
|
109
127
|
.product-set-subtitle-category-dot {
|
|
110
128
|
background-color: #269b36;
|
|
111
129
|
}
|
|
130
|
+
|
|
112
131
|
.product-set-subtitle-step-dot {
|
|
113
132
|
background-color: #1a93aa;
|
|
114
133
|
}
|
|
134
|
+
|
|
115
135
|
.product-set-subtitle-product-dot {
|
|
116
136
|
background-color: #269b36;
|
|
117
137
|
}
|
|
@@ -156,6 +176,7 @@
|
|
|
156
176
|
justify-self: flex-end;
|
|
157
177
|
align-items: flex-end;
|
|
158
178
|
}
|
|
179
|
+
|
|
159
180
|
.small-badge {
|
|
160
181
|
font-size: 0.5rem;
|
|
161
182
|
height: 1rem;
|
|
@@ -163,6 +184,7 @@
|
|
|
163
184
|
padding: 0 0.2rem;
|
|
164
185
|
margin-bottom: 0.2rem;
|
|
165
186
|
}
|
|
187
|
+
|
|
166
188
|
.product-set-save-btn-wrapper {
|
|
167
189
|
padding-left: 0 !important;
|
|
168
190
|
display: flex;
|
|
@@ -102,7 +102,6 @@
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
.ryft-payment-form {
|
|
105
|
-
|
|
106
105
|
.form-disable-box {
|
|
107
106
|
display: none;
|
|
108
107
|
position: absolute;
|
|
@@ -180,11 +179,10 @@
|
|
|
180
179
|
.form-disable-box {
|
|
181
180
|
top: 20rem;
|
|
182
181
|
}
|
|
183
|
-
}
|
|
182
|
+
}
|
|
184
183
|
}
|
|
185
184
|
|
|
186
185
|
@include media-breakpoint-up(md) {
|
|
187
|
-
|
|
188
186
|
.ryft-payment-form,
|
|
189
187
|
.form-disable-box {
|
|
190
188
|
height: 50%;
|
|
@@ -213,4 +211,4 @@
|
|
|
213
211
|
.divider {
|
|
214
212
|
display: none !important;
|
|
215
213
|
}
|
|
216
|
-
}
|
|
214
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GameDurationControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/GameDurationControl.tsx"],"names":[],"mappings":"AAOA,KAAK,wBAAwB,GAAG;IAC9B,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,mBAAmB,mBAE7B,wBAAwB,
|
|
1
|
+
{"version":3,"file":"GameDurationControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/GameDurationControl.tsx"],"names":[],"mappings":"AAOA,KAAK,wBAAwB,GAAG;IAC9B,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,mBAAmB,mBAE7B,wBAAwB,4CAgC1B,CAAA"}
|
|
@@ -77,6 +77,9 @@ var GameDurationControl = function(param) {
|
|
|
77
77
|
required: false,
|
|
78
78
|
min: 1
|
|
79
79
|
})), {
|
|
80
|
+
onWheel: function(event) {
|
|
81
|
+
return event.currentTarget.blur();
|
|
82
|
+
},
|
|
80
83
|
placeholder: t('Design:duration'),
|
|
81
84
|
isInvalid: Boolean(errors.defaultDuration),
|
|
82
85
|
disabled: isLoading
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/SortControl.tsx"],"names":[],"mappings":"AAOA,KAAK,gBAAgB,GAAG;IACtB,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW,kBAAmB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"SortControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/SortControl.tsx"],"names":[],"mappings":"AAOA,KAAK,gBAAgB,GAAG;IACtB,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW,kBAAmB,gBAAgB,4CAoC1D,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licklist/design",
|
|
3
|
-
"version": "0.71.
|
|
3
|
+
"version": "0.71.18-dev.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@licklist/core": "0.
|
|
45
|
+
"@licklist/core": "0.31.2-dev.5",
|
|
46
46
|
"@licklist/eslint-config": "0.5.6",
|
|
47
|
-
"@licklist/plugins": "0.35.
|
|
47
|
+
"@licklist/plugins": "0.35.1-dev.5",
|
|
48
48
|
"lodash": "4.17.21",
|
|
49
49
|
"luxon": "3.5.0",
|
|
50
50
|
"react": "17.0.2",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"@dnd-kit/utilities": "2.0.0",
|
|
62
62
|
"@fortawesome/fontawesome-svg-core": "1.2.34",
|
|
63
63
|
"@fortawesome/free-solid-svg-icons": "5.15.2",
|
|
64
|
-
"@licklist/core": "0.
|
|
64
|
+
"@licklist/core": "0.31.2-dev.5",
|
|
65
65
|
"@licklist/eslint-config": "0.5.6",
|
|
66
|
-
"@licklist/plugins": "0.35.
|
|
66
|
+
"@licklist/plugins": "0.35.1-dev.5",
|
|
67
67
|
"@mantine/core": "6.0.22",
|
|
68
68
|
"@mantine/hooks": "6.0.22",
|
|
69
69
|
"@mdx-js/react": "1.6.22",
|
|
@@ -202,8 +202,10 @@
|
|
|
202
202
|
"yarn tsc"
|
|
203
203
|
]
|
|
204
204
|
},
|
|
205
|
+
"packageManager": "yarn@4.4.0",
|
|
205
206
|
"volta": {
|
|
206
207
|
"node": "20.9.0",
|
|
207
208
|
"yarn": "4.4.0"
|
|
208
|
-
}
|
|
209
|
-
|
|
209
|
+
},
|
|
210
|
+
"stableVersion": "0.71.4-dev.1"
|
|
211
|
+
}
|
|
@@ -76,6 +76,7 @@ export const AffiliateForm = ({
|
|
|
76
76
|
const copyToClipboard = () =>
|
|
77
77
|
// eslint-disable-next-line consistent-return
|
|
78
78
|
window.navigator.clipboard.writeText(formValues.link)
|
|
79
|
+
|
|
79
80
|
return (
|
|
80
81
|
<FormProvider {...form}>
|
|
81
82
|
<Form onSubmit={form.handleSubmit(handleSubmit)}>
|
|
@@ -8,11 +8,15 @@ function AuthNavComponent() {
|
|
|
8
8
|
|
|
9
9
|
return (
|
|
10
10
|
<Router>
|
|
11
|
+
{/* TODO fix issue react router types
|
|
12
|
+
@ts-expect-error */}
|
|
11
13
|
<Link to='/login'>
|
|
12
14
|
<StyledButton size='sm' className='rounded-pill mr-2'>
|
|
13
15
|
{t('login')}
|
|
14
16
|
</StyledButton>
|
|
15
17
|
</Link>
|
|
18
|
+
{/* TODO fix issue react router types
|
|
19
|
+
@ts-expect-error */}
|
|
16
20
|
<Link to='/register'>
|
|
17
21
|
<StyledButton
|
|
18
22
|
size='sm'
|
|
@@ -44,7 +44,7 @@ const LoginComponent = ({
|
|
|
44
44
|
const handleError = (error: any) => {
|
|
45
45
|
notification.danger({
|
|
46
46
|
title: 'Error',
|
|
47
|
-
message: error.message,
|
|
47
|
+
message: error?.response?.data?.message || error.message,
|
|
48
48
|
})
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -112,6 +112,8 @@ const LoginComponent = ({
|
|
|
112
112
|
{!hideSignUpLink && (
|
|
113
113
|
<h6 className='text-center'>
|
|
114
114
|
<Trans t={t} i18nKey='loginPromo'>
|
|
115
|
+
{/* TODO fix issue react router types
|
|
116
|
+
@ts-expect-error */}
|
|
115
117
|
Don't have account? <Link to='/register'>Sign up</Link>.
|
|
116
118
|
</Trans>
|
|
117
119
|
</h6>
|
|
@@ -147,6 +147,8 @@ function LoginFormComponent(props: LoginFormComponentProps) {
|
|
|
147
147
|
<p className='text-center mb-0 mt-3'>
|
|
148
148
|
<Trans t={t} i18nKey='User:resetPromo'>
|
|
149
149
|
Forgot your password?{' '}
|
|
150
|
+
{/* TODO fix issue react router types
|
|
151
|
+
@ts-expect-error */}
|
|
150
152
|
<Link
|
|
151
153
|
to='/forgot-password'
|
|
152
154
|
className={[isLoading && 'disabled'].join(' ')}
|
|
@@ -105,6 +105,8 @@ function RegisterComponent({
|
|
|
105
105
|
<h6 className='text-center'>
|
|
106
106
|
<Trans t={t} i18nKey='registerPromo'>
|
|
107
107
|
Fill out the form below to sign up for {{ name: t('bookedit') }}
|
|
108
|
+
{/* TODO fix issue react router types
|
|
109
|
+
@ts-expect-error */}
|
|
108
110
|
. Already signed up? Then just <Link to='/login'>Log in</Link>.
|
|
109
111
|
</Trans>
|
|
110
112
|
</h6>
|
|
@@ -400,10 +400,14 @@ function RegisterFormComponent({
|
|
|
400
400
|
<Trans t={t} i18nKey='User:agreementsPromo'>
|
|
401
401
|
By creating an account, I agree to {{ name: t('User:bookedit') }}
|
|
402
402
|
's{' '}
|
|
403
|
+
{/* TODO fix issue react router types
|
|
404
|
+
@ts-expect-error */}
|
|
403
405
|
<Link to='/terms' className={[isLoading && 'disabled'].join(' ')}>
|
|
404
406
|
terms of service
|
|
405
407
|
</Link>{' '}
|
|
406
408
|
and{' '}
|
|
409
|
+
{/* TODO fix issue react router types
|
|
410
|
+
@ts-expect-error */}
|
|
407
411
|
<Link to='/privacy' className={[isLoading && 'disabled'].join(' ')}>
|
|
408
412
|
privacy policy
|
|
409
413
|
</Link>
|
|
@@ -97,6 +97,8 @@ function ResetPasswordFormComponent(props: ResetPasswordFormComponentProps) {
|
|
|
97
97
|
<p className='text-center mb-0 mt-3'>
|
|
98
98
|
<Trans t={t} i18nKey='User:signinPromo'>
|
|
99
99
|
Already a user?{' '}
|
|
100
|
+
{/* TODO fix issue react router types
|
|
101
|
+
@ts-expect-error */}
|
|
100
102
|
<Link to='/login' className={[isLoading && 'disabled'].join(' ')}>
|
|
101
103
|
Sign in
|
|
102
104
|
</Link>
|
|
@@ -106,6 +108,8 @@ function ResetPasswordFormComponent(props: ResetPasswordFormComponentProps) {
|
|
|
106
108
|
<p className='text-center mb-0 mt-3'>
|
|
107
109
|
<Trans t={t} i18nKey='User:loginPromo'>
|
|
108
110
|
Don't have an account?{' '}
|
|
111
|
+
{/* TODO fix issue react router types
|
|
112
|
+
@ts-expect-error */}
|
|
109
113
|
<Link
|
|
110
114
|
to='/register'
|
|
111
115
|
className={[isLoading && 'disabled'].join(' ')}
|
package/src/auth/Router.tsx
CHANGED
|
@@ -28,7 +28,7 @@ Default.args = {
|
|
|
28
28
|
fromPrice: 'from £10',
|
|
29
29
|
selectedDate: null,
|
|
30
30
|
setSelectedDate: () => null,
|
|
31
|
-
calendarDates: getMonthCalendarDates(now),
|
|
31
|
+
calendarDates: getMonthCalendarDates({ initialDate: now }),
|
|
32
32
|
currentDate: now,
|
|
33
33
|
getDateTimeButtonProps: () => ({
|
|
34
34
|
resources: [],
|
|
@@ -50,7 +50,7 @@ Loading.args = {
|
|
|
50
50
|
fromPrice: 'from £10',
|
|
51
51
|
selectedDate: null,
|
|
52
52
|
setSelectedDate: () => null,
|
|
53
|
-
calendarDates: getMonthCalendarDates(now),
|
|
53
|
+
calendarDates: getMonthCalendarDates({ initialDate: now }),
|
|
54
54
|
currentDate: now,
|
|
55
55
|
getDateTimeButtonProps: () => ({
|
|
56
56
|
resources: [],
|
|
@@ -28,11 +28,13 @@ export const DEADLINE_NAME = [
|
|
|
28
28
|
|
|
29
29
|
export type DeadLineNameType = (typeof DEADLINE_NAME)[number]
|
|
30
30
|
|
|
31
|
-
type SaleDeadlineType =
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
type SaleDeadlineType =
|
|
32
|
+
| {
|
|
33
|
+
saleDeadline: null | number
|
|
34
|
+
}
|
|
35
|
+
| {
|
|
36
|
+
[key: string]: null | number
|
|
37
|
+
}
|
|
36
38
|
|
|
37
39
|
export const SaleDeadline = ({
|
|
38
40
|
disabled = false,
|
|
@@ -52,8 +54,8 @@ export const SaleDeadline = ({
|
|
|
52
54
|
const [deadlineType, setDeadlineType] = useState<DeadlineType>(
|
|
53
55
|
SALE_DEADLINE_BEFORE_TYPE,
|
|
54
56
|
)
|
|
55
|
-
|
|
56
|
-
const saleDeadline = watch(deadLineCategory || SALE_DEADLINE_NAME)
|
|
57
|
+
|
|
58
|
+
const saleDeadline = watch(deadLineCategory || SALE_DEADLINE_NAME)
|
|
57
59
|
|
|
58
60
|
useEffect(() => {
|
|
59
61
|
if (onlyBefore) return
|
|
@@ -2,24 +2,25 @@ import { DATE_FORMAT, DATE_TIME_FULL_FORMAT } from '@licklist/core/dist/Config'
|
|
|
2
2
|
import { EventStatistic } from '@licklist/core/dist/DataMapper/Provider/EventStatisticDataMapper'
|
|
3
3
|
import { DateTime } from 'luxon'
|
|
4
4
|
|
|
5
|
-
export const MIN_EVENT_DESCRIPTION_SIZE = 150
|
|
6
|
-
export const EVENT_DESCRIPTION_SIZE = 350
|
|
7
|
-
export const EMOJI_REGEX =
|
|
5
|
+
export const MIN_EVENT_DESCRIPTION_SIZE = 150
|
|
6
|
+
export const EVENT_DESCRIPTION_SIZE = 350
|
|
7
|
+
export const EMOJI_REGEX =
|
|
8
|
+
/<span data-emoji-replacer=""><img[^>]*alt="([^"]+)"[^>]*><\/span>/g
|
|
8
9
|
|
|
9
10
|
export const formatContent = (content, maxLength = EVENT_DESCRIPTION_SIZE) => {
|
|
10
|
-
if (!content) return ''
|
|
11
|
+
if (!content) return ''
|
|
11
12
|
|
|
12
|
-
const replacedContent = replaceEmojiImagesWithText(content)
|
|
13
|
+
const replacedContent = replaceEmojiImagesWithText(content)
|
|
13
14
|
|
|
14
15
|
if (replacedContent.length <= maxLength) {
|
|
15
|
-
return replacedContent
|
|
16
|
+
return replacedContent
|
|
16
17
|
}
|
|
17
18
|
|
|
18
|
-
return replacedContent.slice(0, maxLength).concat('...')
|
|
19
|
-
}
|
|
19
|
+
return replacedContent.slice(0, maxLength).concat('...')
|
|
20
|
+
}
|
|
20
21
|
|
|
21
22
|
function replaceEmojiImagesWithText(text) {
|
|
22
|
-
return text.replace(EMOJI_REGEX, (_, emojiText) => emojiText)
|
|
23
|
+
return text.replace(EMOJI_REGEX, (_, emojiText) => emojiText)
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
/**
|
|
@@ -12,6 +12,7 @@ export type EventStatisticModalProps = {
|
|
|
12
12
|
date?: Event['startAt'] | null
|
|
13
13
|
eventStatistic?: EventStatistic | null
|
|
14
14
|
title?: string
|
|
15
|
+
eventId?: string
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
export const EventStatisticModal = ({
|
|
@@ -20,10 +21,11 @@ export const EventStatisticModal = ({
|
|
|
20
21
|
date,
|
|
21
22
|
eventStatistic,
|
|
22
23
|
title,
|
|
24
|
+
eventId,
|
|
23
25
|
}: EventStatisticModalProps) => {
|
|
24
26
|
const { t } = useTranslation('Design')
|
|
25
27
|
|
|
26
|
-
const data = useTableData(date, eventStatistic)
|
|
28
|
+
const data = useTableData(date, eventStatistic, eventId)
|
|
27
29
|
const handleClose = () => {
|
|
28
30
|
setIsOpen(false)
|
|
29
31
|
}
|
|
@@ -11,6 +11,7 @@ import { StaticTableData } from '../../../table'
|
|
|
11
11
|
export const useTableData = (
|
|
12
12
|
date: Event['startAt'] | null,
|
|
13
13
|
eventStatistic: EventStatistic | null,
|
|
14
|
+
eventId: string,
|
|
14
15
|
) => {
|
|
15
16
|
const { t } = useTranslation('Design')
|
|
16
17
|
const { formatNumber } = useIntl()
|
|
@@ -84,7 +85,7 @@ export const useTableData = (
|
|
|
84
85
|
useEffect(() => {
|
|
85
86
|
setTableRows(transformStatisticToTableRows(date, eventStatistic))
|
|
86
87
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
87
|
-
}, [date, eventStatistic])
|
|
88
|
+
}, [date, eventId, eventStatistic])
|
|
88
89
|
|
|
89
90
|
return tableRows
|
|
90
91
|
}
|
|
@@ -100,7 +100,8 @@ export const convertEventStatisticToTableData = (
|
|
|
100
100
|
|
|
101
101
|
const maxTotalQuantity = maxBy(overrides, 'id')?.totalQuantity
|
|
102
102
|
|
|
103
|
-
const totalQuantity =
|
|
103
|
+
const totalQuantity =
|
|
104
|
+
maxTotalQuantity || productSummary?.totalQuantity
|
|
104
105
|
|
|
105
106
|
summaryMap.set(`${categoryName}.${productSummary.name}`, {
|
|
106
107
|
name: productSummary.name,
|
|
@@ -10,13 +10,17 @@ export const useCanvasSize = ({
|
|
|
10
10
|
width: componentWidth,
|
|
11
11
|
height: componentHeight,
|
|
12
12
|
}: CanvasSizeProps) => {
|
|
13
|
+
// TODO Fix often updating of width and height
|
|
13
14
|
const { width, height } = useWindowDimensions()
|
|
14
15
|
|
|
16
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
17
|
+
const memoizedDimensions = useMemo(() => ({ width, height }), [width])
|
|
18
|
+
|
|
15
19
|
const memoedComponentParameters = useMemo(() => {
|
|
16
20
|
if (!componentWidth && !componentHeight) return null
|
|
17
21
|
|
|
18
22
|
return { width: componentWidth, height: componentHeight }
|
|
19
23
|
}, [componentWidth, componentHeight])
|
|
20
24
|
|
|
21
|
-
return memoedComponentParameters ||
|
|
25
|
+
return memoedComponentParameters || memoizedDimensions
|
|
22
26
|
}
|
|
@@ -21,7 +21,6 @@ export const BookingSummary = ({
|
|
|
21
21
|
productsWithErrors = [],
|
|
22
22
|
isLoading,
|
|
23
23
|
hasPeopleInput,
|
|
24
|
-
isPaymentLink,
|
|
25
24
|
peopleAmount,
|
|
26
25
|
footer,
|
|
27
26
|
headerComponent,
|
|
@@ -62,7 +61,6 @@ export const BookingSummary = ({
|
|
|
62
61
|
<div className='products-by-menu-step'>
|
|
63
62
|
{menuSteps.map((menuStep) => (
|
|
64
63
|
<ProductsByMenuStep
|
|
65
|
-
isPaymentLink={isPaymentLink}
|
|
66
64
|
key={menuStep.id}
|
|
67
65
|
orderItems={formValues}
|
|
68
66
|
step={menuStep}
|
|
@@ -7,22 +7,17 @@ type ProductSummaryProps = {
|
|
|
7
7
|
name?: string
|
|
8
8
|
productQuantityError?: string
|
|
9
9
|
orderProduct: OrderItem
|
|
10
|
-
isPaymentLink?: boolean
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
export const ProductSummary = ({
|
|
14
13
|
name,
|
|
15
14
|
productQuantityError,
|
|
16
15
|
orderProduct,
|
|
17
|
-
isPaymentLink,
|
|
18
16
|
}: ProductSummaryProps) => {
|
|
19
17
|
const { t } = useTranslation('Design')
|
|
20
18
|
const { formatNumber } = useIntl()
|
|
21
19
|
|
|
22
|
-
const priceForOneProduct =
|
|
23
|
-
!isPaymentLink && orderProduct?.hasDeposit
|
|
24
|
-
? orderProduct?.deposit
|
|
25
|
-
: orderProduct?.price
|
|
20
|
+
const priceForOneProduct = orderProduct?.price
|
|
26
21
|
|
|
27
22
|
const fullPrice = formatNumber(priceForOneProduct * orderProduct?.quantity, {
|
|
28
23
|
style: 'currency',
|
|
@@ -28,14 +28,12 @@ export type ProductsByMenuStepsProps = {
|
|
|
28
28
|
orderItems: OrderItems
|
|
29
29
|
step: MenuStep
|
|
30
30
|
productsWithErrors?: QuantityCheckProductInfo[]
|
|
31
|
-
isPaymentLink?: boolean
|
|
32
31
|
}
|
|
33
32
|
|
|
34
33
|
export const ProductsByMenuStep = ({
|
|
35
34
|
orderItems,
|
|
36
35
|
step,
|
|
37
36
|
productsWithErrors = [],
|
|
38
|
-
isPaymentLink,
|
|
39
37
|
}: ProductsByMenuStepsProps) => {
|
|
40
38
|
const { productCategories } = step
|
|
41
39
|
|
|
@@ -63,7 +61,6 @@ export const ProductsByMenuStep = ({
|
|
|
63
61
|
|
|
64
62
|
return (
|
|
65
63
|
<ProductSummary
|
|
66
|
-
isPaymentLink={isPaymentLink}
|
|
67
64
|
key={orderItem.id}
|
|
68
65
|
name={orderItem.name}
|
|
69
66
|
productQuantityError={productQuantityError}
|
package/src/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.tsx
CHANGED
|
@@ -22,24 +22,23 @@ export const SummaryTotal = ({
|
|
|
22
22
|
|
|
23
23
|
const cartSum = isFreePayment
|
|
24
24
|
? 0
|
|
25
|
-
: cartSumByOrderProducts({orderProducts}) + transactionFee
|
|
25
|
+
: cartSumByOrderProducts({ orderProducts }) + transactionFee
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
const totalSum = isFreePayment
|
|
27
|
+
const totalSum = isFreePayment
|
|
29
28
|
? 0
|
|
30
|
-
: cartSumByOrderProducts({orderProducts, isTotalSum: true}) +
|
|
31
|
-
transactionFee
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
: cartSumByOrderProducts({ orderProducts, isTotalSum: true }) +
|
|
30
|
+
transactionFee
|
|
31
|
+
|
|
32
|
+
const hasRemaingToPay = totalSum > cartSum
|
|
34
33
|
|
|
35
34
|
if (!orderProducts.length) {
|
|
36
35
|
return null
|
|
37
36
|
}
|
|
38
37
|
|
|
39
38
|
return (
|
|
40
|
-
<div className=
|
|
39
|
+
<div className='d-flex flex-column justify-content-between'>
|
|
41
40
|
<SummaryTotalBlock
|
|
42
|
-
label={t(hasRemaingToPay ?
|
|
41
|
+
label={t(hasRemaingToPay ? 'payNow' : 'total')}
|
|
43
42
|
amount={cartSum}
|
|
44
43
|
/>
|
|
45
44
|
{!!totalWithDiscount && !isFreePayment && (
|
|
@@ -49,7 +48,14 @@ export const SummaryTotal = ({
|
|
|
49
48
|
/>
|
|
50
49
|
)}
|
|
51
50
|
{hasRemaingToPay && (
|
|
52
|
-
|
|
51
|
+
<>
|
|
52
|
+
<SummaryTotalBlock
|
|
53
|
+
label={t('remaining')}
|
|
54
|
+
amount={totalSum - cartSum}
|
|
55
|
+
/>
|
|
56
|
+
|
|
57
|
+
<SummaryTotalBlock label={t('total')} amount={totalSum} />
|
|
58
|
+
</>
|
|
53
59
|
)}
|
|
54
60
|
</div>
|
|
55
61
|
)
|
|
@@ -5,20 +5,24 @@ export const cartSumByOrderProducts = ({
|
|
|
5
5
|
orderProducts,
|
|
6
6
|
isTotalSum,
|
|
7
7
|
}: {
|
|
8
|
-
orderProducts?: OrderItem[]
|
|
9
|
-
isTotalSum?: boolean
|
|
8
|
+
orderProducts?: OrderItem[]
|
|
9
|
+
isTotalSum?: boolean
|
|
10
10
|
}) => {
|
|
11
11
|
if (!orderProducts || !orderProducts.length) {
|
|
12
12
|
return 0
|
|
13
13
|
}
|
|
14
14
|
return orderProducts.reduce((prevSumValue: number, product) => {
|
|
15
|
-
if (!product) return 0
|
|
15
|
+
if (!product) return 0
|
|
16
|
+
|
|
16
17
|
const price = isTotalSum
|
|
17
18
|
? product?.price
|
|
18
|
-
: product
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
: product.hasDeposit
|
|
20
|
+
? product?.deposit
|
|
21
|
+
: product?.price
|
|
22
|
+
|
|
23
|
+
return prevSumValue + price * product.quantity
|
|
24
|
+
}, 0)
|
|
25
|
+
}
|
|
22
26
|
|
|
23
27
|
export const getProductError = (
|
|
24
28
|
productsWithErrors: QuantityCheckProductInfo[],
|