@licklist/design 0.44.485-dev.19 → 0.44.485-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (420) hide show
  1. package/dist/affiliate/types/index.d.ts +1 -1
  2. package/dist/affiliate/types/index.d.ts.map +1 -1
  3. package/dist/auth/Login/LoginComponent.d.ts +1 -1
  4. package/dist/auth/Login/LoginComponent.d.ts.map +1 -1
  5. package/dist/auth/Login/LoginFormComponent.d.ts +1 -1
  6. package/dist/auth/Login/LoginFormComponent.d.ts.map +1 -1
  7. package/dist/auth/Register/RegisterComponent.d.ts +1 -1
  8. package/dist/auth/Register/RegisterComponent.d.ts.map +1 -1
  9. package/dist/auth/Register/RegisterFormComponent.d.ts +1 -1
  10. package/dist/auth/Register/RegisterFormComponent.d.ts.map +1 -1
  11. package/dist/auth/ResetPassword/ResetPasswordFormComponent.d.ts +1 -1
  12. package/dist/auth/ResetPassword/ResetPasswordFormComponent.d.ts.map +1 -1
  13. package/dist/collapsible-input-group/CollapsibleInputGroup.d.ts +1 -1
  14. package/dist/collapsible-input-group/CollapsibleInputGroup.d.ts.map +1 -1
  15. package/dist/custom-fields/field-set/CustomFieldSets.d.ts +3 -3
  16. package/dist/custom-fields/field-set/CustomFieldSets.d.ts.map +1 -1
  17. package/dist/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.d.ts +1 -1
  18. package/dist/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.d.ts.map +1 -1
  19. package/dist/custom-fields/field-set/contexts/useCustomFieldSets.d.ts +2 -2
  20. package/dist/custom-fields/field-set/contexts/useCustomFieldSets.d.ts.map +1 -1
  21. package/dist/customers/components/filter/CustomerFilter.d.ts +3 -2
  22. package/dist/customers/components/filter/CustomerFilter.d.ts.map +1 -1
  23. package/dist/customers/components/filter/CustomerFilter.js +1 -1
  24. package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts +3 -3
  25. package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts.map +1 -1
  26. package/dist/events/event-statistic-modal/EventStatisticModal.d.ts +1 -1
  27. package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
  28. package/dist/events/event-venue-map/EventVenueMap.d.ts +2 -5
  29. package/dist/events/event-venue-map/EventVenueMap.d.ts.map +1 -1
  30. package/dist/events/event-venue-map/EventVenueMap.js +1 -1
  31. package/dist/events/event-venue-map/components/Dropdown/Dropdown.d.ts +1 -1
  32. package/dist/events/event-venue-map/components/Dropdown/Dropdown.d.ts.map +1 -1
  33. package/dist/events/event-venue-map/components/Dropdown/components/ProductsControl/ProductsControl.d.ts +1 -1
  34. package/dist/events/event-venue-map/components/Dropdown/components/ProductsControl/ProductsControl.d.ts.map +1 -1
  35. package/dist/events/event-venue-map/components/Dropdown/components/SelectControl/SelectControl.d.ts +1 -1
  36. package/dist/events/event-venue-map/components/Dropdown/components/SelectControl/SelectControl.d.ts.map +1 -1
  37. package/dist/events/event-venue-map/components/MapPoint/MapPoint.d.ts +1 -1
  38. package/dist/events/event-venue-map/components/MapPoint/MapPoint.d.ts.map +1 -1
  39. package/dist/events/event-venue-map/components/MapPoint/components/DeleteIcon/DeleteIcon.d.ts +1 -1
  40. package/dist/events/event-venue-map/components/MapPoint/components/DeleteIcon/DeleteIcon.d.ts.map +1 -1
  41. package/dist/events/event-venue-map/components/MapPoint/components/EditIcon/EditIcon.d.ts +1 -1
  42. package/dist/events/event-venue-map/components/MapPoint/components/EditIcon/EditIcon.d.ts.map +1 -1
  43. package/dist/events/event-venue-map/components/MapPoint/components/PointIcon/PointIcon.d.ts +1 -1
  44. package/dist/events/event-venue-map/components/MapPoint/components/PointIcon/PointIcon.d.ts.map +1 -1
  45. package/dist/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.d.ts +1 -1
  46. package/dist/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.d.ts.map +1 -1
  47. package/dist/events/event-venue-map/components/VenueMap/VenueMap.d.ts +2 -4
  48. package/dist/events/event-venue-map/components/VenueMap/VenueMap.d.ts.map +1 -1
  49. package/dist/events/event-venue-map/components/VenueMap/VenueMap.js +1 -1
  50. package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts +1 -1
  51. package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts.map +1 -1
  52. package/dist/events/event-venue-map/hooks/useStageActions.d.ts +1 -1
  53. package/dist/events/event-venue-map/hooks/useStageActions.d.ts.map +1 -1
  54. package/dist/events/event-venue-map/types/index.d.ts +5 -5
  55. package/dist/events/event-venue-map/types/index.d.ts.map +1 -1
  56. package/dist/events/event-venue-map/utils/index.d.ts +3 -3
  57. package/dist/events/event-venue-map/utils/index.d.ts.map +1 -1
  58. package/dist/file-upload/FilePreview.d.ts +2 -2
  59. package/dist/file-upload/FilePreview.d.ts.map +1 -1
  60. package/dist/file-upload/FileUpload.d.ts +1 -1
  61. package/dist/file-upload/FileUpload.d.ts.map +1 -1
  62. package/dist/header/Header.d.ts +1 -1
  63. package/dist/header/Header.d.ts.map +1 -1
  64. package/dist/help/example/Example.d.ts +4 -4
  65. package/dist/help/example/Example.d.ts.map +1 -1
  66. package/dist/help/popover/HelpPopover.d.ts +1 -1
  67. package/dist/help/popover/HelpPopover.d.ts.map +1 -1
  68. package/dist/iframe/custom-fields/components/CustomDateField.d.ts +1 -1
  69. package/dist/iframe/custom-fields/components/CustomDateField.d.ts.map +1 -1
  70. package/dist/iframe/event/event-calendar/EventCalendar.d.ts +1 -1
  71. package/dist/iframe/event/event-calendar/EventCalendar.d.ts.map +1 -1
  72. package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.d.ts +1 -1
  73. package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.d.ts.map +1 -1
  74. package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.d.ts +1 -1
  75. package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.d.ts.map +1 -1
  76. package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.d.ts +1 -1
  77. package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.d.ts.map +1 -1
  78. package/dist/iframe/event/event-calendar/components/CalendarSelect/CalendarSelect.d.ts +2 -2
  79. package/dist/iframe/event/event-calendar/components/CalendarSelect/CalendarSelect.d.ts.map +1 -1
  80. package/dist/iframe/event/event-calendar/types/index.d.ts +1 -1
  81. package/dist/iframe/event/event-calendar/types/index.d.ts.map +1 -1
  82. package/dist/iframe/event/event-card/IframeEventCard.js +1 -1
  83. package/dist/iframe/event/event-details/EventDetails.d.ts +1 -1
  84. package/dist/iframe/event/event-details/EventDetails.d.ts.map +1 -1
  85. package/dist/iframe/event/event-order-short-summary/components/Summary/Summary.d.ts +6 -5
  86. package/dist/iframe/event/event-order-short-summary/components/Summary/Summary.d.ts.map +1 -1
  87. package/dist/iframe/event/event-order-short-summary/components/Summary/Summary.js +1 -1
  88. package/dist/iframe/event/event-product-sets/EventProductSets.d.ts +1 -1
  89. package/dist/iframe/event/event-product-sets/EventProductSets.d.ts.map +1 -1
  90. package/dist/iframe/event/event-product-sets/components/EventProductSet.d.ts +1 -1
  91. package/dist/iframe/event/event-product-sets/components/EventProductSet.d.ts.map +1 -1
  92. package/dist/iframe/event/event-step-venue-map-zones/EventStepVenueMapZones.d.ts +1 -1
  93. package/dist/iframe/event/event-step-venue-map-zones/EventStepVenueMapZones.d.ts.map +1 -1
  94. package/dist/iframe/event/event-step-venue-map-zones/components/EventStepVenueMapZone.d.ts +1 -1
  95. package/dist/iframe/event/event-step-venue-map-zones/components/EventStepVenueMapZone.d.ts.map +1 -1
  96. package/dist/iframe/event/event-venue-map/IframeEventVenueMap.d.ts +1 -5
  97. package/dist/iframe/event/event-venue-map/IframeEventVenueMap.d.ts.map +1 -1
  98. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
  99. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +1 -1
  100. package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.d.ts +1 -1
  101. package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.d.ts.map +1 -1
  102. package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts +1 -1
  103. package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts.map +1 -1
  104. package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.d.ts +1 -1
  105. package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.d.ts.map +1 -1
  106. package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.d.ts +1 -1
  107. package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.d.ts.map +1 -1
  108. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +4 -4
  109. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
  110. package/dist/iframe/order-process/components/BookingSummaryFooter/BookingSummaryFooter.d.ts +4 -4
  111. package/dist/iframe/order-process/components/BookingSummaryFooter/BookingSummaryFooter.d.ts.map +1 -1
  112. package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.d.ts +1 -3
  113. package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.d.ts.map +1 -1
  114. package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.js +1 -1
  115. package/dist/iframe/order-process/components/CalendarStepsForm/components/Category.d.ts +2 -4
  116. package/dist/iframe/order-process/components/CalendarStepsForm/components/Category.d.ts.map +1 -1
  117. package/dist/iframe/order-process/components/CalendarStepsForm/components/Category.js +1 -1
  118. package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.d.ts +2 -4
  119. package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.d.ts.map +1 -1
  120. package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.js +1 -1
  121. package/dist/iframe/order-process/components/Category/Category.d.ts +1 -2
  122. package/dist/iframe/order-process/components/Category/Category.d.ts.map +1 -1
  123. package/dist/iframe/order-process/components/Category/Category.js +1 -1
  124. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts +1 -2
  125. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
  126. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +1 -1
  127. package/dist/iframe/order-process/components/NavigationSteps/NavigationSteps.d.ts +1 -1
  128. package/dist/iframe/order-process/components/NavigationSteps/NavigationSteps.d.ts.map +1 -1
  129. package/dist/iframe/order-process/components/PaymentCard/PaymentCard.d.ts +1 -1
  130. package/dist/iframe/order-process/components/PaymentCard/PaymentCard.d.ts.map +1 -1
  131. package/dist/iframe/order-process/components/StepsForm/StepsForm.d.ts +1 -2
  132. package/dist/iframe/order-process/components/StepsForm/StepsForm.d.ts.map +1 -1
  133. package/dist/iframe/order-process/components/StepsForm/StepsForm.js +1 -1
  134. package/dist/iframe/order-process/components/Timer/Timer.d.ts +1 -1
  135. package/dist/iframe/order-process/components/Timer/Timer.d.ts.map +1 -1
  136. package/dist/iframe/page/Page.d.ts +1 -1
  137. package/dist/iframe/page/Page.d.ts.map +1 -1
  138. package/dist/iframe/page/components/PageBody/PageBody.d.ts +1 -1
  139. package/dist/iframe/page/components/PageBody/PageBody.d.ts.map +1 -1
  140. package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts +1 -1
  141. package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts.map +1 -1
  142. package/dist/iframe/page/components/PageBody/components/RightBlock/RightBlock.d.ts +1 -1
  143. package/dist/iframe/page/components/PageBody/components/RightBlock/RightBlock.d.ts.map +1 -1
  144. package/dist/iframe/page/components/PageBody/types.d.ts +1 -1
  145. package/dist/iframe/page/components/PageBody/types.d.ts.map +1 -1
  146. package/dist/iframe/page/components/PageHeader/PageHeader.d.ts +1 -1
  147. package/dist/iframe/page/components/PageHeader/PageHeader.d.ts.map +1 -1
  148. package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts +0 -5
  149. package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts.map +1 -1
  150. package/dist/iframe/payment/order-items-table/hooks/useTableData.js +1 -1
  151. package/dist/iframe/payment/order-items-table/types/index.d.ts +2 -2
  152. package/dist/iframe/payment/order-items-table/types/index.d.ts.map +1 -1
  153. package/dist/iframe/payment/order-items-table/utils/index.d.ts +1 -6
  154. package/dist/iframe/payment/order-items-table/utils/index.d.ts.map +1 -1
  155. package/dist/iframe/payment/order-items-table/utils/index.js +1 -1
  156. package/dist/iframe/payment/payment-page/PaymentPage.d.ts.map +1 -1
  157. package/dist/iframe/payment/payment-page/PaymentPage.js +1 -1
  158. package/dist/iframe/payment/payment-status-header/PaymentStatusHeader.d.ts +1 -1
  159. package/dist/iframe/payment/payment-status-header/PaymentStatusHeader.d.ts.map +1 -1
  160. package/dist/iframe/payment/payment-status-page/PaymentStatusPage.d.ts +3 -5
  161. package/dist/iframe/payment/payment-status-page/PaymentStatusPage.d.ts.map +1 -1
  162. package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +1 -1
  163. package/dist/iframe/powered-by/PoweredBy.d.ts +1 -1
  164. package/dist/iframe/powered-by/PoweredBy.d.ts.map +1 -1
  165. package/dist/iframe/ryft/RyftPaymentForm.d.ts +1 -1
  166. package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
  167. package/dist/modals/confirmation/ConfirmModal.d.ts +2 -2
  168. package/dist/modals/confirmation/ConfirmModal.d.ts.map +1 -1
  169. package/dist/product-set/deposit-paid/ProductSetDepositPaidControl.d.ts +3 -3
  170. package/dist/product-set/deposit-paid/ProductSetDepositPaidControl.d.ts.map +1 -1
  171. package/dist/product-set/elements/DeleteFieldButton.d.ts +1 -1
  172. package/dist/product-set/elements/DeleteFieldButton.d.ts.map +1 -1
  173. package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
  174. package/dist/product-set/form/ProductCategoriesControl.js +1 -1
  175. package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
  176. package/dist/product-set/form/ProductsControl.js +1 -1
  177. package/dist/product-set/form/VenueMapSetModal.d.ts +1 -1
  178. package/dist/product-set/form/VenueMapSetModal.d.ts.map +1 -1
  179. package/dist/product-set/form/VenueMapsControl.d.ts +1 -1
  180. package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
  181. package/dist/product-set/form/context.d.ts +1 -1
  182. package/dist/product-set/form/context.d.ts.map +1 -1
  183. package/dist/product-set/popover/ProductSetPopover.d.ts +1 -1
  184. package/dist/product-set/popover/ProductSetPopover.d.ts.map +1 -1
  185. package/dist/product-set/product/ProductControl.js +1 -1
  186. package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.d.ts +1 -1
  187. package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.d.ts.map +1 -1
  188. package/dist/product-set/tabs/ProductSetTab.d.ts +1 -1
  189. package/dist/product-set/tabs/ProductSetTab.d.ts.map +1 -1
  190. package/dist/product-set/tabs/ProductSetTabs.d.ts +1 -1
  191. package/dist/product-set/tabs/ProductSetTabs.d.ts.map +1 -1
  192. package/dist/product-set/types/index.d.ts +5 -5
  193. package/dist/product-set/types/index.d.ts.map +1 -1
  194. package/dist/provider/categories-input/CategoriesInput.d.ts +1 -1
  195. package/dist/provider/categories-input/CategoriesInput.d.ts.map +1 -1
  196. package/dist/provider/categories-input/CategoriesInputDescription.d.ts +1 -1
  197. package/dist/provider/categories-input/CategoriesInputDescription.d.ts.map +1 -1
  198. package/dist/provider/categories-input/index.d.ts +1 -1
  199. package/dist/provider/categories-input/index.d.ts.map +1 -1
  200. package/dist/provider/company/user-form/UserForm.d.ts +2 -2
  201. package/dist/provider/company/user-form/UserForm.d.ts.map +1 -1
  202. package/dist/provider/location-input/index.d.ts +1 -1
  203. package/dist/provider/location-input/index.d.ts.map +1 -1
  204. package/dist/provider/provider-details-input/ProviderDetailsInput.d.ts +2 -2
  205. package/dist/provider/provider-details-input/ProviderDetailsInput.d.ts.map +1 -1
  206. package/dist/provider/provider-form/ProviderForm.d.ts +1 -1
  207. package/dist/provider/provider-form/ProviderForm.d.ts.map +1 -1
  208. package/dist/provider/provider-links-input/ProviderLinksInput.d.ts +2 -2
  209. package/dist/provider/provider-links-input/ProviderLinksInput.d.ts.map +1 -1
  210. package/dist/provider/resources-blocking-modal/ResourcesBlockingModal.d.ts +1 -1
  211. package/dist/provider/resources-blocking-modal/ResourcesBlockingModal.d.ts.map +1 -1
  212. package/dist/provider/venue-form/VenueForm.d.ts +1 -1
  213. package/dist/provider/venue-form/VenueForm.d.ts.map +1 -1
  214. package/dist/provider/working-hours-input/index.d.ts +1 -1
  215. package/dist/provider/working-hours-input/index.d.ts.map +1 -1
  216. package/dist/recurrence-input/utils.d.ts +2 -2
  217. package/dist/recurrence-input/utils.d.ts.map +1 -1
  218. package/dist/recurring-date-picker-input/RecurringDatePickerInput.js +1 -1
  219. package/dist/recurring-date-picker-input/utils.d.ts +2 -2
  220. package/dist/recurring-date-picker-input/utils.d.ts.map +1 -1
  221. package/dist/resource/form/ResourceForm.d.ts +2 -2
  222. package/dist/resource/form/ResourceForm.d.ts.map +1 -1
  223. package/dist/resource/form/components/CapacityControl.d.ts +1 -1
  224. package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
  225. package/dist/resource/form/components/NameControl.d.ts +1 -1
  226. package/dist/resource/form/components/NameControl.d.ts.map +1 -1
  227. package/dist/resource/form/components/SortControl.d.ts +1 -1
  228. package/dist/resource/form/components/SortControl.d.ts.map +1 -1
  229. package/dist/resource/form/components/ZoneControl.d.ts +1 -1
  230. package/dist/resource/form/components/ZoneControl.d.ts.map +1 -1
  231. package/dist/sales/booking/filter/BookingFilter.d.ts +1 -1
  232. package/dist/sales/booking/filter/BookingFilter.d.ts.map +1 -1
  233. package/dist/sales/booking/filter/components/AdditionalFIlterSection.d.ts +1 -1
  234. package/dist/sales/booking/filter/components/AdditionalFIlterSection.d.ts.map +1 -1
  235. package/dist/sales/booking/filter/components/AdditionalFIlterSection.js +1 -1
  236. package/dist/sales/booking/filter/components/MainFilterSection.d.ts +1 -1
  237. package/dist/sales/booking/filter/components/MainFilterSection.d.ts.map +1 -1
  238. package/dist/sales/booking/filter/components/ResultTagButton.d.ts +1 -1
  239. package/dist/sales/booking/filter/components/ResultTagButton.d.ts.map +1 -1
  240. package/dist/sales/booking/results/BookingResults.d.ts +1 -1
  241. package/dist/sales/booking/results/BookingResults.d.ts.map +1 -1
  242. package/dist/sales/booking/results/components/ResultCard.d.ts +1 -1
  243. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  244. package/dist/sales/booking/tabs/BookingTabs.d.ts +1 -1
  245. package/dist/sales/booking/tabs/BookingTabs.d.ts.map +1 -1
  246. package/dist/sales/guest-profile/previous-bookings/PreviousBookings.d.ts +3 -4
  247. package/dist/sales/guest-profile/previous-bookings/PreviousBookings.d.ts.map +1 -1
  248. package/dist/sales/guest-profile/previous-bookings/PreviousBookings.js +1 -1
  249. package/dist/sales/guest-profile/profile/Profile.d.ts +1 -1
  250. package/dist/sales/guest-profile/profile/Profile.d.ts.map +1 -1
  251. package/dist/sales/guest-profile/profile/components/ImageHolder/ImageHolder.d.ts +1 -1
  252. package/dist/sales/guest-profile/profile/components/ImageHolder/ImageHolder.d.ts.map +1 -1
  253. package/dist/sales/guest-profile/user-metrics/UserMetrics.d.ts +1 -1
  254. package/dist/sales/guest-profile/user-metrics/UserMetrics.d.ts.map +1 -1
  255. package/dist/sales/guest-profile/visited-providers/VisitedProviders.d.ts +1 -1
  256. package/dist/sales/guest-profile/visited-providers/VisitedProviders.d.ts.map +1 -1
  257. package/dist/sales/life-time-sales/LifeTimeSalesChart.d.ts +1 -1
  258. package/dist/sales/life-time-sales/LifeTimeSalesChart.d.ts.map +1 -1
  259. package/dist/sales/manual-booking/customer-info/CustomerInfo.d.ts +1 -1
  260. package/dist/sales/manual-booking/customer-info/CustomerInfo.d.ts.map +1 -1
  261. package/dist/sales/manual-booking/final-step/FinalStep.d.ts +1 -1
  262. package/dist/sales/manual-booking/final-step/FinalStep.d.ts.map +1 -1
  263. package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.d.ts +1 -1
  264. package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.d.ts.map +1 -1
  265. package/dist/sales/manual-booking/select-date-type-control/SelectDateTypeControl.d.ts +1 -1
  266. package/dist/sales/manual-booking/select-date-type-control/SelectDateTypeControl.d.ts.map +1 -1
  267. package/dist/sales/manual-booking/select-menu/SelectMenu.d.ts +1 -1
  268. package/dist/sales/manual-booking/select-menu/SelectMenu.d.ts.map +1 -1
  269. package/dist/sales/manual-booking/select-menu/components/MenuButton.d.ts +1 -1
  270. package/dist/sales/manual-booking/select-menu/components/MenuButton.d.ts.map +1 -1
  271. package/dist/sales/notes/NotesTable.d.ts +1 -1
  272. package/dist/sales/notes/NotesTable.d.ts.map +1 -1
  273. package/dist/sales/notes/NotesTableRow.d.ts +1 -1
  274. package/dist/sales/notes/NotesTableRow.d.ts.map +1 -1
  275. package/dist/sales/notes/note-form/NoteForm.d.ts +1 -1
  276. package/dist/sales/notes/note-form/NoteForm.d.ts.map +1 -1
  277. package/dist/sales/payment-form/SalePaymentForm.d.ts +2 -2
  278. package/dist/sales/payment-form/SalePaymentForm.d.ts.map +1 -1
  279. package/dist/sales/payment-form/components/RyftPayment/RyftPayment.d.ts +1 -1
  280. package/dist/sales/payment-form/components/RyftPayment/RyftPayment.d.ts.map +1 -1
  281. package/dist/sales/payment-form/types.d.ts +2 -2
  282. package/dist/sales/payment-form/types.d.ts.map +1 -1
  283. package/dist/sales/sales-and-views/SalesAndViewsChart.d.ts +1 -1
  284. package/dist/sales/sales-and-views/SalesAndViewsChart.d.ts.map +1 -1
  285. package/dist/setting/admin/AdminSettingForm.d.ts +1 -1
  286. package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
  287. package/dist/setting/admin/PaymentFeeForm.d.ts +2 -2
  288. package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
  289. package/dist/setting/dashboard/DashboardSettingForm.d.ts +1 -1
  290. package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
  291. package/dist/setting/dashboard/EventSettingForm.d.ts +2 -2
  292. package/dist/setting/dashboard/EventSettingForm.d.ts.map +1 -1
  293. package/dist/setting/dashboard/FinancialDataForm.d.ts +2 -2
  294. package/dist/setting/dashboard/FinancialDataForm.d.ts.map +1 -1
  295. package/dist/setting/dashboard/OtherSettingForm.d.ts +2 -2
  296. package/dist/setting/dashboard/OtherSettingForm.d.ts.map +1 -1
  297. package/dist/setting/dashboard/ProviderSettingForm.d.ts +2 -2
  298. package/dist/setting/dashboard/ProviderSettingForm.d.ts.map +1 -1
  299. package/dist/setting/system/SystemSettingForm.d.ts +1 -1
  300. package/dist/setting/system/SystemSettingForm.d.ts.map +1 -1
  301. package/dist/snippet/snippet-template/context/snippetTemplate.d.ts +1 -1
  302. package/dist/snippet/snippet-template/context/snippetTemplate.d.ts.map +1 -1
  303. package/dist/sortable-list/SortableList.d.ts +4 -4
  304. package/dist/sortable-list/SortableList.d.ts.map +1 -1
  305. package/dist/sortable-tree/SortableTreeItem.d.ts +1 -1
  306. package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
  307. package/dist/static/Icon.d.ts +1 -1
  308. package/dist/static/Icon.d.ts.map +1 -1
  309. package/dist/static/date-range-input/DateRangeInput.d.ts +1 -1
  310. package/dist/static/date-range-input/DateRangeInput.d.ts.map +1 -1
  311. package/dist/static/images/DefaultUserImage.d.ts +1 -1
  312. package/dist/static/images/DefaultUserImage.d.ts.map +1 -1
  313. package/dist/static/loader/ButtonLoader.d.ts +1 -1
  314. package/dist/static/loader/ButtonLoader.d.ts.map +1 -1
  315. package/dist/static/loader/PaymentLoader.d.ts +1 -1
  316. package/dist/static/loader/PaymentLoader.d.ts.map +1 -1
  317. package/dist/static/manual-date-picker/ManualDatePicker.d.ts +1 -1
  318. package/dist/static/manual-date-picker/ManualDatePicker.d.ts.map +1 -1
  319. package/dist/static/manual-date-picker/hooks/useManualDatePicker.d.ts +2 -2
  320. package/dist/static/manual-date-picker/hooks/useManualDatePicker.d.ts.map +1 -1
  321. package/dist/static/tabs/Tab.d.ts +1 -1
  322. package/dist/static/tabs/Tab.d.ts.map +1 -1
  323. package/dist/static/tabs/Tabs.d.ts +1 -1
  324. package/dist/static/tabs/Tabs.d.ts.map +1 -1
  325. package/dist/styles/customers/Filter.scss +4 -23
  326. package/dist/table/MenuButton.d.ts +1 -1
  327. package/dist/table/MenuButton.d.ts.map +1 -1
  328. package/dist/table/ReactTableHelperComponent.d.ts +2 -2
  329. package/dist/table/ReactTableHelperComponent.d.ts.map +1 -1
  330. package/dist/table/types.d.ts +5 -5
  331. package/dist/table/types.d.ts.map +1 -1
  332. package/dist/tiptap-editor/TipTapMenu/extensions/EMOJIS.d.ts +1 -1
  333. package/dist/tiptap-editor/TipTapMenu/extensions/EMOJIS.d.ts.map +1 -1
  334. package/dist/typeahead/Typeahead.d.ts +1 -1
  335. package/dist/typeahead/Typeahead.d.ts.map +1 -1
  336. package/dist/typeahead-helper/TypeaheadHelperComponent.d.ts +1 -1
  337. package/dist/typeahead-helper/TypeaheadHelperComponent.d.ts.map +1 -1
  338. package/dist/types/categories.d.ts +2 -2
  339. package/dist/types/categories.d.ts.map +1 -1
  340. package/dist/types/currency.d.ts +1 -1
  341. package/dist/types/currency.d.ts.map +1 -1
  342. package/dist/types/generic/SelectItem.d.ts +1 -1
  343. package/dist/types/generic/SelectItem.d.ts.map +1 -1
  344. package/dist/types/iframe.d.ts +2 -2
  345. package/dist/types/iframe.d.ts.map +1 -1
  346. package/dist/types/provider-links.d.ts +2 -2
  347. package/dist/types/provider-links.d.ts.map +1 -1
  348. package/dist/venue-map-sets/form/components/NameControl.d.ts +1 -1
  349. package/dist/venue-map-sets/form/components/NameControl.d.ts.map +1 -1
  350. package/dist/venue-map-sets/form/components/VenueMapControl.d.ts +4 -4
  351. package/dist/venue-map-sets/form/components/VenueMapControl.d.ts.map +1 -1
  352. package/dist/venue-map-sets/form/components/VenueMapImageControl.d.ts +1 -1
  353. package/dist/venue-map-sets/form/components/VenueMapImageControl.d.ts.map +1 -1
  354. package/dist/venue-map-sets/form/components/VenueMapModal.d.ts +1 -1
  355. package/dist/venue-map-sets/form/components/VenueMapModal.d.ts.map +1 -1
  356. package/dist/venue-map-sets/form/components/VenueMapsControl.d.ts +1 -1
  357. package/dist/venue-map-sets/form/components/VenueMapsControl.d.ts.map +1 -1
  358. package/dist/venue-map-sets/form/types/index.d.ts +4 -4
  359. package/dist/venue-map-sets/form/types/index.d.ts.map +1 -1
  360. package/dist/virtualized/components/VirtualizedGrid.d.ts +1 -1
  361. package/dist/virtualized/components/VirtualizedGrid.d.ts.map +1 -1
  362. package/dist/virtualized/components/VirtualizedWindowScroller.d.ts +3 -3
  363. package/dist/virtualized/components/VirtualizedWindowScroller.d.ts.map +1 -1
  364. package/dist/virtualized/context/VirtualizedContext.d.ts +2 -2
  365. package/dist/virtualized/context/VirtualizedContext.d.ts.map +1 -1
  366. package/dist/widgets/CheckboxGroup/CheckboxGroup.d.ts +1 -1
  367. package/dist/widgets/CheckboxGroup/CheckboxGroup.d.ts.map +1 -1
  368. package/dist/widgets/ImageRadioInput/ImageRadioInput.d.ts +1 -1
  369. package/dist/widgets/ImageRadioInput/ImageRadioInput.d.ts.map +1 -1
  370. package/dist/widgets/SnippetCode/SnippetCode.d.ts +1 -1
  371. package/dist/widgets/SnippetCode/SnippetCode.d.ts.map +1 -1
  372. package/dist/widgets/WidgetBuilderForm/WidgetBuilderForm.d.ts +1 -1
  373. package/dist/widgets/WidgetBuilderForm/WidgetBuilderForm.d.ts.map +1 -1
  374. package/dist/widgets/WidgetTypeRadio/WidgetTypeRadio.d.ts +1 -1
  375. package/dist/widgets/WidgetTypeRadio/WidgetTypeRadio.d.ts.map +1 -1
  376. package/dist/zone/form/ZoneForm.d.ts +2 -2
  377. package/dist/zone/form/ZoneForm.d.ts.map +1 -1
  378. package/dist/zone/form/components/AvailableTimesControl.d.ts +2 -2
  379. package/dist/zone/form/components/AvailableTimesControl.d.ts.map +1 -1
  380. package/dist/zone/form/components/DescriptionControl.d.ts +1 -1
  381. package/dist/zone/form/components/DescriptionControl.d.ts.map +1 -1
  382. package/dist/zone/form/components/NameControl.d.ts +1 -1
  383. package/dist/zone/form/components/NameControl.d.ts.map +1 -1
  384. package/dist/zone/form/components/SortControl.d.ts +1 -1
  385. package/dist/zone/form/components/SortControl.d.ts.map +1 -1
  386. package/dist/zone/form/components/ZoneControl.d.ts +1 -1
  387. package/dist/zone/form/components/ZoneControl.d.ts.map +1 -1
  388. package/dist/zone/form/components/ZoneImageControl.d.ts +1 -1
  389. package/dist/zone/form/components/ZoneImageControl.d.ts.map +1 -1
  390. package/dist/zone/form/components/ZoneRecurrencesControl.d.ts +1 -1
  391. package/dist/zone/form/components/ZoneRecurrencesControl.d.ts.map +1 -1
  392. package/dist/zone/form/components/ZoneTypeControl.d.ts +1 -1
  393. package/dist/zone/form/components/ZoneTypeControl.d.ts.map +1 -1
  394. package/package.json +2 -2
  395. package/src/customers/components/filter/CustomerFilter.stories.tsx +2 -1
  396. package/src/customers/components/filter/CustomerFilter.tsx +5 -3
  397. package/src/events/event-venue-map/EventVenueMap.tsx +0 -4
  398. package/src/events/event-venue-map/components/VenueMap/VenueMap.tsx +4 -12
  399. package/src/iframe/event/event-card/IframeEventCard.tsx +1 -1
  400. package/src/iframe/event/event-order-short-summary/components/Summary/Summary.tsx +20 -20
  401. package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +1 -4
  402. package/src/iframe/order-process/components/BookingSummary/types/index.ts +3 -3
  403. package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.stories.tsx +0 -1
  404. package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.tsx +0 -5
  405. package/src/iframe/order-process/components/CalendarStepsForm/components/Category.tsx +0 -4
  406. package/src/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.tsx +0 -4
  407. package/src/iframe/order-process/components/Category/Category.tsx +0 -3
  408. package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +1 -16
  409. package/src/iframe/order-process/components/StepsForm/StepsForm.tsx +0 -3
  410. package/src/iframe/payment/order-items-table/OrderItemsTable.stories.tsx +0 -2
  411. package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +14 -21
  412. package/src/iframe/payment/order-items-table/utils/index.ts +15 -55
  413. package/src/iframe/payment/payment-page/PaymentPage.tsx +5 -44
  414. package/src/iframe/payment/payment-status-page/PaymentStatusPage.tsx +12 -65
  415. package/src/product-set/form/ProductCategoriesControl.tsx +1 -4
  416. package/src/product-set/form/ProductsControl.tsx +1 -20
  417. package/src/product-set/product/ProductControl.tsx +8 -8
  418. package/src/sales/guest-profile/previous-bookings/PreviousBookings.stories.tsx +5 -35
  419. package/src/sales/guest-profile/previous-bookings/PreviousBookings.tsx +3 -11
  420. package/src/styles/customers/Filter.scss +4 -23
