@licklist/design 0.71.6-dev.9 → 0.71.7

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.
Files changed (257) hide show
  1. package/dist/affiliate/form/AffiliateForm.d.ts.map +1 -1
  2. package/dist/auth/Layout/AuthNavComponent.d.ts.map +1 -1
  3. package/dist/auth/Login/LoginComponent.d.ts.map +1 -1
  4. package/dist/auth/Login/LoginComponent.js +1 -2
  5. package/dist/auth/Login/LoginFormComponent.d.ts.map +1 -1
  6. package/dist/auth/Logout/Logout.js +0 -1
  7. package/dist/auth/Register/RegisterComponent.d.ts.map +1 -1
  8. package/dist/auth/Register/RegisterFormComponent.d.ts.map +1 -1
  9. package/dist/auth/ResetPassword/ResetPasswordFormComponent.d.ts.map +1 -1
  10. package/dist/auth/Router.d.ts.map +1 -1
  11. package/dist/auth/Router.js +0 -2
  12. package/dist/calendar/utils/index.d.ts +1 -1
  13. package/dist/calendar/utils/index.d.ts.map +1 -1
  14. package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.d.ts +1 -7
  15. package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.d.ts.map +1 -1
  16. package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.js +7 -10
  17. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +1 -3
  18. package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +1 -1
  19. package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts.map +1 -1
  20. package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.js +0 -1
  21. package/dist/events/event-card/utils.d.ts.map +1 -1
  22. package/dist/events/event-statistic-modal/EventStatisticModal.d.ts +1 -2
  23. package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
  24. package/dist/events/event-statistic-modal/EventStatisticModal.js +2 -2
  25. package/dist/events/event-statistic-modal/hooks/useTableData.d.ts +1 -1
  26. package/dist/events/event-statistic-modal/hooks/useTableData.d.ts.map +1 -1
  27. package/dist/events/event-statistic-modal/hooks/useTableData.js +1 -2
  28. package/dist/events/event-statistic-modal/utils/index.d.ts.map +1 -1
  29. package/dist/events/event-statistic-modal/utils/index.js +13 -6
  30. package/dist/events/event-venue-map/EventVenueMap.d.ts.map +1 -1
  31. package/dist/events/event-venue-map/EventVenueMap.js +0 -1
  32. package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts.map +1 -1
  33. package/dist/events/event-venue-map/hooks/useCanvasSize.js +4 -11
  34. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts +1 -1
  35. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
  36. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +2 -1
  37. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts +2 -1
  38. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts.map +1 -1
  39. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.js +2 -2
  40. package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts +2 -1
  41. package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts.map +1 -1
  42. package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.js +2 -1
  43. package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.d.ts.map +1 -1
  44. package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.js +3 -22
  45. package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts +1 -4
  46. package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
  47. package/dist/iframe/order-process/components/BookingSummary/utils/index.js +2 -4
  48. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
  49. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +1 -1
  50. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
  51. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +0 -13
  52. package/dist/iframe/page/components/PageBody/constants.d.ts +0 -1
  53. package/dist/iframe/page/components/PageBody/constants.d.ts.map +1 -1
  54. package/dist/iframe/page/components/PageBody/constants.js +1 -2
  55. package/dist/iframe/page/components/PageBody/hooks/useResizePageBody.d.ts.map +1 -1
  56. package/dist/iframe/page/components/PageBody/hooks/useResizePageBody.js +1 -6
  57. package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
  58. package/dist/iframe/payment/payment-page/PaymentPage.d.ts +1 -1
  59. package/dist/iframe/payment/payment-page/PaymentPage.d.ts.map +1 -1
  60. package/dist/iframe/payment/payment-page/PaymentPage.js +5 -29
  61. package/dist/iframe/payment/payment-status-page/PaymentStatusPage.d.ts.map +1 -1
  62. package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +5 -15
  63. package/dist/iframe/ryft/RyftPaymentForm.js +0 -1
  64. package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
  65. package/dist/iframe/ryft/utils/ryft-form.js +5 -4
  66. package/dist/index.js +0 -1
  67. package/dist/layout/DropDown.d.ts +1 -2
  68. package/dist/layout/DropDown.d.ts.map +1 -1
  69. package/dist/notification/email-template/card/EmailTemplateCard.d.ts.map +1 -1
  70. package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
  71. package/dist/notification/email-template/control/EmailTemplateControl.js +0 -3
  72. package/dist/notification/sms-template/card/SmsTemplateCard.d.ts.map +1 -1
  73. package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
  74. package/dist/product-set/card/ProductSetCard.js +0 -1
  75. package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
  76. package/dist/product-set/control/DateInput.d.ts.map +1 -1
  77. package/dist/product-set/control/ProductSetControl.d.ts +0 -2
  78. package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
  79. package/dist/product-set/control/ProductSetControl.js +0 -5
  80. package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
  81. package/dist/product-set/form/ProductCategoriesControl.js +2 -49
  82. package/dist/product-set/form/ProductSetForm.d.ts +2 -6
  83. package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
  84. package/dist/product-set/form/ProductSetForm.js +2 -3
  85. package/dist/product-set/form/ProductZonesControl.d.ts.map +1 -1
  86. package/dist/product-set/form/ProductZonesControl.js +2 -0
  87. package/dist/product-set/form/ProductsControl.js +0 -2
  88. package/dist/product-set/form/SelectCategoryModal.d.ts +0 -12
  89. package/dist/product-set/form/SelectCategoryModal.d.ts.map +1 -1
  90. package/dist/product-set/form/SelectCategoryModal.js +1 -1
  91. package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
  92. package/dist/product-set/form/SubProductsControl.js +3 -0
  93. package/dist/product-set/form/VenueMapsControl.d.ts +1 -1
  94. package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
  95. package/dist/product-set/form/VenueMapsControl.js +3 -0
  96. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  97. package/dist/product-set/product/booking-management/ProductBookingManagementControl.d.ts.map +1 -1
  98. package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +0 -6
  99. package/dist/product-set/product/deposit/ProductDepositControl.d.ts.map +1 -1
  100. package/dist/product-set/product/deposit/ProductDepositControl.js +0 -3
  101. package/dist/product-set/product/duration/ProductDurationControl.d.ts.map +1 -1
  102. package/dist/product-set/product/duration/ProductDurationControl.js +0 -6
  103. package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
  104. package/dist/product-set/product/price/ProductPriceControl.js +0 -3
  105. package/dist/product-set/product/quantity/ProductQuantityConstantControl.d.ts.map +1 -1
  106. package/dist/product-set/product/quantity/ProductQuantityConstantControl.js +0 -6
  107. package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
  108. package/dist/product-set/product/quantity/ProductQuantityControl.js +0 -6
  109. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
  110. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +1 -4
  111. package/dist/product-set/product-category/ProductCategoryControl.d.ts +0 -1
  112. package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
  113. package/dist/product-set/product-category/ProductCategoryControl.js +1 -19
  114. package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
  115. package/dist/recurrence-input/RecurrenceEndInput.js +0 -3
  116. package/dist/recurring-date-picker-input/RecurrenceEndInput.d.ts.map +1 -1
  117. package/dist/report/ReportRunnerModal/ReportRunnerModal.js +0 -1
  118. package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
  119. package/dist/resource/form/components/CapacityControl.js +0 -3
  120. package/dist/resource/form/components/SortControl.d.ts.map +1 -1
  121. package/dist/resource/form/components/SortControl.js +0 -3
  122. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  123. package/dist/sales/booking/results/components/ResultCard.js +2 -0
  124. package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
  125. package/dist/sales/coupon/control/CouponFormControl.js +0 -21
  126. package/dist/sales/life-time-sales/LifeTimeSalesChart.js +0 -1
  127. package/dist/sales/manual-booking/select-event/SelectEvent.js +0 -1
  128. package/dist/sales/manual-booking/select-menu/SelectMenu.js +0 -1
  129. package/dist/sales/manual-booking/summary/ManualBookingSummary.js +0 -1
  130. package/dist/sales/modals/refund-modal/RefundModal.d.ts.map +1 -1
  131. package/dist/sales/modals/refund-modal/RefundModal.js +0 -1
  132. package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
  133. package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
  134. package/dist/setting/admin/PaymentFeeForm.js +1 -16
  135. package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
  136. package/dist/setting/dashboard/DashboardSettingForm.js +1 -4
  137. package/dist/setting/dashboard/snippet-templates/card/SnippetTemplateCard.d.ts.map +1 -1
  138. package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
  139. package/dist/snippet/snippet-template/preview/Preview.js +1 -3
  140. package/dist/sortable-tree/SortableTreeItem.d.ts +1 -2
  141. package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
  142. package/dist/sortable-tree/SortableTreeItem.js +4 -10
  143. package/dist/static/CurrencyNumberInput.d.ts.map +1 -1
  144. package/dist/static/CurrencyNumberInput.js +0 -3
  145. package/dist/static/date-range-input/utils/index.d.ts +1 -1
  146. package/dist/static/date-range-input/utils/index.d.ts.map +1 -1
  147. package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
  148. package/dist/static/form-number-input/FormNumberInput.js +0 -3
  149. package/dist/static/loader/LoaderIndicator.d.ts +3 -2
  150. package/dist/static/loader/LoaderIndicator.d.ts.map +1 -1
  151. package/dist/static/loader/LoaderIndicator.js +2 -4
  152. package/dist/static/loader/index.d.ts +0 -1
  153. package/dist/static/loader/index.d.ts.map +1 -1
  154. package/dist/static/number-input/NumberInput.d.ts.map +1 -1
  155. package/dist/static/number-input/NumberInput.js +0 -3
  156. package/dist/styles/availability-indicator/AvailabilityIndicator.scss +4 -1
  157. package/dist/styles/iframe-events/Calendar.scss +1 -1
  158. package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
  159. package/dist/styles/product-set/ProductSetForm.scss +0 -22
  160. package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +4 -2
  161. package/dist/styles/sales/BookingResults.scss +1 -1
  162. package/dist/styles/static/Loader.scss +0 -9
  163. package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -1
  164. package/dist/zone/form/components/GameDurationControl.js +0 -3
  165. package/dist/zone/form/components/SortControl.d.ts.map +1 -1
  166. package/dist/zone/form/components/SortControl.js +0 -3
  167. package/package.json +6 -8
  168. package/src/affiliate/form/AffiliateForm.tsx +0 -1
  169. package/src/auth/Layout/AuthNavComponent.tsx +0 -4
  170. package/src/auth/Login/LoginComponent.tsx +1 -3
  171. package/src/auth/Login/LoginFormComponent.tsx +0 -2
  172. package/src/auth/Register/RegisterComponent.tsx +0 -2
  173. package/src/auth/Register/RegisterFormComponent.tsx +0 -4
  174. package/src/auth/ResetPassword/ResetPasswordFormComponent.tsx +0 -4
  175. package/src/auth/Router.tsx +0 -2
  176. package/src/calendar/Calendar.stories.tsx +2 -2
  177. package/src/calendar/utils/index.ts +1 -1
  178. package/src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx +19 -47
  179. package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +1 -1
  180. package/src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx +1 -6
  181. package/src/events/event-card/utils.ts +9 -10
  182. package/src/events/event-statistic-modal/EventStatisticModal.tsx +1 -3
  183. package/src/events/event-statistic-modal/hooks/useTableData.tsx +1 -2
  184. package/src/events/event-statistic-modal/utils/index.ts +16 -4
  185. package/src/events/event-venue-map/EventVenueMap.tsx +0 -1
  186. package/src/events/event-venue-map/hooks/useCanvasSize.ts +1 -5
  187. package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +2 -0
  188. package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +6 -1
  189. package/src/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.tsx +3 -0
  190. package/src/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.tsx +3 -22
  191. package/src/iframe/order-process/components/BookingSummary/utils/index.ts +2 -10
  192. package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +7 -4
  193. package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +0 -9
  194. package/src/iframe/page/components/PageBody/constants.ts +0 -1
  195. package/src/iframe/page/components/PageBody/hooks/useResizePageBody.ts +2 -10
  196. package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +0 -1
  197. package/src/iframe/payment/payment-page/PaymentPage.tsx +18 -65
  198. package/src/iframe/payment/payment-status-page/PaymentStatusPage.tsx +6 -27
  199. package/src/iframe/ryft/utils/ryft-form.ts +5 -6
  200. package/src/layout/DropDown.tsx +1 -1
  201. package/src/notification/email-template/card/EmailTemplateCard.tsx +0 -2
  202. package/src/notification/email-template/control/EmailTemplateControl.tsx +0 -1
  203. package/src/notification/sms-template/card/SmsTemplateCard.tsx +0 -2
  204. package/src/product-set/card/ProductSetCard.tsx +1 -7
  205. package/src/product-set/control/DateAndRecurrenceInput.tsx +4 -3
  206. package/src/product-set/control/DateInput.tsx +4 -3
  207. package/src/product-set/control/ProductSetControl.tsx +0 -5
  208. package/src/product-set/form/ProductCategoriesControl.tsx +1 -38
  209. package/src/product-set/form/ProductSetForm.tsx +2 -8
  210. package/src/product-set/form/ProductZonesControl.tsx +4 -1
  211. package/src/product-set/form/SelectCategoryModal.tsx +2 -2
  212. package/src/product-set/form/SubProductsControl.tsx +3 -0
  213. package/src/product-set/form/VenueMapsControl.tsx +4 -1
  214. package/src/product-set/product/ProductControl.tsx +1 -0
  215. package/src/product-set/product/advanced-options/AdvancedOptions.tsx +1 -1
  216. package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +0 -2
  217. package/src/product-set/product/deposit/ProductDepositControl.tsx +0 -1
  218. package/src/product-set/product/duration/ProductDurationControl.tsx +0 -2
  219. package/src/product-set/product/price/ProductPriceControl.tsx +0 -1
  220. package/src/product-set/product/quantity/ProductQuantityConstantControl.tsx +0 -2
  221. package/src/product-set/product/quantity/ProductQuantityControl.tsx +0 -2
  222. package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +0 -1
  223. package/src/product-set/product-category/ProductCategoryControl.tsx +0 -17
  224. package/src/product-set/product-zone/ProductZoneControl.tsx +1 -1
  225. package/src/recurrence-input/RecurrenceEndInput.tsx +0 -1
  226. package/src/recurring-date-picker-input/RecurrenceEndInput.tsx +0 -1
  227. package/src/resource/form/components/CapacityControl.tsx +0 -1
  228. package/src/resource/form/components/SortControl.tsx +0 -1
  229. package/src/sales/booking/results/components/ResultCard.tsx +2 -0
  230. package/src/sales/coupon/control/CouponFormControl.tsx +0 -7
  231. package/src/sales/modals/refund-modal/RefundModal.tsx +0 -1
  232. package/src/setting/admin/AdminSettingForm.tsx +0 -4
  233. package/src/setting/admin/PaymentFeeForm.tsx +0 -5
  234. package/src/setting/dashboard/DashboardSettingForm.tsx +0 -1
  235. package/src/setting/dashboard/snippet-templates/card/SnippetTemplateCard.tsx +0 -2
  236. package/src/snippet/snippet-template/preview/Preview.tsx +2 -1
  237. package/src/sortable-tree/SortableTreeItem.tsx +0 -6
  238. package/src/static/CurrencyNumberInput.tsx +0 -1
  239. package/src/static/date-range-input/utils/index.ts +1 -1
  240. package/src/static/form-number-input/FormNumberInput.tsx +0 -1
  241. package/src/static/loader/LoaderIndicator.tsx +3 -6
  242. package/src/static/loader/index.ts +0 -1
  243. package/src/static/number-input/NumberInput.tsx +0 -1
  244. package/src/styles/availability-indicator/AvailabilityIndicator.scss +4 -1
  245. package/src/styles/iframe-events/Calendar.scss +1 -1
  246. package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
  247. package/src/styles/product-set/ProductSetForm.scss +0 -22
  248. package/src/styles/ryft-payment-form/RyftPaymentForm.scss +4 -2
  249. package/src/styles/sales/BookingResults.scss +1 -1
  250. package/src/styles/static/Loader.scss +0 -9
  251. package/src/zone/form/components/GameDurationControl.tsx +0 -1
  252. package/src/zone/form/components/SortControl.tsx +0 -1
  253. package/yarn.lock +952 -1163
  254. package/dist/static/loader/FullScreenLoader.d.ts +0 -8
  255. package/dist/static/loader/FullScreenLoader.d.ts.map +0 -1
  256. package/dist/static/loader/FullScreenLoader.js +0 -41
  257. package/src/static/loader/FullScreenLoader.tsx +0 -16
