@licklist/design 0.69.6-dev.0 → 0.69.6

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 (154) hide show
  1. package/dist/affiliate/form/AffiliateForm.d.ts.map +1 -1
  2. package/dist/auth/Login/LoginComponent.js +1 -2
  3. package/dist/calendar/utils/index.d.ts +2 -8
  4. package/dist/calendar/utils/index.d.ts.map +1 -1
  5. package/dist/calendar/utils/index.js +21 -9
  6. package/dist/date-time-button/DateContent.d.ts.map +1 -1
  7. package/dist/date-time-button/DateContent.js +3 -3
  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 +6 -6
  10. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +1 -2
  11. package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
  12. package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +1 -0
  13. package/dist/events/event-card/utils.d.ts +0 -1
  14. package/dist/events/event-card/utils.d.ts.map +1 -1
  15. package/dist/events/event-card/utils.js +2 -6
  16. package/dist/iframe/activity-card/ActivityCard.d.ts +1 -3
  17. package/dist/iframe/activity-card/ActivityCard.d.ts.map +1 -1
  18. package/dist/iframe/activity-card/ActivityCard.js +1 -8
  19. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
  20. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +0 -13
  21. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
  22. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +0 -2
  23. package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
  24. package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
  25. package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
  26. package/dist/iframe/ryft/utils/ryft-form.js +3 -3
  27. package/dist/layout/DropDown.d.ts +1 -2
  28. package/dist/layout/DropDown.d.ts.map +1 -1
  29. package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
  30. package/dist/notification/email-template/control/EmailTemplateControl.js +0 -3
  31. package/dist/product-set/control/DateInput.d.ts.map +1 -1
  32. package/dist/product-set/control/DateInput.js +2 -2
  33. package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
  34. package/dist/product-set/form/ProductCategoriesControl.js +2 -48
  35. package/dist/product-set/form/ProductSetForm.d.ts +1 -4
  36. package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
  37. package/dist/product-set/form/ProductSetForm.js +2 -57
  38. package/dist/product-set/form/ProductZonesControl.d.ts.map +1 -1
  39. package/dist/product-set/form/ProductZonesControl.js +2 -0
  40. package/dist/product-set/form/ProductsControl.js +0 -1
  41. package/dist/product-set/form/SelectCategoryModal.d.ts +0 -12
  42. package/dist/product-set/form/SelectCategoryModal.d.ts.map +1 -1
  43. package/dist/product-set/form/SelectCategoryModal.js +1 -1
  44. package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
  45. package/dist/product-set/form/SubProductsControl.js +3 -0
  46. package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
  47. package/dist/product-set/form/VenueMapsControl.js +3 -0
  48. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  49. package/dist/product-set/product/booking-management/ProductBookingManagementControl.d.ts.map +1 -1
  50. package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +0 -6
  51. package/dist/product-set/product/deposit/ProductDepositControl.d.ts.map +1 -1
  52. package/dist/product-set/product/deposit/ProductDepositControl.js +0 -3
  53. package/dist/product-set/product/duration/ProductDurationControl.d.ts.map +1 -1
  54. package/dist/product-set/product/duration/ProductDurationControl.js +0 -6
  55. package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
  56. package/dist/product-set/product/price/ProductPriceControl.js +0 -3
  57. package/dist/product-set/product/quantity/ProductQuantityConstantControl.d.ts.map +1 -1
  58. package/dist/product-set/product/quantity/ProductQuantityConstantControl.js +0 -6
  59. package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
  60. package/dist/product-set/product/quantity/ProductQuantityControl.js +0 -6
  61. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
  62. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +1 -4
  63. package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
  64. package/dist/product-set/product-category/ProductCategoryControl.js +0 -12
  65. package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
  66. package/dist/recurrence-input/RecurrenceEndInput.js +0 -3
  67. package/dist/recurring-date-picker-input/RecurrenceEndInput.d.ts.map +1 -1
  68. package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
  69. package/dist/resource/form/components/CapacityControl.js +0 -3
  70. package/dist/resource/form/components/SortControl.d.ts.map +1 -1
  71. package/dist/resource/form/components/SortControl.js +0 -3
  72. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  73. package/dist/sales/booking/results/components/ResultCard.js +2 -0
  74. package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
  75. package/dist/sales/coupon/control/CouponFormControl.js +0 -21
  76. package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
  77. package/dist/setting/admin/PaymentFeeForm.js +1 -16
  78. package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
  79. package/dist/setting/dashboard/DashboardSettingForm.js +1 -4
  80. package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
  81. package/dist/snippet/snippet-template/preview/Preview.js +0 -6
  82. package/dist/sortable-tree/SortableTreeItem.d.ts +1 -2
  83. package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
  84. package/dist/sortable-tree/SortableTreeItem.js +4 -10
  85. package/dist/static/CurrencyNumberInput.d.ts.map +1 -1
  86. package/dist/static/CurrencyNumberInput.js +0 -3
  87. package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
  88. package/dist/static/form-number-input/FormNumberInput.js +0 -3
  89. package/dist/static/number-input/NumberInput.d.ts.map +1 -1
  90. package/dist/static/number-input/NumberInput.js +0 -3
  91. package/dist/styles/availability-indicator/AvailabilityIndicator.scss +0 -9
  92. package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
  93. package/dist/styles/product-set/ProductSetForm.scss +0 -22
  94. package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +3 -1
  95. package/dist/styles/sales/BookingResults.scss +1 -1
  96. package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -1
  97. package/dist/zone/form/components/GameDurationControl.js +0 -3
  98. package/dist/zone/form/components/SortControl.d.ts.map +1 -1
  99. package/dist/zone/form/components/SortControl.js +0 -3
  100. package/package.json +7 -8
  101. package/src/affiliate/form/AffiliateForm.tsx +0 -1
  102. package/src/auth/Login/LoginComponent.tsx +1 -1
  103. package/src/calendar/utils/index.ts +26 -17
  104. package/src/date-time-button/DateContent.tsx +3 -3
  105. package/src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx +10 -12
  106. package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +1 -0
  107. package/src/events/event-card/utils.ts +1 -5
  108. package/src/iframe/activity-card/ActivityCard.tsx +0 -6
  109. package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +0 -9
  110. package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +0 -1
  111. package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +0 -1
  112. package/src/iframe/ryft/RyftPaymentForm.tsx +5 -2
  113. package/src/iframe/ryft/utils/ryft-form.ts +3 -5
  114. package/src/layout/DropDown.tsx +1 -1
  115. package/src/notification/email-template/control/EmailTemplateControl.tsx +0 -1
  116. package/src/product-set/control/DateInput.tsx +1 -2
  117. package/src/product-set/form/ProductCategoriesControl.tsx +1 -37
  118. package/src/product-set/form/ProductSetForm.tsx +3 -15
  119. package/src/product-set/form/ProductZonesControl.tsx +4 -1
  120. package/src/product-set/form/SelectCategoryModal.tsx +2 -2
  121. package/src/product-set/form/SubProductsControl.tsx +3 -0
  122. package/src/product-set/form/VenueMapsControl.tsx +3 -0
  123. package/src/product-set/product/ProductControl.tsx +1 -0
  124. package/src/product-set/product/advanced-options/AdvancedOptions.tsx +1 -1
  125. package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +0 -2
  126. package/src/product-set/product/deposit/ProductDepositControl.tsx +0 -1
  127. package/src/product-set/product/duration/ProductDurationControl.tsx +0 -2
  128. package/src/product-set/product/price/ProductPriceControl.tsx +0 -1
  129. package/src/product-set/product/quantity/ProductQuantityConstantControl.tsx +0 -2
  130. package/src/product-set/product/quantity/ProductQuantityControl.tsx +0 -2
  131. package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +0 -1
  132. package/src/product-set/product-category/ProductCategoryControl.tsx +0 -4
  133. package/src/product-set/product-zone/ProductZoneControl.tsx +1 -1
  134. package/src/recurrence-input/RecurrenceEndInput.tsx +0 -1
  135. package/src/recurring-date-picker-input/RecurrenceEndInput.tsx +0 -1
  136. package/src/resource/form/components/CapacityControl.tsx +0 -1
  137. package/src/resource/form/components/SortControl.tsx +0 -1
  138. package/src/sales/booking/results/components/ResultCard.tsx +2 -0
  139. package/src/sales/coupon/control/CouponFormControl.tsx +0 -7
  140. package/src/setting/admin/PaymentFeeForm.tsx +0 -5
  141. package/src/setting/dashboard/DashboardSettingForm.tsx +0 -1
  142. package/src/snippet/snippet-template/preview/Preview.tsx +0 -6
  143. package/src/sortable-tree/SortableTreeItem.tsx +0 -6
  144. package/src/static/CurrencyNumberInput.tsx +0 -1
  145. package/src/static/form-number-input/FormNumberInput.tsx +0 -1
  146. package/src/static/number-input/NumberInput.tsx +0 -1
  147. package/src/styles/availability-indicator/AvailabilityIndicator.scss +0 -9
  148. package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
  149. package/src/styles/product-set/ProductSetForm.scss +0 -22
  150. package/src/styles/ryft-payment-form/RyftPaymentForm.scss +3 -1
  151. package/src/styles/sales/BookingResults.scss +1 -1
  152. package/src/zone/form/components/GameDurationControl.tsx +0 -1
  153. package/src/zone/form/components/SortControl.tsx +0 -1
  154. package/yarn.lock +54 -20