@@ -1 +1 @@
1
- {"version":3,"file":"ProductSetDepositPaidControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/deposit-paid/ProductSetDepositPaidControl.tsx"],"names":[],"mappings":";AASA,QAAA,MAAM,sBAAsB,qBAAsB,CAAC;AACnD,QAAA,MAAM,sBAAsB,oCAAqC,CAAC;AAElE,KAAK,qBAAqB,GAAG,OAAO,sBAAsB,CAAC,MAAM,CAAC,CAAC;AACnE,KAAK,qBAAqB,GAAG,OAAO,sBAAsB,CAAC,MAAM,CAAC,CAAC;AAEnE,MAAM,MAAM,kCAAkC,GAAG;IAC/C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,qBAAqB,EAAE,qBAAqB,CAAC;CAC9C,CAAC;AAEF,MAAM,WAAW,iCAAiC;IAChD,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,iCAAiC,eAmKzC"}
1
+ {"version":3,"file":"ProductSetDepositPaidControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/deposit-paid/ProductSetDepositPaidControl.tsx"],"names":[],"mappings":";AASA,QAAA,MAAM,sBAAsB,qBAAsB,CAAC;AACnD,QAAA,MAAM,sBAAsB,oCAAqC,CAAC;AAElE,aAAK,qBAAqB,GAAG,OAAO,sBAAsB,CAAC,MAAM,CAAC,CAAC;AACnE,aAAK,qBAAqB,GAAG,OAAO,sBAAsB,CAAC,MAAM,CAAC,CAAC;AAEnE,oBAAY,kCAAkC,GAAG;IAC/C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,qBAAqB,EAAE,qBAAqB,CAAC;CAC9C,CAAC;AAEF,MAAM,WAAW,iCAAiC;IAChD,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,iCAAiC,eAmKzC"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { IsDeletableEvent } from "../types";
3
- export type DeleteFieldButtonProps = IsDeletableEvent;
3
+ export declare type DeleteFieldButtonProps = IsDeletableEvent;
4
4
  export declare function DeleteFieldButton({ onDelete }: DeleteFieldButtonProps): JSX.Element;