@@ -28,7 +28,7 @@ interface PaymentProps extends RyftPaymentFormProps {
28
28
  onFailIframePayment?: () => void
29
29
  data?: PaymentLinkResponse | null
30
30
  isLoading: boolean
31
- bookingSummaryProps: BookingSummaryProps
31
+ bookingSummaryProps: Omit<BookingSummaryProps, 'totallWithDiscount'>
32
32
  paymentMetadata?: PaymentMetadata
33
33
  }
34
34
 
@@ -103,33 +103,17 @@ export const PaymentPage = ({
103
103
  )
104
104
  }
105
105
 
106
- const orderCartAmountByFormValues = cartSumByOrderProducts({
107
- orderProducts:
108
- bookingSummaryProps?.formValues &&
106
+ const orderTotalAmountByFormValues = cartSumByOrderProducts(
107
+ bookingSummaryProps?.formValues &&
109
108
  Object.values(bookingSummaryProps?.formValues),
110
- })
111
-
112
- const orderTotalAmountByFormValues = cartSumByOrderProducts({
113
- orderProducts:
114
- bookingSummaryProps?.formValues &&
115
- Object.values(bookingSummaryProps?.formValues),
116
- isTotalSum: true,
117
- })
118
-
119
- const hasRemaingToPay =
120
- orderTotalAmountByFormValues > orderCartAmountByFormValues
109
+ )
121
110
 
