@licklist/design 0.71.18-dev.9 → 0.71.18

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 (323) 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.map +1 -1
  15. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +1 -3
  16. package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
  17. package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +1 -0
  18. package/dist/events/event-card/utils.d.ts.map +1 -1
  19. package/dist/events/event-statistic-modal/EventStatisticModal.d.ts +1 -2
  20. package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
  21. package/dist/events/event-statistic-modal/EventStatisticModal.js +2 -2
  22. package/dist/events/event-statistic-modal/hooks/useTableData.d.ts +1 -1
  23. package/dist/events/event-statistic-modal/hooks/useTableData.d.ts.map +1 -1
  24. package/dist/events/event-statistic-modal/hooks/useTableData.js +1 -2
  25. package/dist/events/event-statistic-modal/utils/index.d.ts.map +1 -1
  26. package/dist/events/event-statistic-modal/utils/index.js +3 -3
  27. package/dist/events/event-venue-map/EventVenueMap.d.ts.map +1 -1
  28. package/dist/events/event-venue-map/EventVenueMap.js +0 -1
  29. package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts.map +1 -1
  30. package/dist/events/event-venue-map/hooks/useCanvasSize.js +4 -11
  31. package/dist/iframe/activity-card/ActivityCard.d.ts +2 -1
  32. package/dist/iframe/activity-card/ActivityCard.d.ts.map +1 -1
  33. package/dist/iframe/activity-card/ActivityCard.js +7 -1
  34. package/dist/iframe/event/ticket-description/TicketDescription.d.ts +1 -2
  35. package/dist/iframe/event/ticket-description/TicketDescription.d.ts.map +1 -1
  36. package/dist/iframe/event/ticket-description/TicketDescription.js +3 -4
  37. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts.map +1 -1
  38. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.js +2 -15
  39. package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.d.ts.map +1 -1
  40. package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.js +3 -3
  41. package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts +0 -4
  42. package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
  43. package/dist/iframe/order-process/components/BookingSummary/utils/index.js +2 -27
  44. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
  45. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +2 -106
  46. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
  47. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +0 -13
  48. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts +1 -3
  49. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
  50. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +1 -95
  51. package/dist/iframe/page/components/PageBody/hooks/useResizePageBody.d.ts.map +1 -1
  52. package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts.map +1 -1
  53. package/dist/iframe/payment/order-items-table/hooks/useTableData.js +10 -83
  54. package/dist/iframe/payment/order-items-table/utils/index.d.ts.map +1 -1
  55. package/dist/iframe/payment/order-items-table/utils/index.js +0 -15
  56. package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
  57. package/dist/iframe/payment/order-items-table/utils/paymentSummary.js +2 -2
  58. package/dist/iframe/payment/payment-status-page/PaymentStatusPage.d.ts.map +1 -1
  59. package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +2 -2
  60. package/dist/iframe/ryft/RyftPaymentForm.js +0 -1
  61. package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
  62. package/dist/iframe/ryft/utils/ryft-form.js +5 -4
  63. package/dist/index.js +1 -2
  64. package/dist/layout/DropDown.d.ts +1 -2
  65. package/dist/layout/DropDown.d.ts.map +1 -1
  66. package/dist/notification/email-template/card/EmailTemplateCard.d.ts.map +1 -1
  67. package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
  68. package/dist/notification/email-template/control/EmailTemplateControl.js +0 -3
  69. package/dist/notification/sms-template/card/SmsTemplateCard.d.ts.map +1 -1
  70. package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
  71. package/dist/product-set/control/DateInput.d.ts.map +1 -1
  72. package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
  73. package/dist/product-set/form/ProductCategoriesControl.js +2 -48
  74. package/dist/product-set/form/ProductSetForm.d.ts +2 -7
  75. package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
  76. package/dist/product-set/form/ProductSetForm.js +5 -7
  77. package/dist/product-set/form/ProductZonesControl.d.ts.map +1 -1
  78. package/dist/product-set/form/ProductZonesControl.js +2 -0
  79. package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
  80. package/dist/product-set/form/ProductsControl.js +5 -25
  81. package/dist/product-set/form/SelectCategoryModal.d.ts +0 -12
  82. package/dist/product-set/form/SelectCategoryModal.d.ts.map +1 -1
  83. package/dist/product-set/form/SelectCategoryModal.js +1 -1
  84. package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
  85. package/dist/product-set/form/SubProductsControl.js +3 -0
  86. package/dist/product-set/form/VenueMapsControl.d.ts +1 -1
  87. package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
  88. package/dist/product-set/form/VenueMapsControl.js +3 -0
  89. package/dist/product-set/form/context.d.ts +1 -3
  90. package/dist/product-set/form/context.d.ts.map +1 -1
  91. package/dist/product-set/form/context.js +1 -2
  92. package/dist/product-set/product/ProductControl.d.ts +0 -8
  93. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  94. package/dist/product-set/product/ProductControl.js +1 -25
  95. package/dist/product-set/product/booking-management/ProductBookingManagementControl.d.ts.map +1 -1
  96. package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +0 -6
  97. package/dist/product-set/product/deposit/ProductDepositControl.d.ts.map +1 -1
  98. package/dist/product-set/product/deposit/ProductDepositControl.js +0 -3
  99. package/dist/product-set/product/duration/ProductDurationControl.d.ts.map +1 -1
  100. package/dist/product-set/product/duration/ProductDurationControl.js +0 -6
  101. package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
  102. package/dist/product-set/product/price/ProductPriceControl.js +0 -3
  103. package/dist/product-set/product/quantity/ProductQuantityConstantControl.d.ts.map +1 -1
  104. package/dist/product-set/product/quantity/ProductQuantityConstantControl.js +0 -6
  105. package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
  106. package/dist/product-set/product/quantity/ProductQuantityControl.js +0 -6
  107. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
  108. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +1 -4
  109. package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
  110. package/dist/product-set/product-category/ProductCategoryControl.js +0 -12
  111. package/dist/product-set/utils/index.d.ts +0 -88
  112. package/dist/product-set/utils/index.d.ts.map +1 -1
  113. package/dist/product-set/utils/index.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.d.ts +1 -2
  118. package/dist/report/ReportRunnerModal/ReportRunnerModal.d.ts.map +1 -1
  119. package/dist/report/ReportRunnerModal/ReportRunnerModal.js +2 -4
  120. package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
  121. package/dist/resource/form/components/CapacityControl.js +0 -3
  122. package/dist/resource/form/components/SortControl.d.ts.map +1 -1
  123. package/dist/resource/form/components/SortControl.js +0 -3
  124. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  125. package/dist/sales/booking/results/components/ResultCard.js +2 -0
  126. package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
  127. package/dist/sales/coupon/control/CouponFormControl.js +0 -21
  128. package/dist/sales/coupon/utils/index.d.ts +1 -2
  129. package/dist/sales/coupon/utils/index.d.ts.map +1 -1
  130. package/dist/sales/life-time-sales/LifeTimeSalesChart.js +0 -1
  131. package/dist/sales/manual-booking/select-event/SelectEvent.js +0 -1
  132. package/dist/sales/manual-booking/select-menu/SelectMenu.js +0 -1
  133. package/dist/sales/manual-booking/summary/ManualBookingSummary.js +0 -1
  134. package/dist/sales/modals/refund-modal/RefundModal.d.ts +2 -6
  135. package/dist/sales/modals/refund-modal/RefundModal.d.ts.map +1 -1
  136. package/dist/sales/modals/refund-modal/RefundModal.js +4 -8
  137. package/dist/sales/modals/refund-modal/index.d.ts +2 -2
  138. package/dist/sales/modals/refund-modal/index.d.ts.map +1 -1
  139. package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
  140. package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
  141. package/dist/setting/admin/PaymentFeeForm.js +1 -16
  142. package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
  143. package/dist/setting/dashboard/DashboardSettingForm.js +1 -4
  144. package/dist/setting/dashboard/snippet-templates/card/SnippetTemplateCard.d.ts.map +1 -1
  145. package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
  146. package/dist/snippet/snippet-template/preview/Preview.js +1 -3
  147. package/dist/sortable-tree/SortableTreeItem.d.ts +1 -2
  148. package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
  149. package/dist/sortable-tree/SortableTreeItem.js +4 -10
  150. package/dist/static/CurrencyNumberInput.d.ts.map +1 -1
  151. package/dist/static/CurrencyNumberInput.js +0 -3
  152. package/dist/static/date-range-input/utils/index.d.ts +1 -1
  153. package/dist/static/date-range-input/utils/index.d.ts.map +1 -1
  154. package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
  155. package/dist/static/form-number-input/FormNumberInput.js +0 -3
  156. package/dist/static/loader/LoaderIndicator.d.ts +3 -2
  157. package/dist/static/loader/LoaderIndicator.d.ts.map +1 -1
  158. package/dist/static/loader/LoaderIndicator.js +2 -4
  159. package/dist/static/loader/index.d.ts +0 -1
  160. package/dist/static/loader/index.d.ts.map +1 -1
  161. package/dist/static/number-input/NumberInput.d.ts.map +1 -1
  162. package/dist/static/number-input/NumberInput.js +0 -3
  163. package/dist/styles/availability-indicator/AvailabilityIndicator.scss +4 -1
  164. package/dist/styles/date-time-button/DateTimeButton.scss +1 -10
  165. package/dist/styles/events/EditEventModal.scss +0 -2
  166. package/dist/styles/iframe-events/Calendar.scss +1 -1
  167. package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
  168. package/dist/styles/iframe-page/Page.scss +0 -16
  169. package/dist/styles/iframe-page/PageBody.scss +0 -4
  170. package/dist/styles/modals/Modals.scss +0 -16
  171. package/dist/styles/product-set/EditProductSetElement.scss +0 -1
  172. package/dist/styles/product-set/ProductSetForm.scss +0 -33
  173. package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +4 -2
  174. package/dist/styles/sales/BookingResults.scss +1 -1
  175. package/dist/styles/sales/ManualBooking.scss +0 -6
  176. package/dist/styles/static/Loader.scss +0 -9
  177. package/dist/styles/themes/bookedit/index.scss +0 -19
  178. package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -1
  179. package/dist/zone/form/components/GameDurationControl.js +0 -3
  180. package/dist/zone/form/components/SortControl.d.ts.map +1 -1
  181. package/dist/zone/form/components/SortControl.js +0 -3
  182. package/package.json +6 -8
  183. package/src/affiliate/form/AffiliateForm.tsx +0 -1
  184. package/src/auth/Layout/AuthNavComponent.tsx +0 -4
  185. package/src/auth/Login/LoginComponent.tsx +1 -3
  186. package/src/auth/Login/LoginFormComponent.tsx +0 -2
  187. package/src/auth/Register/RegisterComponent.tsx +0 -2
  188. package/src/auth/Register/RegisterFormComponent.tsx +0 -4
  189. package/src/auth/ResetPassword/ResetPasswordFormComponent.tsx +0 -4
  190. package/src/auth/Router.tsx +0 -2
  191. package/src/calendar/Calendar.stories.tsx +2 -2
  192. package/src/calendar/utils/index.ts +1 -1
  193. package/src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx +7 -9
  194. package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +1 -0
  195. package/src/events/event-card/utils.ts +9 -10
  196. package/src/events/event-statistic-modal/EventStatisticModal.tsx +1 -3
  197. package/src/events/event-statistic-modal/hooks/useTableData.tsx +1 -2
  198. package/src/events/event-statistic-modal/utils/index.ts +5 -6
  199. package/src/events/event-venue-map/EventVenueMap.tsx +0 -1
  200. package/src/events/event-venue-map/hooks/useCanvasSize.ts +1 -5
  201. package/src/iframe/activity-card/ActivityCard.stories.tsx +2 -0
  202. package/src/iframe/activity-card/ActivityCard.tsx +4 -0
  203. package/src/iframe/event/ticket-description/TicketDescription.tsx +3 -5
  204. package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +1 -21
  205. package/src/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.tsx +11 -13
  206. package/src/iframe/order-process/components/BookingSummary/utils/index.ts +4 -47
  207. package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +75 -155
  208. package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +0 -9
  209. package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +1 -58
  210. package/src/iframe/page/components/PageBody/hooks/useResizePageBody.ts +2 -1
  211. package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +14 -84
  212. package/src/iframe/payment/order-items-table/utils/index.ts +0 -23
  213. package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +2 -3
  214. package/src/iframe/payment/payment-status-page/PaymentStatusPage.tsx +20 -19
  215. package/src/iframe/ryft/utils/ryft-form.ts +5 -6
  216. package/src/layout/DropDown.tsx +1 -1
  217. package/src/notification/email-template/card/EmailTemplateCard.tsx +0 -2
  218. package/src/notification/email-template/control/EmailTemplateControl.tsx +0 -1
  219. package/src/notification/sms-template/card/SmsTemplateCard.tsx +0 -2
  220. package/src/product-set/control/DateAndRecurrenceInput.tsx +4 -3
  221. package/src/product-set/control/DateInput.tsx +4 -3
  222. package/src/product-set/form/ProductCategoriesControl.tsx +1 -37
  223. package/src/product-set/form/ProductSetForm.tsx +5 -17
  224. package/src/product-set/form/ProductZonesControl.tsx +4 -1
  225. package/src/product-set/form/ProductsControl.tsx +15 -33
  226. package/src/product-set/form/SelectCategoryModal.tsx +2 -2
  227. package/src/product-set/form/SubProductsControl.tsx +3 -0
  228. package/src/product-set/form/VenueMapsControl.tsx +4 -1
  229. package/src/product-set/form/context.tsx +0 -5
  230. package/src/product-set/product/ProductControl.tsx +2 -37
  231. package/src/product-set/product/advanced-options/AdvancedOptions.tsx +1 -1
  232. package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +0 -2
  233. package/src/product-set/product/deposit/ProductDepositControl.tsx +0 -1
  234. package/src/product-set/product/duration/ProductDurationControl.tsx +0 -2
  235. package/src/product-set/product/price/ProductPriceControl.tsx +0 -1
  236. package/src/product-set/product/quantity/ProductQuantityConstantControl.tsx +0 -2
  237. package/src/product-set/product/quantity/ProductQuantityControl.tsx +0 -2
  238. package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +0 -1
  239. package/src/product-set/product-category/ProductCategoryControl.tsx +0 -4
  240. package/src/product-set/product-zone/ProductZoneControl.tsx +1 -1
  241. package/src/product-set/utils/index.ts +0 -19
  242. package/src/recurrence-input/RecurrenceEndInput.tsx +0 -1
  243. package/src/recurring-date-picker-input/RecurrenceEndInput.tsx +0 -1
  244. package/src/report/ReportRunnerModal/ReportRunnerModal.tsx +0 -3
  245. package/src/resource/form/components/CapacityControl.tsx +0 -1
  246. package/src/resource/form/components/SortControl.tsx +0 -1
  247. package/src/sales/booking/results/components/ResultCard.tsx +2 -0
  248. package/src/sales/coupon/control/CouponFormControl.tsx +0 -7
  249. package/src/sales/coupon/utils/index.ts +3 -5
  250. package/src/sales/modals/refund-modal/RefundModal.tsx +6 -15
  251. package/src/sales/modals/refund-modal/index.ts +2 -7
  252. package/src/setting/admin/AdminSettingForm.tsx +0 -4
  253. package/src/setting/admin/PaymentFeeForm.tsx +0 -5
  254. package/src/setting/dashboard/DashboardSettingForm.tsx +0 -1
  255. package/src/setting/dashboard/snippet-templates/card/SnippetTemplateCard.tsx +0 -2
  256. package/src/snippet/snippet-template/preview/Preview.tsx +2 -1
  257. package/src/sortable-tree/SortableTreeItem.tsx +0 -6
  258. package/src/static/CurrencyNumberInput.tsx +0 -1
  259. package/src/static/date-range-input/utils/index.ts +1 -1
  260. package/src/static/form-number-input/FormNumberInput.tsx +0 -1
  261. package/src/static/loader/LoaderIndicator.tsx +3 -6
  262. package/src/static/loader/index.ts +0 -1
  263. package/src/static/number-input/NumberInput.tsx +0 -1
  264. package/src/styles/availability-indicator/AvailabilityIndicator.scss +4 -1
  265. package/src/styles/date-time-button/DateTimeButton.scss +1 -10
  266. package/src/styles/events/EditEventModal.scss +0 -2
  267. package/src/styles/iframe-events/Calendar.scss +1 -1
  268. package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
  269. package/src/styles/iframe-page/Page.scss +0 -16
  270. package/src/styles/iframe-page/PageBody.scss +0 -4
  271. package/src/styles/modals/Modals.scss +0 -16
  272. package/src/styles/product-set/EditProductSetElement.scss +0 -1
  273. package/src/styles/product-set/ProductSetForm.scss +0 -33
  274. package/src/styles/ryft-payment-form/RyftPaymentForm.scss +4 -2
  275. package/src/styles/sales/BookingResults.scss +1 -1
  276. package/src/styles/sales/ManualBooking.scss +0 -6
  277. package/src/styles/static/Loader.scss +0 -9
  278. package/src/styles/themes/bookedit/index.scss +0 -19
  279. package/src/zone/form/components/GameDurationControl.tsx +0 -1
  280. package/src/zone/form/components/SortControl.tsx +0 -1
  281. package/yarn.lock +338 -354
  282. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.d.ts +0 -18
  283. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.d.ts.map +0 -1
  284. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.js +0 -289
  285. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.d.ts +0 -15
  286. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.d.ts.map +0 -1
  287. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js +0 -89
  288. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts +0 -14
  289. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts.map +0 -1
  290. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.js +0 -404
  291. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.d.ts +0 -10
  292. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.d.ts.map +0 -1
  293. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.js +0 -87
  294. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/index.d.ts +0 -2
  295. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/index.d.ts.map +0 -1
  296. package/dist/iframe/ProductWithModifierModal/index.d.ts +0 -2
  297. package/dist/iframe/ProductWithModifierModal/index.d.ts.map +0 -1
  298. package/dist/iframe/ProductWithModifierModal/utils.d.ts +0 -5
  299. package/dist/iframe/ProductWithModifierModal/utils.d.ts.map +0 -1
  300. package/dist/iframe/ProductWithModifierModal/utils.js +0 -21
  301. package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.d.ts +0 -23
  302. package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.d.ts.map +0 -1
  303. package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.js +0 -62
  304. package/dist/iframe/order-process/components/CategoryProduct/constants.d.ts +0 -2
  305. package/dist/iframe/order-process/components/CategoryProduct/constants.d.ts.map +0 -1
  306. package/dist/iframe/order-process/components/CategoryProduct/constants.js +0 -4
  307. package/dist/iframe/order-process/components/utils/useOnWindowUnmount.d.ts +0 -6
  308. package/dist/iframe/order-process/components/utils/useOnWindowUnmount.d.ts.map +0 -1
  309. package/dist/iframe/order-process/components/utils/useOnWindowUnmount.js +0 -18
  310. package/dist/static/loader/FullScreenLoader.d.ts +0 -8
  311. package/dist/static/loader/FullScreenLoader.d.ts.map +0 -1
  312. package/dist/static/loader/FullScreenLoader.js +0 -41
  313. package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.tsx +0 -212
  314. package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx +0 -75
  315. package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.tsx +0 -393
  316. package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.tsx +0 -98
  317. package/src/iframe/ProductWithModifierModal/ModifierSetModal/index.ts +0 -1
  318. package/src/iframe/ProductWithModifierModal/index.ts +0 -1
  319. package/src/iframe/ProductWithModifierModal/utils.ts +0 -29
  320. package/src/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.tsx +0 -86
  321. package/src/iframe/order-process/components/CategoryProduct/constants.ts +0 -1
  322. package/src/iframe/order-process/components/utils/useOnWindowUnmount.ts +0 -25
  323. package/src/static/loader/FullScreenLoader.tsx +0 -16