5
5
  //# sourceMappingURL=DeleteFieldButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DeleteFieldButton.d.ts","sourceRoot":"","sources":["../../../src/product-set/elements/DeleteFieldButton.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAG5C,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,CAAC;AAEtD,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE,sBAAsB,eAarE"}
1
+ {"version":3,"file":"DeleteFieldButton.d.ts","sourceRoot":"","sources":["../../../src/product-set/elements/DeleteFieldButton.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAG5C,oBAAY,sBAAsB,GAAG,gBAAgB,CAAC;AAEtD,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE,sBAAsB,eAarE"}
@@ -1 +1 @@
1
- {"version":3,"file":"ProductCategoriesControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductCategoriesControl.tsx"],"names":[],"mappings":";AAYA,OAAO,EAKL,YAAY,EACb,MAAM,kEAAkE,CAAC;AAQ1E,OAAO,EAAwB,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAQvE,UAAU,6BAA8B,SAAQ,aAAa;IAC3D,SAAS,EAAE,MAAM,CAAC;CACnB;AA4BD,wBAAgB,wBAAwB,CAAC,EACvC,SAAS,EACT,SAAS,GACV,EAAE,6BAA6B,eAyR/B;AAED,eAAO,MAAM,cAAc,iBACX,YAAY,SACnB,MAAM;WACH,MAAM;eAAa,MAAM;CAcpC,CAAC"}
1
+ {"version":3,"file":"ProductCategoriesControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductCategoriesControl.tsx"],"names":[],"mappings":";AAYA,OAAO,EAKL,YAAY,EACb,MAAM,kEAAkE,CAAC;AAQ1E,OAAO,EAAwB,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAQvE,UAAU,6BAA8B,SAAQ,aAAa;IAC3D,SAAS,EAAE,MAAM,CAAC;CACnB;AA4BD,wBAAgB,wBAAwB,CAAC,EACvC,SAAS,EACT,SAAS,GACV,EAAE,6BAA6B,eAsR/B;AAED,eAAO,MAAM,cAAc,iBACX,YAAY,SACnB,MAAM;WACH,MAAM;eAAa,MAAM;CAcpC,CAAC"}
@@ -1 +1 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),r=require("react"),n=e(r),o=require("react-i18next"),i=require("react-bootstrap"),a=require("react-hook-form"),u=e(require("@licklist/plugins/dist/services/Form/HookFormService")),d=e(require("clsx")),l=require("@dnd-kit/core"),s=require("lodash"),c=require("../../sortable-tree/SortableTreeItem.js"),m=require("../../sortable-tree/SortableTree.js"),p=require("../item/CreateProductSetItem.js"),g=require("./context.js"),v=require("@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper"),f=require("../product-category/ProductCategoryControl.js"),y=require("./ProductsControl.js"),C=require("./SelectCategoryModal.js"),E=require("./VenueMapSetModal.js"),_=require("../utils/index.js");var b=function(e,t){return e===v.CATEGORY_TYPE_GAME?{className:"game-badge",label:t}:e===v.CATEGORY_TYPE_FIXED_DURATION?{className:"fixed-duration-badge",label:t}:null};exports.ProductCategoriesControl=function(e){var I,S,q,T,x,P,N=e.isLoading,M=e.stepIndex,A=o.useTranslation("Design").t,h=r.useContext(g.ProductSetLoadingContext),k=h.providerHasMap,j=h.expandedProductCategories,D=h.setExpandedProductCategories,R=a.useFormContext(),V=t.__read(r.useState(!1),2),Y=V[0],F=V[1],O=t.__read(r.useState(!1),2),B=O[0],L=O[1],w=t.__read(r.useState(!1),2),G=w[0],H=w[1],U=R.control,Q=R.formState.errors,K=R.clearErrors,z=R.watch,W=R.trigger,X=R.getValues,J=R.setValue,Z=z("steps.".concat(M,".hasMap"))||!1,$="steps.".concat(M,".productCategories"),ee=a.useFieldArray({name:$,control:U,keyName:"_id"}),te=ee.fields,re=ee.append,ne=ee.remove,oe=t.__read(r.useState({}),2),ie=oe[0],ae=oe[1],ue=a.useWatch({control:U,name:$}),de=null===(S=null===(I=null==Q?void 0:Q.steps)||void 0===I?void 0:I[M])||void 0===S?void 0:S.productCategories,le=null===(T=null===(q=null==Q?void 0:Q.steps)||void 0===q?void 0:q[M])||void 0===T?void 0:T.venueMapSetId,se=null===(P=null===(x=null==Q?void 0:Q.steps)||void 0===x?void 0:x[M])||void 0===P?void 0:P.pointProducts,ce=Boolean(le||se),me=l.useSensor(l.MouseSensor,{activationConstraint:{distance:10}});return r.useEffect((function(){ue&&ue.length&&ue.forEach((function(e){var r,n,o=null===(r=e.products)||void 0===r?void 0:r.reduce((function(e,t){return e+Number(t.price)*Number(t.totalQuantity)}),0),i=null===(n=e.products)||void 0===n?void 0:n.reduce((function(e,t){return e+(t.isUnlimited?0:Number(t.totalQuantity))}),0);ae((function(r){var n;return t.__assign(t.__assign({},r),((n={})[(null==e?void 0:e.id)||e.uniqueId]={price:o,quantity:i},n))}))}))}),[ue]),r.useEffect((function(){1===te.length&&D((function(e){var r,n,o;return t.__assign(t.__assign({},e),((r={})[String((null===(n=te[0])||void 0===n?void 0:n.id)||(null===(o=te[0])||void 0===o?void 0:o.uniqueId))]=!0,r))}))}),[te]),n.createElement(n.Fragment,null,n.createElement(m.SortableTree,{sensors:[me],items:te.map((function(e){return String(e._id)})),onDragEnd:function(e){var t=e.active,r=e.over;if(t&&r&&(null==t?void 0:t.id)&&(null==r?void 0:r.id)){var n=te.findIndex((function(e){return e._id===t.id})),o=te.findIndex((function(e){return e._id===r.id}));if(n!==o){var i=X($);if(i){var a=_.sortArrayByIndex(_.moveArrayElements(i,n,o));J($,a)}}}}},te.map((function(e,r){var o=(null==e?void 0:e.id)?String(e.id):e.uniqueId,u=function(){!function(e){D((function(r){var n;return t.__assign(t.__assign({},r),((n={})[e]=!r[e],n))}))}(o)};return n.createElement(a.Controller,{key:"product-category-".concat(e._id),name:"".concat($,".").concat(r,".name"),control:U,rules:{required:A("Validation:fieldRequired",{attribute:A("name")})},render:function(t){var a,d,l,s=t.field,p=s.value,g=s.onChange;return n.createElement(m.SortableTree.Item,{id:e._id,title:p,isExpanded:j[o],setIsExpanded:u,isInvalid:!!de,badge:n.createElement(i.Badge,{className:"category-badge"},A("productCategory")),isIconInHeader:!1,subTitle:n.createElement("div",{className:"product-set-badges-container"},n.createElement("div",{className:"product-set-subtitle-dot product-set-subtitle-category-dot"}),n.createElement("span",null,null!==(l=null===(d=ie[null!==(a=null==e?void 0:e.id)&&void 0!==a?a:e.uniqueId])||void 0===d?void 0:d.quantity)&&void 0!==l?l:"N/A"," ",A("products"))),treeLineIconColor:"#1A93AA",modalLabel:A("addNewCategory"),secondaryBadge:b(e.type,A(e.type)),modalClass:c.ProductSetModalClasses.category,isNewAdded:G,body:n.createElement(f.ProductCategoryControl,{isLoading:N,onCategoryNameChange:g,categoryName:p,stepIndex:M,productCategoryIndex:r}),onDelete:function(){return ne(r)},validate:function(){return W("steps.".concat(M,".productCategories.").concat(r))},sortableItems:e.products?e.products.filter((function(e){return e.id})).map((function(e){var t=e.id;return String(t)})):[]},n.createElement(y.ProductsControl,{isLoading:N,quantityType:e.quantityType,hasTicket:null==e?void 0:e.hasTicket,stepIndex:M,productCategoryIndex:r,categoryType:e.type}))}})}))),n.createElement(p.CreateProductSetItem,{title:A("addCategory"),onClick:function(){F(!0)}}),n.createElement(C.SelectCategoryModal,{isVisible:Y,onHide:function(){return F(!1)},onCategorySelect:function(e){re(function(e,t){return{id:null,uniqueId:s.uniqueId("product-category"),name:"",minSubItems:null,maxSubItems:null,quantityType:v.QUANTITY_TYPE_STANDARD,type:e,isRelyOnPeople:e===v.CATEGORY_TYPE_TICKETS,isTimeRelated:!1,collectUserInfo:!1,hasTicket:e===v.CATEGORY_TYPE_TICKETS,allowDeposits:!1,remainderExpireAfter:void 0,hasBookingManagement:!1,weight:0,isReusable:!1,hasSubEvents:!1,products:[],zoneId:null,sort:t}}(e,te.length)),H(!0),(null==de?void 0:de.type)===u.manualErrorType&&K($)}}),k&&Z&&n.createElement(n.Fragment,null,n.createElement(p.CreateProductSetItem,{title:A("editMap"),onClick:function(){L(!0)},className:d("mt-3",ce&&"mb-3",ce&&"is-invalid")}),ce&&n.createElement("div",{className:"manual-form-error"},le&&A("Validation:fieldRequired",{attribute:A("Design:venueMapSet")}),se&&A("Validation:fieldMinNumber",{attribute:A("pointProduct"),min:1})),n.createElement(E.VenueMapSetModal,{isVisible:B,setIsVisible:L,stepIndex:M})),n.createElement("div",{className:"manual-form-error"},de&&de.message))},exports.getBadgeConfig=b;
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),r=require("react"),n=e(r),o=require("react-i18next"),i=require("react-bootstrap"),a=require("react-hook-form"),u=e(require("@licklist/plugins/dist/services/Form/HookFormService")),d=e(require("clsx")),l=require("@dnd-kit/core"),s=require("lodash"),c=require("../../sortable-tree/SortableTreeItem.js"),m=require("../../sortable-tree/SortableTree.js"),p=require("../item/CreateProductSetItem.js"),g=require("./context.js"),v=require("@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper"),f=require("../product-category/ProductCategoryControl.js"),y=require("./ProductsControl.js"),C=require("./SelectCategoryModal.js"),E=require("./VenueMapSetModal.js"),_=require("../utils/index.js");var b=function(e,t){return e===v.CATEGORY_TYPE_GAME?{className:"game-badge",label:t}:e===v.CATEGORY_TYPE_FIXED_DURATION?{className:"fixed-duration-badge",label:t}:null};exports.ProductCategoriesControl=function(e){var I,S,q,T,x,P,N=e.isLoading,M=e.stepIndex,A=o.useTranslation("Design").t,h=r.useContext(g.ProductSetLoadingContext),k=h.providerHasMap,j=h.expandedProductCategories,D=h.setExpandedProductCategories,R=a.useFormContext(),V=t.__read(r.useState(!1),2),Y=V[0],F=V[1],O=t.__read(r.useState(!1),2),B=O[0],L=O[1],w=t.__read(r.useState(!1),2),G=w[0],H=w[1],Q=R.control,U=R.formState.errors,K=R.clearErrors,z=R.watch,W=R.trigger,X=R.getValues,J=R.setValue,Z=z("steps.".concat(M,".hasMap"))||!1,$="steps.".concat(M,".productCategories"),ee=a.useFieldArray({name:$,control:Q,keyName:"_id"}),te=ee.fields,re=ee.append,ne=ee.remove,oe=t.__read(r.useState({}),2),ie=oe[0],ae=oe[1],ue=a.useWatch({control:Q,name:$}),de=null===(S=null===(I=null==U?void 0:U.steps)||void 0===I?void 0:I[M])||void 0===S?void 0:S.productCategories,le=null===(T=null===(q=null==U?void 0:U.steps)||void 0===q?void 0:q[M])||void 0===T?void 0:T.venueMapSetId,se=null===(P=null===(x=null==U?void 0:U.steps)||void 0===x?void 0:x[M])||void 0===P?void 0:P.pointProducts,ce=Boolean(le||se),me=l.useSensor(l.MouseSensor,{activationConstraint:{distance:10}});return r.useEffect((function(){ue&&ue.length&&ue.forEach((function(e){var r,n,o=null===(r=e.products)||void 0===r?void 0:r.reduce((function(e,t){return e+Number(t.price)*Number(t.totalQuantity)}),0),i=null===(n=e.products)||void 0===n?void 0:n.reduce((function(e,t){return e+Number(t.totalQuantity)}),0);ae((function(r){var n;return t.__assign(t.__assign({},r),((n={})[(null==e?void 0:e.id)||e.uniqueId]={price:o,quantity:i},n))}))}))}),[ue]),r.useEffect((function(){1===te.length&&D((function(e){var r,n,o;return t.__assign(t.__assign({},e),((r={})[String((null===(n=te[0])||void 0===n?void 0:n.id)||(null===(o=te[0])||void 0===o?void 0:o.uniqueId))]=!0,r))}))}),[te]),n.createElement(n.Fragment,null,n.createElement(m.SortableTree,{sensors:[me],items:te.map((function(e){return String(e._id)})),onDragEnd:function(e){var t=e.active,r=e.over;if(t&&r&&(null==t?void 0:t.id)&&(null==r?void 0:r.id)){var n=te.findIndex((function(e){return e._id===t.id})),o=te.findIndex((function(e){return e._id===r.id}));if(n!==o){var i=X($);if(i){var a=_.sortArrayByIndex(_.moveArrayElements(i,n,o));J($,a)}}}}},te.map((function(e,r){var o=(null==e?void 0:e.id)?String(e.id):e.uniqueId,u=function(){!function(e){D((function(r){var n;return t.__assign(t.__assign({},r),((n={})[e]=!r[e],n))}))}(o)};return n.createElement(a.Controller,{key:"product-category-".concat(e._id),name:"".concat($,".").concat(r,".name"),control:Q,rules:{required:A("Validation:fieldRequired",{attribute:A("name")})},render:function(t){var a,d,l,s=t.field,p=s.value,g=s.onChange;return n.createElement(m.SortableTree.Item,{id:e._id,title:p,isExpanded:j[o],setIsExpanded:u,isInvalid:!!de,badge:n.createElement(i.Badge,{className:"category-badge"},A("productCategory")),isIconInHeader:!1,subTitle:n.createElement("div",{className:"product-set-badges-container"},n.createElement("div",{className:"product-set-subtitle-dot product-set-subtitle-category-dot"}),n.createElement("span",null,null!==(l=null===(d=ie[null!==(a=null==e?void 0:e.id)&&void 0!==a?a:e.uniqueId])||void 0===d?void 0:d.quantity)&&void 0!==l?l:"N/A"," ",A("products"))),treeLineIconColor:"#1A93AA",modalLabel:A("addNewCategory"),secondaryBadge:b(e.type,A(e.type)),modalClass:c.ProductSetModalClasses.category,isNewAdded:G,body:n.createElement(f.ProductCategoryControl,{isLoading:N,onCategoryNameChange:g,categoryName:p,stepIndex:M,productCategoryIndex:r}),onDelete:function(){return ne(r)},validate:function(){return W("steps.".concat(M,".productCategories.").concat(r))},sortableItems:e.products?e.products.filter((function(e){return e.id})).map((function(e){var t=e.id;return String(t)})):[]},n.createElement(y.ProductsControl,{isLoading:N,quantityType:e.quantityType,hasTicket:null==e?void 0:e.hasTicket,stepIndex:M,productCategoryIndex:r,categoryType:e.type}))}})}))),n.createElement(p.CreateProductSetItem,{title:A("addCategory"),onClick:function(){F(!0)}}),n.createElement(C.SelectCategoryModal,{isVisible:Y,onHide:function(){return F(!1)},onCategorySelect:function(e){re(function(e,t){return{id:null,uniqueId:s.uniqueId("product-category"),name:"",minSubItems:null,maxSubItems:null,quantityType:v.QUANTITY_TYPE_STANDARD,type:e,isRelyOnPeople:e===v.CATEGORY_TYPE_TICKETS,isTimeRelated:!1,collectUserInfo:!1,hasTicket:e===v.CATEGORY_TYPE_TICKETS,allowDeposits:!1,remainderExpireAfter:void 0,hasBookingManagement:!1,weight:0,isReusable:!1,hasSubEvents:!1,products:[],zoneId:null,sort:t}}(e,te.length)),H(!0),(null==de?void 0:de.type)===u.manualErrorType&&K($)}}),k&&Z&&n.createElement(n.Fragment,null,n.createElement(p.CreateProductSetItem,{title:A("editMap"),onClick:function(){L(!0)},className:d("mt-3",ce&&"mb-3",ce&&"is-invalid")}),ce&&n.createElement("div",{className:"manual-form-error"},le&&A("Validation:fieldRequired",{attribute:A("Design:venueMapSet")}),se&&A("Validation:fieldMinNumber",{attribute:A("pointProduct"),min:1})),n.createElement(E.VenueMapSetModal,{isVisible:B,setIsVisible:L,stepIndex:M})),n.createElement("div",{className:"manual-form-error"},de&&de.message))},exports.getBadgeConfig=b;
@@ -1 +1 @@
1
- {"version":3,"file":"ProductsControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductsControl.tsx"],"names":[],"mappings":";AAeA,OAAO,EAAE,YAAY,EAAE,MAAM,kEAAkE,CAAC;AAChG,OAAO,EAAkB,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,IAAI,CAAC;AAI/E,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAOjD,UAAU,oBAAqB,SAAQ,aAAa;IAClD,YAAY,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAC,cAAc,CAAC,CAAC;IACxE,SAAS,EAAE,MAAM,CAAC;IAClB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,YAAY,CAAC;CAC5B;AAmCD,wBAAgB,eAAe,CAAC,EAC9B,SAAS,EACT,YAAY,EACZ,SAAS,EACT,oBAAoB,EACpB,SAAS,EACT,YAAY,GACb,EAAE,oBAAoB,eAqMtB"}
1
+ {"version":3,"file":"ProductsControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductsControl.tsx"],"names":[],"mappings":";AAeA,OAAO,EAAE,YAAY,EAAE,MAAM,kEAAkE,CAAC;AAChG,OAAO,EAAkB,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,IAAI,CAAC;AAI/E,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAOjD,UAAU,oBAAqB,SAAQ,aAAa;IAClD,YAAY,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAC,cAAc,CAAC,CAAC;IACxE,SAAS,EAAE,MAAM,CAAC;IAClB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,YAAY,CAAC;CAC5B;AAmCD,wBAAgB,eAAe,CAAC,EAC9B,SAAS,EACT,YAAY,EACZ,SAAS,EACT,oBAAoB,EACpB,SAAS,EACT,YAAY,GACb,EAAE,oBAAoB,eAkLtB"}
@@ -1 +1 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),r=require("react"),o=e(r),n=require("react-i18next"),a=require("react-bootstrap"),i=require("react-hook-form"),c=e(require("@licklist/plugins/dist/services/Form/HookFormService")),u=require("@dnd-kit/core"),d=require("lodash");require("../elements/DeleteFieldButton.js");var s=require("../../sortable-tree/SortableTreeItem.js"),l=require("../../sortable-tree/SortableTree.js");require("../card/ProductSetCard.js");var p=require("../item/CreateProductSetItem.js");require("../step/StepControl.js"),require("../product-category/ProductCategoryControl.js");var m=require("@licklist/core/dist/DataMapper/Product/ProductDataMapper"),g=require("@licklist/core/dist/Services");require("../product/booking-management/ProductBookingManagementControl.js"),require("../product/deposit/ProductDepositControl.js"),require("../product/quantity/ProductQuantityControl.js"),require("../product/quantity/ProductQuantityConstantControl.js"),require("../product/quantity/ProductQuantityRechargingControl.js");var v=require("../product/ProductControl.js"),q=require("./SubProductsControl.js"),y=require("./ProductCategoriesControl.js");require("../control/ProductSetControl.js"),require("../deposit-paid/ProductSetDepositPaidControl.js"),require("./ProductSetForm.js"),require("../popover/ProductSetPopover.js"),require("../tabs/ProductSetTab.js"),require("../tabs/ProductSetTabs.js");exports.ProductsControl=function(e){var f,C,P,b,S=e.isLoading,_=e.quantityType,j=e.stepIndex,T=e.productCategoryIndex,E=e.hasTicket,h=e.categoryType,I=n.useTranslation("Design").t,k=i.useFormContext(),x=t.__read(r.useState(!1),2),D=x[0],N=x[1],A=k.control,F=k.formState.errors,M=k.clearErrors,Q=k.trigger,w=k.setValue,B=k.watch,U=k.getValues,L="steps.".concat(j,".productCategories.").concat(T,".products"),R="steps.".concat(j,".pointProducts"),O=i.useFieldArray({name:L,control:A,keyName:"_id"}),V=O.fields,W=O.append,H=O.remove,z=O.move,G=B("steps.".concat(j,".productCategories.").concat(T,".allowDeposits")),Y=i.useWatch({control:A,name:t.__spreadArray([],t.__read(V.map((function(e,t){return"".concat(L,".").concat(t,".price")}))),!1)}),J=i.useWatch({control:A,name:t.__spreadArray([],t.__read(V.map((function(e,t){return"".concat(L,".").concat(t,".totalQuantity")}))),!1)}),K=i.useWatch({control:A,name:t.__spreadArray([],t.__read(V.map((function(e,t){return"".concat(L,".").concat(t,".isUnlimited")}))),!1)}),X=null===(b=null===(P=null===(C=null===(f=null==F?void 0:F.steps)||void 0===f?void 0:f[j])||void 0===C?void 0:C.productCategories)||void 0===P?void 0:P[T])||void 0===b?void 0:b.products,Z=1===V.length,$=u.useSensor(u.MouseSensor,{activationConstraint:{distance:10}});return o.createElement(o.Fragment,null,o.createElement(l.SortableTree,{items:V.map((function(e){return String(e._id)})),onDragEnd:function(e){var t=e.active,r=e.over;if(t&&r&&(null==t?void 0:t.id)&&(null==r?void 0:r.id)){var o=V.findIndex((function(e){return e._id===t.id})),n=V.findIndex((function(e){return e._id===r.id}));o!==n&&(z(o,n),V.forEach((function(e,t){w("".concat(L,".").concat(t,".sort"),t)})))}},sensors:[$]},V.map((function(e,t){return o.createElement(i.Controller,{key:e._id,control:A,name:"".concat(L,".").concat(t,".name"),rules:{required:I("Validation:fieldRequired",{attribute:I("name")})},render:function(r){var n=r.field,i=n.value,c=n.onChange;return o.createElement(l.SortableTree.Item,{key:"product-".concat(e._id),id:String(e._id),isExpanded:Z,isInvalid:!!X,title:i,badge:o.createElement(a.Badge,{className:"product-badge"},I("product")),isIconInHeader:!1,secondaryBadge:y.getBadgeConfig(h,I(h)),subTitle:o.createElement("div",{className:"product-set-badges-container"},o.createElement("div",{className:"product-set-subtitle-dot product-set-subtitle-product-dot"}),o.createElement("span",null,"£".concat(Y[t]," ").concat(I("each")," - ").concat(I("qty"),":").concat(K[t]?I(" unlimited"):" ".concat(J[t])," ").concat(K[t]?"":" - ".concat(I("possibleRevenue")," £").concat(Y[t]*J[t])," "))),modalLabel:I("addNewProduct"),modalClass:s.ProductSetModalClasses.product,isNewAdded:D,body:o.createElement(v.ProductControl,{isLoading:S,quantityType:_,allowDeposits:G,hasBookingManagement:!1,fieldNamePrefix:"".concat(L,".").concat(t),productName:i,onProductNameChange:c,hasTicket:E,categoryType:h}),onDelete:function(){return function(e){var t=U("".concat(L,".").concat(e)),r=U(R);w(R,(null==r?void 0:r.filter((function(e){return e.productUuid!==t.uuid})))||[]),H(e)}(t)},validate:function(){return Q("".concat(L,".").concat(t))}},o.createElement(q.SubProductsControl,{isLoading:S,quantityType:_,stepIndex:j,productCategoryIndex:T,productIndex:t}))}})}))),o.createElement(p.CreateProductSetItem,{title:I("addProduct"),onClick:function(){var e;W((e=V.length,{id:null,name:"",termsAndConditions:"",productGroupId:null,description:"",price:0,deposit:0,minQuantity:null,maxQuantity:null,totalQuantity:0,capacity:0,duration:0,isAvailable:!0,isSoldOut:!1,isRequired:!1,isUnlimited:!1,quantitySelector:1,hasSpecialNotes:!1,weight:0,type:m.DEFAULT_PRODUCT_TYPE,tierId:Number(d.uniqueId()),zoneId:null,subProducts:[],images:[],uuid:g.generateUuid(),subSlots:null,offset:null,pause:null,serviceTime:null,sort:e})),N(!0),(null==X?void 0:X.type)===c.manualErrorType&&M(L)}}),o.createElement("div",{className:"manual-form-error"},X&&X.message))};
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),r=require("react"),o=e(r),n=require("react-i18next"),a=require("react-bootstrap"),i=require("react-hook-form"),c=e(require("@licklist/plugins/dist/services/Form/HookFormService")),u=require("@dnd-kit/core"),d=require("lodash");require("../elements/DeleteFieldButton.js");var s=require("../../sortable-tree/SortableTreeItem.js"),l=require("../../sortable-tree/SortableTree.js");require("../card/ProductSetCard.js");var p=require("../item/CreateProductSetItem.js");require("../step/StepControl.js"),require("../product-category/ProductCategoryControl.js");var m=require("@licklist/core/dist/DataMapper/Product/ProductDataMapper"),g=require("@licklist/core/dist/Services");require("../product/booking-management/ProductBookingManagementControl.js"),require("../product/deposit/ProductDepositControl.js"),require("../product/quantity/ProductQuantityControl.js"),require("../product/quantity/ProductQuantityConstantControl.js"),require("../product/quantity/ProductQuantityRechargingControl.js");var q=require("../product/ProductControl.js"),v=require("./SubProductsControl.js"),y=require("./ProductCategoriesControl.js");require("../control/ProductSetControl.js"),require("../deposit-paid/ProductSetDepositPaidControl.js"),require("./ProductSetForm.js"),require("../popover/ProductSetPopover.js"),require("../tabs/ProductSetTab.js"),require("../tabs/ProductSetTabs.js");exports.ProductsControl=function(e){var C,f,P,b,S=e.isLoading,_=e.quantityType,j=e.stepIndex,T=e.productCategoryIndex,E=e.hasTicket,h=e.categoryType,I=n.useTranslation("Design").t,k=i.useFormContext(),x=t.__read(r.useState(!1),2),D=x[0],N=x[1],A=k.control,F=k.formState.errors,M=k.clearErrors,Q=k.trigger,w=k.setValue,B=k.watch,L="steps.".concat(j,".productCategories.").concat(T,".products"),R=i.useFieldArray({name:L,control:A,keyName:"_id"}),U=R.fields,O=R.append,W=R.remove,H=R.move,V=B("steps.".concat(j,".productCategories.").concat(T,".allowDeposits")),z=i.useWatch({control:A,name:t.__spreadArray([],t.__read(U.map((function(e,t){return"".concat(L,".").concat(t,".price")}))),!1)}),G=i.useWatch({control:A,name:t.__spreadArray([],t.__read(U.map((function(e,t){return"".concat(L,".").concat(t,".totalQuantity")}))),!1)}),Y=i.useWatch({control:A,name:t.__spreadArray([],t.__read(U.map((function(e,t){return"".concat(L,".").concat(t,".isUnlimited")}))),!1)}),J=null===(b=null===(P=null===(f=null===(C=null==F?void 0:F.steps)||void 0===C?void 0:C[j])||void 0===f?void 0:f.productCategories)||void 0===P?void 0:P[T])||void 0===b?void 0:b.products,K=1===U.length,X=u.useSensor(u.MouseSensor,{activationConstraint:{distance:10}});return o.createElement(o.Fragment,null,o.createElement(l.SortableTree,{items:U.map((function(e){return String(e._id)})),onDragEnd:function(e){var t=e.active,r=e.over;if(t&&r&&(null==t?void 0:t.id)&&(null==r?void 0:r.id)){var o=U.findIndex((function(e){return e._id===t.id})),n=U.findIndex((function(e){return e._id===r.id}));o!==n&&(H(o,n),U.forEach((function(e,t){w("".concat(L,".").concat(t,".sort"),t)})))}},sensors:[X]},U.map((function(e,t){return o.createElement(i.Controller,{key:e._id,control:A,name:"".concat(L,".").concat(t,".name"),rules:{required:I("Validation:fieldRequired",{attribute:I("name")})},render:function(r){var n=r.field,i=n.value,c=n.onChange;return o.createElement(l.SortableTree.Item,{key:"product-".concat(e._id),id:String(e._id),isExpanded:K,isInvalid:!!J,title:i,badge:o.createElement(a.Badge,{className:"product-badge"},I("product")),isIconInHeader:!1,secondaryBadge:y.getBadgeConfig(h,I(h)),subTitle:o.createElement("div",{className:"product-set-badges-container"},o.createElement("div",{className:"product-set-subtitle-dot product-set-subtitle-product-dot"}),o.createElement("span",null,"£".concat(z[t]," ").concat(I("each")," - ").concat(I("qty"),":").concat(Y[t]?I(" unlimited"):" ".concat(G[t])," ").concat(Y[t]?"":" - ".concat(I("possibleRevenue")," £").concat(z[t]*G[t])," "))),modalLabel:I("addNewProduct"),modalClass:s.ProductSetModalClasses.product,isNewAdded:D,body:o.createElement(q.ProductControl,{isLoading:S,quantityType:_,allowDeposits:V,hasBookingManagement:!1,fieldNamePrefix:"".concat(L,".").concat(t),productName:i,onProductNameChange:c,hasTicket:E,categoryType:h}),onDelete:function(){return W(t)},validate:function(){return Q("".concat(L,".").concat(t))}},o.createElement(v.SubProductsControl,{isLoading:S,quantityType:_,stepIndex:j,productCategoryIndex:T,productIndex:t}))}})}))),o.createElement(p.CreateProductSetItem,{title:I("addProduct"),onClick:function(){var e;O((e=U.length,{id:null,name:"",termsAndConditions:"",productGroupId:null,description:"",price:0,deposit:0,minQuantity:null,maxQuantity:null,totalQuantity:0,capacity:0,duration:0,isAvailable:!0,isSoldOut:!1,isRequired:!1,isUnlimited:!1,quantitySelector:1,hasSpecialNotes:!1,weight:0,type:m.DEFAULT_PRODUCT_TYPE,tierId:Number(d.uniqueId()),zoneId:null,subProducts:[],images:[],uuid:g.generateUuid(),subSlots:null,offset:null,pause:null,serviceTime:null,sort:e})),N(!0),(null==J?void 0:J.type)===c.manualErrorType&&M(L)}}),o.createElement("div",{className:"manual-form-error"},J&&J.message))};
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- type VenueMapSetModalProps = {
2
+ declare type VenueMapSetModalProps = {
3
3
  isVisible: boolean;
4
4
  setIsVisible: (value: boolean) => void;
5
5
  stepIndex: number;
@@ -1 +1 @@
1
- {"version":3,"file":"VenueMapSetModal.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/VenueMapSetModal.tsx"],"names":[],"mappings":";AAeA,KAAK,qBAAqB,GAAG;IAC3B,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,gBAAgB,4CAI1B,qBAAqB,gBAuMvB,CAAC"}
1
+ {"version":3,"file":"VenueMapSetModal.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/VenueMapSetModal.tsx"],"names":[],"mappings":";AAeA,aAAK,qBAAqB,GAAG;IAC3B,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,gBAAgB,4CAI1B,qBAAqB,gBAuMvB,CAAC"}
@@ -2,7 +2,7 @@
2
2
  import { VenueMap } from "@licklist/core/dist/DataMapper/Product/VenueMapDataMapper";