122
111
  // User can fill promo code only in iframe application.
123
112
  // It isn't possible via payment link. This check will
124
113
  // be applied when there is no metadata and in case when
125
114
  // orderValues sum is greater than amount in order.
126
115
  const isCalculatedAmountGreaterThanOrderAmount =
127
- !hasRemaingToPay && orderCartAmountByFormValues > data?.amount
128
-
129
- const isPaymentLinkWithRemainingToPay =
130
- data?.remaining_to_pay && !!Number(data?.remaining_to_pay)
131
- const totalPaidWithRemainingToPay =
132
- data?.amount_to_pay && !!Number(data?.amount_to_pay)
116
+ orderTotalAmountByFormValues > data?.amount
133
117
 
134
118
  return (
135
119
  <Page className='payment_link'>
@@ -189,56 +173,25 @@ export const PaymentPage = ({
189
173
  <>
190
174
  {isCalculatedAmountGreaterThanOrderAmount && (
191
175
  <SummaryTotalBlock
192
- label={t(hasRemaingToPay ? 'payNow' : 'total')}
176
+ label={t('total')}
193
177
  amount={
194
- orderCartAmountByFormValues +
178
+ orderTotalAmountByFormValues +
195
179
  (bookingSummaryProps?.transactionFee || 0)
196
180
  }
197
181
  />
198
182
  )}
199
183
 
200
- {hasRemaingToPay && (
201
- <SummaryTotalBlock
202
- label={t('remaining')}
203
- amount={
204
- orderTotalAmountByFormValues -
205
- orderCartAmountByFormValues
206
- }
207
- />
208
- )}
209
-
210
- {isPaymentLinkWithRemainingToPay && (
211
- <SummaryTotalBlock
212
- label={t('remaningToPay')}
213
- amount={Number(data?.remaining_to_pay)}
214
- />
215
- )}
216
-
217
- {totalPaidWithRemainingToPay && (
218
- <SummaryTotalBlock
219
- label={t('totalAmount')}
220
- amount={Number(data?.amount_to_pay)}
221
- />
222
- )}
223
- {isPaymentLinkWithRemainingToPay &&
224
- totalPaidWithRemainingToPay ? (
225
- <SummaryTotalBlock
226
- label={t('payNow')}
227
- amount={data?.amount}
228
- />
229
- ) : (
230
- <SummaryTotalBlock
231
- label={t(
232
- isCalculatedAmountGreaterThanOrderAmount
233
- ? 'totalWithDiscount'
234
- : 'total',
235
- )}
236
- amount={
237
- data?.amount +
238
- (bookingSummaryProps?.transactionFee || 0)
239
- }
240
- />
241
- )}
184
+ <SummaryTotalBlock
185
+ label={t(
186
+ isCalculatedAmountGreaterThanOrderAmount
187
+ ? 'totalWithDiscount'
188
+ : 'total',
189
+ )}
190
+ amount={
191
+ data?.amount +
192
+ (bookingSummaryProps?.transactionFee || 0)
193
+ }
194
+ />
242
195
  </>
243
196
  )}
244
197
  </div>
@@ -59,19 +59,9 @@ export const PaymentStatusPage = ({
59
59
 
60
60
  if (isLoading) return <LoaderIndicator isLoaded={false} />
61
61
 
62
- const orderCartAmountByFormValues = cartSumByOrderProducts({
63
- orderProducts:
64
- bookingSummaryProps?.formValues &&
65
- Object.values(bookingSummaryProps?.formValues),
66
- })
67
- const orderTotalAmountByFormValues = cartSumByOrderProducts({
68
- orderProducts:
69
- bookingSummaryProps?.formValues &&
70
- Object.values(bookingSummaryProps?.formValues),
71
- isTotalSum: true,
72
- })
73
- const hasRemaingToPay =
74
- orderTotalAmountByFormValues > orderCartAmountByFormValues
62
+ const orderTotalAmounByFormValues = cartSumByOrderProducts(
63
+ Object.values(bookingSummaryProps?.formValues ?? {}),
64
+ )
75
65
 
76
66
  // User can fill promocode only in iframe appcliation.
77
67
  // It didn't possible via payment link. This check will
@@ -80,9 +70,7 @@ export const PaymentStatusPage = ({
80
70
  // For payment status page booking summary props can be empty
81
71
  // so we should also check for them
82
72
  const isCalculatedAmountGreaterThanOrderAmount =
83
- !hasRemaingToPay &&
84
- bookingSummaryProps &&
85
- orderCartAmountByFormValues > totalAmount
73
+ bookingSummaryProps && orderTotalAmounByFormValues > totalAmount
86
74
 
87
75
  return (
88
76
  <Page
@@ -139,9 +127,9 @@ export const PaymentStatusPage = ({
139
127
  <>
140
128
  {isCalculatedAmountGreaterThanOrderAmount && (
141
129
  <SummaryTotalBlock
142
- label={t(hasRemaingToPay ? 'payNow' : 'total')}
130
+ label={t('total')}
143
131
  amount={
144
- orderCartAmountByFormValues +
132
+ orderTotalAmounByFormValues +
145
133
  (bookingSummaryProps?.transactionFee || 0)
146
134
  }
147
135
  />
@@ -158,15 +146,6 @@ export const PaymentStatusPage = ({
158
146
  (bookingSummaryProps?.transactionFee || 0)
159
147
  }
160
148
  />
161
- {hasRemaingToPay && (
162
- <SummaryTotalBlock
163
- label={t('remaining')}
164
- amount={
165
- orderTotalAmountByFormValues -
166
- orderCartAmountByFormValues
167
- }
168
- />
169
- )}
170
149
  </>
171
150
  )}
172
151
  </div>
@@ -61,22 +61,20 @@ export const injectComponentsInRyftForm = ({
61
61
  divider.id = 'mobile-pay-divider'
62
62
  container.id = 'mobile-pay-divider-container'
63
63
  container.append(dividerText, divider)
64
- const payIframe = document.getElementById('ryft-pay-iframe')
64
+ const payIframe = document.getElementById("ryft-pay-iframe");
65
65
  if (payIframe) {
66
66
  const formBox = document.getElementById('form-disable-box')
67
67
  if (formBox) {
68
- formBox.style.display = isDisableButton ? 'block' : 'none'
68
+ formBox.style.display = isDisableButton ? "block" : "none"
69
69
  }
70
70
 
71
71
  const googleButton = document.getElementById(
72
72
  'gpay-button-online-api-id',
73
73
  ) as HTMLButtonElement
74
- const appleButton = document.getElementById(
75
- 'ryft-pay-apple-pay-button',
76
- ) as HTMLButtonElement
74
+ const appleButton =document.getElementById("ryft-pay-apple-pay-button") as HTMLButtonElement
77
75
  if (googleButton) {
78
76
  googleButton.disabled = isDisableButton
79
- googleButton.style.opacity = !isDisableButton ? '1' : '0.6'
77
+ googleButton.style.opacity = isDisableButton ? '1' : '0.6'
80
78
  }
81
79
  if (appleButton) {
82
80
  appleButton.disabled = isDisableButton
@@ -88,6 +86,7 @@ export const injectComponentsInRyftForm = ({
88
86
  const applePayButton = document.createElement('button')
89
87
  applePayButton.id = 'apple-pay'
90
88
  applePayButton.type = 'button'
89
+ applePayButton.style.opacity = !isDisableButton ? '1' : '0.6'
91
90
  applePayButton.className = 'bg-dark btn btn-primary apple-pay-button'
92
91
  applePayButton.textContent = t('Events:payWithApple')
93
92
  applePayButton.onclick = onApplePayButtonClick
@@ -1,4 +1,4 @@
1
- import React, { forwardRef } from 'react'
1
+ import { forwardRef } from 'react'
2
2
 
3
3
  interface Props {
4
4
  children?: React.ReactNode | React.ReactNode[]
@@ -35,8 +35,6 @@ export function EmailTemplateCard({
35
35
  return (
36
36
  <div className='snippet-template-card'>
37
37
  <div className='snippet-template-card-header'>
38
- {/* TODO fix issue react router types
39
- @ts-expect-error */}
40
38
  <Link to={href}>{name}</Link>
41
39
  {hasPermission && Boolean(onRemove) && (
42
40
  <ConfirmModal
@@ -434,7 +434,6 @@ export const EmailTemplateControl = forwardRef(
434
434
  `templateOptionValues.${option?.id}.value`,
435
435
  )}
436
436
  type='number'
437
- onWheel={(event) => event.currentTarget.blur()}
438
437
  placeholder={t(`Design:${option.name}`)}
439
438
  id={option.name + option.id}
440
439
  defaultValue={option.selectedValue || ''}
@@ -33,8 +33,6 @@ export function SmsTemplateCard({
33
33
  return (
34
34
  <div className='snippet-template-card'>
35
35
  <div className='snippet-template-card-header'>
36
- {/* TODO fix issue react router types
37
- @ts-expect-error */}
38
36
  <Link to={href}>{name}</Link>
39
37
  {hasPermission && Boolean(onRemove) && (
40
38
  <ConfirmModal
@@ -136,13 +136,7 @@ export function ProductSetCard({
136
136
  onClick={(e) => e.stopPropagation()}
137
137
  >
138
138
  {Boolean(onRemove) && (
139
- <ConfirmModal
140
- content={t(
141
- override
142
- ? 'confirmRemoveProductSetWithOverrides'
143
- : 'areUSureYouWantToPerformThisAction',
144
- )}
145
- >
139
+ <ConfirmModal>
146
140
  {(confirm) => (
147
141
  <MenuButton
148
142
  onClick={() => {
@@ -198,8 +198,7 @@ export const DateAndRecurrenceInput = ({
198
198
  move(prevIndex, nextIndex)
199
199
  }
200
200
 
201
- const errorMessage =
202
- errors.menuRecurrences?.message || errors.menuRecurrences?.root?.message
201
+ const errorMessage = errors.menuRecurrences?.message || errors.menuRecurrences?.root?.message
203
202
 
204
203
  useEffect(() => {
205
204
  if (fields.length) {
@@ -309,7 +308,9 @@ export const DateAndRecurrenceInput = ({
309
308
  })}
310
309
  />
311
310
 
312
- <div className='manual-form-error'>{errorMessage}</div>
311
+ <div className='manual-form-error'>
312
+ {errorMessage}
313
+ </div>
313
314
  </div>
314
315
  </OverlayTrigger>
315
316
  </Form.Group>
@@ -195,8 +195,7 @@ export const DateInput = ({
195
195
  }, 100)
196
196
  }
197
197
 
198
- const errorMessage =
199
- errors.menuRecurrences?.message || errors.menuRecurrences?.root?.message
198
+ const errorMessage = errors.menuRecurrences?.message || errors.menuRecurrences?.root?.message
200
199
 
201
200
  return (
202
201
  <Form.Group>
@@ -285,7 +284,9 @@ export const DateInput = ({
285
284
  })}
286
285
  />
287
286
 
288
- <div className='manual-form-error'>{errorMessage}</div>
287
+ <div className='manual-form-error'>
288
+ {errorMessage}
289
+ </div>
289
290
  </div>
290
291
  </OverlayTrigger>
291
292
  </Form.Group>
@@ -23,7 +23,6 @@ import { ruleForUrlWithProtocol } from '@licklist/plugins/dist/validation/Rules/
23
23
  import { WorkHour } from '@licklist/core/dist/DataMapper/Provider/WorkHourDataMapper'
24
24
  import { checkIfZoneCategory } from '@licklist/plugins'
25
25
  import { Image } from '@licklist/core/dist/DataMapper/Media/ImageDataMapper'
26
- import { SaleDeadline } from 'src/events/edit-event-modal/component/SaleDeadline'
27
26
  import { WarningMessage } from '../../static'
28
27
  import { SelectItem } from '../../types/generic/SelectItem'
29
28
  import {
@@ -67,7 +66,6 @@ export interface ProductSetControlValues extends DateAndRecurrenceInputValues {
67
66
  productGroups?: SelectItem[]
68
67
  relyOnPeopleType?: RelyOnPeopleType | null
69
68
  fieldSetId?: number
70
- saleDeadline?: number
71
69
  steps: Step[]
72
70
  emailTemplates?: TemplateItem[]
73
71
  smsTemplates?: TemplateItem[]
@@ -95,7 +93,6 @@ export interface ProductSetControlProps {
95
93
  workHours: WorkHour[] | undefined
96
94
  providerHasBookingManagement?: boolean
97
95
  isOverrides?: boolean
98
- saleDeadline?: number
99
96
  isCreateNewOverrides?: boolean
100
97
  timeZone: string
101
98
  }
@@ -225,8 +222,6 @@ export function ProductSetControl({
225
222
  </>
226
223
  )}
227
224
 
228
- <SaleDeadline disabled={false} onlyBefore />
229
-
230
225
  <div className='divider' />
231
226
 
232
227
  <TutorialGifCard isOverrides={isOverrides} />
@@ -8,7 +8,6 @@ import {
8
8
  useFormContext,
9
9
  useWatch,
10
10
  } from 'react-hook-form'
11
- import { FaBars, FaBowlingBall, FaCalendar, FaTicketAlt } from 'react-icons/fa'
12
11
  import { useTranslation } from 'react-i18next'
13
12
  import { useSensor, MouseSensor } from '@dnd-kit/core'
14
13
  import {
@@ -26,11 +25,7 @@ import { ProductCategoryControl } from '../product-category'
26
25
  import { ProductCategory } from '../types'
27
26
  import { ProductsControl } from './ProductsControl'
28
27
  import { ProductSetFormValues, WithIsLoading } from './ProductSetForm'
29
- import {
30
- SelectCategoryModal,
31
- CATEGORY_TYPES_NAMES,
32
- CategoryConfig,
33
- } from './SelectCategoryModal'
28
+ import { SelectCategoryModal } from './SelectCategoryModal'
34
29
  import { ProductSetLoadingContext } from './context'
35
30
  import { VenueMapSetModal } from './VenueMapSetModal'
36
31
  import { moveArrayElements, sortArrayByIndex } from '../utils'
@@ -38,29 +33,6 @@ import { useSortableTreeFunctions } from '../hooks/useSortableTreeFunctions'
38
33
  // @TODO not for first release
39
34
  // import Popover from "./ProductSetFormPopover";
40
35
 
41
- const CATEGORIES_TYPE: Partial<Record<CategoryType, CategoryConfig>> = {
42
- [CATEGORY_TYPES_NAMES.tickets]: {
43
- label: 'tickets',
44
- icon: <FaTicketAlt color='#0e8ce2' size={10} />,
45
- },
46
- [CATEGORY_TYPES_NAMES.bookings]: {
47
- label: 'bookings',
48
- icon: <FaCalendar color='#0e8ce2' size={10} />,
49
- },
50
- [CATEGORY_TYPES_NAMES.menuItems]: {
51
- label: 'menuItems',
52
- icon: <FaBars color='#0e8ce2' size={10} />,
53
- },
54
- [CATEGORY_TYPES_NAMES.game]: {
55
- label: 'game',
56
- icon: <FaBowlingBall color='#0e8ce2' size={10} />,
57
- },
58
- [CATEGORY_TYPES_NAMES.fixedDuration]: {
59
- label: 'fixedDuration',
60
- icon: <FaCalendar color='#0e8ce2' size={10} />,
61
- },
62
- }
63
-
64
36
  interface ProductCategoriesControlProps extends WithIsLoading {
65
37
  stepIndex: number
66
38
  isOverrides?: boolean
@@ -86,7 +58,6 @@ const getCategoryDefaultValue = (
86
58
  remainderExpireAfter: undefined,
87
59
  hasBookingManagement: false,
88
60
  weight: 0,
89
- saleDeadlineCategory: 0,
90
61
  isReusable: false,
91
62
  hasSubEvents: false,
92
63
  products: [],
@@ -257,8 +228,6 @@ export function ProductCategoriesControl({
257
228
  setIsExpanded(productCategoryId)
258
229
  }
259
230
 
260
- const categoryType = CATEGORIES_TYPE[productCategory.type]
261
-
262
231
  return (
263
232
  <Controller
264
233
  key={`product-category-${productCategory._id}`}
@@ -303,12 +272,6 @@ export function ProductCategoriesControl({
303
272
  )}
304
273
  modalClass={ProductSetModalClasses.category}
305
274
  isNewAdded={showCategoryModal}
306
- itemButton={
307
- <div className='btn-outline-primary item-icon sm border border-primary rounded-sm'>
308
- {categoryType.icon}
309
- <span className='ml-2'>{t(categoryType.label)}</span>
310
- </div>
311
- }
312
275
  body={
313
276
  <ProductCategoryControl
314
277
  isLoading={isLoading}
@@ -12,7 +12,7 @@ import { isEqual } from 'lodash'
12
12
  import { ProviderBookingManagementSetting } from '@licklist/core/dist/DataMapper/Provider/ProviderBookingManagementSettingDataMapper'
13
13
  import { Zone } from '@licklist/core/dist/DataMapper/Provider/ZoneDataMapper'
14
14
  import { WorkHour } from '@licklist/core/dist/DataMapper/Provider/WorkHourDataMapper'
15
- import { transformErrorToMessage } from '@licklist/plugins/dist/utils/error'
15
+ import { transformErrorToMessage } from '@licklist/plugins'
16
16
  import { Dialog, useDialogContext } from '../../modals/dialog'
17
17
  import {
18
18
  ProductSetControl,
@@ -28,16 +28,12 @@ import { ErrorModal } from '../../iframe/order-process/components/ErrorModal'
28
28
  export interface WithIsLoading {
29
29
  isLoading: boolean
30
30
  }
31
- export interface WithIdOptional {
32
- id?: number
33
- }
34
-
35
31
  export interface WithId {
36
32
  id: number
37
33
  }
38
34
  export interface ProductSetFormValues
39
35
  extends FormValues,
40
- WithIdOptional,
36
+ WithId,
41
37
  ProductSetControlValues {
42
38
  steps: Step[]
43
39
  isOverrides?: boolean
@@ -59,7 +55,6 @@ export interface ProductSetFormProps
59
55
  isCreateAction?: boolean
60
56
  isOverrides?: boolean
61
57
  workHours?: WorkHour[]
62
- saleDeadline?: number
63
58
  isCreateNewOverrides?: boolean
64
59
  timeZone: string
65
60
  }
@@ -78,7 +73,6 @@ export function ProductSetForm({
78
73
  zones,
79
74
  isCreateAction,
80
75
  workHours,
81
- saleDeadline,
82
76
  isOverrides,
83
77
  isCreateNewOverrides,
84
78
  timeZone,
@@ -1,4 +1,7 @@
1
- import { useContext, useState } from 'react'
1
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2
+ // @ts-nocheck
3
+ import React, { useContext, useState } from 'react'
4
+
2
5
  import {
3
6
  ArrayPath,
4
7
  Controller,
@@ -25,7 +25,7 @@ import {
25
25
  } from 'react-icons/fa'
26
26
  import { ProductSetLoadingContext } from './context'
27
27
 
28
- export const CATEGORY_TYPES_NAMES = {
28
+ const CATEGORY_TYPES_NAMES = {
29
29
  menuItems: CATEGORY_TYPE_MENU_ITEMS,
30
30
  tickets: CATEGORY_TYPE_TICKETS,
31
31
  bookings: CATEGORY_TYPE_BOOKINGS,
@@ -33,7 +33,7 @@ export const CATEGORY_TYPES_NAMES = {
33
33
  fixedDuration: CATEGORY_TYPE_FIXED_DURATION,
34
34
  } as const
35
35
 
36
- export type CategoryConfig = { label: string; icon: ReactElement }
36
+ type CategoryConfig = { label: string; icon: ReactElement }
37
37
 
38
38
  const MAIN_CATEGORIES: Partial<Record<CategoryType, CategoryConfig>> = {
39
39
  [CATEGORY_TYPES_NAMES.tickets]: {
@@ -70,6 +70,9 @@ export function SubProductsControl({
70
70
  images: subProducts[index]?.images as Image[],
71
71
  }
72
72
  // @ts-expect-error TS2345
73
+ // @TODO fix prod type error
74
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
75
+ // @ts-ignore
73
76
  append(subProductCopy)
74
77
  }}
75
78
  />
@@ -3,9 +3,9 @@ import { Button } from 'react-bootstrap'
3
3
  import { VenueMap } from '@licklist/core/dist/DataMapper/Product/VenueMapDataMapper'
4
4
  import MediaService from '@licklist/plugins/dist/services/Media/MediaService'
5
5
  import { PointProduct } from '@licklist/core/dist/DataMapper/Product/PointProductDataMapper'
6
- import { Product } from '@licklist/core/dist/DataMapper/Product/ProductDataMapper'
7
6
  import { FullscreenModal } from '../../modals/fullscreen'
8
7
  import { EventVenueMap } from '../../events/event-venue-map'
8
+ import { Product } from '../types'
9
9
 
10
10
  type VenueMapsControlProps = {
11
11
  venueMaps?: VenueMap[]
@@ -46,6 +46,9 @@ export const VenueMapsControl = ({
46
46
  url={image.url}
47
47
  name={name}
48
48
  points={points}
49
+ // @TODO fix prod type error
50
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
51
+ // @ts-ignore
49
52
  products={products}
50
53
  pointProducts={pointProducts}
51
54
  onPointProductsChange={onPointProductsChange}
@@ -34,6 +34,7 @@ import {
34
34
  } from 'react-hook-form'
35
35
  import { useTranslation } from 'react-i18next'
36
36
  import { useImages } from '@licklist/plugins/dist/hooks/Media/useImages'
37
+
37
38
  import {
38
39
  Image,
39
40
  IMAGE_TYPE_IMAGE,
@@ -1,4 +1,4 @@
1
- import { useContext } from 'react'
1
+ import React, { useContext } from 'react'
2
2
  import { Col, Form } from 'react-bootstrap'
3
3
  import { Controller, Path, useFormContext } from 'react-hook-form'
4
4
  import { HookFormService } from '@licklist/plugins'
@@ -86,7 +86,6 @@ export function ProductBookingManagementControl<T extends FormValues>(
86
86
  <Form.Control
87
87
  ref={ref}
88
88
  type='number'
89
- onWheel={(event) => event.currentTarget.blur()}
90
89
  min={0}
91
90
  step={1}
92
91
  value={value as string}
@@ -130,7 +129,6 @@ export function ProductBookingManagementControl<T extends FormValues>(
130
129
  <Form.Control
131
130
  ref={ref}
132
131
  type='number'
133
- onWheel={(event) => event.currentTarget.blur()}
134
132
  min='0'
135
133
  step='1'
136
134
  value={value as string}
@@ -50,7 +50,6 @@ export function ProductDepositControl<T extends FormValues>(
50
50
  <Form.Control
51
51
  ref={ref}
52
52
  type='number'
53
- onWheel={(event) => event.currentTarget.blur()}
54
53
  min={0}
55
54
  max={Number(totalPrice)}
56
55
  step='0.01'
@@ -91,7 +91,6 @@ export const ProductDurationControl = <T,>({
91
91
  <Form.Control
92
92
  type='number'
93
93
  min={0}
94
- onWheel={(event) => event.currentTarget.blur()}
95
94
  step={1}
96
95
  value={durationHours}
97
96
  disabled={disabled}
@@ -128,7 +127,6 @@ export const ProductDurationControl = <T,>({
128
127
  type='number'
129
128
  min={0}
130
129
  step={1}
131
- onWheel={(event) => event.currentTarget.blur()}
132
130
  disabled={disabled}
133
131
  value={durationMinutes}
134
132
  isInvalid={isInvalid}
@@ -59,7 +59,6 @@ export function ProductPriceControl<T extends FormValues>({
59
59
  ref={ref}
60
60
  type='number'
61
61
  min={0}
62
- onWheel={(event) => event.currentTarget.blur()}
63
62
  max={999999.99}
64
63
  step='0.01'
65
64
  value={value as string}
@@ -111,7 +111,6 @@ export function ProductQuantityConstantControl<T extends FormValues>(
111
111
  type='number'
112
112
  min={0}
113
113
  step={1}
114
- onWheel={(event) => event.currentTarget.blur()}
115
114
  value={value as string}
116
115
  isInvalid={HookFormService.isInvalid<T>(
117
116
  `${fieldNamePrefix}.totalQuantity` as Path<T>,
@@ -166,7 +165,6 @@ export function ProductQuantityConstantControl<T extends FormValues>(
166
165
  type='number'
167
166
  min={0}
168
167
  step={1}
169
- onWheel={(event) => event.currentTarget.blur()}
170
168
  value={value as string}
171
169
  onChange={onChange}
172
170
  onFocus={onFocus}
@@ -85,7 +85,6 @@ export function ProductQuantityControl<T extends FormValues>(
85
85
  type='number'
86
86
  min={0}
87
87
  step={1}
88
- onWheel={(event) => event.currentTarget.blur()}
89
88
  value={value as string}
90
89
  onChange={onChange}
91
90
  onFocus={onFocus}
@@ -144,7 +143,6 @@ export function ProductQuantityControl<T extends FormValues>(
144
143
  type='number'
145
144
  min={0}
146
145
  step={1}
147
- onWheel={(event) => event.currentTarget.blur()}
148
146
  value={value && (value as string)}
149
147
  onFocus={onFocus}
150
148
  onChange={onChange}
@@ -69,7 +69,6 @@ export function ProductQuantityRechargingControl<T extends FormValues>(
69
69
  type='number'
70
70
  min={0}
71
71
  step={1}
72
- onWheel={(event) => event.currentTarget.blur()}
73
72
  {...register(`${fieldNamePrefix}.totalQuantity` as Path<T>, {
74
73
  validate: (value) => {
75
74
  if (unlimited) return true