@licklist/design 0.67.0 → 0.67.2-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. package/.storybook/main.cjs +15 -12
  2. package/dist/auth/Login/LoginComponent.js +2 -1
  3. package/dist/calendar/components/CalendarButtons/CalendarButtons.d.ts.map +1 -1
  4. package/dist/calendar/components/CalendarButtons/CalendarButtons.js +35 -40
  5. package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts.map +1 -1
  6. package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.js +4 -2
  7. package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.d.ts +2 -1
  8. package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.d.ts.map +1 -1
  9. package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.js +13 -11
  10. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.d.ts +2 -1
  11. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.d.ts.map +1 -1
  12. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +4 -2
  13. package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
  14. package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +0 -1
  15. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
  16. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +2 -0
  17. package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
  18. package/dist/layout/DropDown.d.ts +2 -1
  19. package/dist/layout/DropDown.d.ts.map +1 -1
  20. package/dist/layout/DropDownToggle.d.ts.map +1 -1
  21. package/dist/layout/DropDownToggle.js +1 -0
  22. package/dist/product-set/control/DateAndRecurrenceInput.d.ts +1 -1
  23. package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
  24. package/dist/product-set/control/DateAndRecurrenceInput.js +1 -0
  25. package/dist/product-set/control/DateInput.d.ts.map +1 -1
  26. package/dist/product-set/control/DateInput.js +2 -2
  27. package/dist/product-set/control/ProductSetControl.d.ts +3 -2
  28. package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
  29. package/dist/product-set/control/ProductSetControl.js +15 -2
  30. package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
  31. package/dist/product-set/form/ProductCategoriesControl.js +48 -2
  32. package/dist/product-set/form/ProductSetForm.d.ts +4 -1
  33. package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
  34. package/dist/product-set/form/ProductSetForm.js +60 -2
  35. package/dist/product-set/form/ProductZonesControl.d.ts.map +1 -1
  36. package/dist/product-set/form/ProductZonesControl.js +0 -2
  37. package/dist/product-set/form/SelectCategoryModal.d.ts +12 -0
  38. package/dist/product-set/form/SelectCategoryModal.d.ts.map +1 -1
  39. package/dist/product-set/form/SelectCategoryModal.js +1 -1
  40. package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
  41. package/dist/product-set/form/SubProductsControl.js +0 -3
  42. package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
  43. package/dist/product-set/form/VenueMapsControl.js +0 -3
  44. package/dist/provider/location-input/LocationInput.d.ts +4 -1
  45. package/dist/provider/location-input/LocationInput.d.ts.map +1 -1
  46. package/dist/provider/location-input/LocationInput.js +46 -2
  47. package/dist/provider/location-input/index.d.ts +1 -0
  48. package/dist/provider/location-input/index.d.ts.map +1 -1
  49. package/dist/provider/provider-form/ProviderForm.d.ts +3 -1
  50. package/dist/provider/provider-form/ProviderForm.d.ts.map +1 -1
  51. package/dist/provider/provider-form/ProviderForm.js +26 -5
  52. package/dist/provider/venue-form/VenueForm.d.ts +3 -1
  53. package/dist/provider/venue-form/VenueForm.d.ts.map +1 -1
  54. package/dist/provider/venue-form/VenueForm.js +4 -2
  55. package/dist/provider/working-hours-input/WorkingHoursInputDescription.d.ts.map +1 -1
  56. package/dist/provider/working-hours-input/WorkingHoursInputDescription.js +4 -8
  57. package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts +3 -1
  58. package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts.map +1 -1
  59. package/dist/recurring-date-picker-input/RecurringDatePickerInput.js +6 -3
  60. package/dist/recurring-date-picker-input/utils.d.ts +5 -0
  61. package/dist/recurring-date-picker-input/utils.d.ts.map +1 -1
  62. package/dist/recurring-date-picker-input/utils.js +75 -3
  63. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  64. package/dist/sales/booking/results/components/ResultCard.js +0 -2
  65. package/dist/setting/admin/AdminSettingForm.d.ts +2 -2
  66. package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
  67. package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
  68. package/dist/snippet/snippet-template/preview/Preview.js +6 -0
  69. package/dist/sortable-tree/SortableTreeItem.d.ts +2 -1
  70. package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
  71. package/dist/sortable-tree/SortableTreeItem.js +10 -4
  72. package/dist/styles/auth/AccessDenied.scss +1 -1
  73. package/dist/styles/back-button/BackButton.scss +25 -24
  74. package/dist/styles/back-button/_index.scss +1 -1
  75. package/dist/styles/company-user-form/UserForm.scss +4 -7
  76. package/dist/styles/company-user-form/_index.scss +1 -1
  77. package/dist/styles/custom-fields/CreateSortableListItem.scss +2 -1
  78. package/dist/styles/custom-fields/_index.scss +1 -1
  79. package/dist/styles/customers/Filter.scss +5 -5
  80. package/dist/styles/events/EditEventModal.scss +1 -3
  81. package/dist/styles/events/EventVenueMap.scss +7 -7
  82. package/dist/styles/form/Input.scss +1 -1
  83. package/dist/styles/header/Header.scss +1 -1
  84. package/dist/styles/header/elements/CompanySelector.scss +2 -2
  85. package/dist/styles/iframe-events/Calendar.scss +0 -1
  86. package/dist/styles/iframe-events/CalendarSelect.scss +1 -1
  87. package/dist/styles/iframe-events/CategoryStepsForm.scss +6 -7
  88. package/dist/styles/iframe-events/Event.scss +2 -4
  89. package/dist/styles/iframe-events/EventForm.scss +54 -54
  90. package/dist/styles/iframe-events/EventNavigationFooter.scss +1 -0
  91. package/dist/styles/iframe-events/TicketDescription.scss +1 -1
  92. package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
  93. package/dist/styles/iframe-payments/PaymentForm.scss +1 -1
  94. package/dist/styles/layout/BackgroundVideoContainer.scss +2 -2
  95. package/dist/styles/notification/Notification.scss +1 -1
  96. package/dist/styles/order-items-table/OrderItemsTable.scss +1 -2
  97. package/dist/styles/product-set/CreateProductSetItem.scss +15 -13
  98. package/dist/styles/product-set/DateAndRecurrenceInput.scss +6 -8
  99. package/dist/styles/product-set/EditCategoryModal.scss +4 -4
  100. package/dist/styles/product-set/EditProductModal.scss +3 -3
  101. package/dist/styles/product-set/EditStepModal.scss +4 -4
  102. package/dist/styles/product-set/EditVenueMapSetModal.scss +6 -6
  103. package/dist/styles/product-set/ProductSetForm.scss +25 -2
  104. package/dist/styles/product-set/TutorialGifCard.scss +1 -1
  105. package/dist/styles/product-set/_index.scss +2 -2
  106. package/dist/styles/report/ReportCard.scss +1 -0
  107. package/dist/styles/report/_index.scss +1 -1
  108. package/dist/styles/resources-blocking/_index.scss +4 -0
  109. package/dist/styles/sales/BookingFilter.scss +2 -2
  110. package/dist/styles/sales/BookingResults.scss +1 -1
  111. package/dist/styles/sales/BookingTabs.scss +7 -5
  112. package/dist/styles/sales/Filters.scss +5 -4
  113. package/dist/styles/sales/GuestProfile.scss +170 -175
  114. package/dist/styles/sales/LifeTimeSales.scss +1 -1
  115. package/dist/styles/sales/ManualBooking.scss +4 -2
  116. package/dist/styles/snippet-templates/_snippetVariables.scss +63 -244
  117. package/dist/styles/sortable-field/SortableField.scss +16 -16
  118. package/dist/styles/sortable-field/_index.scss +1 -1
  119. package/dist/styles/sortable-tree/Item.scss +4 -4
  120. package/dist/styles/table/Table.scss +1 -1
  121. package/dist/styles/themes/bookedit/_variables.scss +10 -32
  122. package/dist/styles/themes/licklist/_variables.scss +1 -1
  123. package/dist/styles/tiptap-editor/TiptapEditor.scss +9 -10
  124. package/dist/styles/tiptap-editor/_index.scss +1 -1
  125. package/dist/styles/venue-map-sets/VenueMapSetForm.scss +5 -4
  126. package/dist/styles/virtualized/_index.scss +1 -1
  127. package/dist/styles/zones/ZoneForm.scss +1 -0
  128. package/dist/styles/zones/ZoneRecurrencesControl.scss +6 -8
  129. package/dist/zone/form/ZoneForm.d.ts +2 -2
  130. package/dist/zone/form/ZoneForm.d.ts.map +1 -1
  131. package/dist/zone/form/ZoneForm.js +3 -2
  132. package/dist/zone/form/components/ZoneControl.d.ts +2 -2
  133. package/dist/zone/form/components/ZoneControl.d.ts.map +1 -1
  134. package/dist/zone/form/components/ZoneControl.js +4 -2
  135. package/dist/zone/form/components/ZoneRecurrencesControl.d.ts +4 -4
  136. package/dist/zone/form/components/ZoneRecurrencesControl.d.ts.map +1 -1
  137. package/dist/zone/form/components/ZoneRecurrencesControl.js +4 -2
  138. package/dist/zone/form/utils/dates.d.ts.map +1 -1
  139. package/package.json +7 -7
  140. package/src/auth/ChangePassword/ChangePassword.stories.tsx +1 -1
  141. package/src/auth/Login/LoginComponent.tsx +1 -1
  142. package/src/auth/ResetPassword/ResetPassword.stories.tsx +1 -1
  143. package/src/calendar/components/CalendarButtons/CalendarButtons.tsx +31 -28
  144. package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +2 -0
  145. package/src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx +18 -12
  146. package/src/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.tsx +4 -0
  147. package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +0 -1
  148. package/src/header/elements/Elements.stories.tsx +1 -1
  149. package/src/help/popover/Popover.stories.tsx +1 -1
  150. package/src/iframe/event/event-venue-map/IframeEventVenueMap.stories.tsx +3 -3
  151. package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +1 -0
  152. package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +1 -0
  153. package/src/layout/DropDown.tsx +2 -1
  154. package/src/layout/DropDownToggle.tsx +2 -0
  155. package/src/product-set/card/ProductSetCard.stories.tsx +3 -1
  156. package/src/product-set/control/DateAndRecurrenceInput.tsx +3 -4
  157. package/src/product-set/control/DateInput.tsx +2 -1
  158. package/src/product-set/control/ProductSetControl.tsx +15 -1
  159. package/src/product-set/control/ProductSetRecurrenceControl.stories.tsx +2 -2
  160. package/src/product-set/form/ProductCategoriesControl.tsx +38 -2
  161. package/src/product-set/form/ProductSetForm.tsx +22 -3
  162. package/src/product-set/form/ProductZonesControl.tsx +4 -7
  163. package/src/product-set/form/SelectCategoryModal.stories.tsx +1 -1
  164. package/src/product-set/form/SelectCategoryModal.tsx +2 -2
  165. package/src/product-set/form/SubProductsControl.tsx +0 -3
  166. package/src/product-set/form/VenueMapsControl.tsx +0 -3
  167. package/src/product-set/product/advanced-options/AdvancedOptions.tsx +5 -5
  168. package/src/product-set/product/booking-management/ProductBookingManagement.stories.tsx +1 -1
  169. package/src/product-set/product/quantity/ProductQuantity.stories.tsx +1 -1
  170. package/src/product-set/product-zone/ProductZoneControl.tsx +9 -9
  171. package/src/provider/location-input/LocationInput.tsx +40 -1
  172. package/src/provider/location-input/index.ts +1 -0
  173. package/src/provider/provider-form/ProviderForm.tsx +26 -2
  174. package/src/provider/venue-form/VenueForm.tsx +4 -1
  175. package/src/provider/working-hours-input/WorkingHoursInputDescription.tsx +4 -18
  176. package/src/recurring-date-picker-input/RecurringDatePickerInput.stories.tsx +11 -4
  177. package/src/recurring-date-picker-input/RecurringDatePickerInput.tsx +12 -1
  178. package/src/recurring-date-picker-input/utils.ts +91 -1
  179. package/src/sales/booking/results/components/ResultCard.tsx +0 -2
  180. package/src/setting/admin/AdminSetting.stories.tsx +1 -0
  181. package/src/setting/admin/AdminSettingForm.tsx +2 -2
  182. package/src/setting/system/SystemSetting.stories.tsx +1 -1
  183. package/src/snippet/snippet-template/preview/Preview.tsx +6 -0
  184. package/src/sortable-tree/SortableTreeItem.tsx +13 -1
  185. package/src/styles/auth/AccessDenied.scss +1 -1
  186. package/src/styles/back-button/BackButton.scss +25 -24
  187. package/src/styles/back-button/_index.scss +1 -1
  188. package/src/styles/company-user-form/UserForm.scss +4 -7
  189. package/src/styles/company-user-form/_index.scss +1 -1
  190. package/src/styles/custom-fields/CreateSortableListItem.scss +2 -1
  191. package/src/styles/custom-fields/_index.scss +1 -1
  192. package/src/styles/customers/Filter.scss +5 -5
  193. package/src/styles/events/EditEventModal.scss +1 -3
  194. package/src/styles/events/EventVenueMap.scss +7 -7
  195. package/src/styles/form/Input.scss +1 -1
  196. package/src/styles/header/Header.scss +1 -1
  197. package/src/styles/header/elements/CompanySelector.scss +2 -2
  198. package/src/styles/iframe-events/Calendar.scss +0 -1
  199. package/src/styles/iframe-events/CalendarSelect.scss +1 -1
  200. package/src/styles/iframe-events/CategoryStepsForm.scss +6 -7
  201. package/src/styles/iframe-events/Event.scss +2 -4
  202. package/src/styles/iframe-events/EventForm.scss +54 -54
  203. package/src/styles/iframe-events/EventNavigationFooter.scss +1 -0
  204. package/src/styles/iframe-events/TicketDescription.scss +1 -1
  205. package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
  206. package/src/styles/iframe-payments/PaymentForm.scss +1 -1
  207. package/src/styles/layout/BackgroundVideoContainer.scss +2 -2
  208. package/src/styles/notification/Notification.scss +1 -1
  209. package/src/styles/order-items-table/OrderItemsTable.scss +1 -2
  210. package/src/styles/product-set/CreateProductSetItem.scss +15 -13
  211. package/src/styles/product-set/DateAndRecurrenceInput.scss +6 -8
  212. package/src/styles/product-set/EditCategoryModal.scss +4 -4
  213. package/src/styles/product-set/EditProductModal.scss +3 -3
  214. package/src/styles/product-set/EditStepModal.scss +4 -4
  215. package/src/styles/product-set/EditVenueMapSetModal.scss +6 -6
  216. package/src/styles/product-set/ProductSetForm.scss +25 -2
  217. package/src/styles/product-set/TutorialGifCard.scss +1 -1
  218. package/src/styles/product-set/_index.scss +2 -2
  219. package/src/styles/report/ReportCard.scss +1 -0
  220. package/src/styles/report/_index.scss +1 -1
  221. package/src/styles/resources-blocking/_index.scss +4 -0
  222. package/src/styles/sales/BookingFilter.scss +2 -2
  223. package/src/styles/sales/BookingResults.scss +1 -1
  224. package/src/styles/sales/BookingTabs.scss +7 -5
  225. package/src/styles/sales/Filters.scss +5 -4
  226. package/src/styles/sales/GuestProfile.scss +170 -175
  227. package/src/styles/sales/LifeTimeSales.scss +1 -1
  228. package/src/styles/sales/ManualBooking.scss +4 -2
  229. package/src/styles/snippet-templates/_snippetVariables.scss +63 -244
  230. package/src/styles/sortable-field/SortableField.scss +16 -16
  231. package/src/styles/sortable-field/_index.scss +1 -1
  232. package/src/styles/sortable-tree/Item.scss +4 -4
  233. package/src/styles/table/Table.scss +1 -1
  234. package/src/styles/themes/bookedit/_variables.scss +10 -32
  235. package/src/styles/themes/licklist/_variables.scss +1 -1
  236. package/src/styles/tiptap-editor/TiptapEditor.scss +9 -10
  237. package/src/styles/tiptap-editor/_index.scss +1 -1
  238. package/src/styles/venue-map-sets/VenueMapSetForm.scss +5 -4
  239. package/src/styles/virtualized/_index.scss +1 -1
  240. package/src/styles/zones/ZoneForm.scss +1 -0
  241. package/src/styles/zones/ZoneRecurrencesControl.scss +6 -8
  242. package/src/tiptap-editor/TipTapEditor.stories.tsx +6 -4
  243. package/src/tiptap-editor/TipTapMenu/TipTapMenu.stories.tsx +5 -2
  244. package/src/zone/form/ZoneForm.tsx +3 -2
  245. package/src/zone/form/components/ZoneControl.tsx +3 -3
  246. package/src/zone/form/components/ZoneRecurrencesControl.tsx +7 -5
  247. package/src/zone/form/utils/dates.ts +9 -10
  248. package/yarn.lock +127 -114
  249. package/dist/assets/iframe/selectArrow.svg.js +0 -17