@@ -1 +1 @@
1
- {"version":3,"file":"AffiliateForm.d.ts","sourceRoot":"","sources":["../../../src/affiliate/form/AffiliateForm.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,4DAA4D,CAAA;AAEtF,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAGpE,MAAM,WAAW,kBAAkB;IACjC,aAAa,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IAChC,YAAY,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAA;IACnD,YAAY,EAAE,oBAAoB,CAAA;IAClC,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,eAAO,MAAM,aAAa,8DAKvB,kBAAkB,4CA+FpB,CAAA"}
1
+ {"version":3,"file":"AffiliateForm.d.ts","sourceRoot":"","sources":["../../../src/affiliate/form/AffiliateForm.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,4DAA4D,CAAA;AAEtF,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAGpE,MAAM,WAAW,kBAAkB;IACjC,aAAa,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IAChC,YAAY,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAA;IACnD,YAAY,EAAE,oBAAoB,CAAA;IAClC,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,eAAO,MAAM,aAAa,8DAKvB,kBAAkB,4CA8FpB,CAAA"}
@@ -203,10 +203,9 @@ 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;
207
206
  notification.danger({
208
207
  title: 'Error',
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
208
+ message: error.message
210
209
  });
211
210
  };
212
211
  var storeSecrets = function(secrets) {
@@ -1,10 +1,4 @@
1
- import { TimeZone } from '@licklist/core/dist/DataMapper/Common/TimeZoneDataMapper';
2
1
  import { DateTime } from 'luxon';
3
- type Builder = (args: {
4
- initialDate?: DateTime;
5
- timeZone: TimeZone['name'];
6
- }) => DateTime[];
7
- export declare const getMonthCalendarDates: Builder;
8
- export declare const getWeekCalendarDates: Builder;
9
- export {};
2
+ export declare const getMonthCalendarDates: (initialDate: DateTime, timeZone?: string) => DateTime[];
3
+ export declare const getWeekCalendarDates: (initialDate: DateTime, timeZone?: string) => DateTime[];
10
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/calendar/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0DAA0D,CAAA;AACnF,OAAO,EAAE,QAAQ,EAAY,MAAM,OAAO,CAAA;AAE1C,KAAK,OAAO,GAAG,CAAC,IAAI,EAAE;IACpB,WAAW,CAAC,EAAE,QAAQ,CAAA;IACtB,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;CAC3B,KAAK,QAAQ,EAAE,CAAA;AAEhB,eAAO,MAAM,qBAAqB,EAAE,OAYnC,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,OAQlC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/calendar/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAY,MAAM,OAAO,CAAA;AAE1C,eAAO,MAAM,qBAAqB,gBACnB,QAAQ,aACV,MAAM,KAChB,QAAQ,EAeV,CAAA;AAED,eAAO,MAAM,oBAAoB,gBAClB,QAAQ,aACV,MAAM,KAChB,QAAQ,EAcV,CAAA"}
@@ -1,27 +1,39 @@
1
- import { DateTime, Interval } from 'luxon';
1
+ import { Interval } from 'luxon';
2
2
 
3
- var getMonthCalendarDates = function(param) {
4
- var _initialDate = param.initialDate, timeZone = param.timeZone;
5
- var initialDate = _initialDate || DateTime.now().setZone(timeZone);
3
+ var getMonthCalendarDates = function(initialDate, timeZone) {
6
4
  var startOfMonth = initialDate.startOf('month');
7
5
  var endOfMonth = initialDate.endOf('month');
8
- return Interval.fromDateTimes(startOfMonth, endOfMonth).splitBy({
6
+ var dateTimes = Interval.fromDateTimes(startOfMonth, endOfMonth).splitBy({
9
7
  day: 1
10
8
  }).map(function(d) {
11
9
  return d.start;
12
10
  });
11
+ if (timeZone) {
12
+ return dateTimes.map(function(date) {
13
+ return date.setZone(timeZone, {
14
+ keepLocalTime: true
15
+ });
16
+ });
17
+ }
18
+ return dateTimes;
13
19
  };
14
- var getWeekCalendarDates = function(param) {
15
- var timeZone = param.timeZone;
16
- var initialDate = DateTime.now().setZone(timeZone);
20
+ var getWeekCalendarDates = function(initialDate, timeZone) {
17
21
  var lastDay = initialDate.plus({
18
22
  days: 7
19
23
  });
20
- return Interval.fromDateTimes(initialDate, lastDay).splitBy({
24
+ var dateTimes = Interval.fromDateTimes(initialDate, lastDay).splitBy({
21
25
  day: 1
22
26
  }).map(function(d) {
23
27
  return d.start;
24
28
  });
29
+ if (timeZone) {
30
+ return dateTimes.map(function(date) {
31
+ return date.setZone(timeZone, {
32
+ keepLocalTime: true
33
+ });
34
+ });
35
+ }
36
+ return dateTimes;
25
37
  };
26
38
 
27
39
  export { getMonthCalendarDates, getWeekCalendarDates };
@@ -1 +1 @@
1
- {"version":3,"file":"DateContent.d.ts","sourceRoot":"","sources":["../../src/date-time-button/DateContent.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAGhC,OAAO,EAAE,mBAAmB,EAAW,MAAM,kBAAkB,CAAA;AAE/D,KAAK,gBAAgB,GAAG,IAAI,CAC1B,mBAAmB,EACnB,YAAY,GAAG,YAAY,GAAG,SAAS,CACxC,GAAG;IACF,IAAI,EAAE,QAAQ,CAAA;CACf,CAAA;AAED,eAAO,MAAM,WAAW,+CAKrB,gBAAgB,4CA6BlB,CAAA"}
1
+ {"version":3,"file":"DateContent.d.ts","sourceRoot":"","sources":["../../src/date-time-button/DateContent.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEhC,OAAO,EAAE,mBAAmB,EAAW,MAAM,kBAAkB,CAAA;AAE/D,KAAK,gBAAgB,GAAG,IAAI,CAC1B,mBAAmB,EACnB,YAAY,GAAG,YAAY,GAAG,SAAS,CACxC,GAAG;IACF,IAAI,EAAE,QAAQ,CAAA;CACf,CAAA;AAED,eAAO,MAAM,WAAW,+CAKrB,gBAAgB,4CA6BlB,CAAA"}
@@ -2,8 +2,8 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
2
2
  import { TIME_FORMAT, DAY_NUMBER, DAY_NUMBER_WITH_MONTH, DAY_OF_WEEK } from '@licklist/core/dist/Config';
3
3
  import { getDayWithOrdinal } from '@licklist/plugins/dist/utils/formatDate';
4
4
  import clsx from 'clsx';
5
+ import { isToday, isTomorrow } from 'date-fns';
5
6
  import { useTranslation } from 'react-i18next';
6
- import { isToday, isTomorrow } from '@licklist/plugins/dist';
7
7
  import { Variant } from './DateTimeButton.js';
8
8
 
9
9
  function _array_like_to_array(arr, len) {
@@ -81,8 +81,8 @@ var DateContent = function(param) {
81
81
  });
82
82
  };
83
83
  var getDate = function(date) {
84
- if (isToday(date)) return 'today';
85
- if (isTomorrow(date)) return 'tomorrow';
84
+ if (isToday(date.toJSDate())) return 'today';
85
+ if (isTomorrow(date.toJSDate())) return 'tomorrow';
86
86
  return date.toFormat(DAY_OF_WEEK);
87
87
  };
88
88
 
@@ -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,CAAA;AACtF,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AAIxF,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AAIpE,UAAU,0BAA2B,SAAQ,iBAAiB;IAC5D,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;IAC1B,kBAAkB,EAAE,OAAO,CAAA;IAC3B,qBAAqB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IAC/C,gBAAgB,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAA;IACtD,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5C,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,CAAC,EAAE,UAAU,CAAA;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED,eAAO,MAAM,qBAAqB,mKAS/B,0BAA0B,4CA4L5B,CAAA"}
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,CAAA;AACtF,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AAGxF,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AAIpE,UAAU,0BAA2B,SAAQ,iBAAiB;IAC5D,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;IAC1B,kBAAkB,EAAE,OAAO,CAAA;IAC3B,qBAAqB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IAC/C,gBAAgB,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAA;IACtD,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5C,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,CAAC,EAAE,UAAU,CAAA;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED,eAAO,MAAM,qBAAqB,mKAS/B,0BAA0B,4CA2L5B,CAAA"}
@@ -4,7 +4,6 @@ import { useTranslation } from 'react-i18next';
4
4
  import { Form, Button } from 'react-bootstrap';
5
5
  import { useId } from '@react-aria/utils';
6
6
  import { useFormContext, Controller } from 'react-hook-form';
7
- import { uniqBy } from 'lodash';
8
7
  import { getTypeHeadItemsFromMenus } from '../../../../product-set/utils/index.js';
9
8
  import { ConfirmModal } from '../../../../modals/confirmation/ConfirmModal.js';
10
9
  import { EditEventProductSet } from './component/EditEventProductSet.js';
@@ -173,11 +172,12 @@ var SelectEventProductSet = function(param) {
173
172
  var productSetsId = useId();
174
173
  var productSetId = watch('productSetId');
175
174
  var editedProductSet = watch('editedProductSet');
176
- var typeheadValues = uniqBy(getTypeHeadItemsFromMenus(editedProductSet ? productSets.map(function(productSet) {
177
- return productSet.id === editedProductSet.id ? editedProductSet : productSet;
178
- }) : productSets), function(item) {
179
- return item.id;
180
- });
175
+ var typeheadValues = getTypeHeadItemsFromMenus(editedProductSet ? productSets.map(function(productSet) {
176
+ if (productSet.id === editedProductSet.id) {
177
+ return editedProductSet;
178
+ }
179
+ return productSet;
180
+ }) : productSets);
181
181
  var selectedProductSetTypeheadValue = productSetId ? typeheadValues === null || typeheadValues === void 0 ? void 0 : typeheadValues.find(function(typeheadValue) {
182
182
  return typeheadValue.id === productSetId;
183
183
  }) : undefined;
@@ -22,7 +22,7 @@ import 'react-bootstrap/Col';
22
22
  import 'react-bootstrap/InputGroup';
23
23
  import 'react-bootstrap/Row';
24
24
  import '@licklist/plugins/dist/services/Form/FormErrorService';
25
- import '@licklist/plugins/dist/utils/error';
25
+ import '@licklist/plugins';
26
26
  import { ProductSetContextProvider } from '../../../../../product-set/form/context.js';
27
27
  import { getFilteredTemplates } from '../../../../../product-set/utils/index.js';
28
28
  import 'react-bootstrap/Button';
@@ -33,7 +33,6 @@ import '@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper';
33
33
  import 'react-bootstrap/Collapse';
34
34
  import '@licklist/plugins/dist/hooks/Media/useImages';
35
35
  import '@licklist/core/dist/DataMapper/Media/ImageDataMapper';
36
- import '@licklist/plugins';
37
36
  import '@licklist/plugins/dist/context/app/hooks/useNotification';
38
37
  import '../../../../../static/index.js';
39
38
  import '../../../../../tiptap-editor/TipTapEditor.js';
@@ -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,CAAA;AAEpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAA;AAE/E,eAAO,MAAM,gBAAgB,gBACd,UAAU,GAAG,IAAI,qBACX,OAAO,KACzB,oBAsCD,CAAA"}
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,CAAA;AAEpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAA;AAE/E,eAAO,MAAM,gBAAgB,gBACd,UAAU,GAAG,IAAI,qBACX,OAAO,KACzB,oBAuCD,CAAA"}
@@ -135,6 +135,7 @@ var getDefaultValues = function(productSet, hasNoRecurrences) {
135
135
  subProducts: subProducts === null || subProducts === void 0 ? void 0 : subProducts.map(function(_param) {
136
136
  var subProducts = _extends({}, _object_destructuring_empty(_param));
137
137
  return _object_spread_props(_object_spread({}, subProducts), {
138
+ originalProductId: null,
138
139
  productCategoryId: undefined
139
140
  });
140
141
  }),
@@ -1,7 +1,6 @@
1
1
  import { EventStatistic } from '@licklist/core/dist/DataMapper/Provider/EventStatisticDataMapper';
2
2
  export declare function formatContent(content: any, maxSymbols: any): any;
3
3
  export declare const formatContentWithoutTags: (content: any, maxLength?: number) => any;
4
- export declare const MIN_EVENT_DESCRIPTION_SIZE = 150;
5
4
  export declare const EVENT_DESCRIPTION_SIZE = 350;
6
5
  /**
7
6
  * Calculate the total number of views from the given dates and event statistic.
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/events/event-card/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AAGjG,wBAAgB,aAAa,CAAC,OAAO,KAAA,EAAE,UAAU,KAAA,OAIhD;AAED,eAAO,MAAM,wBAAwB,2CAkBpC,CAAA;AAED,eAAO,MAAM,0BAA0B,MAAM,CAAA;AAC7C,eAAO,MAAM,sBAAsB,MAAM,CAAA;AAEzC;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,UACvB,MAAM,EAAE,kBACC,cAAc,KAC7B,MAIA,CAAA;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,UAC/B,MAAM,EAAE,kBACC,cAAc,KAC7B,CAAC,MAAM,EAAE,MAAM,CAejB,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,mBACX,cAAc,GAAG,IAAI,QAC/B,MAAM,KACX;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;CA4BpB,CAAA"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/events/event-card/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AAGjG,wBAAgB,aAAa,CAAC,OAAO,KAAA,EAAE,UAAU,KAAA,OAIhD;AAED,eAAO,MAAM,wBAAwB,2CAepC,CAAA;AAED,eAAO,MAAM,sBAAsB,MAAM,CAAA;AAEzC;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,UACvB,MAAM,EAAE,kBACC,cAAc,KAC7B,MAIA,CAAA;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,UAC/B,MAAM,EAAE,kBACC,cAAc,KAC7B,CAAC,MAAM,EAAE,MAAM,CAejB,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,mBACX,cAAc,GAAG,IAAI,QAC/B,MAAM,KACX;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;CA4BpB,CAAA"}
@@ -59,13 +59,9 @@ var formatContentWithoutTags = function(content) {
59
59
  var text = content.replace(/<[^>]*>/g, '');
60
60
  var trimmedText = text.trim().replace(/&nbsp;|[^a-zA-Z0-9\s]/g, '').replace(/\s\s+/g, ' ');
61
61
  var words = trimmedText.slice(0, maxLength).split(' ');
62
- var contentWithMinLength = content.slice(0, MIN_EVENT_DESCRIPTION_SIZE);
63
62
  var index = String(content).indexOf(words[words.length - 2]);
64
- var slicedContent = content.slice(0, index);
65
- var contentWithMinSize = contentWithMinLength.length > slicedContent.length ? contentWithMinLength : slicedContent;
66
- return contentWithMinSize.concat('...');
63
+ return content.slice(0, index).concat('...');
67
64
  };
68
- var MIN_EVENT_DESCRIPTION_SIZE = 150;
69
65
  var EVENT_DESCRIPTION_SIZE = 350;
70
66
  /**
71
67
  * Calculate the total number of views from the given dates and event statistic.
@@ -140,4 +136,4 @@ var EVENT_DESCRIPTION_SIZE = 350;
140
136
  };
141
137
  };
142
138
 
143
- export { EVENT_DESCRIPTION_SIZE, MIN_EVENT_DESCRIPTION_SIZE, calculateTotalSoldAndAmount, calculateTotalViews, formatContent, formatContentWithoutTags, getStatisticInfo };
139
+ export { EVENT_DESCRIPTION_SIZE, calculateTotalSoldAndAmount, calculateTotalViews, formatContent, formatContentWithoutTags, getStatisticInfo };
@@ -1,6 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { Image } from '@licklist/core/dist/DataMapper/Media/ImageDataMapper';
3
- import { ZoneResourcesAvailability } from '@licklist/core/dist/DataMapper/Order/ZoneResourcesAvailabilityDataMapper';
4
3
  export declare const LAYOUT_GRID = "grid";
5
4
  export declare const LAYOUT_LIST = "list";
6
5
  export type ActivityCardProps = {
@@ -13,7 +12,6 @@ export type ActivityCardProps = {
13
12
  layout?: typeof LAYOUT_GRID | typeof LAYOUT_LIST;
14
13
  availableTimes?: string | null;
15
14
  image?: Image | null;
16
- resources?: ZoneResourcesAvailability;
17
15
  };
18
- export declare const ActivityCard: ({ title, duration, price, description, availableTimes, image, onSelect, isSelected, layout, resources, }: ActivityCardProps) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const ActivityCard: ({ title, duration, price, description, availableTimes, image, onSelect, isSelected, layout, }: ActivityCardProps) => import("react/jsx-runtime").JSX.Element;
19
17
  //# sourceMappingURL=ActivityCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActivityCard.d.ts","sourceRoot":"","sources":["../../../src/iframe/activity-card/ActivityCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,KAAK,EAAE,MAAM,sDAAsD,CAAA;AAC5E,OAAO,EAAE,yBAAyB,EAAE,MAAM,0EAA0E,CAAA;AAGpH,eAAO,MAAM,WAAW,SAAS,CAAA;AACjC,eAAO,MAAM,WAAW,SAAS,CAAA;AAEjC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,SAAS,CAAA;IAChB,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,EAAE,SAAS,CAAA;IAChB,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,UAAU,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,OAAO,WAAW,GAAG,OAAO,WAAW,CAAA;IAChD,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAA;IACpB,SAAS,CAAC,EAAE,yBAAyB,CAAA;CACtC,CAAA;AAED,eAAO,MAAM,YAAY,6GAWtB,iBAAiB,4CAmDnB,CAAA"}
1
+ {"version":3,"file":"ActivityCard.d.ts","sourceRoot":"","sources":["../../../src/iframe/activity-card/ActivityCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,KAAK,EAAE,MAAM,sDAAsD,CAAA;AAE5E,eAAO,MAAM,WAAW,SAAS,CAAA;AACjC,eAAO,MAAM,WAAW,SAAS,CAAA;AAEjC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,SAAS,CAAA;IAChB,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,EAAE,SAAS,CAAA;IAChB,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,UAAU,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,OAAO,WAAW,GAAG,OAAO,WAAW,CAAA;IAChD,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,YAAY,kGAUtB,iBAAiB,4CAiDnB,CAAA"}
@@ -1,11 +1,10 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import clsx from 'clsx';
3
- import { AvailabilityIndicator } from '../../availability-indicator/AvailabilityIndicator.js';
4
3
 
5
4
  var LAYOUT_GRID = 'grid';
6
5
  var LAYOUT_LIST = 'list';
7
6
  var ActivityCard = function(param) {
8
- var title = param.title, duration = param.duration, price = param.price, description = param.description, availableTimes = param.availableTimes, image = param.image, onSelect = param.onSelect, isSelected = param.isSelected, _param_layout = param.layout, layout = _param_layout === void 0 ? LAYOUT_GRID : _param_layout, resources = param.resources;
7
+ var title = param.title, duration = param.duration, price = param.price, description = param.description, availableTimes = param.availableTimes, image = param.image, onSelect = param.onSelect, isSelected = param.isSelected, _param_layout = param.layout, layout = _param_layout === void 0 ? LAYOUT_GRID : _param_layout;
9
8
  if (layout === LAYOUT_GRID) {
10
9
  return /*#__PURE__*/ jsxs("button", {
11
10
  type: "button",
@@ -33,9 +32,6 @@ var ActivityCard = function(param) {
33
32
  description && /*#__PURE__*/ jsx("div", {
34
33
  className: "mt-2 activity-card-description",
35
34
  children: description
36
- }),
37
- resources && /*#__PURE__*/ jsx(AvailabilityIndicator, {
38
- resources: resources
39
35
  })
40
36
  ]
41
37
  })
@@ -72,9 +68,6 @@ var ActivityCard = function(param) {
72
68
  description && /*#__PURE__*/ jsx("div", {
73
69
  className: "mt-2 activity-card-description",
74
70
  children: description
75
- }),
76
- resources && /*#__PURE__*/ jsx(AvailabilityIndicator, {
77
- resources: resources
78
71
  })
79
72
  ]
80
73
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx"],"names":[],"mappings":"AAIA,UAAU,gBAAgB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,eAAO,MAAM,WAAW,+GAyGvB,CAAA"}
1
+ {"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx"],"names":[],"mappings":"AAIA,UAAU,gBAAgB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,eAAO,MAAM,WAAW,+GAgGvB,CAAA"}
@@ -54,9 +54,6 @@ var NumberInput = /*#__PURE__*/ forwardRef(function(param, ref) {
54
54
  onChange: function(e) {
55
55
  return handleChangeValue(Number(e.target.value));
56
56
  },
57
- onWheel: function(event) {
58
- return event.currentTarget.blur();
59
- },
60
57
  value: value,
61
58
  min: 0,
62
59
  max: max,
@@ -69,16 +66,6 @@ var NumberInput = /*#__PURE__*/ forwardRef(function(param, ref) {
69
66
  /*#__PURE__*/ jsx("button", {
70
67
  type: "button",
71
68
  onClick: handleArrowUpClick,
72
- onWheel: function(event) {
73
- return event.currentTarget.blur();
74
- },
75
- onFocus: function(event) {
76
- return event.target.addEventListener('wheel', function(event) {
77
- return event.preventDefault();
78
- }, {
79
- passive: false
80
- });
81
- },
82
69
  className: "payment-number-input__btn-up ".concat(plusButtonGreyedOut && 'disabled-number-input-button'),
83
70
  disabled: disabled,
84
71
  children: "+"
@@ -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,CAAA;AAC9E,OAAO,EAAE,IAAI,EAAE,MAAM,wDAAwD,CAAA;AAC7E,OAAO,EACL,OAAO,EACP,eAAe,EAChB,MAAM,qDAAqD,CAAA;AAG5D,UAAU,aAAa;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,iBAAiB,EAAE,MAAM,CAAA;IACzB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,MAAM,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACzB;AAED,UAAU,yBAAyB;IACjC,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,eAAe,CAAA;IACzB,WAAW,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAA;IAC5C,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAA;IACxC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,WAAW,CAAA;IACxB,OAAO,EAAE,OAAO,CAAA;IAChB,WAAW,EAAE,aAAa,CAAA;CAC3B;AAED,eAAO,MAAM,oBAAoB,gGAQ9B,yBAAyB,4CAkE3B,CAAA"}
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,CAAA;AAC9E,OAAO,EAAE,IAAI,EAAE,MAAM,wDAAwD,CAAA;AAC7E,OAAO,EACL,OAAO,EACP,eAAe,EAChB,MAAM,qDAAqD,CAAA;AAG5D,UAAU,aAAa;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,iBAAiB,EAAE,MAAM,CAAA;IACzB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,MAAM,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACzB;AAED,UAAU,yBAAyB;IACjC,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,eAAe,CAAA;IACzB,WAAW,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAA;IAC5C,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAA;IACxC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,WAAW,CAAA;IACxB,OAAO,EAAE,OAAO,CAAA;IAChB,WAAW,EAAE,aAAa,CAAA;CAC3B;AAED,eAAO,MAAM,oBAAoB,gGAQ9B,yBAAyB,4CAiE3B,CAAA"}
@@ -8,7 +8,6 @@ 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;
12
11
  _onChange({
13
12
  id: product.id,
14
13
  name: product.name,
@@ -16,7 +15,6 @@ var ProductQuantityInput = function(param) {
16
15
  hasDeposit: category.allowDeposits && (product === null || product === void 0 ? void 0 : product.deposit) < product.price,
17
16
  price: product.price,
18
17
  productCategoryId: category.id,
19
- zoneId: (_category_zone = category.zone) === null || _category_zone === void 0 ? void 0 : _category_zone.id,
20
18
  quantity: quantity,
21
19
  capacity: product === null || product === void 0 ? void 0 : product.capacity
22
20
  });
@@ -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,CAAA;AA4FjB,eAAO,MAAM,oBAAoB,oEAK9B,oBAAoB,KAAG,WAAW,EAUpC,CAAA"}
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,CAAA;AA2FjB,eAAO,MAAM,oBAAoB,oEAK9B,oBAAoB,KAAG,WAAW,EAUpC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"RyftPaymentForm.d.ts","sourceRoot":"","sources":["../../../src/iframe/ryft/RyftPaymentForm.tsx"],"names":[],"mappings":"AAOA,OAAO,EAKL,sBAAsB,EACvB,MAAM,kDAAkD,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,0EAA0E,CAAA;AAKlH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAW/C,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;AAEzD,MAAM,WAAW,oBAAoB;IAEnC,SAAS,EAAE,GAAG,CAAA;IACd,eAAe,EAAE,OAAO,CAAA;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAA;IAClC,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,EAAE,CACR,SAAS,EAAE,MAAM,IAAI,EACrB,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,KAChC,OAAO,CAAC,IAAI,CAAC,CAAA;IAClB,QAAQ,EAAE,MAAM,OAAO,CAAC,sBAAsB,CAAC,CAAA;IAC/C,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,uBAAuB,CAAC,EAAE,uBAAuB,CAAA;CAClD;AAED,eAAO,MAAM,eAAe,8JAUzB,oBAAoB,4CA8KtB,CAAA"}
1
+ {"version":3,"file":"RyftPaymentForm.d.ts","sourceRoot":"","sources":["../../../src/iframe/ryft/RyftPaymentForm.tsx"],"names":[],"mappings":"AAOA,OAAO,EAKL,sBAAsB,EACvB,MAAM,kDAAkD,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,0EAA0E,CAAA;AAKlH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAW/C,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;AAEzD,MAAM,WAAW,oBAAoB;IAEnC,SAAS,EAAE,GAAG,CAAA;IACd,eAAe,EAAE,OAAO,CAAA;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAA;IAClC,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,EAAE,CACR,SAAS,EAAE,MAAM,IAAI,EACrB,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,KAChC,OAAO,CAAC,IAAI,CAAC,CAAA;IAClB,QAAQ,EAAE,MAAM,OAAO,CAAC,sBAAsB,CAAC,CAAA;IAC/C,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,uBAAuB,CAAC,EAAE,uBAAuB,CAAA;CAClD;AAED,eAAO,MAAM,eAAe,8JAUzB,oBAAoB,4CAiLtB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ryft-form.d.ts","sourceRoot":"","sources":["../../../../src/iframe/ryft/utils/ryft-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAEzD,UAAU,0BACR,SAAQ,IAAI,CACV,oBAAoB,EACpB,uBAAuB,GAAG,oBAAoB,CAC/C;IACD,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,CAAC,CAAA;IACtB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,+BAA+B,CAAC,EAAE,OAAO,CAAA;CAC1C;AAED,eAAO,MAAM,0BAA0B,wGAMpC,0BAA0B,SA8E5B,CAAA"}
1
+ {"version":3,"file":"ryft-form.d.ts","sourceRoot":"","sources":["../../../../src/iframe/ryft/utils/ryft-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAEzD,UAAU,0BACR,SAAQ,IAAI,CACV,oBAAoB,EACpB,uBAAuB,GAAG,oBAAoB,CAC/C;IACD,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,CAAC,CAAA;IACtB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,+BAA+B,CAAC,EAAE,OAAO,CAAA;CAC1C;AAED,eAAO,MAAM,0BAA0B,wGAMpC,0BAA0B,SA4E5B,CAAA"}
@@ -39,14 +39,14 @@ var injectComponentsInRyftForm = function(param) {
39
39
  divider.id = 'mobile-pay-divider';
40
40
  container.id = 'mobile-pay-divider-container';
41
41
  container.append(dividerText, divider);
42
- var payIframe = document.getElementById('ryft-pay-iframe');
42
+ var payIframe = document.getElementById("ryft-pay-iframe");
43
43
  if (payIframe) {
44
44
  var formBox = document.getElementById('form-disable-box');
45
45
  if (formBox) {
46
- formBox.style.display = isDisableButton ? 'block' : 'none';
46
+ formBox.style.display = isDisableButton ? "block" : "none";
47
47
  }
48
48
  var googleButton = document.getElementById('gpay-button-online-api-id');
49
- var appleButton = document.getElementById('ryft-pay-apple-pay-button');
49
+ var appleButton = document.getElementById("ryft-pay-apple-pay-button");
50
50
  if (googleButton) {
51
51
  googleButton.disabled = isDisableButton;
52
52
  googleButton.style.opacity = isDisableButton ? '1' : '0.6';
@@ -1,10 +1,9 @@
1
- import React from 'react';
2
1
  interface Props {
3
2
  children?: React.ReactNode | React.ReactNode[];
4
3
  style?: any;
5
4
  className?: any;
6
5
  'aria-laballedby'?: any;
7
6
  }
8
- declare const DropDown: React.ForwardRefExoticComponent<Props & React.RefAttributes<unknown>>;
7
+ declare const DropDown: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<unknown>>;
9
8
  export default DropDown;
10
9
  //# sourceMappingURL=DropDown.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropDown.d.ts","sourceRoot":"","sources":["../../src/layout/DropDown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;IAC9C,KAAK,CAAC,EAAE,GAAG,CAAA;IACX,SAAS,CAAC,EAAE,GAAG,CAAA;IACf,iBAAiB,CAAC,EAAE,GAAG,CAAA;CACxB;AAED,QAAA,MAAM,QAAQ,uEAcZ,CAAA;AAIF,eAAe,QAAQ,CAAA"}
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,CAAA;IAC9C,KAAK,CAAC,EAAE,GAAG,CAAA;IACX,SAAS,CAAC,EAAE,GAAG,CAAA;IACf,iBAAiB,CAAC,EAAE,GAAG,CAAA;CACxB;AAED,QAAA,MAAM,QAAQ,2FAcZ,CAAA;AAIF,eAAe,QAAQ,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"EmailTemplateControl.d.ts","sourceRoot":"","sources":["../../../../src/notification/email-template/control/EmailTemplateControl.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,cAAc,EAEf,MAAM,sEAAsE,CAAA;AAG7E,OAAO,EAAE,UAAU,EAAE,MAAM,kEAAkE,CAAA;AAM7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,wEAAwE,CAAA;AAMzG,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ,kBAAkB,CAAC,EAAE,UAAU,EAAE,CAAA;IACjC,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACtC,4BAA4B,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,gBAAgB,GAAG,IAAI,KAAK,MAAM,CAAA;CAC1E;AAED,eAAO,MAAM,oBAAoB,+GAsahC,CAAA"}
1
+ {"version":3,"file":"EmailTemplateControl.d.ts","sourceRoot":"","sources":["../../../../src/notification/email-template/control/EmailTemplateControl.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,cAAc,EAEf,MAAM,sEAAsE,CAAA;AAG7E,OAAO,EAAE,UAAU,EAAE,MAAM,kEAAkE,CAAA;AAM7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,wEAAwE,CAAA;AAMzG,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ,kBAAkB,CAAC,EAAE,UAAU,EAAE,CAAA;IACjC,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACtC,4BAA4B,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,gBAAgB,GAAG,IAAI,KAAK,MAAM,CAAA;CAC1E;AAED,eAAO,MAAM,oBAAoB,+GAqahC,CAAA"}
@@ -631,9 +631,6 @@ var EmailTemplateControl = /*#__PURE__*/ forwardRef(function(param, ref) {
631
631
  }),
632
632
  /*#__PURE__*/ jsx(Form.Control, _object_spread_props(_object_spread({}, register("templateOptionValues.".concat(option === null || option === void 0 ? void 0 : option.id, ".value"))), {
633
633
  type: "number",
634
- onWheel: function(event) {
635
- return event.currentTarget.blur();
636
- },
637
634
  placeholder: t("Design:".concat(option.name)),
638
635
  id: option.name + option.id,
639
636
  defaultValue: option.selectedValue || ''
@@ -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,CAAA;AAOzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,uEAAuE,CAAA;AAG5G,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAA;AAiBrF,MAAM,WAAW,4BAA4B;IAC3C,eAAe,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,CAAA;CAClD;AAED,UAAU,2BAA2B;IACnC,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAA;IACtB,4BAA4B,EAAE,OAAO,CAAA;IACrC,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,eAAO,MAAM,SAAS,mFAKnB,2BAA2B,4CAuP7B,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAC5C,WAAW,EACX,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAsBxB,CAAA"}
1
+ {"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../../src/product-set/control/DateInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAOzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,uEAAuE,CAAA;AAG5G,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAA;AAiBrF,MAAM,WAAW,4BAA4B;IAC3C,eAAe,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,CAAA;CAClD;AAED,UAAU,2BAA2B;IACnC,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAA;IACtB,4BAA4B,EAAE,OAAO,CAAA;IACrC,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,eAAO,MAAM,SAAS,mFAKnB,2BAA2B,4CAsP7B,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAC5C,WAAW,EACX,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAsBxB,CAAA"}
@@ -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, _errors_menuRecurrences_1, _errors_menuRecurrences1;
403
+ var _errors_menuRecurrences__availableTimes, _errors_menuRecurrences_, _errors_menuRecurrences;
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) || (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)
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
410
410
  }, menuRecurrence._id);
411
411
  }),
412
412
  fields.length < MAX_QUANTITY_RECURRENCE_DATE_IN_OVERRIDE && /*#__PURE__*/ jsxs("div", {
@@ -1 +1 @@
1
- {"version":3,"file":"ProductCategoriesControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductCategoriesControl.tsx"],"names":[],"mappings":"AAaA,OAAO,EAKL,YAAY,EACb,MAAM,kEAAkE,CAAA;AAQzE,OAAO,EAAwB,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAoCtE,UAAU,6BAA8B,SAAQ,aAAa;IAC3D,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B;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,CAAA"}
1
+ {"version":3,"file":"ProductCategoriesControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductCategoriesControl.tsx"],"names":[],"mappings":"AAYA,OAAO,EAKL,YAAY,EACb,MAAM,kEAAkE,CAAA;AAQzE,OAAO,EAAwB,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAStE,UAAU,6BAA8B,SAAQ,aAAa;IAC3D,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B;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,CAAA"}
@@ -1,10 +1,9 @@
1
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
1
+ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { useContext, useState, useEffect } from 'react';
3
3
  import HookFormService from '@licklist/plugins/dist/services/Form/HookFormService';
4
4
  import { uniqueId } from 'lodash';
5
5
  import { Badge } from 'react-bootstrap';
6
6
  import { useFormContext, useFieldArray, useWatch, Controller } from 'react-hook-form';
7
- import { FaTicketAlt, FaCalendar, FaBars, FaBowlingBall } from 'react-icons/fa';
8
7
  import { useTranslation } from 'react-i18next';
9
8
  import { useSensor, MouseSensor } from '@dnd-kit/core';
10
9
  import { CATEGORY_TYPE_GAME, CATEGORY_TYPE_FIXED_DURATION, QUANTITY_TYPE_STANDARD, CATEGORY_TYPE_TICKETS } from '@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper';
@@ -14,7 +13,7 @@ import { ProductSetModalClasses } from '../../sortable-tree/SortableTreeItem.js'
14
13
  import { CreateProductSetItem } from '../item/CreateProductSetItem.js';
15
14
  import { ProductCategoryControl } from '../product-category/ProductCategoryControl.js';
16
15
  import { ProductsControl } from './ProductsControl.js';
17
- import { CATEGORY_TYPES_NAMES, SelectCategoryModal } from './SelectCategoryModal.js';
16
+ import { SelectCategoryModal } from './SelectCategoryModal.js';
18
17
  import { ProductSetLoadingContext } from './context.js';
19
18
  import { VenueMapSetModal } from './VenueMapSetModal.js';
20
19
  import { sortArrayByIndex, moveArrayElements } from '../utils/index.js';
@@ -118,40 +117,6 @@ function _unsupported_iterable_to_array(o, minLen) {
118
117
  if (n === "Map" || n === "Set") return Array.from(n);
119
118
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
120
119
  }
121
- var _obj;
122
- // @TODO not for first release
123
- // import Popover from "./ProductSetFormPopover";
124
- var CATEGORIES_TYPE = (_obj = {}, _define_property(_obj, CATEGORY_TYPES_NAMES.tickets, {
125
- label: 'tickets',
126
- icon: /*#__PURE__*/ jsx(FaTicketAlt, {
127
- color: "#0e8ce2",
128
- size: 10
129
- })
130
- }), _define_property(_obj, CATEGORY_TYPES_NAMES.bookings, {
131
- label: 'bookings',
132
- icon: /*#__PURE__*/ jsx(FaCalendar, {
133
- color: "#0e8ce2",
134
- size: 10
135
- })
136
- }), _define_property(_obj, CATEGORY_TYPES_NAMES.menuItems, {
137
- label: 'menuItems',
138
- icon: /*#__PURE__*/ jsx(FaBars, {
139
- color: "#0e8ce2",
140
- size: 10
141
- })
142
- }), _define_property(_obj, CATEGORY_TYPES_NAMES.game, {
143
- label: 'game',
144
- icon: /*#__PURE__*/ jsx(FaBowlingBall, {
145
- color: "#0e8ce2",
146
- size: 10
147
- })
148
- }), _define_property(_obj, CATEGORY_TYPES_NAMES.fixedDuration, {
149
- label: 'fixedDuration',
150
- icon: /*#__PURE__*/ jsx(FaCalendar, {
151
- color: "#0e8ce2",
152
- size: 10
153
- })
154
- }), _obj);
155
120
  var getCategoryDefaultValue = function(categoryType, sort) {
156
121
  return {
157
122
  id: null,
@@ -285,7 +250,6 @@ function ProductCategoriesControl(param) {
285
250
  var onSetIsExpanded = function() {
286
251
  setIsExpanded(productCategoryId);
287
252
  };
288
- var categoryType = CATEGORIES_TYPE[productCategory.type];
289
253
  return /*#__PURE__*/ jsx(Controller, {
290
254
  name: "".concat(productCategoriesFieldName, ".").concat(index, ".name"),
291
255
  control: control,
@@ -335,16 +299,6 @@ function ProductCategoriesControl(param) {
335
299
  secondaryBadge: getBadgeConfig(productCategory.type, t(productCategory.type)),
336
300
  modalClass: ProductSetModalClasses.category,
337
301
  isNewAdded: showCategoryModal,
338
- itemButton: /*#__PURE__*/ jsxs("div", {
339
- className: "btn-outline-primary item-icon sm border border-primary rounded-sm",
340
- children: [
341
- categoryType.icon,
342
- /*#__PURE__*/ jsx("span", {
343
- className: "ml-2",
344
- children: t(categoryType.label)
345
- })
346
- ]
347
- }),
348
302
  body: /*#__PURE__*/ jsx(ProductCategoryControl, {
349
303
  isLoading: isLoading,
350
304
  onCategoryNameChange: onChange,
@@ -10,13 +10,10 @@ import { SelectItem } from '../../types/generic/SelectItem';
10
10
  export interface WithIsLoading {
11
11
  isLoading: boolean;
12
12
  }
13
- export interface WithIdOptional {
14
- id?: number;
15
- }
16
13
  export interface WithId {
17
14
  id: number;
18
15
  }
19
- export interface ProductSetFormValues extends FormValues, WithIdOptional, ProductSetControlValues {
16
+ export interface ProductSetFormValues extends FormValues, WithId, ProductSetControlValues {
20
17
  steps: Step[];
21
18
  isOverrides?: boolean;
22
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ProductSetForm.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductSetForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAA;AAIzF,OAAO,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAA;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAK3E,OAAO,EAAE,gCAAgC,EAAE,MAAM,oFAAoF,CAAA;AACrI,OAAO,EAAE,IAAI,EAAE,MAAM,wDAAwD,CAAA;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAA;AAGrF,OAAO,EAEL,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAE/B,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAI3D,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,OAAO,CAAA;CACnB;AACD,MAAM,WAAW,cAAc;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAA;CACX;AACD,MAAM,WAAW,oBACf,SAAQ,UAAU,EAChB,cAAc,EACd,uBAAuB;IACzB,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,MAAM,WAAW,mBACf,SAAQ,aAAa,EACnB,uBAAuB;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC,mBAAmB,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAA;IAC3D,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAA;IAC3D,gBAAgB,CAAC,EAAE,UAAU,EAAE,CAAA;IAC/B,YAAY,CAAC,EAAE,WAAW,CAAA;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;IAC5B,4BAA4B,CAAC,EAAE,gCAAgC,CAAC,sBAAsB,CAAC,CAAA;IACvF,KAAK,CAAC,EAAE,IAAI,EAAE,GAAG,IAAI,CAAA;IACrB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAA;IACtB,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,wBAAgB,cAAc,CAAC,EAC7B,WAAW,EACX,SAAS,EACT,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACZ,cAAsB,EACtB,YAAiB,EACjB,4BAA4B,EAC5B,KAAK,EACL,cAAc,EACd,SAAS,EACT,WAAW,EACX,oBAAoB,EACpB,QAAQ,EACR,GAAG,MAAM,EACV,EAAE,mBAAmB,2CAiKrB"}
1
+ {"version":3,"file":"ProductSetForm.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductSetForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAA;AAIzF,OAAO,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAA;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAK3E,OAAO,EAAE,gCAAgC,EAAE,MAAM,oFAAoF,CAAA;AACrI,OAAO,EAAE,IAAI,EAAE,MAAM,wDAAwD,CAAA;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAA;AAGrF,OAAO,EAEL,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAE/B,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAG3D,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,OAAO,CAAA;CACnB;AACD,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAA;CACX;AACD,MAAM,WAAW,oBACf,SAAQ,UAAU,EAChB,MAAM,EACN,uBAAuB;IACzB,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,MAAM,WAAW,mBACf,SAAQ,aAAa,EACnB,uBAAuB;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC,mBAAmB,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAA;IAC3D,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAA;IAC3D,gBAAgB,CAAC,EAAE,UAAU,EAAE,CAAA;IAC/B,YAAY,CAAC,EAAE,WAAW,CAAA;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;IAC5B,4BAA4B,CAAC,EAAE,gCAAgC,CAAC,sBAAsB,CAAC,CAAA;IACvF,KAAK,CAAC,EAAE,IAAI,EAAE,GAAG,IAAI,CAAA;IACrB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAA;IACtB,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,wBAAgB,cAAc,CAAC,EAC7B,WAAW,EACX,SAAS,EACT,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACZ,cAAsB,EACtB,YAAiB,EACjB,4BAA4B,EAC5B,KAAK,EACL,cAAc,EACd,SAAS,EACT,WAAW,EACX,oBAAoB,EACpB,QAAQ,EACR,GAAG,MAAM,EACV,EAAE,mBAAmB,2CA0JrB"}