@@ -23,7 +23,7 @@ const paymentNotProcessedSummary = ({
23
23
  ? getExternalPaymentDetail(paymentDetail)
24
24
  : undefined
25
25
 
26
- const total = order?.fullAmount || calculateTotalPrice(order, externalPaymentDetail)
26
+ const total = calculateTotalPrice(order, externalPaymentDetail)
27
27
 
28
28
  const summaryItems: SummaryItem[] = [
29
29
  {
@@ -58,10 +58,9 @@ const processedPaymentSummary = ({
58
58
  price: getPaymentValueByType(order.payments, key),
59
59
  }))
60
60
 
61
- const total = order.fullAmount || calculateTotalPrice(order, externalPaymentDetail)
61
+ const total = calculateTotalPrice(order, externalPaymentDetail)
62
62
 
63
63
  const totalDiscount = calculateTotalDiscount(order.payments)
64
-
65
64
  let summaryItems: SummaryItem[] = [
66
65
  {
67
66
  translateKey: AMOUNT_TOTAL,
@@ -59,19 +59,20 @@ 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
+
63
+ const orderCartAmountByFormValues = cartSumByOrderProducts({
64
+ orderProducts:
65
+ bookingSummaryProps?.formValues &&
66
+ Object.values(bookingSummaryProps?.formValues),
67
+ });
68
+ const orderTotalAmountByFormValues = cartSumByOrderProducts({
69
+ orderProducts:
70
+ bookingSummaryProps?.formValues &&
71
+ Object.values(bookingSummaryProps?.formValues),
72
+ isTotalSum: true,
73
+ });
74
+ const hasRemaingToPay =
75
+ orderTotalAmountByFormValues > orderCartAmountByFormValues;
75
76
 
76
77
  // User can fill promocode only in iframe appcliation.
77
78
  // It didn't possible via payment link. This check will
@@ -80,9 +81,9 @@ export const PaymentStatusPage = ({
80
81
  // For payment status page booking summary props can be empty
81
82
  // so we should also check for them
82
83
  const isCalculatedAmountGreaterThanOrderAmount =
83
- !hasRemaingToPay &&
84
- bookingSummaryProps &&
85
- orderCartAmountByFormValues > totalAmount
84
+ !hasRemaingToPay &&
85
+ bookingSummaryProps &&
86
+ orderCartAmountByFormValues > totalAmount;
86
87
 
87
88
  return (
88
89
  <Page
@@ -139,7 +140,7 @@ export const PaymentStatusPage = ({
139
140
  <>
140
141
  {isCalculatedAmountGreaterThanOrderAmount && (
141
142
  <SummaryTotalBlock
142
- label={t(hasRemaingToPay ? 'payNow' : 'total')}
143
+ label={t(hasRemaingToPay ? "payNow" : "total")}
143
144
  amount={
144
145
  orderCartAmountByFormValues +
145
146
  (bookingSummaryProps?.transactionFee || 0)
@@ -158,9 +159,9 @@ export const PaymentStatusPage = ({
158
159
  (bookingSummaryProps?.transactionFee || 0)
159
160
  }
160
161
  />
161
- {hasRemaingToPay && (
162
+ {hasRemaingToPay && (
162
163
  <SummaryTotalBlock
163
- label={t('remaining')}
164
+ label={t("remaining")}
164
165
  amount={
165
166
  orderTotalAmountByFormValues -
166
167
  orderCartAmountByFormValues
@@ -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
@@ -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>
@@ -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
@@ -257,8 +229,6 @@ export function ProductCategoriesControl({
257
229
  setIsExpanded(productCategoryId)
258
230
  }
259
231
 
260
- const categoryType = CATEGORIES_TYPE[productCategory.type]
261
-
262
232
  return (
263
233
  <Controller
264
234
  key={`product-category-${productCategory._id}`}
@@ -303,12 +273,6 @@ export function ProductCategoriesControl({
303
273
  )}
304
274
  modalClass={ProductSetModalClasses.category}
305
275
  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
276
  body={
313
277
  <ProductCategoryControl
314
278
  isLoading={isLoading}
@@ -6,14 +6,13 @@ import { TFunction, useTranslation } from 'react-i18next'
6
6
  import { VenueMapSet } from '@licklist/core/dist/DataMapper/Product/VenueMapSetDataMapper'
7
7
  import { ServerError } from '@licklist/plugins/dist/hooks/Api/useHttpQuery'
8
8
  import FormErrorService from '@licklist/plugins/dist/services/Form/FormErrorService'
9
- import { ModifierSet } from '@licklist/core/dist/DataMapper/Product/ModifierSetDataMapper'
10
9
 
11
10
  import { isEqual } from 'lodash'
12
11
  // eslint-disable-next-line max-len
13
12
  import { ProviderBookingManagementSetting } from '@licklist/core/dist/DataMapper/Provider/ProviderBookingManagementSettingDataMapper'
14
13
  import { Zone } from '@licklist/core/dist/DataMapper/Provider/ZoneDataMapper'
15
14
  import { WorkHour } from '@licklist/core/dist/DataMapper/Provider/WorkHourDataMapper'
16
- import { transformErrorToMessage } from '@licklist/plugins/dist/utils/error'
15
+ import { transformErrorToMessage } from '@licklist/plugins'
17
16
  import { Dialog, useDialogContext } from '../../modals/dialog'
18
17
  import {
19
18
  ProductSetControl,
@@ -23,26 +22,18 @@ import {
23
22
  import { Step } from '../types'
24
23
  import { ProductSetContextProvider, ProductSetLoadingContext } from './context'
25
24
  import { SelectItem } from '../../types/generic/SelectItem'
26
- import {
27
- checkAvailableTimesErrors,
28
- updateModifiersSetAtProductSetForm,
29
- getFilteredTemplates,
30
- } from '../utils'
25
+ import { checkAvailableTimesErrors, getFilteredTemplates } from '../utils'
31
26
  import { ErrorModal } from '../../iframe/order-process/components/ErrorModal'
32
27
 
33
28
  export interface WithIsLoading {
34
29
  isLoading: boolean
35
30
  }
36
- export interface WithIdOptional {
37
- id?: number
38
- }
39
-
40
31
  export interface WithId {
41
32
  id: number
42
33
  }
43
34
  export interface ProductSetFormValues
44
35
  extends FormValues,
45
- WithIdOptional,
36
+ WithId,
46
37
  ProductSetControlValues {
47
38
  steps: Step[]
48
39
  isOverrides?: boolean
@@ -67,7 +58,6 @@ export interface ProductSetFormProps
67
58
  saleDeadline?: number
68
59
  isCreateNewOverrides?: boolean
69
60
  timeZone: string
70
- modifiersSetList?: ModifierSet[]
71
61
  }
72
62
 
73
63
  export function ProductSetForm({
@@ -77,7 +67,6 @@ export function ProductSetForm({
77
67
  onSubmitAndRedirect,
78
68
  onSubmitNoRedirect,
79
69
  productGroupList,
80
- modifiersSetList,
81
70
  serverErrors,
82
71
  providerHasMap = false,
83
72
  venueMapSets = [],
@@ -102,7 +91,7 @@ export function ProductSetForm({
102
91
  const [errorMessage, setErrorMessage] = useState('')
103
92
 
104
93
  const form = useForm<ProductSetFormValues>({
105
- defaultValues: updateModifiersSetAtProductSetForm(defaultValues),
94
+ defaultValues,
106
95
  mode: 'onChange',
107
96
  })
108
97
 
@@ -129,7 +118,7 @@ export function ProductSetForm({
129
118
  if (!defaultValues || isEqual(defaultValues, formValues)) {
130
119
  return
131
120
  }
132
- reset(updateModifiersSetAtProductSetForm(defaultValues))
121
+ reset(defaultValues)
133
122
  // eslint-disable-next-line react-hooks/exhaustive-deps
134
123
  }, [defaultValues])
135
124
 
@@ -169,7 +158,6 @@ export function ProductSetForm({
169
158
  <ProductSetContextProvider
170
159
  productGroupList={productGroupList}
171
160
  providerHasMap={providerHasMap}
172
- modifiersSetList={modifiersSetList}
173
161
  venueMapSets={venueMapSets}
174
162
  providerHasBookingManagement={providerHasBookingManagement}
175
163
  zones={zones}
@@ -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,
@@ -49,8 +49,6 @@ const getDefaultProductValue = (sort: number): Product => ({
49
49
  maxQuantity: null,
50
50
  totalQuantity: 0,
51
51
  isAvailable: true,
52
- modifiersSet: [],
53
- modifiersSetsId: [],
54
52
  isSoldOut: false,
55
53
  isRequired: false,
56
54
  isUnlimited: false,
@@ -141,16 +139,6 @@ export function ProductsControl({
141
139
  ],
142
140
  })
143
141
 
144
- const modifierSets = useWatch({
145
- control,
146
- name: [
147
- ...fields.map(
148
- (_, index) =>
149
- `${productControlFieldName}.${index}.modifiersSet` as const,
150
- ),
151
- ],
152
- })
153
-
154
142
  const categoryProductErrors =
155
143
  errors?.steps?.[stepIndex]?.productCategories?.[productCategoryIndex]
156
144
  ?.products
@@ -211,7 +199,6 @@ export function ProductsControl({
211
199
  : isOverrides && !!product.originalProductId
212
200
 
213
201
  const isNewProductOverrides = isCreateNewOverrides && !!product.id
214
- const modifiersSets = modifierSets[index]?.length || 0
215
202
 
216
203
  return (
217
204
  <Controller
@@ -239,26 +226,21 @@ export function ProductsControl({
239
226
  edit={() => edit(index)}
240
227
  secondaryBadge={getBadgeConfig(categoryType, t(categoryType))}
241
228
  subTitle={
242
- <div className='d-flex justify-content-between'>
243
- <div className='product-set-badges-container'>
244
- <div className='product-set-subtitle-dot product-set-subtitle-product-dot' />
245
- <span>
246
- {`£${prices[index]} ${t('each')} - ${t('qty')}:${
247
- !isUnlimitedQuantities[index]
248
- ? ` ${quantities[index]}`
249
- : t(' unlimited')
250
- } ${
251
- !isUnlimitedQuantities[index]
252
- ? ` - ${t('possibleRevenue')} £${
253
- prices[index] * quantities[index]
254
- }`
255
- : ''
256
- } `}
257
- </span>
258
- </div>
259
- {!!modifiersSets && (
260
- <Badge className='modifier-badge'>{`${modifiersSets} ${t('modifiersSets')}`}</Badge>
261
- )}
229
+ <div className='product-set-badges-container'>
230
+ <div className='product-set-subtitle-dot product-set-subtitle-product-dot' />
231
+ <span>
232
+ {`£${prices[index]} ${t('each')} - ${t('qty')}:${
233
+ !isUnlimitedQuantities[index]
234
+ ? ` ${quantities[index]}`
235
+ : t(' unlimited')
236
+ } ${
237
+ !isUnlimitedQuantities[index]
238
+ ? ` - ${t('possibleRevenue')} £${
239
+ prices[index] * quantities[index]
240
+ }`
241
+ : ''
242
+ } `}
243
+ </span>
262
244
  </div>
263
245
  }
264
246
  modalLabel={t('addNewProduct')}
@@ -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}
@@ -7,18 +7,15 @@ import {
7
7
  Dispatch,
8
8
  } from 'react'
9
9
  import { VenueMapSet } from '@licklist/core/dist/DataMapper/Product/VenueMapSetDataMapper'
10
- import { ModifierSet } from '@licklist/core/dist/DataMapper/Product/ModifierSetDataMapper'
11
10
  // eslint-disable-next-line max-len
12
11
  import { ProviderBookingManagementSetting } from '@licklist/core/dist/DataMapper/Provider/ProviderBookingManagementSettingDataMapper'
13
12
  import { Zone } from '@licklist/core/dist/DataMapper/Provider/ZoneDataMapper'
14
13
  import { SelectItem } from '../../types/generic/SelectItem'
15
14
 
16
-
17
15
  interface LoadingContext {
18
16
  isLoading: boolean
19
17
  setLoading: (loading: boolean) => void
20
18
  productGroupList?: SelectItem[]
21
- modifiersSetList?: ModifierSet[] | null
22
19
  providerHasMap?: boolean | null
23
20
  venueMapSets?: VenueMapSet[]
24
21
  providerHasBookingManagement?: ProviderBookingManagementSetting['hasBookingManagement']
@@ -46,7 +43,6 @@ type ProductSetContextProviderProps = PropsWithChildren<
46
43
  export function ProductSetContextProvider({
47
44
  children,
48
45
  productGroupList = [],
49
- modifiersSetList =[],
50
46
  providerHasMap = false,
51
47
  venueMapSets = [],
52
48
  providerHasBookingManagement,
@@ -66,7 +62,6 @@ export function ProductSetContextProvider({
66
62
  isLoading: loading,
67
63
  setLoading,
68
64
  productGroupList,
69
- modifiersSetList,
70
65
  providerHasMap,
71
66
  venueMapSets,
72
67
  providerHasBookingManagement,
@@ -34,13 +34,12 @@ 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,
40
41
  } from '@licklist/core/dist/DataMapper/Media/ImageDataMapper'
41
42
  import { FaClipboard } from 'react-icons/fa'
42
- import { Typeahead } from 'src/typeahead'
43
- import { convertToTypeaheadOptions } from 'src/sales/coupon/utils'
44
43
  import { checkIfZoneCategory } from '@licklist/plugins'
45
44
  import { FileUpload } from '../../file-upload'
46
45
  import { BooleanSwitch } from '../../static'
@@ -67,14 +66,6 @@ import { ProductZoneControlValues } from '../product-zone'
67
66
  import { AdvancedOptions } from './advanced-options'
68
67
  import { ProductZonesControl } from '../form/ProductZonesControl'
69
68
 
70
-
71
- export interface ModifiersSet {
72
- id: number
73
- value?: string
74
- name?: string
75
- label?: string
76
- }
77
-
78
69
  // TO DO refactor this file
79
70
  // and add correct types
80
71
  export interface ProductControlValues
@@ -98,8 +89,6 @@ export interface ProductControlValues
98
89
  hasSpecialNotes: boolean
99
90
  minSpend?: number | null
100
91
  type?: ProductType
101
- modifiersSetsId?: Array<ModifiersSet>
102
- modifiersSet?: Array<ModifiersSet>
103
92
  weight?: number
104
93
  tierId?: number
105
94
  images: Image[] | null
@@ -123,7 +112,6 @@ export interface ProductControlProps<T>
123
112
  hasTicket?: boolean
124
113
  categoryType?: CategoryType
125
114
  isOverrides?: boolean
126
-
127
115
  }
128
116
 
129
117
  export function ProductControl<T extends FormValues>({
@@ -139,7 +127,6 @@ export function ProductControl<T extends FormValues>({
139
127
  categoryType,
140
128
  isOverrides = false,
141
129
  }: ProductControlProps<T>) {
142
-
143
130
  const {
144
131
  register,
145
132
  control,
@@ -149,16 +136,14 @@ export function ProductControl<T extends FormValues>({
149
136
  watch,
150
137
  } = useFormContext<T>()
151
138
 
152
- const { setLoading, modifiersSetList } = useContext(ProductSetLoadingContext)
139
+ const { setLoading } = useContext(ProductSetLoadingContext)
153
140
  const { t } = useTranslation(['Design', 'Validation', 'ProductSet'])
154
141
  const [expanded, setExpanded] = useState(false)
155
-
156
142
  const [initialImages, setInitialImages] = useState<Image[] | null>(null)
157
143
  // @TODO: After checking "isUnlimited" checkbox need to reset field totalQuantity
158
144
  const isUnlimited = Boolean(
159
145
  watch(`${fieldNamePrefix}.isUnlimited` as Path<T>),
160
146
  )
161
-
162
147
  const advancedId = useId()
163
148
  const nameId = useId()
164
149
 
@@ -216,7 +201,6 @@ export function ProductControl<T extends FormValues>({
216
201
  setInitialImages(formImages as Image[])
217
202
  }, [getValues, setInitialImages, fieldNamePrefix])
218
203
 
219
-
220
204
  useEffect(() => {
221
205
  if (Array.isArray(images)) {
222
206
  setValue(
@@ -229,9 +213,6 @@ export function ProductControl<T extends FormValues>({
229
213
 
230
214
  const quantitySelector = quantityValue ?? '1'
231
215
  const quantity = QUANTITY_TYPE_LIST_DTO[quantitySelector as string]
232
-
233
- const modifierList = convertToTypeaheadOptions(modifiersSetList)
234
-
235
216
  return (
236
217
  <>
237
218
  <Row>
@@ -374,22 +355,6 @@ export function ProductControl<T extends FormValues>({
374
355
  </Form.Group>
375
356
  </Col>
376
357
  </Row>
377
- <Row>
378
- <Col>
379
- <Form.Group className='mb-3'>
380
- <Form.Label>{t('Design:addModifierSet')}</Form.Label>
381
- <Typeahead
382
- name='modifierList'
383
- options={modifierList}
384
- {...register(`${fieldNamePrefix}.modifiersSet` as Path<T>)}
385
- isMultipleChoise
386
- isCouponForm
387
- placeholder={t('Design:choose')}
388
- noOptionsMessage={t('Design:noSelectedModifier')}
389
- />
390
- </Form.Group>
391
- </Col>
392
- </Row>
393
358
 
394
359
  <Row className='my-4 mx-0 d-flex flex-column'>
395
360
  {isZoneCategory && (
@@ -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'