@@ -1,11 +1,14 @@
1
1
  module.exports = {
2
- stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
3
- addons: [
2
+ "stories": [
3
+ "../src/**/*.stories.mdx",
4
+ "../src/**/*.stories.@(js|jsx|ts|tsx)"
5
+ ],
6
+ "addons": [
4
7
  "@storybook/addon-links",
5
8
  "@storybook/addon-essentials",
6
- "@storybook/preset-scss",
7
- "@storybook/addon-knobs",
8
- "@storybook/addon-a11y",
9
+ '@storybook/preset-scss',
10
+ '@storybook/addon-knobs',
11
+ '@storybook/addon-a11y'
9
12
  ],
10
13
  // Export a function. Accept the base config as the only param.
11
14
  webpackFinal: async (config, { configType }) => {
@@ -17,28 +20,28 @@ module.exports = {
17
20
 
18
21
  const assetLoader = {
19
22
  loader: assetRule.loader,
20
- options: assetRule.options || assetRule.query,
23
+ options: assetRule.options || assetRule.query
21
24
  };
22
25
 
23
26
  const gifLoader = {
24
27
  loader: gifRule.loader,
25
- options: gifRule.options || gifRule.query,
26
- };
28
+ options: gifRule.options || gifRule.query
29
+ }
27
30
 
28
31
  // Make whatever fine-grained changes you need
29
32
  config.module.rules.unshift({
30
33
  test: /\.gif$/,
31
34
  exclude: /node_modules/,
32
- use: ["url-loader", gifLoader],
35
+ use: ["url-loader", gifLoader]
33
36
  });
34
-
37
+
35
38
  config.module.rules.unshift({
36
39
  test: /\.svg$/,
37
40
  exclude: /node_modules/,
38
- use: ["@svgr/webpack", assetLoader],
41
+ use: ["@svgr/webpack", assetLoader]
39
42
  });
40
43
 
41
44
  // Return the altered config
42
45
  return config;
43
46
  },
44
- };
47
+ }
@@ -203,9 +203,10 @@ var LoginComponent = function(param) {
203
203
  var _useState = _sliced_to_array(useState(false), 2), isLoading = _useState[0], setIsLoading = _useState[1];
204
204
  var userApiService = useUserApi(request);
205
205
  var handleError = function(error) {
206
+ var _error_response_data, _error_response;
206
207
  notification.danger({
207
208
  title: "Error",
208
- message: error.message
209
+ message: (error === null || error === void 0 ? void 0 : (_error_response = error.response) === null || _error_response === void 0 ? void 0 : (_error_response_data = _error_response.data) === null || _error_response_data === void 0 ? void 0 : _error_response_data.message) || error.message
209
210
  });
210
211
  };
211
212
  var storeSecrets = function(secrets) {
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarButtons.d.ts","sourceRoot":"","sources":["../../../../src/calendar/components/CalendarButtons/CalendarButtons.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,KAAK,oBAAoB,GAAG,IAAI,CAC9B,aAAa,EACX,WAAW,GACX,aAAa,GACb,aAAa,GACb,gBAAgB,GAChB,iBAAiB,GACjB,wBAAwB,CAC3B,CAAC;AAEF,eAAO,MAAM,eAAe,sGAOzB,oBAAoB,4CA8GtB,CAAC"}
1
+ {"version":3,"file":"CalendarButtons.d.ts","sourceRoot":"","sources":["../../../../src/calendar/components/CalendarButtons/CalendarButtons.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,KAAK,oBAAoB,GAAG,IAAI,CAC9B,aAAa,EACX,WAAW,GACX,aAAa,GACb,aAAa,GACb,gBAAgB,GAChB,iBAAiB,GACjB,wBAAwB,CAC3B,CAAC;AAEF,eAAO,MAAM,eAAe,sGAOzB,oBAAoB,4CAiHtB,CAAC"}
@@ -3,28 +3,27 @@ import { useCallback, useMemo } from 'react';
3
3
  import { Button } from 'react-bootstrap';
4
4
  import { useTranslation } from 'react-i18next';
5
5
  import { range } from 'lodash';
6
- import { ReactComponent as SvgSelectArrow } from '../../../assets/iframe/selectArrow.svg.js';
6
+ import { DateTime } from 'luxon';
7
7
  import { CalendarSelect } from '../CalendarSelect/CalendarSelect.js';
8
8
 
9
9
  var CalendarButtons = function(param) {
10
10
  var _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, initialDate = param.initialDate, currentDate = param.currentDate, setCurrentDate = param.setCurrentDate, setSelectedDate = param.setSelectedDate, getDateTimeButtonProps = param.getDateTimeButtonProps;
11
11
  var t = useTranslation("Design").t;
12
- var onSelectNextMonth = useCallback(function() {
13
- setCurrentDate(function(prevDate) {
14
- return prevDate.plus({
15
- months: 1
16
- });
17
- });
18
- // eslint-disable-next-line react-hooks/exhaustive-deps
19
- }, []);
20
- var onSelectPreviousMonth = useCallback(function() {
21
- setCurrentDate(function(prevDate) {
22
- return prevDate.minus({
23
- month: 1
24
- });
12
+ var onSelectMonth = useCallback(function(value) {
13
+ var selectedMonth = Number(value);
14
+ var nextDateTime = currentDate.set({
15
+ month: selectedMonth
25
16
  });
26
- // eslint-disable-next-line react-hooks/exhaustive-deps
27
- }, []);
17
+ if (nextDateTime <= initialDate) {
18
+ setCurrentDate(initialDate);
19
+ return;
20
+ }
21
+ setCurrentDate(nextDateTime);
22
+ }, // eslint-disable-next-line react-hooks/exhaustive-deps
23
+ [
24
+ setCurrentDate,
25
+ currentDate
26
+ ]);
28
27
  var yearOptions = useMemo(function() {
29
28
  return range(initialDate.year, initialDate.year + 5, 1).map(function(year) {
30
29
  return {
@@ -35,11 +34,21 @@ var CalendarButtons = function(param) {
35
34
  }, [
36
35
  initialDate
37
36
  ]);
38
- var canMoveBack = useMemo(function() {
39
- return currentDate > initialDate;
37
+ var monthOptions = useMemo(function() {
38
+ var initialMonth = currentDate.year > initialDate.year ? 1 : initialDate.month;
39
+ return range(initialMonth, 13).map(function(monthNumber) {
40
+ return {
41
+ label: DateTime.fromObject({
42
+ month: monthNumber
43
+ }).toLocaleString({
44
+ month: "long"
45
+ }),
46
+ value: monthNumber
47
+ };
48
+ });
40
49
  }, [
41
- currentDate,
42
- initialDate
50
+ initialDate,
51
+ currentDate
43
52
  ]);
44
53
  var onSelectYear = function(value) {
45
54
  var selectedYear = Number(value);
@@ -96,27 +105,13 @@ var CalendarButtons = function(param) {
96
105
  /*#__PURE__*/ jsxs("div", {
97
106
  className: "calendar-buttons",
98
107
  children: [
99
- /*#__PURE__*/ jsxs("div", {
108
+ /*#__PURE__*/ jsx("div", {
100
109
  className: "buttons-wrapper",
101
- children: [
102
- /*#__PURE__*/ jsx(Button, {
103
- className: "calendar-button left-button",
104
- onClick: onSelectPreviousMonth,
105
- disabled: !canMoveBack,
106
- variant: "link",
107
- children: /*#__PURE__*/ jsx(SvgSelectArrow, {})
108
- }),
109
- /*#__PURE__*/ jsx("div", {
110
- className: "month-title",
111
- children: currentDate.toFormat("MMMM")
112
- }),
113
- /*#__PURE__*/ jsx(Button, {
114
- className: "calendar-button",
115
- onClick: onSelectNextMonth,
116
- variant: "link",
117
- children: /*#__PURE__*/ jsx(SvgSelectArrow, {})
118
- })
119
- ]
110
+ children: /*#__PURE__*/ jsx(CalendarSelect, {
111
+ options: monthOptions,
112
+ onChange: onSelectMonth,
113
+ value: currentDate.month
114
+ })
120
115
  }),
121
116
  /*#__PURE__*/ jsx(CalendarSelect, {
122
117
  options: yearOptions,
@@ -1 +1 @@
1
- {"version":3,"file":"EditEventForm.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,EACN,MAAM,sDAAsD,CAAC;AAM9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAGvF,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAI5E,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAS7D,OAAO,EAAiB,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAIzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AAGnF,MAAM,WAAW,mBAAoB,SAAQ,mBAAmB;IAC9D,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,OAAO,EAAE,OAAO,GAAG,MAAM,CAAC;IAC1B,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IACvB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,oBAAoB,CAAC;CACzC;AAED,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,aAAa,EAAE,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAClD,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,WAAW,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACnD,WAAW,CAAC,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;IAClC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACvD,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,4BAA4B,CAAC,EAAE,OAAO,CAAC;CACxC;AAOD,eAAO,MAAM,aAAa,qLAYvB,kBAAkB,4CAsVpB,CAAC"}
1
+ {"version":3,"file":"EditEventForm.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,EACN,MAAM,sDAAsD,CAAC;AAM9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAGvF,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAI5E,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAS7D,OAAO,EAAiB,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAIzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AAGnF,MAAM,WAAW,mBAAoB,SAAQ,mBAAmB;IAC9D,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,OAAO,EAAE,OAAO,GAAG,MAAM,CAAC;IAC1B,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IACvB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,oBAAoB,CAAC;CACzC;AAED,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,aAAa,EAAE,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAClD,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,WAAW,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACnD,WAAW,CAAC,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;IAClC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACvD,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,4BAA4B,CAAC,EAAE,OAAO,CAAC;CACxC;AAOD,eAAO,MAAM,aAAa,qLAYvB,kBAAkB,4CAwVpB,CAAC"}
@@ -13,13 +13,13 @@ import { getFirstErrorKey } from '@licklist/plugins/dist/utils/FormValues';
13
13
  import { SaleDeadline } from '../SaleDeadline/SaleDeadline.js';
14
14
  import { CategoriesInput } from '../../../../provider/categories-input/CategoriesInput.js';
15
15
  import { CategoriesInputDescription } from '../../../../provider/categories-input/CategoriesInputDescription.js';
16
+ import '@licklist/plugins';
16
17
  import 'react-bootstrap/Form';
17
18
  import 'react-phone-number-input/input';
18
19
  import 'react-phone-number-input/locale/en.json';
19
20
  import 'react-select';
20
21
  import '../../../../provider/provider-form/ProviderForm.js';
21
22
  import '../../../../provider/venue-form/VenueForm.js';
22
- import '@licklist/core/dist/Config';
23
23
  import 'clsx';
24
24
  import '@licklist/core/dist/DataMapper/User/UserRoleDataMapper';
25
25
  import '@licklist/plugins/dist/validation/Rules/emailRule';
@@ -159,6 +159,7 @@ var EditEventForm = function(param) {
159
159
  var visible = watch("visible");
160
160
  var editedProductSet = watch("editedProductSet");
161
161
  var productSetId = watch("productSetId");
162
+ var occurrenceStartAtDate = watch("start");
162
163
  var _useMultipleImages = useMultipleImages(initialImages), images = _useMultipleImages.images, handleImageRemove = _useMultipleImages.handleImageRemove, handleImageUploading = _useMultipleImages.handleImageUploading, isImagesLoading = _useMultipleImages.isImagesLoading, isCoverImagesLoading = _useMultipleImages.isCoverImagesLoading;
163
164
  var onErrorSubmit = function(submitErrors) {
164
165
  scrollToError(getFirstErrorKey(submitErrors));
@@ -465,7 +466,8 @@ var EditEventForm = function(param) {
465
466
  createProductSet: createProductSet,
466
467
  setEditProductSetId: setEditProductSetId,
467
468
  setShowEditProductSet: setShowEditProductSet,
468
- showEditProductSet: showEditProductSet
469
+ showEditProductSet: showEditProductSet,
470
+ occurrenceStartAtDate: occurrenceStartAtDate
469
471
  }),
470
472
  hasPermission && !showEditProductSet && /*#__PURE__*/ jsx(Button, {
471
473
  disabled: disabled || formState.isSubmitting || isImagesLoading || isCoverImagesLoading,
@@ -7,7 +7,8 @@ interface SelectEventProductSetProps extends HasPermissionProp {
7
7
  setShowEditProductSet: (value: boolean) => void;
8
8
  createProductSet: (props: EditEventFormValues) => void;
9
9
  setEditProductSetId: (value: string) => void;
10
+ occurrenceStartAtDate: string;
10
11
  }
11
- export declare const SelectEventProductSet: ({ productSets, createProductSet, setEditProductSetId, showEditProductSet, setShowEditProductSet, }: SelectEventProductSetProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const SelectEventProductSet: ({ productSets, createProductSet, setEditProductSetId, showEditProductSet, setShowEditProductSet, occurrenceStartAtDate, }: SelectEventProductSetProps) => import("react/jsx-runtime").JSX.Element;
12
13
  export {};
13
14
  //# sourceMappingURL=SelectEventProductSet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectEventProductSet.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AACvF,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAC;AAEzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAGrE,UAAU,0BAA2B,SAAQ,iBAAiB;IAC5D,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,qBAAqB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,gBAAgB,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACvD,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9C;AAED,eAAO,MAAM,qBAAqB,uGAM/B,0BAA0B,4CAkM5B,CAAC"}
1
+ {"version":3,"file":"SelectEventProductSet.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AACvF,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAC;AAEzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAGrE,UAAU,0BAA2B,SAAQ,iBAAiB;IAC5D,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,qBAAqB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,gBAAgB,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACvD,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAED,eAAO,MAAM,qBAAqB,8HAO/B,0BAA0B,4CAsM5B,CAAC"}
@@ -132,8 +132,8 @@ function _ts_generator(thisArg, body) {
132
132
  }
133
133
  }
134
134
  var SelectEventProductSet = function(param) {
135
- var productSets = param.productSets, createProductSet = param.createProductSet, setEditProductSetId = param.setEditProductSetId, showEditProductSet = param.showEditProductSet, setShowEditProductSet = param.setShowEditProductSet;
136
- var _productSets_find;
135
+ var productSets = param.productSets, createProductSet = param.createProductSet, setEditProductSetId = param.setEditProductSetId, showEditProductSet = param.showEditProductSet, setShowEditProductSet = param.setShowEditProductSet, occurrenceStartAtDate = param.occurrenceStartAtDate;
136
+ var _productSets_find, _productSets_find1;
137
137
  var t = useTranslation([
138
138
  "Design"
139
139
  ]).t;
@@ -142,7 +142,7 @@ var SelectEventProductSet = function(param) {
142
142
  var productSetsId = useId();
143
143
  var productSetId = watch("productSetId");
144
144
  var editedProductSet = watch("editedProductSet");
145
- var selectedProductSet = (_productSets_find = productSets.find(function(productSet) {
145
+ (_productSets_find = productSets.find(function(productSet) {
146
146
  return productSet.id === productSetId;
147
147
  })) === null || _productSets_find === void 0 ? void 0 : _productSets_find.parentMenuId;
148
148
  var onEditProductSet = useCallback(function() {
@@ -206,7 +206,10 @@ var SelectEventProductSet = function(param) {
206
206
  }
207
207
  setValue("productSetId", value);
208
208
  };
209
- var showOverrideProductSet = !showEditProductSet && productSetId && !selectedProductSet;
209
+ var showOverrideProductSet = !showEditProductSet && productSetId;
210
+ var isOverrideProductSet = (_productSets_find1 = productSets.find(function(productSet) {
211
+ return productSet.id === productSetId;
212
+ })) === null || _productSets_find1 === void 0 ? void 0 : _productSets_find1.isOverride;
210
213
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
211
214
  var onSubmit = function(value) {
212
215
  setShowEditProductSet(false);
@@ -254,7 +257,7 @@ var SelectEventProductSet = function(param) {
254
257
  var isCurrentEditedProductSet = editedProductSet && (editedProductSet === null || editedProductSet === void 0 ? void 0 : editedProductSet.id) === (productSet === null || productSet === void 0 ? void 0 : productSet.id);
255
258
  return /*#__PURE__*/ jsx("option", {
256
259
  value: productSet.id,
257
- children: isCurrentEditedProductSet || (productSet === null || productSet === void 0 ? void 0 : productSet.parentMenuId) ? "[".concat(t("edited"), "] ").concat(isCurrentEditedProductSet ? editedProductSet === null || editedProductSet === void 0 ? void 0 : editedProductSet.name : productSet.name) : productSet.name
260
+ children: isCurrentEditedProductSet || productSet.isOverride ? "[".concat(t("edited"), "] ").concat(isCurrentEditedProductSet ? editedProductSet === null || editedProductSet === void 0 ? void 0 : editedProductSet.name : productSet.name) : productSet.name
258
261
  }, productSet.id);
259
262
  })
260
263
  ]
@@ -274,7 +277,7 @@ var SelectEventProductSet = function(param) {
274
277
  variant: "",
275
278
  className: "btn product-set-button ",
276
279
  onClick: onEditProductSet,
277
- children: t("editProductSet")
280
+ children: isOverrideProductSet ? t("editOverrides") : t("editProductSet")
278
281
  }),
279
282
  showEditProductSet && /*#__PURE__*/ jsx(Button, {
280
283
  variant: "",
@@ -303,11 +306,10 @@ var SelectEventProductSet = function(param) {
303
306
  ]
304
307
  })
305
308
  }),
306
- showEditProductSet && productSetId && /*#__PURE__*/ jsx(Fragment, {
307
- children: /*#__PURE__*/ jsx(EditEventProductSet, {
308
- onSubmit: onSubmit,
309
- defaultValues: productSetId === (editedProductSet === null || editedProductSet === void 0 ? void 0 : editedProductSet.id) && editedProductSet
310
- })
309
+ showEditProductSet && productSetId && /*#__PURE__*/ jsx(EditEventProductSet, {
310
+ onSubmit: onSubmit,
311
+ occurrenceStartAtDate: occurrenceStartAtDate,
312
+ defaultValues: productSetId === (editedProductSet === null || editedProductSet === void 0 ? void 0 : editedProductSet.id) && editedProductSet
311
313
  })
312
314
  ]
313
315
  });
@@ -8,7 +8,8 @@ export interface EventDates {
8
8
  interface EditEventProductSetProps {
9
9
  onSubmit: (value: EditEventFormValues["editedProductSet"]) => void;
10
10
  defaultValues?: EditEventFormValues["editedProductSet"];
11
+ occurrenceStartAtDate: string;
11
12
  }
12
- export declare const EditEventProductSet: ({ onSubmit, defaultValues, }: EditEventProductSetProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const EditEventProductSet: ({ onSubmit, defaultValues, occurrenceStartAtDate, }: EditEventProductSetProps) => import("react/jsx-runtime").JSX.Element;
13
14
  export {};
14
15
  //# sourceMappingURL=EditEventProductSet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EditEventProductSet.d.ts","sourceRoot":"","sources":["../../../../../../src/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAG1D,eAAO,MAAM,WAAW,IAAI,CAAC;AAE7B,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AACD,UAAU,wBAAwB;IAChC,QAAQ,EAAE,CAAC,KAAK,EAAE,mBAAmB,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC;IACnE,aAAa,CAAC,EAAE,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;CACzD;AAED,eAAO,MAAM,mBAAmB,iCAG7B,wBAAwB,4CAiH1B,CAAC"}
1
+ {"version":3,"file":"EditEventProductSet.d.ts","sourceRoot":"","sources":["../../../../../../src/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAG1D,eAAO,MAAM,WAAW,IAAI,CAAC;AAE7B,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AACD,UAAU,wBAAwB;IAChC,QAAQ,EAAE,CAAC,KAAK,EAAE,mBAAmB,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC;IACnE,aAAa,CAAC,EAAE,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;IACxD,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAED,eAAO,MAAM,mBAAmB,wDAI7B,wBAAwB,4CAmH1B,CAAC"}
@@ -133,7 +133,7 @@ function _object_spread_props(target, source) {
133
133
  }
134
134
  var DEFAULT_FEE = 5;
135
135
  var EditEventProductSet = function(param) {
136
- var onSubmit = param.onSubmit, defaultValues = param.defaultValues;
136
+ var onSubmit = param.onSubmit, defaultValues = param.defaultValues, occurrenceStartAtDate = param.occurrenceStartAtDate;
137
137
  var companyId = useParams().companyId;
138
138
  var _useEventEditProductSetContext = useEventEditProductSetContext(), companies = _useEventEditProductSetContext.companies, isLoading = _useEventEditProductSetContext.isLoading, settings = _useEventEditProductSetContext.settings, smsTemplates = _useEventEditProductSetContext.smsTemplates, systemSettings = _useEventEditProductSetContext.systemSettings, productGroupsData = _useEventEditProductSetContext.productGroupsData, productSetData = _useEventEditProductSetContext.productSetData, venueMapSets = _useEventEditProductSetContext.venueMapSets, emailTemplates = _useEventEditProductSetContext.emailTemplates, fieldSetsData = _useEventEditProductSetContext.fieldSetsData;
139
139
  var t = useTranslation("Design").t;
@@ -213,7 +213,9 @@ var EditEventProductSet = function(param) {
213
213
  companyName: selectedCompany === null || selectedCompany === void 0 ? void 0 : selectedCompany.title,
214
214
  fee: feeInPercent,
215
215
  isEventEditProductSet: true,
216
- isOverrides: true
216
+ isOverrides: true,
217
+ occurrenceStartAtDate: occurrenceStartAtDate,
218
+ workHours: undefined
217
219
  }),
218
220
  /*#__PURE__*/ jsx(Button, {
219
221
  disabled: isLoading,
@@ -1 +1 @@
1
- {"version":3,"file":"getDefaultProductSet.d.ts","sourceRoot":"","sources":["../../../../src/events/edit-event-modal/utils/getDefaultProductSet.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EACX,MAAM,6DAA6D,CAAC;AAErE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAEhF,eAAO,MAAM,gBAAgB,gBACd,UAAU,GAAG,IAAI,qBACX,OAAO,KACzB,oBAqCD,CAAC"}
1
+ {"version":3,"file":"getDefaultProductSet.d.ts","sourceRoot":"","sources":["../../../../src/events/edit-event-modal/utils/getDefaultProductSet.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EACX,MAAM,6DAA6D,CAAC;AAErE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAEhF,eAAO,MAAM,gBAAgB,gBACd,UAAU,GAAG,IAAI,qBACX,OAAO,KACzB,oBAoCD,CAAC"}
@@ -133,7 +133,6 @@ var getDefaultValues = function(productSet, hasNoRecurrences) {
133
133
  subProducts: subProducts === null || subProducts === void 0 ? void 0 : subProducts.map(function(_param) {
134
134
  var subProducts = _extends({}, _object_destructuring_empty(_param));
135
135
  return _object_spread_props(_object_spread({}, subProducts), {
136
- originalProductId: null,
137
136
  productCategoryId: undefined
138
137
  });
139
138
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"ProductQuantityInput.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC/E,OAAO,EAAE,IAAI,EAAE,MAAM,wDAAwD,CAAC;AAC9E,OAAO,EACL,OAAO,EACP,eAAe,EAChB,MAAM,qDAAqD,CAAC;AAG7D,UAAU,aAAa;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,UAAU,yBAAyB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,eAAe,CAAC;IAC1B,WAAW,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAC7C,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,aAAa,CAAC;CAC5B;AAED,eAAO,MAAM,oBAAoB,gGAQ9B,yBAAyB,4CAiE3B,CAAC"}
1
+ {"version":3,"file":"ProductQuantityInput.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC/E,OAAO,EAAE,IAAI,EAAE,MAAM,wDAAwD,CAAC;AAC9E,OAAO,EACL,OAAO,EACP,eAAe,EAChB,MAAM,qDAAqD,CAAC;AAG7D,UAAU,aAAa;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,UAAU,yBAAyB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,eAAe,CAAC;IAC1B,WAAW,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAC7C,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,aAAa,CAAC;CAC5B;AAED,eAAO,MAAM,oBAAoB,gGAQ9B,yBAAyB,4CAkE3B,CAAC"}
@@ -8,6 +8,7 @@ var ProductQuantityInput = function(param) {
8
8
  var product = param.product, category = param.category, _onChange = param.onChange, clearErrors = param.clearErrors, refCallback = param.refCallback, productInfo = param.productInfo, invalid = param.invalid;
9
9
  var t = useTranslation("Design").t;
10
10
  var onChange = function(quantity) {
11
+ var _category_zone;
11
12
  _onChange({
12
13
  id: product.id,
13
14
  name: product.name,
@@ -15,6 +16,7 @@ var ProductQuantityInput = function(param) {
15
16
  hasDeposit: category.allowDeposits && (product === null || product === void 0 ? void 0 : product.deposit) < product.price,
16
17
  price: product.price,
17
18
  productCategoryId: category.id,
19
+ zoneId: (_category_zone = category.zone) === null || _category_zone === void 0 ? void 0 : _category_zone.id,
18
20
  quantity: quantity,
19
21
  capacity: product === null || product === void 0 ? void 0 : product.capacity
20
22
  });
@@ -1 +1 @@
1
- {"version":3,"file":"paymentSummary.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/payment/order-items-table/utils/paymentSummary.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,oBAAoB,EAEpB,WAAW,EAEZ,MAAM,UAAU,CAAC;AA6FlB,eAAO,MAAM,oBAAoB,oEAK9B,oBAAoB,KAAG,WAAW,EAUpC,CAAC"}
1
+ {"version":3,"file":"paymentSummary.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/payment/order-items-table/utils/paymentSummary.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,oBAAoB,EAEpB,WAAW,EAEZ,MAAM,UAAU,CAAC;AA8FlB,eAAO,MAAM,oBAAoB,oEAK9B,oBAAoB,KAAG,WAAW,EAUpC,CAAC"}
@@ -1,9 +1,10 @@
1
+ import React from "react";
1
2
  interface Props {
2
3
  children?: React.ReactNode | React.ReactNode[];
3
4
  style?: any;
4
5
  className?: any;
5
6
  "aria-laballedby"?: any;
6
7
  }
7
- declare const DropDown: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<unknown>>;
8
+ declare const DropDown: React.ForwardRefExoticComponent<Props & React.RefAttributes<unknown>>;
8
9
  export default DropDown;
9
10
  //# sourceMappingURL=DropDown.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropDown.d.ts","sourceRoot":"","sources":["../../src/layout/DropDown.tsx"],"names":[],"mappings":"AAEA,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC;IAC/C,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,iBAAiB,CAAC,EAAE,GAAG,CAAC;CACzB;AAED,QAAA,MAAM,QAAQ,2FAcZ,CAAC;AAGH,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"DropDown.d.ts","sourceRoot":"","sources":["../../src/layout/DropDown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC;IAC/C,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,iBAAiB,CAAC,EAAE,GAAG,CAAC;CACzB;AAED,QAAA,MAAM,QAAQ,uEAcZ,CAAC;AAIH,eAAe,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DropDownToggle.d.ts","sourceRoot":"","sources":["../../src/layout/DropDownToggle.tsx"],"names":[],"mappings":"AAEA,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC;IAC/C,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;CACzC;AAED,QAAA,MAAM,cAAc,2FAYlB,CAAC;AAEH,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"DropDownToggle.d.ts","sourceRoot":"","sources":["../../src/layout/DropDownToggle.tsx"],"names":[],"mappings":"AAEA,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC;IAC/C,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;CACzC;AAED,QAAA,MAAM,cAAc,2FAYlB,CAAC;AAIH,eAAe,cAAc,CAAC"}
@@ -13,5 +13,6 @@ var DropDownToggle = /*#__PURE__*/ forwardRef(function(props, ref) {
13
13
  children: props.children
14
14
  });
15
15
  });
16
+ DropDownToggle.displayName = "DropDownToggle";
16
17
 
17
18
  export { DropDownToggle as default };
@@ -6,7 +6,7 @@ export interface DateAndRecurrenceInputValues {
6
6
  }
7
7
  interface DateAndRecurrenceInputProps {
8
8
  isEventEditProductSet?: boolean;
9
- workHours?: WorkHour[];
9
+ workHours: WorkHour[] | undefined;
10
10
  providerHasBookingManagement: boolean;
11
11
  isLoading?: boolean;
12
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DateAndRecurrenceInput.d.ts","sourceRoot":"","sources":["../../../src/product-set/control/DateAndRecurrenceInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAO1C,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAC;AACtF,OAAO,EAAE,oBAAoB,EAAE,MAAM,uEAAuE,CAAC;AAuB7G,MAAM,WAAW,4BAA4B;IAC3C,eAAe,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,CAAC;CACnD;AAED,UAAU,2BAA2B;IACnC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,4BAA4B,EAAE,OAAO,CAAC;IACtC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,sBAAsB,mFAKhC,2BAA2B,4CA8Q7B,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAC5C,WAAW,EACX,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAsBxB,CAAC"}
1
+ {"version":3,"file":"DateAndRecurrenceInput.d.ts","sourceRoot":"","sources":["../../../src/product-set/control/DateAndRecurrenceInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAO1C,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAC;AACtF,OAAO,EAAE,oBAAoB,EAAE,MAAM,uEAAuE,CAAC;AAqB7G,MAAM,WAAW,4BAA4B;IAC3C,eAAe,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,CAAC;CACnD;AAED,UAAU,2BAA2B;IACnC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,SAAS,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAC;IAClC,4BAA4B,EAAE,OAAO,CAAC;IACtC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,sBAAsB,mFAKhC,2BAA2B,4CA+Q7B,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAC5C,WAAW,EACX,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAsBxB,CAAC"}
@@ -387,6 +387,7 @@ var DateAndRecurrenceInput = function(param) {
387
387
  defaultValues: editState.values,
388
388
  onChange: handleRecurringDateChange,
389
389
  onDelete: handleDelete,
390
+ workHours: workHours,
390
391
  children: providerHasBookingManagement && /*#__PURE__*/ jsx(AvailableTimesControl, {
391
392
  workHours: workHours,
392
393
  isLoading: isLoading,
@@ -1 +1 @@
1
- {"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../../src/product-set/control/DateInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAO1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,uEAAuE,CAAC;AAG7G,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAC;AAiBtF,MAAM,WAAW,4BAA4B;IAC3C,eAAe,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,CAAC;CACnD;AAED,UAAU,2BAA2B;IACnC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,4BAA4B,EAAE,OAAO,CAAC;IACtC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,SAAS,mFAKnB,2BAA2B,4CAsP7B,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAC5C,WAAW,EACX,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAsBxB,CAAC"}
1
+ {"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../../src/product-set/control/DateInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAO1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,uEAAuE,CAAC;AAG7G,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAC;AAiBtF,MAAM,WAAW,4BAA4B;IAC3C,eAAe,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,CAAC;CACnD;AAED,UAAU,2BAA2B;IACnC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,4BAA4B,EAAE,OAAO,CAAC;IACtC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,SAAS,mFAKnB,2BAA2B,4CAuP7B,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAC5C,WAAW,EACX,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAsBxB,CAAC"}
@@ -400,13 +400,13 @@ var DateInput = function(param) {
400
400
  className: "product-set-recurrences",
401
401
  children: [
402
402
  fields.map(function(menuRecurrence, index) {
403
- var _errors_menuRecurrences__availableTimes, _errors_menuRecurrences_, _errors_menuRecurrences;
403
+ var _errors_menuRecurrences__availableTimes, _errors_menuRecurrences_, _errors_menuRecurrences, _errors_menuRecurrences_1, _errors_menuRecurrences1;
404
404
  return /*#__PURE__*/ jsx(ProductSetRecurrenceOverridesControl, {
405
405
  menuRecurrence: menuRecurrence,
406
406
  onEdit: function() {
407
407
  return handleOnEdit(menuRecurrence, index);
408
408
  },
409
- errorMessage: errors === null || errors === void 0 ? void 0 : (_errors_menuRecurrences = errors.menuRecurrences) === null || _errors_menuRecurrences === void 0 ? void 0 : (_errors_menuRecurrences_ = _errors_menuRecurrences["".concat(index)]) === null || _errors_menuRecurrences_ === void 0 ? void 0 : (_errors_menuRecurrences__availableTimes = _errors_menuRecurrences_.availableTimes) === null || _errors_menuRecurrences__availableTimes === void 0 ? void 0 : _errors_menuRecurrences__availableTimes.message
409
+ errorMessage: (errors === null || errors === void 0 ? void 0 : (_errors_menuRecurrences = errors.menuRecurrences) === null || _errors_menuRecurrences === void 0 ? void 0 : (_errors_menuRecurrences_ = _errors_menuRecurrences["".concat(index)]) === null || _errors_menuRecurrences_ === void 0 ? void 0 : (_errors_menuRecurrences__availableTimes = _errors_menuRecurrences_.availableTimes) === null || _errors_menuRecurrences__availableTimes === void 0 ? void 0 : _errors_menuRecurrences__availableTimes.message) || (errors === null || errors === void 0 ? void 0 : (_errors_menuRecurrences1 = errors.menuRecurrences) === null || _errors_menuRecurrences1 === void 0 ? void 0 : (_errors_menuRecurrences_1 = _errors_menuRecurrences1["".concat(index)]) === null || _errors_menuRecurrences_1 === void 0 ? void 0 : _errors_menuRecurrences_1.message)
410
410
  }, menuRecurrence._id);
411
411
  }),
412
412
  fields.length < MAX_QUANTITY_RECURRENCE_DATE_IN_OVERRIDE && /*#__PURE__*/ jsxs("div", {
@@ -41,10 +41,11 @@ export interface ProductSetControlProps {
41
41
  fieldSets?: FieldSet[];
42
42
  showEmailTemplate?: boolean;
43
43
  showSmsTemplate?: boolean;
44
- workHours?: WorkHour[];
44
+ workHours: WorkHour[] | undefined;
45
45
  providerHasBookingManagement?: boolean;
46
46
  isOverrides?: boolean;
47
+ occurrenceStartAtDate?: string;
47
48
  isCreateNewOverrides?: boolean;
48
49
  }
49
- export declare function ProductSetControl({ companyName, isLoading, fee, fieldSets, emailTemplates, smsTemplates, isEventEditProductSet, isCreateAction, showEmailTemplate, showSmsTemplate, workHours, providerHasBookingManagement, isOverrides, isCreateNewOverrides, }: ProductSetControlProps): import("react/jsx-runtime").JSX.Element;
50
+ export declare function ProductSetControl({ companyName, isLoading, fee, fieldSets, emailTemplates, smsTemplates, isEventEditProductSet, isCreateAction, showEmailTemplate, showSmsTemplate, workHours, providerHasBookingManagement, isOverrides, occurrenceStartAtDate, isCreateNewOverrides, }: ProductSetControlProps): import("react/jsx-runtime").JSX.Element;
50
51
  //# sourceMappingURL=ProductSetControl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProductSetControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/control/ProductSetControl.tsx"],"names":[],"mappings":"AAIA,OAAO,EAOL,mBAAmB,EACnB,cAAc,EAEd,gBAAgB,EACjB,MAAM,6DAA6D,CAAC;AAErE,OAAO,EAAE,QAAQ,EAAE,MAAM,yDAAyD,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAC;AACpG,OAAO,EAAE,WAAW,EAAE,MAAM,mEAAmE,CAAC;AAGhG,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAC;AAGtF,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAIL,4BAA4B,EAC7B,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAgBhC,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,aAAa,GAAG,WAAW,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,uBAAwB,SAAQ,4BAA4B;IAC3E,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,cAAc,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,mBAAmB,CAAC;IACrC,aAAa,CAAC,EAAE,UAAU,EAAE,CAAC;IAC7B,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,cAAc,CAAC,EAAE,YAAY,EAAE,CAAC;IAChC,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC;CAC/B;AAED,MAAM,WAAW,uBAAuB;IACtC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;IACjC,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,YAAY,EAAE,CAAC;IAChC,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,wBAAgB,iBAAiB,CAAC,EAChC,WAAW,EACX,SAAS,EACT,GAAU,EACV,SAAc,EACd,cAAmB,EACnB,YAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,SAAS,EACT,4BAAoC,EACpC,WAAmB,EACnB,oBAA4B,GAC7B,EAAE,sBAAsB,2CA0TxB"}
1
+ {"version":3,"file":"ProductSetControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/control/ProductSetControl.tsx"],"names":[],"mappings":"AAMA,OAAO,EAOL,mBAAmB,EACnB,cAAc,EAEd,gBAAgB,EACjB,MAAM,6DAA6D,CAAC;AAGrE,OAAO,EAAE,QAAQ,EAAE,MAAM,yDAAyD,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAC;AACpG,OAAO,EAAE,WAAW,EAAE,MAAM,mEAAmE,CAAC;AAGhG,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAC;AAGtF,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAIL,4BAA4B,EAC7B,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAgBhC,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,aAAa,GAAG,WAAW,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,uBAAwB,SAAQ,4BAA4B;IAC3E,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,cAAc,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,mBAAmB,CAAC;IACrC,aAAa,CAAC,EAAE,UAAU,EAAE,CAAC;IAC7B,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,cAAc,CAAC,EAAE,YAAY,EAAE,CAAC;IAChC,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC;CAC/B;AAED,MAAM,WAAW,uBAAuB;IACtC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;IACjC,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,YAAY,EAAE,CAAC;IAChC,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAC;IAClC,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,wBAAgB,iBAAiB,CAAC,EAChC,WAAW,EACX,SAAS,EACT,GAAU,EACV,SAAc,EACd,cAAmB,EACnB,YAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,SAAS,EACT,4BAAoC,EACpC,WAAmB,EACnB,qBAAqB,EACrB,oBAA4B,GAC7B,EAAE,sBAAsB,2CAmUxB"}
@@ -1,9 +1,12 @@
1
1
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
+ import { useEffect } from 'react';
2
3
  import { Row, Col, Form } from 'react-bootstrap';
3
4
  import { useFormContext, Controller } from 'react-hook-form';
4
5
  import { useTranslation } from 'react-i18next';
5
6
  import clsx from 'clsx';
7
+ import { DateTime } from 'luxon';
6
8
  import { OPERATIONAL_COST_PROVIDER, OPERATIONAL_COST_CUSTOMER, RELY_ON_PEOPLE_PRODUCT_CAPACITY_QUANTITY, RELY_ON_PEOPLE_PRODUCT_QUANTITY, RELY_ON_PEOPLE_QUANTITY, OPERATIONAL_COST_TYPES, RELY_ON_PEOPLE_TYPES } from '@licklist/core/dist/DataMapper/Product/ProductSetDataMapper';
9
+ import { DATE_MONTH_LOCALE_FORMAT } from '@licklist/core/dist/Config';
7
10
  import { useId } from '@react-aria/utils';
8
11
  import HookFormService from '@licklist/plugins/dist/services/Form/HookFormService';
9
12
  import { ruleForUrlWithProtocol } from '@licklist/plugins/dist/validation/Rules/urlRule';
@@ -73,15 +76,16 @@ var OPERATIONAL_COST_TITLES = (_obj = {}, _define_property(_obj, OPERATIONAL_COS
73
76
  var _obj1;
74
77
  var RELY_ON_PEOPLE_TYPE_TITLES = (_obj1 = {}, _define_property(_obj1, RELY_ON_PEOPLE_PRODUCT_CAPACITY_QUANTITY, "peopleProductCapacityQuantity"), _define_property(_obj1, RELY_ON_PEOPLE_PRODUCT_QUANTITY, "peopleProductQuantity"), _define_property(_obj1, RELY_ON_PEOPLE_QUANTITY, "peopleQuantity"), _obj1);
75
78
  function ProductSetControl(param) {
76
- var companyName = param.companyName, isLoading = param.isLoading, _param_fee = param.fee, fee = _param_fee === void 0 ? "5%" : _param_fee, _param_fieldSets = param.fieldSets, fieldSets = _param_fieldSets === void 0 ? [] : _param_fieldSets, _param_emailTemplates = param.emailTemplates, emailTemplates = _param_emailTemplates === void 0 ? [] : _param_emailTemplates, _param_smsTemplates = param.smsTemplates, smsTemplates = _param_smsTemplates === void 0 ? [] : _param_smsTemplates, isEventEditProductSet = param.isEventEditProductSet, isCreateAction = param.isCreateAction, showEmailTemplate = param.showEmailTemplate, showSmsTemplate = param.showSmsTemplate, workHours = param.workHours, _param_providerHasBookingManagement = param.providerHasBookingManagement, providerHasBookingManagement = _param_providerHasBookingManagement === void 0 ? false : _param_providerHasBookingManagement, _param_isOverrides = param.isOverrides, isOverrides = _param_isOverrides === void 0 ? false : _param_isOverrides, _param_isCreateNewOverrides = param.isCreateNewOverrides, isCreateNewOverrides = _param_isCreateNewOverrides === void 0 ? false : _param_isCreateNewOverrides;
79
+ var companyName = param.companyName, isLoading = param.isLoading, _param_fee = param.fee, fee = _param_fee === void 0 ? "5%" : _param_fee, _param_fieldSets = param.fieldSets, fieldSets = _param_fieldSets === void 0 ? [] : _param_fieldSets, _param_emailTemplates = param.emailTemplates, emailTemplates = _param_emailTemplates === void 0 ? [] : _param_emailTemplates, _param_smsTemplates = param.smsTemplates, smsTemplates = _param_smsTemplates === void 0 ? [] : _param_smsTemplates, isEventEditProductSet = param.isEventEditProductSet, isCreateAction = param.isCreateAction, showEmailTemplate = param.showEmailTemplate, showSmsTemplate = param.showSmsTemplate, workHours = param.workHours, _param_providerHasBookingManagement = param.providerHasBookingManagement, providerHasBookingManagement = _param_providerHasBookingManagement === void 0 ? false : _param_providerHasBookingManagement, _param_isOverrides = param.isOverrides, isOverrides = _param_isOverrides === void 0 ? false : _param_isOverrides, occurrenceStartAtDate = param.occurrenceStartAtDate, _param_isCreateNewOverrides = param.isCreateNewOverrides, isCreateNewOverrides = _param_isCreateNewOverrides === void 0 ? false : _param_isCreateNewOverrides;
77
80
  var _errors_name;
78
81
  var t = useTranslation([
79
82
  "Design",
80
83
  "Validation",
81
84
  "Notification"
82
85
  ]).t;
83
- var _useFormContext = useFormContext(), register = _useFormContext.register, control = _useFormContext.control, errors = _useFormContext.formState.errors, watch = _useFormContext.watch, setError = _useFormContext.setError, clearErrors = _useFormContext.clearErrors;
86
+ var _useFormContext = useFormContext(), register = _useFormContext.register, control = _useFormContext.control, errors = _useFormContext.formState.errors, watch = _useFormContext.watch, setError = _useFormContext.setError, setValue = _useFormContext.setValue, clearErrors = _useFormContext.clearErrors;
84
87
  var steps = watch("steps");
88
+ var productSetName = watch("name");
85
89
  var nameId = useId();
86
90
  var termsAndConditionsId = useId();
87
91
  var relyOnPeopleTypeId = useId();
@@ -94,6 +98,15 @@ function ProductSetControl(param) {
94
98
  return checkIfZoneCategory(category === null || category === void 0 ? void 0 : category.type);
95
99
  });
96
100
  });
101
+ useEffect(function() {
102
+ if (!occurrenceStartAtDate) return;
103
+ var eventStartDate = DateTime.fromISO(occurrenceStartAtDate);
104
+ var eventStart = eventStartDate.toFormat(DATE_MONTH_LOCALE_FORMAT);
105
+ setValue("name", "".concat(productSetName, " (").concat(eventStart, ")"));
106
+ }, [
107
+ setValue,
108
+ occurrenceStartAtDate
109
+ ]);
97
110
  return /*#__PURE__*/ jsxs(Row, {
98
111
  className: "product-set-form ".concat(isEventEditProductSet && "event-edit-product-set"),
99
112
  children: [
@@ -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;AASvE,UAAU,6BAA8B,SAAQ,aAAa;IAC3D,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AA0BD,wBAAgB,wBAAwB,CAAC,EACvC,SAAS,EACT,SAAS,EACT,WAAW,EACX,qBAAqB,EACrB,oBAAoB,GACrB,EAAE,6BAA6B,2CAoT/B;AAED,eAAO,MAAM,cAAc,iBACX,YAAY,SACnB,MAAM,KACZ;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,IAczC,CAAC"}
1
+ {"version":3,"file":"ProductCategoriesControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductCategoriesControl.tsx"],"names":[],"mappings":"AAaA,OAAO,EAKL,YAAY,EACb,MAAM,kEAAkE,CAAC;AAQ1E,OAAO,EAAwB,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAoCvE,UAAU,6BAA8B,SAAQ,aAAa;IAC3D,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AA0BD,wBAAgB,wBAAwB,CAAC,EACvC,SAAS,EACT,SAAS,EACT,WAAW,EACX,qBAAqB,EACrB,oBAAoB,GACrB,EAAE,6BAA6B,2CA4T/B;AAED,eAAO,MAAM,cAAc,iBACX,YAAY,SACnB,MAAM,KACZ;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,IAczC,CAAC"}