3
3
  import { PointProduct } from "@licklist/core/dist/DataMapper/Product/PointProductDataMapper";
4
4
  import { Product } from "../types";
5
- type VenueMapsControlProps = {
5
+ declare type VenueMapsControlProps = {
6
6
  venueMaps?: VenueMap[];
7
7
  products?: Partial<Product>[];
8
8
  pointProducts?: Partial<PointProduct>[];
@@ -1 +1 @@
1
- {"version":3,"file":"VenueMapsControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/VenueMapsControl.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,2DAA2D,CAAC;AAErF,OAAO,EAAE,YAAY,EAAE,MAAM,+DAA+D,CAAC;AAG7F,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnC,KAAK,qBAAqB,GAAG;IAC3B,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;IAC9B,aAAa,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC;IACxC,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,KAAK,IAAI,CAAC;CAClE,CAAC;AAEF,eAAO,MAAM,gBAAgB,mEAK1B,qBAAqB,gBA6DvB,CAAC"}
1
+ {"version":3,"file":"VenueMapsControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/VenueMapsControl.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,2DAA2D,CAAC;AAErF,OAAO,EAAE,YAAY,EAAE,MAAM,+DAA+D,CAAC;AAG7F,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnC,aAAK,qBAAqB,GAAG;IAC3B,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;IAC9B,aAAa,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC;IACxC,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,KAAK,IAAI,CAAC;CAClE,CAAC;AAEF,eAAO,MAAM,gBAAgB,mEAK1B,qBAAqB,gBA6DvB,CAAC"}
@@ -15,7 +15,7 @@ interface LoadingContext {
15
15
  setExpandedProductCategories: Dispatch<SetStateAction<Record<string, boolean>>>;
16
16
  }
17
17
  export declare const ProductSetLoadingContext: React.Context<LoadingContext>;
18
- type ProductSetContextProviderProps = PropsWithChildren<Omit<LoadingContext, "isLoading" | "setLoading" | "expandedProductCategories" | "setExpandedProductCategories">>;
18
+ declare type ProductSetContextProviderProps = PropsWithChildren<Omit<LoadingContext, "isLoading" | "setLoading" | "expandedProductCategories" | "setExpandedProductCategories">>;
19
19
  export declare function ProductSetContextProvider({ children, productGroupList, providerHasMap, venueMapSets, providerHasBookingManagement, zones, }: ProductSetContextProviderProps): JSX.Element;
20
20
  export {};
21
21
  //# sourceMappingURL=context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,iBAAiB,EACjB,cAAc,EAId,QAAQ,EACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAC;AAE3F,OAAO,EAAE,gCAAgC,EAAE,MAAM,oFAAoF,CAAC;AACtI,OAAO,EAAE,IAAI,EAAE,MAAM,wDAAwD,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAE5D,UAAU,cAAc;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,gBAAgB,CAAC,EAAE,UAAU,EAAE,CAAC;IAChC,cAAc,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAChC,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,4BAA4B,CAAC,EAAE,gCAAgC,CAAC,sBAAsB,CAAC,CAAC;IACxF,KAAK,CAAC,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;IACtB,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnD,4BAA4B,EAAE,QAAQ,CACpC,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CACxC,CAAC;CACH;AAED,eAAO,MAAM,wBAAwB,+BAEpC,CAAC;AAEF,KAAK,8BAA8B,GAAG,iBAAiB,CACrD,IAAI,CACF,cAAc,EACZ,WAAW,GACX,YAAY,GACZ,2BAA2B,GAC3B,8BAA8B,CACjC,CACF,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,EACxC,QAAQ,EACR,gBAAqB,EACrB,cAAsB,EACtB,YAAiB,EACjB,4BAA4B,EAC5B,KAAK,GACN,EAAE,8BAA8B,eA0BhC"}
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,iBAAiB,EACjB,cAAc,EAId,QAAQ,EACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAC;AAE3F,OAAO,EAAE,gCAAgC,EAAE,MAAM,oFAAoF,CAAC;AACtI,OAAO,EAAE,IAAI,EAAE,MAAM,wDAAwD,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAE5D,UAAU,cAAc;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,gBAAgB,CAAC,EAAE,UAAU,EAAE,CAAC;IAChC,cAAc,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAChC,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,4BAA4B,CAAC,EAAE,gCAAgC,CAAC,sBAAsB,CAAC,CAAC;IACxF,KAAK,CAAC,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;IACtB,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnD,4BAA4B,EAAE,QAAQ,CACpC,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CACxC,CAAC;CACH;AAED,eAAO,MAAM,wBAAwB,+BAEpC,CAAC;AAEF,aAAK,8BAA8B,GAAG,iBAAiB,CACrD,IAAI,CACF,cAAc,EACZ,WAAW,GACX,YAAY,GACZ,2BAA2B,GAC3B,8BAA8B,CACjC,CACF,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,EACxC,QAAQ,EACR,gBAAqB,EACrB,cAAsB,EACtB,YAAiB,EACjB,4BAA4B,EAC5B,KAAK,GACN,EAAE,8BAA8B,eA0BhC"}
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { Placement } from "react-bootstrap/esm/Overlay";
3
3
  import { OverlayTriggerType } from "react-bootstrap/OverlayTrigger";
4
- export type ProductSetPopoverProps = {
4
+ export declare type ProductSetPopoverProps = {
5
5
  title?: string;
6
6
  placement?: Placement;
7
7
  isVisible?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"ProductSetPopover.d.ts","sourceRoot":"","sources":["../../../src/product-set/popover/ProductSetPopover.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAuB,EACrB,kBAAkB,EACnB,MAAM,gCAAgC,CAAC;AAIxC,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,kBAAkB,GAAG,kBAAkB,EAAE,CAAC;IACpD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;wCAmD7B,CAAC"}
1
+ {"version":3,"file":"ProductSetPopover.d.ts","sourceRoot":"","sources":["../../../src/product-set/popover/ProductSetPopover.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAuB,EACrB,kBAAkB,EACnB,MAAM,gCAAgC,CAAC;AAIxC,oBAAY,sBAAsB,GAAG;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,kBAAkB,GAAG,kBAAkB,EAAE,CAAC;IACpD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;wCAmD7B,CAAC"}
@@ -1 +1 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),a=require("react"),n=e(a),r=require("react-i18next"),o=e(require("react-bootstrap/Row")),l=e(require("react-bootstrap/Col")),i=require("react-bootstrap"),c=require("../../static/Icon.js"),s=require("react-hook-form"),m=e(require("@licklist/plugins/dist/services/Form/HookFormService")),u=require("@react-aria/utils"),d=require("../../static/switch/BooleanSwitch.js"),E=require("../../static/form-number-input/FormNumberInput.js");require("../../static/index.js");var p=require("../form/context.js"),g=require("@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper"),f=require("./booking-management/ProductBookingManagementControl.js"),C=require("./deposit/ProductDepositControl.js"),v=require("./quantity/ProductQuantityControl.js"),b=require("./quantity/ProductQuantityConstantControl.js"),h=require("./quantity/ProductQuantityRechargingControl.js"),F=e(require("react-bootstrap/Collapse")),I=require("@licklist/plugins/dist/hooks/Media/useImages"),N=require("@licklist/core/dist/DataMapper/Media/ImageDataMapper"),P=require("../../file-upload/FileUpload.js"),q=require("../../tiptap-editor/TipTapEditor.js"),y=require("./fixed-duration-fields/FixedDurationOptions.js"),k=require("./duration/ProductDurationControl.js"),x=require("./price/ProductPriceControl.js");exports.ProductControl=function(e){var T=e.isLoading,_=void 0!==T&&T,L=e.fieldNamePrefix,j=e.allowDeposits,S=void 0!==j&&j,w=e.hasBookingManagement,A=void 0!==w&&w,D=e.zoneList,G=void 0===D?[]:D,B=e.onCopy,M=e.onProductNameChange,R=e.productName,O=e.hasTicket,U=e.categoryType,Y=s.useFormContext(),Q=Y.register,V=Y.control,H=Y.formState.errors,z=Y.setValue,X=Y.getValues,W=Y.watch,J=a.useContext(p.ProductSetLoadingContext),K=J.setLoading,Z=J.providerHasBookingManagement,$=r.useTranslation("Design").t,ee=t.__read(a.useState(!1),2),te=ee[0],ae=ee[1],ne=t.__read(a.useState(null),2),re=ne[0],oe=ne[1],le=Boolean(W("".concat(L,".isUnlimited"))),ie=u.useId(),ce=u.useId(),se=u.useId(),me=u.useId(),ue=u.useId(),de=u.useId(),Ee=u.useId(),pe=u.useId(),ge=u.useId(),fe=u.useId(),Ce=[{id:1,value:$("quantitySelector")},{id:2,value:$("stockControl")}],ve=a.useCallback((function(){return ae((function(e){return!e}))}),[]),be=s.useWatch({control:V,name:"".concat(L,".quantitySelector")}),he=I.useImages(re),Fe=he.images,Ie=he.handleImageRemove,Ne=he.handleImageUploading,Pe=he.isLoading,qe=a.useCallback((function(e){Ne(e,N.IMAGE_TYPE_IMAGE)}),[Ne]),ye=a.useCallback((function(e,t){Ie(String(e),t)}),[Ie]),ke=function(e){return e.target.select()};a.useEffect((function(){K(Pe)}),[K,Pe]),a.useEffect((function(){var e=X("".concat(L,".images"));oe(e)}),[X,oe,L]),a.useEffect((function(){Array.isArray(Fe)&&z("".concat(L,".images"),Fe)}),[Fe,L,z]);var xe=null!=be?be:"1",Te=g.QUANTITY_TYPE_LIST_DTO[xe];return n.createElement(n.Fragment,null,n.createElement(o,null,n.createElement(l,{lg:8,md:8},n.createElement(i.Form.Group,{controlId:ce},n.createElement(i.Form.Label,null,$("name")),n.createElement(i.Form.Control,t.__assign({},Q("".concat(L,".name")),{value:R,onChange:M,isInvalid:m.isInvalid("".concat(L,".name"),H),disabled:_,placeholder:$("name")})),n.createElement(i.Form.Control.Feedback,{type:"invalid"},m.getErrors("".concat(L,".name"),H))),n.createElement(i.Form.Group,{controlId:se},n.createElement(i.Form.Label,null,$("description")),n.createElement(s.Controller,{render:function(e){var t=e.field,a=t.value,r=t.onChange;return n.createElement(q.TipTapEditor,{withEmoji:!1,viewMode:!1,onUpdate:r,content:a,disabled:_})},control:V,name:"".concat(L,".description")}),n.createElement(i.Form.Control.Feedback,{type:"invalid"},m.getErrors("".concat(L,".description"),H))),S?n.createElement(o,null,n.createElement(C.ProductDepositControl,{isLoading:_,fieldNamePrefix:L}),n.createElement(x.ProductPriceControl,{isLoading:_,fieldNamePrefix:L,title:$("totalPrice"),allowDeposits:S})):n.createElement(x.ProductPriceControl,{isLoading:_,fieldNamePrefix:L}),n.createElement("div",null,n.createElement(v.ProductQuantityControl,{isLoading:_,fieldNamePrefix:L,onFocus:ke}),Te===g.QUANTITY_TYPE_CONSTANT&&n.createElement(b.ProductQuantityConstantControl,{isLoading:_,fieldNamePrefix:L,onFocus:ke,disabled:le}),Te===g.QUANTITY_TYPE_RECHARGING&&n.createElement(h.ProductQuantityRechargingControl,{isLoading:_,fieldNamePrefix:L,onFocus:ke,disabled:le}),n.createElement(i.Form.Group,{controlId:fe,className:"custom-checkbox"},n.createElement(i.Form.Check,t.__assign({custom:!0,type:"checkbox"},Q("".concat(L,".isUnlimited")),{name:"".concat(L,".isUnlimited"),disabled:_})),n.createElement(i.Form.Check.Label,null,$("isUnlimited")))),n.createElement(i.Form.Group,{controlId:pe},n.createElement(i.Form.Label,null,$("quantitySelectorType")),n.createElement(i.Form.Control,t.__assign({as:"select",defaultValue:O?Ce[0].id:void 0},Q("".concat(L,".quantitySelector")),{isInvalid:m.isInvalid("".concat(L,".quantitySelector"),H),disabled:_||O}),Ce.map((function(e){return n.createElement("option",{value:e.id,key:e.id},e.value)}))),n.createElement(i.Form.Control.Feedback,{type:"invalid"},m.getErrors("".concat(L,".quantitySelector"),H))))),U===g.CATEGORY_TYPE_FIXED_DURATION&&n.createElement(o,{className:"align-items-start"},n.createElement(k.ProductDurationControl,{fieldNamePrefix:L,providerHasBookingManagement:Z}),n.createElement(l,{lg:4,md:4},n.createElement(E.FormNumberInput,{fieldName:"".concat(L,".capacity"),label:$("capacity")}))),U===g.CATEGORY_TYPE_GAME&&n.createElement(o,{className:"align-items-start"},n.createElement(l,{lg:4,md:4},n.createElement(E.FormNumberInput,{fieldName:"".concat(L,".capacity"),label:$("capacity"),rules:{min:{value:1,message:$("Validation:fieldRequired",{attribute:$("capacity")})}}})),n.createElement(l,{lg:4,md:4},n.createElement(E.FormNumberInput,{fieldName:"".concat(L,".duration"),label:$("durationMinutes"),rules:{min:{value:1,message:$("Validation:fieldRequired",{attribute:$("duration")})}}}))),n.createElement(o,null,n.createElement(l,{lg:8,md:8},n.createElement(i.Form.Group,{controlId:me},n.createElement(i.Form.Label,null,$("productTermsConditions")),n.createElement(s.Controller,{render:function(e){var t=e.field,a=t.value,r=t.onChange,o=t.name,l=t.ref;return n.createElement(i.Form.Control,{ref:l,as:"textarea",rows:3,value:a,onChange:r,isInvalid:m.isInvalid("".concat(L,".termsAndConditions"),H),disabled:_,name:o})},control:V,name:"".concat(L,".termsAndConditions")}),n.createElement(i.Form.Control.Feedback,{type:"invalid"},m.getErrors("".concat(L,".termsAndConditions"),H)))),n.createElement(l,{lg:4,md:4,className:"licklist-file-upload-wrapper"},n.createElement(P.FileUpload,{onFilesChange:qe,allowedExtensions:["jpeg","jpg","png"],subTitle:".jpeg .jpg .png",enablePreview:!0,onFileRemove:ye,defaultFiles:Fe,isLoading:Pe,withIcon:!0,title:$("addImage")}))),n.createElement(l,{lg:12,md:12,xl:!0,className:"p-0"},n.createElement(i.Form.Group,{controlId:ue,className:"advanced-switch-container"},n.createElement(i.Form.Label,null,$("isAvailable")),n.createElement(s.Controller,{render:function(e){var t=e.field,a=t.value,r=t.onChange,o=t.name;return n.createElement(d.BooleanSwitch,{name:o,value:Boolean(a),onChange:r,disabled:_})},control:V,name:"".concat(L,".isAvailable")})),n.createElement(i.Form.Group,{controlId:de,className:"advanced-switch-container"},n.createElement(i.Form.Label,null,$("isSoldOut")),n.createElement(s.Controller,{render:function(e){var t=e.field,a=t.value,r=t.onChange,o=t.name;return n.createElement(d.BooleanSwitch,{name:o,value:Boolean(a),onChange:r,disabled:_})},control:V,name:"".concat(L,".isSoldOut")})),n.createElement(i.Form.Group,{controlId:ie,className:"custom-checkbox"},n.createElement(i.Form.Check,{custom:!0,type:"checkbox",name:ie,disabled:_},n.createElement(i.Form.Check.Input,{checked:te,onChange:ve,type:"checkbox"}),n.createElement(i.Form.Check.Label,null,$("showAdvancedOptions"))))),n.createElement(l,{lg:12,md:12,xl:!0,className:"p-0"},n.createElement(F,{in:te},n.createElement("div",null,n.createElement(i.Form.Group,{controlId:Ee,className:"advanced-switch-container"},n.createElement(i.Form.Label,null,$("isRequired")),n.createElement(s.Controller,{render:function(e){var t=e.field,a=t.value,r=t.onChange,o=t.name;return n.createElement(d.BooleanSwitch,{name:o,value:Boolean(a),onChange:r,disabled:_})},control:V,name:"".concat(L,".isRequired")})),n.createElement(i.Form.Group,{controlId:ge,className:"advanced-switch-container"},n.createElement(i.Form.Label,null,$("hasSpecialNotes")),n.createElement(s.Controller,{render:function(e){var t=e.field,a=t.value,r=t.onChange,o=t.name;return n.createElement(d.BooleanSwitch,{name:o,value:Boolean(a),onChange:r,disabled:_})},control:V,name:"".concat(L,".hasSpecialNotes")})),U===g.CATEGORY_TYPE_FIXED_DURATION&&n.createElement(y.FixedDurationOptions,{fieldNamePrefix:L}))),n.createElement(o,null,n.createElement(l,{xs:12},A&&n.createElement(f.ProductBookingManagementControl,{isLoading:_,zoneList:G,fieldNamePrefix:L})))),n.createElement(o,null,n.createElement(l,{xs:!0},n.createElement("div",{className:"d-flex justify-content-end mt-4"},Boolean(B)&&n.createElement(i.Button,{onClick:B,variant:"link",className:"d-flex align-items-center"},n.createElement(c.default,{type:"clipboard",height:"1rem",className:"mr-2"})," ",$("copy"))))))};
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),a=require("react"),n=e(a),r=require("react-i18next"),o=e(require("react-bootstrap/Row")),l=e(require("react-bootstrap/Col")),i=require("react-bootstrap"),c=require("../../static/Icon.js"),s=require("react-hook-form"),m=e(require("@licklist/plugins/dist/services/Form/HookFormService")),u=require("@react-aria/utils"),d=require("../../static/switch/BooleanSwitch.js"),E=require("../../static/form-number-input/FormNumberInput.js");require("../../static/index.js");var p=require("../form/context.js"),g=require("@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper"),f=require("./booking-management/ProductBookingManagementControl.js"),C=require("./deposit/ProductDepositControl.js"),v=require("./quantity/ProductQuantityControl.js"),b=require("./quantity/ProductQuantityConstantControl.js"),h=require("./quantity/ProductQuantityRechargingControl.js"),F=e(require("react-bootstrap/Collapse")),I=require("@licklist/plugins/dist/hooks/Media/useImages"),N=require("@licklist/core/dist/DataMapper/Media/ImageDataMapper"),P=require("../../file-upload/FileUpload.js"),q=require("../../tiptap-editor/TipTapEditor.js"),y=require("./fixed-duration-fields/FixedDurationOptions.js"),k=require("./duration/ProductDurationControl.js"),x=require("./price/ProductPriceControl.js");exports.ProductControl=function(e){var T=e.isLoading,_=void 0!==T&&T,L=e.fieldNamePrefix,j=e.allowDeposits,w=void 0!==j&&j,S=e.hasBookingManagement,A=void 0!==S&&S,D=e.zoneList,G=void 0===D?[]:D,B=e.onCopy,M=e.onProductNameChange,R=e.productName,O=e.hasTicket,U=e.categoryType,Y=s.useFormContext(),Q=Y.register,V=Y.control,H=Y.formState.errors,z=Y.setValue,X=Y.getValues,W=Y.watch,J=a.useContext(p.ProductSetLoadingContext),K=J.setLoading,Z=J.providerHasBookingManagement,$=r.useTranslation("Design").t,ee=t.__read(a.useState(!1),2),te=ee[0],ae=ee[1],ne=t.__read(a.useState(null),2),re=ne[0],oe=ne[1],le=Boolean(W("".concat(L,".isUnlimited"))),ie=u.useId(),ce=u.useId(),se=u.useId(),me=u.useId(),ue=u.useId(),de=u.useId(),Ee=u.useId(),pe=u.useId(),ge=u.useId(),fe=u.useId(),Ce=[{id:1,value:$("quantitySelector")},{id:2,value:$("stockControl")}],ve=a.useCallback((function(){return ae((function(e){return!e}))}),[]),be=s.useWatch({control:V,name:"".concat(L,".quantitySelector")}),he=I.useImages(re),Fe=he.images,Ie=he.handleImageRemove,Ne=he.handleImageUploading,Pe=he.isLoading,qe=a.useCallback((function(e){Ne(e,N.IMAGE_TYPE_IMAGE)}),[Ne]),ye=a.useCallback((function(e,t){Ie(e,t)}),[Ie]),ke=function(e){return e.target.select()};a.useEffect((function(){K(Pe)}),[K,Pe]),a.useEffect((function(){Array.isArray(Fe)&&(null==Fe?void 0:Fe.length)>0&&z("".concat(L,".images"),Fe)}),[Fe,L,z]),a.useEffect((function(){var e=X("".concat(L,".images"));oe(e)}),[X,oe,L]);var xe=null!=be?be:"1",Te=g.QUANTITY_TYPE_LIST_DTO[xe];return n.createElement(n.Fragment,null,n.createElement(o,null,n.createElement(l,{lg:8,md:8},n.createElement(i.Form.Group,{controlId:ce},n.createElement(i.Form.Label,null,$("name")),n.createElement(i.Form.Control,t.__assign({},Q("".concat(L,".name")),{value:R,onChange:M,isInvalid:m.isInvalid("".concat(L,".name"),H),disabled:_,placeholder:$("name")})),n.createElement(i.Form.Control.Feedback,{type:"invalid"},m.getErrors("".concat(L,".name"),H))),n.createElement(i.Form.Group,{controlId:se},n.createElement(i.Form.Label,null,$("description")),n.createElement(s.Controller,{render:function(e){var t=e.field,a=t.value,r=t.onChange;return n.createElement(q.TipTapEditor,{withEmoji:!1,viewMode:!1,onUpdate:r,content:a,disabled:_})},control:V,name:"".concat(L,".description")}),n.createElement(i.Form.Control.Feedback,{type:"invalid"},m.getErrors("".concat(L,".description"),H))),w?n.createElement(o,null,n.createElement(C.ProductDepositControl,{isLoading:_,fieldNamePrefix:L}),n.createElement(x.ProductPriceControl,{isLoading:_,fieldNamePrefix:L,title:$("totalPrice"),allowDeposits:w})):n.createElement(x.ProductPriceControl,{isLoading:_,fieldNamePrefix:L}),n.createElement("div",null,n.createElement(v.ProductQuantityControl,{isLoading:_,fieldNamePrefix:L,onFocus:ke}),Te===g.QUANTITY_TYPE_CONSTANT&&n.createElement(b.ProductQuantityConstantControl,{isLoading:_,fieldNamePrefix:L,onFocus:ke,disabled:le}),Te===g.QUANTITY_TYPE_RECHARGING&&n.createElement(h.ProductQuantityRechargingControl,{isLoading:_,fieldNamePrefix:L,onFocus:ke,disabled:le}),n.createElement(i.Form.Group,{controlId:fe,className:"custom-checkbox"},n.createElement(i.Form.Check,t.__assign({custom:!0,type:"checkbox"},Q("".concat(L,".isUnlimited")),{name:"".concat(L,".isUnlimited"),disabled:_})),n.createElement(i.Form.Check.Label,null,$("isUnlimited")))),n.createElement(i.Form.Group,{controlId:pe},n.createElement(i.Form.Label,null,$("quantitySelectorType")),n.createElement(i.Form.Control,t.__assign({as:"select",defaultValue:O?Ce[0].id:void 0},Q("".concat(L,".quantitySelector")),{isInvalid:m.isInvalid("".concat(L,".quantitySelector"),H),disabled:_||O}),Ce.map((function(e){return n.createElement("option",{value:e.id,key:e.id},e.value)}))),n.createElement(i.Form.Control.Feedback,{type:"invalid"},m.getErrors("".concat(L,".quantitySelector"),H))))),U===g.CATEGORY_TYPE_FIXED_DURATION&&n.createElement(o,{className:"align-items-start"},n.createElement(k.ProductDurationControl,{fieldNamePrefix:L,providerHasBookingManagement:Z}),n.createElement(l,{lg:4,md:4},n.createElement(E.FormNumberInput,{fieldName:"".concat(L,".capacity"),label:$("capacity")}))),U===g.CATEGORY_TYPE_GAME&&n.createElement(o,{className:"align-items-start"},n.createElement(l,{lg:4,md:4},n.createElement(E.FormNumberInput,{fieldName:"".concat(L,".capacity"),label:$("capacity"),rules:{min:{value:1,message:$("Validation:fieldRequired",{attribute:$("capacity")})}}})),n.createElement(l,{lg:4,md:4},n.createElement(E.FormNumberInput,{fieldName:"".concat(L,".duration"),label:$("durationMinutes"),rules:{min:{value:1,message:$("Validation:fieldRequired",{attribute:$("duration")})}}}))),n.createElement(o,null,n.createElement(l,{lg:8,md:8},n.createElement(i.Form.Group,{controlId:me},n.createElement(i.Form.Label,null,$("productTermsConditions")),n.createElement(s.Controller,{render:function(e){var t=e.field,a=t.value,r=t.onChange,o=t.name,l=t.ref;return n.createElement(i.Form.Control,{ref:l,as:"textarea",rows:3,value:a,onChange:r,isInvalid:m.isInvalid("".concat(L,".termsAndConditions"),H),disabled:_,name:o})},control:V,name:"".concat(L,".termsAndConditions")}),n.createElement(i.Form.Control.Feedback,{type:"invalid"},m.getErrors("".concat(L,".termsAndConditions"),H)))),n.createElement(l,{lg:4,md:4,className:"licklist-file-upload-wrapper"},n.createElement(P.FileUpload,{onFilesChange:qe,allowedExtensions:["jpeg","jpg","png"],subTitle:".jpeg .jpg .png",enablePreview:!0,onFileRemove:ye,defaultFiles:Fe,isLoading:Pe,withIcon:!0,title:$("addImage")}))),n.createElement(l,{lg:12,md:12,xl:!0,className:"p-0"},n.createElement(i.Form.Group,{controlId:ue,className:"advanced-switch-container"},n.createElement(i.Form.Label,null,$("isAvailable")),n.createElement(s.Controller,{render:function(e){var t=e.field,a=t.value,r=t.onChange,o=t.name;return n.createElement(d.BooleanSwitch,{name:o,value:Boolean(a),onChange:r,disabled:_})},control:V,name:"".concat(L,".isAvailable")})),n.createElement(i.Form.Group,{controlId:de,className:"advanced-switch-container"},n.createElement(i.Form.Label,null,$("isSoldOut")),n.createElement(s.Controller,{render:function(e){var t=e.field,a=t.value,r=t.onChange,o=t.name;return n.createElement(d.BooleanSwitch,{name:o,value:Boolean(a),onChange:r,disabled:_})},control:V,name:"".concat(L,".isSoldOut")})),n.createElement(i.Form.Group,{controlId:ie,className:"custom-checkbox"},n.createElement(i.Form.Check,{custom:!0,type:"checkbox",name:ie,disabled:_},n.createElement(i.Form.Check.Input,{checked:te,onChange:ve,type:"checkbox"}),n.createElement(i.Form.Check.Label,null,$("showAdvancedOptions"))))),n.createElement(l,{lg:12,md:12,xl:!0,className:"p-0"},n.createElement(F,{in:te},n.createElement("div",null,n.createElement(i.Form.Group,{controlId:Ee,className:"advanced-switch-container"},n.createElement(i.Form.Label,null,$("isRequired")),n.createElement(s.Controller,{render:function(e){var t=e.field,a=t.value,r=t.onChange,o=t.name;return n.createElement(d.BooleanSwitch,{name:o,value:Boolean(a),onChange:r,disabled:_})},control:V,name:"".concat(L,".isRequired")})),n.createElement(i.Form.Group,{controlId:ge,className:"advanced-switch-container"},n.createElement(i.Form.Label,null,$("hasSpecialNotes")),n.createElement(s.Controller,{render:function(e){var t=e.field,a=t.value,r=t.onChange,o=t.name;return n.createElement(d.BooleanSwitch,{name:o,value:Boolean(a),onChange:r,disabled:_})},control:V,name:"".concat(L,".hasSpecialNotes")})),U===g.CATEGORY_TYPE_FIXED_DURATION&&n.createElement(y.FixedDurationOptions,{fieldNamePrefix:L}))),n.createElement(o,null,n.createElement(l,{xs:12},A&&n.createElement(f.ProductBookingManagementControl,{isLoading:_,zoneList:G,fieldNamePrefix:L})))),n.createElement(o,null,n.createElement(l,{xs:!0},n.createElement("div",{className:"d-flex justify-content-end mt-4"},Boolean(B)&&n.createElement(i.Button,{onClick:B,variant:"link",className:"d-flex align-items-center"},n.createElement(c.default,{type:"clipboard",height:"1rem",className:"mr-2"})," ",$("copy"))))))};
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { FieldNamePrefixPath } from "@licklist/plugins/dist/types/services/Form/hook-form-service";
3
- type FixedDurationOptionsProps<T> = FieldNamePrefixPath<T>;
3
+ declare type FixedDurationOptionsProps<T> = FieldNamePrefixPath<T>;
4
4
  export declare const FixedDurationOptions: <T>({ fieldNamePrefix, }: FixedDurationOptionsProps<T>) => JSX.Element;
5
5
  export {};
6
6
  //# sourceMappingURL=FixedDurationOptions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FixedDurationOptions.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/fixed-duration-fields/FixedDurationOptions.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8DAA8D,CAAC;AAInG,KAAK,yBAAyB,CAAC,CAAC,IAAI,mBAAmB,CAAC,CAAC,CAAC,CAAC;AAE3D,eAAO,MAAM,oBAAoB,wEA2ChC,CAAC"}
1
+ {"version":3,"file":"FixedDurationOptions.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/fixed-duration-fields/FixedDurationOptions.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8DAA8D,CAAC;AAInG,aAAK,yBAAyB,CAAC,CAAC,IAAI,mBAAmB,CAAC,CAAC,CAAC,CAAC;AAE3D,eAAO,MAAM,oBAAoB,wEA2ChC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { FunctionComponent } from "react";
2
- export type ProductSetTabProps = {
2
+ export declare type ProductSetTabProps = {
3
3
  eventKey?: string;
4
4
  title?: string;
5
5
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ProductSetTab.d.ts","sourceRoot":"","sources":["../../../src/product-set/tabs/ProductSetTab.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGjD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,iBAAiB,CAAC,kBAAkB,CAY/D,CAAC"}
1
+ {"version":3,"file":"ProductSetTab.d.ts","sourceRoot":"","sources":["../../../src/product-set/tabs/ProductSetTab.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGjD,oBAAY,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,iBAAiB,CAAC,kBAAkB,CAY/D,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React, { PropsWithChildren } from "react";
2
- export type ProductSetTabsProps = {
2
+ export declare type ProductSetTabsProps = {
3
3
  defaultActiveKey?: string;
4
4
  };
5
5
  export declare function ProductSetTabs({ defaultActiveKey, children, }: PropsWithChildren<ProductSetTabsProps>): JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"ProductSetTabs.d.ts","sourceRoot":"","sources":["../../../src/product-set/tabs/ProductSetTabs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAIjD,MAAM,MAAM,mBAAmB,GAAG;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,wBAAgB,cAAc,CAAC,EAC7B,gBAAgB,EAChB,QAAQ,GACT,EAAE,iBAAiB,CAAC,mBAAmB,CAAC,eAYxC;yBAfe,cAAc"}
1
+ {"version":3,"file":"ProductSetTabs.d.ts","sourceRoot":"","sources":["../../../src/product-set/tabs/ProductSetTabs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAIjD,oBAAY,mBAAmB,GAAG;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,wBAAgB,cAAc,CAAC,EAC7B,gBAAgB,EAChB,QAAQ,GACT,EAAE,iBAAiB,CAAC,mBAAmB,CAAC,eAYxC;yBAfe,cAAc"}
@@ -2,20 +2,20 @@ import { WithId } from "../form";
2
2
  import { ProductControlValues } from "../product";
3
3
  import { ProductCategoryControlValues } from "../product-category";
4
4
  import { StepControlValues } from "../step";
5
- export type SubProduct = WithId & ProductControlValues;
6
- export type Product = WithId & ProductControlValues & {
5
+ export declare type SubProduct = WithId & ProductControlValues;
6
+ export declare type Product = WithId & ProductControlValues & {
7
7
  subProducts?: SubProduct[];
8
8
  _id?: number;
9
9
  };
10
- export type ProductCategory = WithId & ProductCategoryControlValues & {
10
+ export declare type ProductCategory = WithId & ProductCategoryControlValues & {
11
11
  products?: Product[];
12
12
  _id?: number;
13
13
  };
14
- export type Step = WithId & StepControlValues & {
14
+ export declare type Step = WithId & StepControlValues & {
15
15
  productCategories?: ProductCategory[];
16
16
  _id?: number;
17
17
  };
18
- export type IsDeletableEvent = {
18
+ export declare type IsDeletableEvent = {
19
19
  onDelete?: () => void;
20
20
  };
21
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/product-set/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,oBAAoB,CAAC;AAEvD,MAAM,MAAM,OAAO,GAAG,MAAM,GAC1B,oBAAoB,GAAG;IAAE,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtE,MAAM,MAAM,eAAe,GAAG,MAAM,GAClC,4BAA4B,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAExE,MAAM,MAAM,IAAI,GAAG,MAAM,GACvB,iBAAiB,GAAG;IAAE,iBAAiB,CAAC,EAAE,eAAe,EAAE,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAG9E,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/product-set/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,oBAAY,UAAU,GAAG,MAAM,GAAG,oBAAoB,CAAC;AAEvD,oBAAY,OAAO,GAAG,MAAM,GAC1B,oBAAoB,GAAG;IAAE,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtE,oBAAY,eAAe,GAAG,MAAM,GAClC,4BAA4B,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAExE,oBAAY,IAAI,GAAG,MAAM,GACvB,iBAAiB,GAAG;IAAE,iBAAiB,CAAC,EAAE,eAAe,EAAE,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAG9E,oBAAY,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { CategoryGroup } from "../../types/categories";
3
- export type CategoriesInputProps = {
3
+ export declare type CategoriesInputProps = {
4
4
  categories: CategoryGroup[];
5
5
  };
6
6
  export declare function CategoriesInput({ categories: groups }: CategoriesInputProps): JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"CategoriesInput.d.ts","sourceRoot":"","sources":["../../../src/provider/categories-input/CategoriesInput.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAY,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEjE,MAAM,MAAM,oBAAoB,GAAG;IACjC,UAAU,EAAE,aAAa,EAAE,CAAC;CAC7B,CAAC;AAkBF,wBAAgB,eAAe,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,oBAAoB,eAwB3E"}
1
+ {"version":3,"file":"CategoriesInput.d.ts","sourceRoot":"","sources":["../../../src/provider/categories-input/CategoriesInput.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAY,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEjE,oBAAY,oBAAoB,GAAG;IACjC,UAAU,EAAE,aAAa,EAAE,CAAC;CAC7B,CAAC;AAkBF,wBAAgB,eAAe,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,oBAAoB,eAwB3E"}
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { CategoryGroup } from "../../types/categories";
3
- export type CategoriesInputDescriptionProps = {
3
+ export declare type CategoriesInputDescriptionProps = {
4
4
  categories: CategoryGroup[];
5
5
  };
6
6
  export declare function CategoriesInputDescription({ categories: groups, }: CategoriesInputDescriptionProps): JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"CategoriesInputDescription.d.ts","sourceRoot":"","sources":["../../../src/provider/categories-input/CategoriesInputDescription.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAGvD,MAAM,MAAM,+BAA+B,GAAG;IAC5C,UAAU,EAAE,aAAa,EAAE,CAAC;CAC7B,CAAC;AAEF,wBAAgB,0BAA0B,CAAC,EACzC,UAAU,EAAE,MAAM,GACnB,EAAE,+BAA+B,eAiCjC"}
1
+ {"version":3,"file":"CategoriesInputDescription.d.ts","sourceRoot":"","sources":["../../../src/provider/categories-input/CategoriesInputDescription.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAGvD,oBAAY,+BAA+B,GAAG;IAC5C,UAAU,EAAE,aAAa,EAAE,CAAC;CAC7B,CAAC;AAEF,wBAAgB,0BAA0B,CAAC,EACzC,UAAU,EAAE,MAAM,GACnB,EAAE,+BAA+B,eAiCjC"}
@@ -1,6 +1,6 @@
1
1
  export * from "./CategoriesInput";
2
2
  export * from "./CategoriesInputDescription";
3
- export type CategoriesInputValues = {
3
+ export declare type CategoriesInputValues = {
4
4
  categories: string[];
5
5
  };
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/provider/categories-input/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAE7C,MAAM,MAAM,qBAAqB,GAAG;IAClC,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/provider/categories-input/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAE7C,oBAAY,qBAAqB,GAAG;IAClC,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC"}
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  import { User } from "@licklist/core/dist/DataMapper/User/UserDataMapper";
3
3
  import { VIEWER_ROLE, MANAGER_ROLE, SUBMANAGER_ROLE } from "@licklist/core/dist/DataMapper/User/UserRoleDataMapper";
4
- export type UserFormValues = {
4
+ export declare type UserFormValues = {
5
5
  email?: User["email"];
6
6
  role?: typeof VIEWER_ROLE | typeof MANAGER_ROLE | typeof SUBMANAGER_ROLE;
7
7
  };
8
- export type UserFormProps = {
8
+ export declare type UserFormProps = {
9
9
  defaultValues?: UserFormValues;
10
10
  onSubmit: (values: {
11
11
  email: User["email"];
@@ -1 +1 @@
1
- {"version":3,"file":"UserForm.d.ts","sourceRoot":"","sources":["../../../../src/provider/company/user-form/UserForm.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,IAAI,EAAE,MAAM,oDAAoD,CAAC;AAC1E,OAAO,EACL,WAAW,EACX,YAAY,EACZ,eAAe,EAChB,MAAM,wDAAwD,CAAC;AAQhE,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,WAAW,GAAG,OAAO,YAAY,GAAG,OAAO,eAAe,CAAC;CAC1E,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,aAAa,CAAC,EAAE,cAAc,CAAC;IAC/B,QAAQ,EAAE,CAAC,MAAM,EAAE;QACjB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACrB,IAAI,EAAE,OAAO,WAAW,GAAG,OAAO,YAAY,GAAG,OAAO,eAAe,CAAC;KACzE,KAAK,IAAI,CAAC;IACX,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,QAAQ,2DAKlB,aAAa,gBAoHf,CAAC"}
1
+ {"version":3,"file":"UserForm.d.ts","sourceRoot":"","sources":["../../../../src/provider/company/user-form/UserForm.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,IAAI,EAAE,MAAM,oDAAoD,CAAC;AAC1E,OAAO,EACL,WAAW,EACX,YAAY,EACZ,eAAe,EAChB,MAAM,wDAAwD,CAAC;AAQhE,oBAAY,cAAc,GAAG;IAC3B,KAAK,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,WAAW,GAAG,OAAO,YAAY,GAAG,OAAO,eAAe,CAAC;CAC1E,CAAC;AAEF,oBAAY,aAAa,GAAG;IAC1B,aAAa,CAAC,EAAE,cAAc,CAAC;IAC/B,QAAQ,EAAE,CAAC,MAAM,EAAE;QACjB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACrB,IAAI,EAAE,OAAO,WAAW,GAAG,OAAO,YAAY,GAAG,OAAO,eAAe,CAAC;KACzE,KAAK,IAAI,CAAC;IACX,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,QAAQ,2DAKlB,aAAa,gBAoHf,CAAC"}
@@ -1,6 +1,6 @@
1
1
  export * from "./LocationInput";
2
2
  export * from "./LocationInputDescription";
3
- export type LocationInputValues = {
3
+ export declare type LocationInputValues = {
4
4
  location: {
5
5
  street: string;
6
6
  city: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/provider/location-input/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAE3C,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE;QACR,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;CACH,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/provider/location-input/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAE3C,oBAAY,mBAAmB,GAAG;IAChC,QAAQ,EAAE;QACR,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;CACH,CAAC"}
@@ -2,7 +2,7 @@
2
2
  import { Image } from "@licklist/core/dist/DataMapper/Media/ImageDataMapper";
3
3
  import { TypeaheadOptions } from "../../typeahead";
4
4
  import { ProviderLinksInputProps, ProviderLinksInputValues } from "../provider-links-input";
5
- export type ProviderDetailsInputValues = {
5
+ export declare type ProviderDetailsInputValues = {
6
6
  name: string;
7
7
  description: string;
8
8
  email: string;
@@ -13,7 +13,7 @@ export type ProviderDetailsInputValues = {
13
13
  };
14
14
  images: Image[] | null;
15
15
  } & ProviderLinksInputValues;
16
- export type ProviderDetailsInputProps = {
16
+ export declare type ProviderDetailsInputProps = {
17
17
  companiesOptions?: TypeaheadOptions[];
18
18
  linkTypes?: ProviderLinksInputProps["linkTypes"];
19
19
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ProviderDetailsInput.d.ts","sourceRoot":"","sources":["../../../src/provider/provider-details-input/ProviderDetailsInput.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,KAAK,EAAE,MAAM,sDAAsD,CAAC;AAE7E,OAAO,EAAa,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAEL,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IACzB,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;CACxB,GAAG,wBAAwB,CAAC;AAE7B,MAAM,MAAM,yBAAyB,GAAG;IACtC,gBAAgB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACtC,SAAS,CAAC,EAAE,uBAAuB,CAAC,WAAW,CAAC,CAAC;CAClD,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,EACnC,gBAAqB,EACrB,SAAc,GACf,EAAE,yBAAyB,eAiI3B"}
1
+ {"version":3,"file":"ProviderDetailsInput.d.ts","sourceRoot":"","sources":["../../../src/provider/provider-details-input/ProviderDetailsInput.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,KAAK,EAAE,MAAM,sDAAsD,CAAC;AAE7E,OAAO,EAAa,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAEL,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,yBAAyB,CAAC;AAEjC,oBAAY,0BAA0B,GAAG;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IACzB,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;CACxB,GAAG,wBAAwB,CAAC;AAE7B,oBAAY,yBAAyB,GAAG;IACtC,gBAAgB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACtC,SAAS,CAAC,EAAE,uBAAuB,CAAC,WAAW,CAAC,CAAC;CAClD,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,EACnC,gBAAqB,EACrB,SAAc,GACf,EAAE,yBAAyB,eAiI3B"}
@@ -4,7 +4,7 @@ import { CategoriesInputProps, CategoriesInputValues } from "../categories-input
4
4
  import { LocationInputValues } from "../location-input";
5
5
  import { ProviderDetailsInputProps, ProviderDetailsInputValues } from "../provider-details-input";
6
6
  import { TypeaheadOptions } from "../../typeahead";
7
- export type ProviderFormValues = ProviderDetailsInputValues & LocationInputValues & CategoriesInputValues;
7
+ export declare type ProviderFormValues = ProviderDetailsInputValues & LocationInputValues & CategoriesInputValues;
8
8
  export interface ProviderFormProps extends HasPermissionProp {
9
9
  defaultValues?: ProviderFormValues;
10
10
  categories?: CategoriesInputProps["categories"];
@@ -1 +1 @@
1
- {"version":3,"file":"ProviderForm.d.ts","sourceRoot":"","sources":["../../../src/provider/provider-form/ProviderForm.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAEvF,OAAO,EAGL,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,yBAAyB,EACzB,0BAA0B,EAC3B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGnD,MAAM,MAAM,kBAAkB,GAAG,0BAA0B,GACzD,mBAAmB,GACnB,qBAAqB,CAAC;AAExB,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC1D,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC,UAAU,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAChD,SAAS,CAAC,EAAE,yBAAyB,CAAC,WAAW,CAAC,CAAC;IACnD,gBAAgB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACtC,QAAQ,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC/C,MAAM,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;CAC9B;AAOD,wBAAgB,YAAY,CAAC,EAC3B,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,SAAS,EACT,QAAQ,EACR,MAAiB,EACjB,aAAoB,GACrB,EAAE,iBAAiB,eA6GnB"}
1
+ {"version":3,"file":"ProviderForm.d.ts","sourceRoot":"","sources":["../../../src/provider/provider-form/ProviderForm.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAEvF,OAAO,EAGL,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,yBAAyB,EACzB,0BAA0B,EAC3B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGnD,oBAAY,kBAAkB,GAAG,0BAA0B,GACzD,mBAAmB,GACnB,qBAAqB,CAAC;AAExB,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC1D,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC,UAAU,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAChD,SAAS,CAAC,EAAE,yBAAyB,CAAC,WAAW,CAAC,CAAC;IACnD,gBAAgB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACtC,QAAQ,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC/C,MAAM,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;CAC9B;AAOD,wBAAgB,YAAY,CAAC,EAC3B,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,SAAS,EACT,QAAQ,EACR,MAAiB,EACjB,aAAoB,GACrB,EAAE,iBAAiB,eA6GnB"}
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import { ProviderLink, ProviderLinkType } from "../../types/provider-links";
3
- export type ProviderLinksInputValues = {
3
+ export declare type ProviderLinksInputValues = {
4
4
  links: ProviderLink[];
5
5
  };
6
- export type ProviderLinksInputProps = {
6
+ export declare type ProviderLinksInputProps = {
7
7
  linkTypes: ProviderLinkType[];
8
8
  };
9
9
  export declare function ProviderLinksInput({ linkTypes }: ProviderLinksInputProps): JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"ProviderLinksInput.d.ts","sourceRoot":"","sources":["../../../src/provider/provider-links-input/ProviderLinksInput.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE5E,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,SAAS,EAAE,gBAAgB,EAAE,CAAC;CAC/B,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,EAAE,SAAS,EAAE,EAAE,uBAAuB,eAqDxE"}
1
+ {"version":3,"file":"ProviderLinksInput.d.ts","sourceRoot":"","sources":["../../../src/provider/provider-links-input/ProviderLinksInput.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE5E,oBAAY,wBAAwB,GAAG;IACrC,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB,CAAC;AAEF,oBAAY,uBAAuB,GAAG;IACpC,SAAS,EAAE,gBAAgB,EAAE,CAAC;CAC/B,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,EAAE,SAAS,EAAE,EAAE,uBAAuB,eAqDxE"}
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { Zone } from "@licklist/core/dist/DataMapper/Provider/ZoneDataMapper";
3
- export type ResourcesBlockingModalProps = {
3
+ export declare type ResourcesBlockingModalProps = {
4
4
  show: boolean;
5
5
  zones: Zone[];
6
6
  lanes: {
@@ -1 +1 @@
1
- {"version":3,"file":"ResourcesBlockingModal.d.ts","sourceRoot":"","sources":["../../../src/provider/resources-blocking-modal/ResourcesBlockingModal.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,wDAAwD,CAAC;AAc9E,MAAM,MAAM,2BAA2B,GAAG;IACxC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,KAAK,EAAE;QAAE,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QAAC,KAAK,EAAE,MAAM,EAAE,CAAA;KAAE,EAAE,CAAC;CAClD,CAAC;AAEF,eAAO,MAAM,sBAAsB,4BAIhC,2BAA2B,gBAwE7B,CAAC"}
1
+ {"version":3,"file":"ResourcesBlockingModal.d.ts","sourceRoot":"","sources":["../../../src/provider/resources-blocking-modal/ResourcesBlockingModal.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,wDAAwD,CAAC;AAc9E,oBAAY,2BAA2B,GAAG;IACxC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,KAAK,EAAE;QAAE,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QAAC,KAAK,EAAE,MAAM,EAAE,CAAA;KAAE,EAAE,CAAC;CAClD,CAAC;AAEF,eAAO,MAAM,sBAAsB,4BAIhC,2BAA2B,gBAwE7B,CAAC"}
@@ -5,7 +5,7 @@ import { LocationInputValues } from "../location-input";
5
5
  import { ProviderDetailsInputProps, ProviderDetailsInputValues } from "../provider-details-input";
6
6
  import { WorkingHoursInputValues } from "../working-hours-input";
7
7
  import { TypeaheadOptions } from "../../typeahead";
8
- export type VenueFormValues = ProviderDetailsInputValues & LocationInputValues & WorkingHoursInputValues & CategoriesInputValues;
8
+ export declare type VenueFormValues = ProviderDetailsInputValues & LocationInputValues & WorkingHoursInputValues & CategoriesInputValues;
9
9
  export interface VenueFormProps extends HasPermissionProp {
10
10
  defaultValues?: VenueFormValues;
11
11
  categories?: CategoriesInputProps["categories"];
@@ -1 +1 @@
1
- {"version":3,"file":"VenueForm.d.ts","sourceRoot":"","sources":["../../../src/provider/venue-form/VenueForm.tsx"],"names":[],"mappings":";AAUA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAGvF,OAAO,EAGL,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,yBAAyB,EACzB,0BAA0B,EAC3B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAGL,uBAAuB,EACxB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGnD,MAAM,MAAM,eAAe,GAAG,0BAA0B,GACtD,mBAAmB,GACnB,uBAAuB,GACvB,qBAAqB,CAAC;AAExB,MAAM,WAAW,cAAe,SAAQ,iBAAiB;IACvD,aAAa,CAAC,EAAE,eAAe,CAAC;IAChC,UAAU,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAChD,SAAS,CAAC,EAAE,yBAAyB,CAAC,WAAW,CAAC,CAAC;IACnD,gBAAgB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACtC,QAAQ,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAC5C,MAAM,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;CAC9B;AAOD,wBAAgB,SAAS,CAAC,EACxB,aAAa,EACb,UAAU,EACV,SAAS,EACT,gBAAqB,EACrB,QAAQ,EACR,MAAiB,EACjB,aAAoB,GACrB,EAAE,cAAc,eAqHhB"}
1
+ {"version":3,"file":"VenueForm.d.ts","sourceRoot":"","sources":["../../../src/provider/venue-form/VenueForm.tsx"],"names":[],"mappings":";AAUA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAGvF,OAAO,EAGL,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,yBAAyB,EACzB,0BAA0B,EAC3B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAGL,uBAAuB,EACxB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGnD,oBAAY,eAAe,GAAG,0BAA0B,GACtD,mBAAmB,GACnB,uBAAuB,GACvB,qBAAqB,CAAC;AAExB,MAAM,WAAW,cAAe,SAAQ,iBAAiB;IACvD,aAAa,CAAC,EAAE,eAAe,CAAC;IAChC,UAAU,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAChD,SAAS,CAAC,EAAE,yBAAyB,CAAC,WAAW,CAAC,CAAC;IACnD,gBAAgB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACtC,QAAQ,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAC5C,MAAM,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;CAC9B;AAOD,wBAAgB,SAAS,CAAC,EACxB,aAAa,EACb,UAAU,EACV,SAAS,EACT,gBAAqB,EACrB,QAAQ,EACR,MAAiB,EACjB,aAAoB,GACrB,EAAE,cAAc,eAqHhB"}
@@ -1,6 +1,6 @@
1
1
  export * from "./WorkingHoursInput";
2
2
  export * from "./WorkingHoursInputDescription";
3
- export type WorkingHoursInputValues = {
3
+ export declare type WorkingHoursInputValues = {
4
4
  workingHours: ({
5
5
  start: string;
6
6
  end: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/provider/working-hours-input/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAE/C,MAAM,MAAM,uBAAuB,GAAG;IACpC,YAAY,EAAE,CACV;QACE,KAAK,EAAE,MAAM,CAAC;QACd,GAAG,EAAE,MAAM,CAAC;QACZ,WAAW,EAAE,MAAM,CAAC;KACrB,GACD,SAAS,CACZ,EAAE,CAAC;CACL,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/provider/working-hours-input/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAE/C,oBAAY,uBAAuB,GAAG;IACpC,YAAY,EAAE,CACV;QACE,KAAK,EAAE,MAAM,CAAC;QACd,GAAG,EAAE,MAAM,CAAC;QACZ,WAAW,EAAE,MAAM,CAAC;KACrB,GACD,SAAS,CACZ,EAAE,CAAC;CACL,CAAC"}
@@ -3,8 +3,8 @@ export declare const getWeekdayForFrequency: ({ date, frequency, }: {
3
3
  date: string;
4
4
  frequency: Frequency;
5
5
  }) => Weekday;
6
- export type SupportedFrequency = Frequency.DAILY | Frequency.WEEKLY | Frequency.MONTHLY | Frequency.YEARLY;
7
- export type ParsedRRuleOptions = {
6
+ export declare type SupportedFrequency = Frequency.DAILY | Frequency.WEEKLY | Frequency.MONTHLY | Frequency.YEARLY;
7
+ export declare type ParsedRRuleOptions = {
8
8
  interval?: number;
9
9
  freq: SupportedFrequency;
10
10
  byweekday?: Weekday[];
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/recurrence-input/utils.ts"],"names":[],"mappings":"AACA,OAAc,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAElD,eAAO,MAAM,sBAAsB;UAI3B,MAAM;eACD,SAAS;MAClB,OAUH,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAC1B,SAAS,CAAC,KAAK,GACf,SAAS,CAAC,MAAM,GAChB,SAAS,CAAC,OAAO,GACjB,SAAS,CAAC,MAAM,CAAC;AAErB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,kBAAkB,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC;IACtB,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,qBAAqB;WAIzB,MAAM;UACP,MAAM;wBAsEb,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/recurrence-input/utils.ts"],"names":[],"mappings":"AACA,OAAc,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAElD,eAAO,MAAM,sBAAsB;UAI3B,MAAM;eACD,SAAS;MAClB,OAUH,CAAC;AAEF,oBAAY,kBAAkB,GAC1B,SAAS,CAAC,KAAK,GACf,SAAS,CAAC,MAAM,GAChB,SAAS,CAAC,OAAO,GACjB,SAAS,CAAC,MAAM,CAAC;AAErB,oBAAY,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,kBAAkB,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC;IACtB,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,qBAAqB;WAIzB,MAAM;UACP,MAAM;wBAsEb,CAAC"}
@@ -1 +1 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),r=require("react"),n=e(r),a=require("react-i18next"),i=e(require("react-bootstrap/Button")),l=require("react-bootstrap"),u=require("react-hook-form"),o=require("luxon"),s=require("../modals/confirmation/ConfirmModal.js");require("../modals/dialog/Dialog.js"),require("../modals/dialog/DialogContext.js");var d=require("../product-set/elements/DeleteFieldButton.js"),c=require("rrule"),m=e(c),f=require("react-intl"),v=require("@licklist/core/dist/Config/Date"),D=require("@licklist/plugins/dist/hooks/Value/usePreviousValue"),y=require("./RecurrenceIntervalAndFrequencyInput.js"),p=require("./utils.js"),T=require("./RecurrenceWeekdaysInput.js");var q=function(e){var r=e.rrule,n=e.startDate,a=e.endDate,i=e.startTime,l=e.endTime,u=e.initialFrequency,o=void 0===u?c.Frequency.DAILY:u;return t.__assign({startDate:n,endDate:a,startTime:i,endTime:l,interval:1,freq:o},r&&p.parseAndValidateRRule({rrule:r,date:n}))},g=function(e){var n=e.startDate,a=e.endDate,i=e.startTime,l=e.endTime,u=e.byWeekDay,s=void 0===u?[]:u,d=k(n,i||"00:00:00"),c=k(a,l||"23:59:59"),m=f.useIntl(),v=m.formatList,D=m.formatNumber;return r.useMemo((function(){if(d instanceof o.DateTime&&c instanceof o.DateTime&&d.isValid&&c.isValid){var e=o.Interval.fromDateTimes(d.set({second:0}),c.set({second:0})).toDuration(["days","hours","minutes"]);if(e.isValid){var r=function(e,t){return D(e,{style:"unit",unit:t,unitDisplay:"long"})},n=o.Interval.fromDateTimes(d.minus({second:1}),c.plus({second:1})).splitBy({days:1});if(!(s.length?n.reduce((function(e,t){return s.some((function(e){return e.weekday+1===t.start.weekday}))?e+1:e}),0):1))return r(0,"minute");var a=[[e.days,"day"],[e.hours,"hour"],[e.minutes,"minute"]].filter((function(e){return t.__read(e,1)[0]}));return a.length||a.push([0,"minute"]),v(a.map((function(e){return r.apply(void 0,t.__spreadArray([],t.__read(e),!1))})),{style:"long",type:"unit"})}}}),[d,c,s,v,D])},k=function(e,t){var r=o.DateTime.fromFormat("".concat(e," ").concat(t),v.DATE_TIME_FORMAT);if(r.isValid)return r;var n=o.DateTime.fromFormat("".concat(e," ").concat(t),v.DATE_TIME_FULL_FORMAT);return n.isValid?n:""};exports.RecurringDatePickerInput=function(e){var f,v,p,b,_,E,F=e.disabled,w=void 0!==F&&F,h=e.onChange,A=e.onDelete,I=e.defaultValues,V=e.initialFrequency,x=void 0===V?c.Frequency.DAILY:V,j=e.setInitialStartDateAfterSelect,L=void 0!==j&&j,R=e.children,M=e.minDate,S=a.useTranslation(["Design"]).t,N=u.useForm({defaultValues:q({rrule:null!==(f=null==I?void 0:I.rrule)&&void 0!==f?f:"",startDate:null!==(v=null==I?void 0:I.startDate)&&void 0!==v?v:"",endDate:null!==(p=null==I?void 0:I.endDate)&&void 0!==p?p:"",startTime:null!==(b=null==I?void 0:I.startTime)&&void 0!==b?b:"",endTime:null!==(_=null==I?void 0:I.endTime)&&void 0!==_?_:"",initialFrequency:null!==(E=null==I?void 0:I.freq)&&void 0!==E?E:x}),mode:"onChange"}),C=N.watch,P=N.setValue,W=N.handleSubmit,B=C("startDate"),Y=C("endDate"),O=C("startTime"),Q=C("endTime"),U=C("byweekday"),J=D.usePreviousValue(B),K=g({startDate:B,endDate:Y,startTime:O,endTime:Q,byWeekDay:U}),z=function(e){var r=k(Y,Q||"23:59:59"),n=Array.isArray(e.byweekday)?e.byweekday.map((function(e){return e instanceof c.Weekday?e:new c.Weekday(null==e?void 0:e.weekday)})):e.byweekday,a=m.optionsToString({until:r instanceof o.DateTime&&r.isValid?null==r?void 0:r.toJSDate():null,byweekday:n,count:e.count,freq:(null==n?void 0:n.length)?c.Frequency.WEEKLY:c.Frequency.DAILY,interval:e.interval}).replace("RRULE:","");h(t.__assign(t.__assign({},e),{rrule:a}))};return r.useEffect((function(){var e,t;if(L&&(!J||B)&&!B&&U&&U.length&&!Number.isNaN(null===(e=U[0])||void 0===e?void 0:e.weekday)){var r=(null===(t=U[0])||void 0===t?void 0:t.weekday)+1,n=o.DateTime.local(),a=o.DateTime.local().set({weekday:r});a>=n||r===n.weekday?P("startDate",a.toSQLDate()):P("startDate",a.plus({week:1}).toSQLDate())}}),[U,L]),n.createElement(u.FormProvider,t.__assign({},N),n.createElement(l.Form,{onSubmit:function(e){return e.preventDefault(),e.stopPropagation(),W(z)(e)}},n.createElement(T.default,{date:B,disabled:w}),n.createElement(y.default,{disabled:w,minDate:M}),R,n.createElement("div",{className:"d-inline-flex align-items-center w-100"},n.createElement(i,{type:"submit"},S("Design:apply")),n.createElement("div",{className:"d-flex flex-grow-1 text-muted mx-3 flex-column"},n.createElement("div",null,K&&"lasts ".concat(K))),I&&n.createElement("div",{className:"d-flex justify-content-end delete-btn"},n.createElement(s.ConfirmModal,null,(function(e){return n.createElement(d.DeleteFieldButton,{onDelete:function(){return e(A)}})}))))))};
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),r=require("react"),n=e(r),a=require("react-i18next"),i=e(require("react-bootstrap/Button")),l=require("react-bootstrap"),u=require("react-hook-form"),o=require("luxon"),s=require("../modals/confirmation/ConfirmModal.js");require("../modals/dialog/Dialog.js"),require("../modals/dialog/DialogContext.js");var d=require("../product-set/elements/DeleteFieldButton.js"),c=require("rrule"),m=e(c),f=require("react-intl"),v=require("@licklist/core/dist/Config/Date"),D=require("@licklist/plugins/dist/hooks/Value/usePreviousValue"),y=require("./RecurrenceIntervalAndFrequencyInput.js"),p=require("./utils.js"),T=require("./RecurrenceWeekdaysInput.js");var q=function(e){var r=e.rrule,n=e.startDate,a=e.endDate,i=e.startTime,l=e.endTime,u=e.initialFrequency,o=void 0===u?c.Frequency.DAILY:u;return t.__assign({startDate:n,endDate:a,startTime:i,endTime:l,interval:1,freq:o},r&&p.parseAndValidateRRule({rrule:r,date:n}))},g=function(e){var n=e.startDate,a=e.endDate,i=e.startTime,l=e.endTime,u=e.byWeekDay,s=void 0===u?[]:u,d=k(n,i||"00:00:00"),c=k(a,l||"23:59:59"),m=f.useIntl(),v=m.formatList,D=m.formatNumber;return r.useMemo((function(){if(d instanceof o.DateTime&&c instanceof o.DateTime&&d.isValid&&c.isValid){var e=o.Interval.fromDateTimes(d.set({second:0}),c.set({second:0})).toDuration(["days","hours","minutes"]);if(e.isValid){var r=function(e,t){return D(e,{style:"unit",unit:t,unitDisplay:"long"})},n=o.Interval.fromDateTimes(d.minus({second:1}),c.plus({second:1})).splitBy({days:1});if(!(s.length?n.reduce((function(e,t){return s.some((function(e){return e.weekday+1===t.start.weekday}))?e+1:e}),0):1))return r(0,"minute");var a=[[e.days,"day"],[e.hours,"hour"],[e.minutes,"minute"]].filter((function(e){return t.__read(e,1)[0]}));return a.length||a.push([0,"minute"]),v(a.map((function(e){return r.apply(void 0,t.__spreadArray([],t.__read(e),!1))})),{style:"long",type:"unit"})}}}),[d,c,s,v,D])},k=function(e,t){var r=o.DateTime.fromFormat("".concat(e," ").concat(t),v.DATE_TIME_FORMAT);if(r.isValid)return r;var n=o.DateTime.fromFormat("".concat(e," ").concat(t),v.DATE_TIME_FULL_FORMAT);return n.isValid?n:""};exports.RecurringDatePickerInput=function(e){var f,v,p,b,_,E,F=e.disabled,w=void 0!==F&&F,h=e.onChange,A=e.onDelete,I=e.defaultValues,V=e.initialFrequency,x=void 0===V?c.Frequency.DAILY:V,j=e.setInitialStartDateAfterSelect,L=void 0!==j&&j,R=e.children,M=e.minDate,S=a.useTranslation(["Design"]).t,N=u.useForm({defaultValues:q({rrule:null!==(f=null==I?void 0:I.rrule)&&void 0!==f?f:"",startDate:null!==(v=null==I?void 0:I.startDate)&&void 0!==v?v:"",endDate:null!==(p=null==I?void 0:I.endDate)&&void 0!==p?p:"",startTime:null!==(b=null==I?void 0:I.startTime)&&void 0!==b?b:"",endTime:null!==(_=null==I?void 0:I.endTime)&&void 0!==_?_:"",initialFrequency:null!==(E=null==I?void 0:I.freq)&&void 0!==E?E:x}),mode:"onChange"}),C=N.watch,P=N.setValue,W=N.handleSubmit,B=C("startDate"),Y=C("endDate"),O=C("startTime"),Q=C("endTime"),U=C("byweekday"),J=D.usePreviousValue(B),K=g({startDate:B,endDate:Y,startTime:O,endTime:Q,byWeekDay:U}),z=function(e){var r=k(Y,Q||"23:59:59"),n=Array.isArray(e.byweekday)?e.byweekday.map((function(e){var t;return e instanceof c.Weekday?e:new c.Weekday(null===(t=e)||void 0===t?void 0:t.weekday)})):e.byweekday,a=m.optionsToString({until:r instanceof o.DateTime&&r.isValid?null==r?void 0:r.toJSDate():null,byweekday:n,count:e.count,freq:(null==n?void 0:n.length)?c.Frequency.WEEKLY:c.Frequency.DAILY,interval:e.interval}).replace("RRULE:","");h(t.__assign(t.__assign({},e),{rrule:a}))};return r.useEffect((function(){var e,t;if(L&&(!J||B)&&!B&&U&&U.length&&!Number.isNaN(null===(e=U[0])||void 0===e?void 0:e.weekday)){var r=(null===(t=U[0])||void 0===t?void 0:t.weekday)+1,n=o.DateTime.local(),a=o.DateTime.local().set({weekday:r});a>=n||r===n.weekday?P("startDate",a.toSQLDate()):P("startDate",a.plus({week:1}).toSQLDate())}}),[U,L]),n.createElement(u.FormProvider,t.__assign({},N),n.createElement(l.Form,{onSubmit:function(e){return e.preventDefault(),e.stopPropagation(),W(z)(e)}},n.createElement(T.default,{date:B,disabled:w}),n.createElement(y.default,{disabled:w,minDate:M}),R,n.createElement("div",{className:"d-inline-flex align-items-center w-100"},n.createElement(i,{type:"submit"},S("Design:apply")),n.createElement("div",{className:"d-flex flex-grow-1 text-muted mx-3 flex-column"},n.createElement("div",null,K&&"lasts ".concat(K))),I&&n.createElement("div",{className:"d-flex justify-content-end delete-btn"},n.createElement(s.ConfirmModal,null,(function(e){return n.createElement(d.DeleteFieldButton,{onDelete:function(){return e(A)}})}))))))};
@@ -3,8 +3,8 @@ export declare const getWeekdayForFrequency: ({ date, frequency, }: {
3
3
  date: string;
4
4
  frequency: Frequency;
5
5
  }) => Weekday;
6
- export type SupportedFrequency = Frequency.DAILY | Frequency.WEEKLY | Frequency.MONTHLY | Frequency.YEARLY;
7
- export type ParsedRRuleOptions = {
6
+ export declare type SupportedFrequency = Frequency.DAILY | Frequency.WEEKLY | Frequency.MONTHLY | Frequency.YEARLY;
7
+ export declare type ParsedRRuleOptions = {
8
8
  interval?: number;
9
9
  freq: SupportedFrequency;
10
10
  byweekday?: Weekday[];
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/recurring-date-picker-input/utils.ts"],"names":[],"mappings":"AACA,OAAc,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAElD,eAAO,MAAM,sBAAsB;UAI3B,MAAM;eACD,SAAS;MAClB,OAUH,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAC1B,SAAS,CAAC,KAAK,GACf,SAAS,CAAC,MAAM,GAChB,SAAS,CAAC,OAAO,GACjB,SAAS,CAAC,MAAM,CAAC;AAErB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,kBAAkB,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC;IACtB,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,qBAAqB;WAIzB,MAAM;UACP,MAAM;wBAsEb,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/recurring-date-picker-input/utils.ts"],"names":[],"mappings":"AACA,OAAc,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAElD,eAAO,MAAM,sBAAsB;UAI3B,MAAM;eACD,SAAS;MAClB,OAUH,CAAC;AAEF,oBAAY,kBAAkB,GAC1B,SAAS,CAAC,KAAK,GACf,SAAS,CAAC,MAAM,GAChB,SAAS,CAAC,OAAO,GACjB,SAAS,CAAC,MAAM,CAAC;AAErB,oBAAY,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,kBAAkB,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC;IACtB,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,qBAAqB;WAIzB,MAAM;UACP,MAAM;wBAsEb,CAAC"}