@licklist/design 0.72.0-dev.6 → 0.72.0-stage.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 (183) hide show
  1. package/dist/affiliate/form/AffiliateForm.d.ts.map +1 -1
  2. package/dist/auth/Authorizer.d.ts.map +1 -1
  3. package/dist/auth/Authorizer.js +1 -2
  4. package/dist/auth/Login/LoginComponent.js +1 -2
  5. package/dist/date-time-button/DateTimeButton.js +4 -1
  6. package/dist/events/edit-event-modal/IntervalInput.d.ts +1 -3
  7. package/dist/events/edit-event-modal/IntervalInput.d.ts.map +1 -1
  8. package/dist/events/edit-event-modal/IntervalInput.js +4 -11
  9. package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts +1 -4
  10. package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts.map +1 -1
  11. package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.js +9 -41
  12. package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.d.ts +1 -2
  13. package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.d.ts.map +1 -1
  14. package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.js +2 -3
  15. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +1 -2
  16. package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
  17. package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +1 -0
  18. package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts +1 -10
  19. package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts.map +1 -1
  20. package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.js +6 -17
  21. package/dist/events/event-card/EventCard.d.ts +1 -2
  22. package/dist/events/event-card/EventCard.d.ts.map +1 -1
  23. package/dist/events/event-card/EventCard.js +2 -11
  24. package/dist/events/event-statistic-modal/EventStatisticModal.d.ts +1 -2
  25. package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
  26. package/dist/events/event-statistic-modal/EventStatisticModal.js +1 -1
  27. package/dist/events/event-statistic-modal/hooks/useTableData.js +0 -1
  28. package/dist/events/event-statistic-modal/utils/index.js +3 -3
  29. package/dist/events/event-venue-map/EventVenueMap.d.ts.map +1 -1
  30. package/dist/events/event-venue-map/EventVenueMap.js +0 -1
  31. package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts.map +1 -1
  32. package/dist/events/event-venue-map/hooks/useCanvasSize.js +4 -11
  33. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts.map +1 -1
  34. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.js +11 -4
  35. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts +1 -1
  36. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
  37. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +1 -2
  38. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.js +2 -2
  39. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +0 -1
  40. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
  41. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
  42. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +0 -13
  43. package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
  44. package/dist/iframe/payment/payment-page/PaymentPage.d.ts.map +1 -1
  45. package/dist/iframe/payment/payment-page/PaymentPage.js +1 -4
  46. package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
  47. package/dist/iframe/ryft/utils/ryft-form.js +5 -4
  48. package/dist/index.js +1 -1
  49. package/dist/layout/DropDown.d.ts +1 -2
  50. package/dist/layout/DropDown.d.ts.map +1 -1
  51. package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
  52. package/dist/notification/email-template/control/EmailTemplateControl.js +0 -3
  53. package/dist/product-set/control/ProductSetControl.js +1 -1
  54. package/dist/product-set/form/ProductSetForm.d.ts +1 -4
  55. package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
  56. package/dist/product-set/form/ProductSetForm.js +1 -1
  57. package/dist/product-set/form/ProductZonesControl.d.ts.map +1 -1
  58. package/dist/product-set/form/ProductZonesControl.js +2 -0
  59. package/dist/product-set/form/ProductsControl.js +1 -2
  60. package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
  61. package/dist/product-set/form/SubProductsControl.js +3 -0
  62. package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
  63. package/dist/product-set/form/VenueMapsControl.js +3 -0
  64. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  65. package/dist/product-set/product/booking-management/ProductBookingManagementControl.d.ts.map +1 -1
  66. package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +0 -6
  67. package/dist/product-set/product/deposit/ProductDepositControl.d.ts.map +1 -1
  68. package/dist/product-set/product/deposit/ProductDepositControl.js +0 -3
  69. package/dist/product-set/product/duration/ProductDurationControl.d.ts.map +1 -1
  70. package/dist/product-set/product/duration/ProductDurationControl.js +0 -6
  71. package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
  72. package/dist/product-set/product/price/ProductPriceControl.js +0 -3
  73. package/dist/product-set/product/quantity/ProductQuantityConstantControl.d.ts.map +1 -1
  74. package/dist/product-set/product/quantity/ProductQuantityConstantControl.js +0 -6
  75. package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
  76. package/dist/product-set/product/quantity/ProductQuantityControl.js +0 -6
  77. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
  78. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +1 -4
  79. package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
  80. package/dist/product-set/product-category/ProductCategoryControl.js +0 -12
  81. package/dist/product-set/utils/index.d.ts +1 -1
  82. package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
  83. package/dist/recurrence-input/RecurrenceEndInput.js +0 -3
  84. package/dist/recurrence-input/RecurrenceInput.d.ts.map +1 -1
  85. package/dist/recurrence-input/RecurrenceInput.js +3 -7
  86. package/dist/recurring-date-picker-input/RecurrenceEndInput.d.ts.map +1 -1
  87. package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
  88. package/dist/resource/form/components/CapacityControl.js +0 -3
  89. package/dist/resource/form/components/SortControl.d.ts.map +1 -1
  90. package/dist/resource/form/components/SortControl.js +0 -3
  91. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  92. package/dist/sales/booking/results/components/ResultCard.js +2 -0
  93. package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
  94. package/dist/sales/coupon/control/CouponFormControl.js +0 -21
  95. package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
  96. package/dist/setting/admin/PaymentFeeForm.js +1 -16
  97. package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
  98. package/dist/setting/dashboard/DashboardSettingForm.js +1 -4
  99. package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
  100. package/dist/static/CurrencyNumberInput.d.ts.map +1 -1
  101. package/dist/static/CurrencyNumberInput.js +0 -3
  102. package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
  103. package/dist/static/form-number-input/FormNumberInput.js +0 -3
  104. package/dist/static/number-input/NumberInput.d.ts.map +1 -1
  105. package/dist/static/number-input/NumberInput.js +0 -3
  106. package/dist/styles/iframe-events/Calendar.scss +1 -1
  107. package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
  108. package/dist/styles/product-set/ProductSetForm.scss +3 -2
  109. package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +3 -1
  110. package/dist/styles/sales/BookingResults.scss +1 -1
  111. package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -1
  112. package/dist/zone/form/components/GameDurationControl.js +0 -3
  113. package/dist/zone/form/components/SortControl.d.ts.map +1 -1
  114. package/dist/zone/form/components/SortControl.js +0 -3
  115. package/package.json +6 -11
  116. package/src/affiliate/form/AffiliateForm.tsx +0 -1
  117. package/src/auth/Authorizer.tsx +0 -1
  118. package/src/auth/Login/LoginComponent.tsx +1 -1
  119. package/src/date-time-button/DateTimeButton.tsx +3 -1
  120. package/src/events/edit-event-modal/IntervalInput.tsx +3 -13
  121. package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +3 -56
  122. package/src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx +4 -12
  123. package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +1 -0
  124. package/src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx +8 -44
  125. package/src/events/event-card/EventCard.tsx +4 -15
  126. package/src/events/event-statistic-modal/EventStatisticModal.tsx +0 -2
  127. package/src/events/event-statistic-modal/hooks/useTableData.tsx +1 -1
  128. package/src/events/event-statistic-modal/utils/index.ts +4 -4
  129. package/src/events/event-venue-map/EventVenueMap.tsx +0 -1
  130. package/src/events/event-venue-map/hooks/useCanvasSize.ts +1 -5
  131. package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.tsx +13 -5
  132. package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +0 -2
  133. package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +2 -2
  134. package/src/iframe/order-process/components/BookingSummary/types/index.ts +0 -1
  135. package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +0 -9
  136. package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +0 -1
  137. package/src/iframe/payment/payment-page/PaymentPage.tsx +10 -8
  138. package/src/iframe/ryft/utils/ryft-form.ts +5 -6
  139. package/src/layout/DropDown.tsx +1 -1
  140. package/src/notification/email-template/control/EmailTemplateControl.tsx +0 -1
  141. package/src/product-set/control/ProductSetControl.tsx +1 -1
  142. package/src/product-set/form/ProductCategoriesControl.tsx +1 -1
  143. package/src/product-set/form/ProductSetForm.tsx +2 -6
  144. package/src/product-set/form/ProductZonesControl.tsx +4 -1
  145. package/src/product-set/form/ProductsControl.tsx +1 -1
  146. package/src/product-set/form/SubProductsControl.tsx +3 -0
  147. package/src/product-set/form/VenueMapsControl.tsx +3 -0
  148. package/src/product-set/product/ProductControl.tsx +1 -0
  149. package/src/product-set/product/advanced-options/AdvancedOptions.tsx +1 -1
  150. package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +0 -2
  151. package/src/product-set/product/deposit/ProductDepositControl.tsx +0 -1
  152. package/src/product-set/product/duration/ProductDurationControl.tsx +0 -2
  153. package/src/product-set/product/price/ProductPriceControl.tsx +0 -1
  154. package/src/product-set/product/quantity/ProductQuantityConstantControl.tsx +0 -2
  155. package/src/product-set/product/quantity/ProductQuantityControl.tsx +0 -2
  156. package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +0 -1
  157. package/src/product-set/product-category/ProductCategoryControl.tsx +0 -4
  158. package/src/product-set/product-zone/ProductZoneControl.tsx +1 -1
  159. package/src/recurrence-input/RecurrenceEndInput.tsx +0 -1
  160. package/src/recurrence-input/RecurrenceInput.tsx +6 -10
  161. package/src/recurring-date-picker-input/RecurrenceEndInput.tsx +0 -1
  162. package/src/resource/form/components/CapacityControl.tsx +0 -1
  163. package/src/resource/form/components/SortControl.tsx +0 -1
  164. package/src/sales/booking/results/components/ResultCard.tsx +2 -0
  165. package/src/sales/coupon/control/CouponFormControl.tsx +0 -7
  166. package/src/setting/admin/PaymentFeeForm.tsx +0 -5
  167. package/src/setting/dashboard/DashboardSettingForm.tsx +0 -1
  168. package/src/sortable-tree/SortableTreeItem.tsx +7 -1
  169. package/src/static/CurrencyNumberInput.tsx +0 -1
  170. package/src/static/form-number-input/FormNumberInput.tsx +0 -1
  171. package/src/static/number-input/NumberInput.tsx +0 -1
  172. package/src/styles/iframe-events/Calendar.scss +1 -1
  173. package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
  174. package/src/styles/product-set/ProductSetForm.scss +3 -2
  175. package/src/styles/ryft-payment-form/RyftPaymentForm.scss +3 -1
  176. package/src/styles/sales/BookingResults.scss +1 -1
  177. package/src/zone/form/components/GameDurationControl.tsx +0 -1
  178. package/src/zone/form/components/SortControl.tsx +0 -1
  179. package/yarn.lock +397 -409
  180. package/dist/events/edit-event-modal/utils/checkIfEventBooked.d.ts +0 -5
  181. package/dist/events/edit-event-modal/utils/checkIfEventBooked.d.ts.map +0 -1
  182. package/dist/events/edit-event-modal/utils/checkIfEventBooked.js +0 -27
  183. package/src/events/edit-event-modal/utils/checkIfEventBooked.ts +0 -44
@@ -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"}
@@ -1 +1 @@
1
- {"version":3,"file":"Authorizer.d.ts","sourceRoot":"","sources":["../../src/auth/Authorizer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAoC,MAAM,OAAO,CAAA;AASnE,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;CACnC;AAED,iBAAS,UAAU,CAAC,KAAK,EAAE,eAAe,2CA2EzC;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
1
+ {"version":3,"file":"Authorizer.d.ts","sourceRoot":"","sources":["../../src/auth/Authorizer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAoC,MAAM,OAAO,CAAA;AASnE,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;CACnC;AAED,iBAAS,UAAU,CAAC,KAAK,EAAE,eAAe,2CA0EzC;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -98,8 +98,7 @@ function Authorizer(props) {
98
98
  ROUTES.TERMS_PAGE,
99
99
  ROUTES.PRIVACY_FACTS_PAGE,
100
100
  ROUTES.CHANGE_PASSWORD,
101
- ROUTES.FORGOT_PASSWORD,
102
- ROUTES.SSO_LOGIN
101
+ ROUTES.FORGOT_PASSWORD
103
102
  ].concat(_to_consumable_array(matchedPathPatternUrls())).includes(RouteService.getCurrentPage())) {
104
103
  setIsValidated(function() {
105
104
  return true;
@@ -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) {
@@ -14,7 +14,7 @@ var DateTimeButton = function(param) {
14
14
  var date = param.date, _isDisabled = param.isDisabled, isSelected = param.isSelected, _isSoldOut = param.isSoldOut, onSelect = param.onSelect, price = param.price, resources = param.resources, showResources = param.showResources, _param_variant = param.variant, variant = _param_variant === void 0 ? "week" : _param_variant, availabilityFormat = param.availabilityFormat;
15
15
  var isSoldOut = _isSoldOut || resources && resources.bookedResources >= resources.totalResources;
16
16
  var isTimeVariant = variant === "time";
17
- var isPast = isPastDate(date);
17
+ var isPast = variant === "time" ? isPastTime(date) : isPastDate(date);
18
18
  var isDisabled = _isDisabled || isSoldOut || isPast;
19
19
  var isUnavailable = _isDisabled || isPast;
20
20
  return /*#__PURE__*/ jsxs("button", {
@@ -45,6 +45,9 @@ var DateTimeButton = function(param) {
45
45
  ]
46
46
  });
47
47
  };
48
+ var isPastTime = function(date) {
49
+ return DateTime.now() > date;
50
+ };
48
51
  var isPastDate = function(date) {
49
52
  return DateTime.now() > date.set({
50
53
  hour: 23,
@@ -5,14 +5,12 @@ interface IntervalInputProps {
5
5
  productSets?: ProductSet[];
6
6
  productSetId?: number;
7
7
  disabled?: boolean;
8
- disabledRecurrent?: boolean;
9
- isCopyCreate?: boolean;
10
8
  }
11
9
  export interface IntervalInputValues {
12
10
  start: string;
13
11
  end: string;
14
12
  rrule: string | null;
15
13
  }
16
- export declare function IntervalInput({ disabled, editedProductSet, productSetId, productSets, disabledRecurrent, isCopyCreate }: IntervalInputProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare function IntervalInput({ disabled, editedProductSet, productSetId, productSets, }: IntervalInputProps): import("react/jsx-runtime").JSX.Element;
17
15
  export {};
18
16
  //# sourceMappingURL=IntervalInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IntervalInput.d.ts","sourceRoot":"","sources":["../../../src/events/edit-event-modal/IntervalInput.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AAIxF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAG7D,UAAU,kBAAkB;IAC1B,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;IACvC,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB;AAED,wBAAgB,aAAa,CAAC,EAC5B,QAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,iBAAyB,EACzB,YAAoB,EACrB,EAAE,kBAAkB,2CAkKpB"}
1
+ {"version":3,"file":"IntervalInput.d.ts","sourceRoot":"","sources":["../../../src/events/edit-event-modal/IntervalInput.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AAIxF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAG7D,UAAU,kBAAkB;IAC1B,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;IACvC,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB;AAED,wBAAgB,aAAa,CAAC,EAC5B,QAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,WAAW,GACZ,EAAE,kBAAkB,2CA4JpB"}
@@ -110,7 +110,7 @@ function _unsupported_iterable_to_array(o, minLen) {
110
110
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
111
111
  }
112
112
  function IntervalInput(param) {
113
- var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, editedProductSet = param.editedProductSet, productSetId = param.productSetId, productSets = param.productSets, _param_disabledRecurrent = param.disabledRecurrent, disabledRecurrent = _param_disabledRecurrent === void 0 ? false : _param_disabledRecurrent, _param_isCopyCreate = param.isCopyCreate, isCopyCreate = _param_isCopyCreate === void 0 ? false : _param_isCopyCreate;
113
+ var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, editedProductSet = param.editedProductSet, productSetId = param.productSetId, productSets = param.productSets;
114
114
  var _errors_start, _errors_end;
115
115
  var t = useTranslation([
116
116
  'Design',
@@ -138,6 +138,7 @@ function IntervalInput(param) {
138
138
  var endDateInput = useRef(null);
139
139
  var updateEndDate = function(param) {
140
140
  var _param_target = param.target, nextStartDate = _param_target.value;
141
+ setRecurrent(false);
141
142
  setValue('start', nextStartDate);
142
143
  if (DateTime.fromISO(end).diff(DateTime.fromISO(nextStartDate)).toMillis() < 0) {
143
144
  setValue('end', nextStartDate);
@@ -152,14 +153,6 @@ function IntervalInput(param) {
152
153
  }, [
153
154
  editedProductSet
154
155
  ]);
155
- useEffect(function() {
156
- if (!isCopyCreate) return;
157
- setRecurrent(false);
158
- setValue('rrule', null);
159
- // eslint-disable-next-line react-hooks/exhaustive-deps
160
- }, [
161
- isCopyCreate
162
- ]);
163
156
  useEffect(function() {
164
157
  if (!productSets) return;
165
158
  var isOverridenProductSet = productSets.find(function(productSet) {
@@ -264,7 +257,7 @@ function IntervalInput(param) {
264
257
  var checked = param.target.checked;
265
258
  onChangeRecurrent(checked);
266
259
  },
267
- disabled: disabled || Boolean(editedProductSet) || disabledRecurrent
260
+ disabled: disabled || Boolean(editedProductSet)
268
261
  }),
269
262
  !recurrent && /*#__PURE__*/ jsx(Form.Text, {
270
263
  muted: true,
@@ -290,7 +283,7 @@ function IntervalInput(param) {
290
283
  minDate: DateTime.fromISO(start).plus({
291
284
  day: 1
292
285
  }).toFormat('yyyy-MM-dd'),
293
- disabled: disabled || disabledRecurrent
286
+ disabled: disabled
294
287
  });
295
288
  }
296
289
  })
@@ -36,9 +36,6 @@ export interface EditEventFormProps extends HasPermissionProp {
36
36
  timeZone: string;
37
37
  eventProductSet?: ProductSet;
38
38
  overrideNameError?: string;
39
- disabledRecurrent?: boolean;
40
- isCopyCreate?: boolean;
41
- isBooked?: boolean;
42
39
  }
43
- export declare const EditEventForm: ({ disabled, categories, title, hasPermission, defaultEventValues, serverErrors, onSaveEvent, productSets, createProductSet, setEditProductSetId, isExternalPaymentLinkEnabled, timeZone, eventProductSet, overrideNameError, disabledRecurrent, isCopyCreate, isBooked, }: EditEventFormProps) => import("react/jsx-runtime").JSX.Element;
40
+ export declare const EditEventForm: ({ disabled, categories, title, hasPermission, defaultEventValues, serverErrors, onSaveEvent, productSets, createProductSet, setEditProductSetId, isExternalPaymentLinkEnabled, timeZone, eventProductSet, overrideNameError, }: EditEventFormProps) => import("react/jsx-runtime").JSX.Element;
44
41
  //# sourceMappingURL=EditEventForm.d.ts.map
@@ -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,CAAA;AAO7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAGtF,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAG3E,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AAExF,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAS5D,OAAO,EAAiB,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAGxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAA;AAKlF,MAAM,WAAW,mBAAoB,SAAQ,mBAAmB;IAC9D,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC,OAAO,EAAE,OAAO,GAAG,MAAM,CAAA;IACzB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAA;IACtB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;CACxC;AAED,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,aAAa,EAAE,CAAA;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,kBAAkB,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAA;IACjD,YAAY,CAAC,EAAE,WAAW,CAAA;IAC1B,WAAW,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAA;IAClD,WAAW,CAAC,EAAE,UAAU,EAAE,GAAG,IAAI,CAAA;IACjC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,gBAAgB,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAA;IACtD,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5C,4BAA4B,CAAC,EAAE,OAAO,CAAA;IACtC,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,CAAC,EAAE,UAAU,CAAA;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAOD,eAAO,MAAM,aAAa,8QAkBvB,kBAAkB,4CAiYpB,CAAA"}
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,CAAA;AAM7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAGtF,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAG3E,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAS5D,OAAO,EAAiB,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAGxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAA;AAGlF,MAAM,WAAW,mBAAoB,SAAQ,mBAAmB;IAC9D,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC,OAAO,EAAE,OAAO,GAAG,MAAM,CAAA;IACzB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAA;IACtB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;CACxC;AAED,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,aAAa,EAAE,CAAA;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,kBAAkB,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAA;IACjD,YAAY,CAAC,EAAE,WAAW,CAAA;IAC1B,WAAW,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAA;IAClD,WAAW,CAAC,EAAE,UAAU,EAAE,GAAG,IAAI,CAAA;IACjC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,gBAAgB,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAA;IACtD,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5C,4BAA4B,CAAC,EAAE,OAAO,CAAA;IACtC,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,CAAC,EAAE,UAAU,CAAA;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAOD,eAAO,MAAM,aAAa,mOAevB,kBAAkB,4CAwVpB,CAAA"}
@@ -3,7 +3,6 @@ import { useState, useCallback, useEffect } from 'react';
3
3
  import { IMAGE_TYPE_MAP, IMAGE_TYPE_IMAGE, IMAGE_TYPE_COVER } from '@licklist/core/dist/DataMapper/Media/ImageDataMapper';
4
4
  import { useId } from '@react-aria/utils';
5
5
  import { Modal, Form, Accordion, Button } from 'react-bootstrap';
6
- import { isEqual } from 'lodash';
7
6
  import { useForm, FormProvider, Controller } from 'react-hook-form';
8
7
  import { DateTime } from 'luxon';
9
8
  import { useTranslation } from 'react-i18next';
@@ -11,9 +10,6 @@ import { useMultipleImages } from '@licklist/plugins/dist/hooks/Media/useMultipl
11
10
  import FormErrorService from '@licklist/plugins/dist/services/Form/FormErrorService';
12
11
  import { scrollToError } from '@licklist/plugins/dist/utils/ScrollUtils';
13
12
  import { getFirstErrorKey } from '@licklist/plugins/dist/utils/FormValues';
14
- import { ConfirmModal } from '../../../../modals/confirmation/ConfirmModal.js';
15
- import { Dialog } from '../../../../modals/dialog/Dialog.js';
16
- import { useDialogContext } from '../../../../modals/dialog/DialogContext.js';
17
13
  import { SaleDeadline } from '../SaleDeadline/SaleDeadline.js';
18
14
  import { CategoriesInput } from '../../../../provider/categories-input/CategoriesInput.js';
19
15
  import { CategoriesInputDescription } from '../../../../provider/categories-input/CategoriesInputDescription.js';
@@ -36,8 +32,9 @@ import { TipTapEditor } from '../../../../tiptap-editor/TipTapEditor.js';
36
32
  import { FileUpload } from '../../../../file-upload/FileUpload.js';
37
33
  import { IntervalInput } from '../../IntervalInput.js';
38
34
  import { SelectEventProductSet } from '../SelectEventProductSet/SelectEventProductSet.js';
35
+ import { Dialog } from '../../../../modals/dialog/Dialog.js';
36
+ import { useDialogContext } from '../../../../modals/dialog/DialogContext.js';
39
37
  import { isUrlValid } from '../../utils/isUrlValid.js';
40
- import { toSimpleDateTime } from '../../utils/checkIfEventBooked.js';
41
38
 
42
39
  /* eslint-disable react-hooks/exhaustive-deps */ function _array_like_to_array(arr, len) {
43
40
  if (len == null || len > arr.length) len = arr.length;
@@ -142,8 +139,8 @@ var eventImageTypes = {
142
139
  uploadCover: IMAGE_TYPE_MAP[IMAGE_TYPE_COVER]
143
140
  };
144
141
  var EditEventForm = function(param) {
145
- var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, categories = param.categories, title = param.title, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission, defaultEventValues = param.defaultEventValues, serverErrors = param.serverErrors, onSaveEvent = param.onSaveEvent, productSets = param.productSets, createProductSet = param.createProductSet, setEditProductSetId = param.setEditProductSetId, isExternalPaymentLinkEnabled = param.isExternalPaymentLinkEnabled, timeZone = param.timeZone, eventProductSet = param.eventProductSet, overrideNameError = param.overrideNameError, _param_disabledRecurrent = param.disabledRecurrent, disabledRecurrent = _param_disabledRecurrent === void 0 ? false : _param_disabledRecurrent, _param_isCopyCreate = param.isCopyCreate, isCopyCreate = _param_isCopyCreate === void 0 ? false : _param_isCopyCreate, _param_isBooked = param.isBooked, isBooked = _param_isBooked === void 0 ? false : _param_isBooked;
146
- var _defaultEventValues_rrule, _defaultEventValues_rrule1, _errors_name, _errors_externalPaymentLink, _errors_integrationUrl;
142
+ var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, categories = param.categories, title = param.title, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission, defaultEventValues = param.defaultEventValues, serverErrors = param.serverErrors, onSaveEvent = param.onSaveEvent, productSets = param.productSets, createProductSet = param.createProductSet, setEditProductSetId = param.setEditProductSetId, isExternalPaymentLinkEnabled = param.isExternalPaymentLinkEnabled, timeZone = param.timeZone, eventProductSet = param.eventProductSet, overrideNameError = param.overrideNameError;
143
+ var _errors_name, _errors_externalPaymentLink, _errors_integrationUrl;
147
144
  var t = useTranslation([
148
145
  'Design',
149
146
  'Validation'
@@ -163,9 +160,7 @@ var EditEventForm = function(param) {
163
160
  var visible = watch('visible');
164
161
  var editedProductSet = watch('editedProductSet');
165
162
  var productSetId = watch('productSetId');
166
- var rrule = watch('rrule');
167
163
  var _useMultipleImages = useMultipleImages(initialImages), images = _useMultipleImages.images, handleImageRemove = _useMultipleImages.handleImageRemove, handleImageUploading = _useMultipleImages.handleImageUploading, isImagesLoading = _useMultipleImages.isImagesLoading, isCoverImagesLoading = _useMultipleImages.isCoverImagesLoading;
168
- var watchedValues = watch();
169
164
  var onErrorSubmit = function(submitErrors) {
170
165
  scrollToError(getFirstErrorKey(submitErrors));
171
166
  };
@@ -214,17 +209,6 @@ var EditEventForm = function(param) {
214
209
  };
215
210
  // eslint-disable-next-line react-hooks/exhaustive-deps
216
211
  }, []);
217
- var defaultExDate = (defaultEventValues === null || defaultEventValues === void 0 ? void 0 : (_defaultEventValues_rrule = defaultEventValues.rrule) === null || _defaultEventValues_rrule === void 0 ? void 0 : _defaultEventValues_rrule.includes('EXDATE')) ? defaultEventValues === null || defaultEventValues === void 0 ? void 0 : (_defaultEventValues_rrule1 = defaultEventValues.rrule) === null || _defaultEventValues_rrule1 === void 0 ? void 0 : _defaultEventValues_rrule1.split(';EXDATE=')[1] : '';
218
- useEffect(function() {
219
- if (!defaultExDate || (rrule === null || rrule === void 0 ? void 0 : rrule.includes('EXDATE'))) return;
220
- rrule && setValue('rrule', rrule === null || rrule === void 0 ? void 0 : rrule.concat(";EXDATE=".concat(defaultExDate)));
221
- }, [
222
- defaultExDate,
223
- rrule
224
- ]);
225
- var isChanged = !isEqual(watchedValues, sanitizeDefaultValues(defaultEventValues));
226
- var isChangedTime = (watchedValues === null || watchedValues === void 0 ? void 0 : watchedValues.start) !== toSimpleDateTime((defaultEventValues === null || defaultEventValues === void 0 ? void 0 : defaultEventValues.startAt) || '') || (watchedValues === null || watchedValues === void 0 ? void 0 : watchedValues.end) !== toSimpleDateTime((defaultEventValues === null || defaultEventValues === void 0 ? void 0 : defaultEventValues.endAt) || '');
227
- var isSinglEventWithBooked = !rrule && isBooked && isChangedTime;
228
212
  return /*#__PURE__*/ jsxs(Fragment, {
229
213
  children: [
230
214
  /*#__PURE__*/ jsx(Dialog, {
@@ -321,9 +305,7 @@ var EditEventForm = function(param) {
321
305
  disabled: disabled,
322
306
  productSetId: productSetId,
323
307
  productSets: productSets,
324
- disabledRecurrent: disabledRecurrent,
325
- editedProductSet: editedProductSet,
326
- isCopyCreate: isCopyCreate
308
+ editedProductSet: editedProductSet
327
309
  }, watch('name')),
328
310
  categories.length !== 0 && /*#__PURE__*/ jsx(Form.Group, {
329
311
  children: /*#__PURE__*/ jsx(Accordion, {
@@ -488,22 +470,8 @@ var EditEventForm = function(param) {
488
470
  eventProductSet: eventProductSet,
489
471
  overrideNameError: overrideNameError
490
472
  }),
491
- isSinglEventWithBooked && /*#__PURE__*/ jsx(ConfirmModal, {
492
- content: t('App:confirmChangeEventDate'),
493
- children: function(confirm) {
494
- return /*#__PURE__*/ jsx(Button, {
495
- disabled: disabled || formState.isSubmitting || !isChanged || isImagesLoading || isCoverImagesLoading,
496
- className: "save-event",
497
- type: "button",
498
- onClick: function() {
499
- return confirm(handleSubmit(onSaveEvent, onErrorSubmit));
500
- },
501
- children: formState.isSubmitting ? "".concat(t('saveAndAdd'), "...") : t('saveAndAdd')
502
- });
503
- }
504
- }),
505
- hasPermission && !showEditProductSet && !isSinglEventWithBooked && /*#__PURE__*/ jsx(Button, {
506
- disabled: disabled || formState.isSubmitting || !isChanged || isImagesLoading || isCoverImagesLoading,
473
+ hasPermission && !showEditProductSet && /*#__PURE__*/ jsx(Button, {
474
+ disabled: disabled || formState.isSubmitting || isImagesLoading || isCoverImagesLoading,
507
475
  className: "save-event",
508
476
  type: "submit",
509
477
  children: formState.isSubmitting ? "".concat(t('saveAndAdd'), "...") : t('saveAndAdd')
@@ -528,7 +496,7 @@ var sanitizeDefaultValues = function(values) {
528
496
  suppressSeconds: true
529
497
  });
530
498
  };
531
- var _values_name, _values_description, _values_startAt, _values_endAt, _values_rrule, _values_categories, _values_termsAndConditions, _values_visible, _values_externalPaymentLink, _values_images, _values_integrationUrl, _values_recurrenceEndAt;
499
+ var _values_name, _values_description, _values_startAt, _values_endAt, _values_rrule, _values_categories, _values_termsAndConditions, _values_visible, _values_externalPaymentLink, _values_integrationUrl, _values_recurrenceEndAt;
532
500
  return {
533
501
  name: (_values_name = values === null || values === void 0 ? void 0 : values.name) !== null && _values_name !== void 0 ? _values_name : '',
534
502
  description: (_values_description = values === null || values === void 0 ? void 0 : values.description) !== null && _values_description !== void 0 ? _values_description : '',
@@ -540,7 +508,7 @@ var sanitizeDefaultValues = function(values) {
540
508
  visible: (_values_visible = values === null || values === void 0 ? void 0 : values.visible) !== null && _values_visible !== void 0 ? _values_visible : '',
541
509
  externalPaymentLink: (_values_externalPaymentLink = values === null || values === void 0 ? void 0 : values.externalPaymentLink) !== null && _values_externalPaymentLink !== void 0 ? _values_externalPaymentLink : '',
542
510
  productSetId: values === null || values === void 0 ? void 0 : values.productSetId,
543
- images: (_values_images = values === null || values === void 0 ? void 0 : values.images) !== null && _values_images !== void 0 ? _values_images : [],
511
+ images: values === null || values === void 0 ? void 0 : values.images,
544
512
  saleDeadline: values === null || values === void 0 ? void 0 : values.saleDeadline,
545
513
  integrationUrl: (_values_integrationUrl = values === null || values === void 0 ? void 0 : values.integrationUrl) !== null && _values_integrationUrl !== void 0 ? _values_integrationUrl : '',
546
514
  recurrenceEndAt: (_values_recurrenceEndAt = values === null || values === void 0 ? void 0 : values.recurrenceEndAt) !== null && _values_recurrenceEndAt !== void 0 ? _values_recurrenceEndAt : undefined
@@ -2,10 +2,9 @@ export declare const SALE_DEADLINE_NAME_CATEGORY = "saleDeadlineCategory";
2
2
  export declare const SALE_DEADLINE_NAME = "saleDeadline";
3
3
  export declare const DEADLINE_NAME: readonly ["saleDeadlineCategory", "saleDeadline"];
4
4
  export type DeadLineNameType = (typeof DEADLINE_NAME)[number];
5
- export declare const SaleDeadline: ({ disabled, onlyBefore, isProductSet, deadLineCategory, }: {
5
+ export declare const SaleDeadline: ({ disabled, onlyBefore, deadLineCategory, }: {
6
6
  disabled?: boolean;
7
7
  onlyBefore?: boolean;
8
- isProductSet?: boolean;
9
8
  deadLineCategory?: string;
10
9
  }) => import("react/jsx-runtime").JSX.Element;
11
10
  //# sourceMappingURL=SaleDeadline.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SaleDeadline.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,2BAA2B,yBAAyB,CAAA;AACjE,eAAO,MAAM,kBAAkB,iBAAiB,CAAA;AAWhD,eAAO,MAAM,aAAa,mDAGhB,CAAA;AAEV,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAA;AAU7D,eAAO,MAAM,YAAY,8DAKtB;IACD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B,4CAoKA,CAAA"}
1
+ {"version":3,"file":"SaleDeadline.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,2BAA2B,yBAAyB,CAAA;AACjE,eAAO,MAAM,kBAAkB,iBAAiB,CAAA;AAWhD,eAAO,MAAM,aAAa,mDAGhB,CAAA;AAEV,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAA;AAU7D,eAAO,MAAM,YAAY,gDAItB;IACD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B,4CA8JA,CAAA"}
@@ -67,7 +67,7 @@ var SALE_DEADLINES_EVENT_START_TYPES = [
67
67
  }
68
68
  ];
69
69
  var SaleDeadline = function(param) {
70
- var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, _param_onlyBefore = param.onlyBefore, onlyBefore = _param_onlyBefore === void 0 ? false : _param_onlyBefore, _param_isProductSet = param.isProductSet, isProductSet = _param_isProductSet === void 0 ? false : _param_isProductSet, deadLineCategory = param.deadLineCategory;
70
+ var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, _param_onlyBefore = param.onlyBefore, onlyBefore = _param_onlyBefore === void 0 ? false : _param_onlyBefore, deadLineCategory = param.deadLineCategory;
71
71
  var _errors_root;
72
72
  var t = useTranslation([
73
73
  'Design'
@@ -133,10 +133,9 @@ var SaleDeadline = function(param) {
133
133
  name: "sale-deadline",
134
134
  options: SALE_DEADLINES_EVENT_START_TYPES.map(function(param) {
135
135
  var type = param.type;
136
- var salesDeadlineTitle = type === SALE_DEADLINE_BEFORE_TYPE && isProductSet ? 'beforeProductSet' : type;
137
136
  return {
138
137
  id: type,
139
- value: t("Design:".concat(salesDeadlineTitle))
138
+ value: t("Design:".concat(type))
140
139
  };
141
140
  }),
142
141
  value: deadlineType,
@@ -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';
@@ -34,7 +34,6 @@ import 'react-bootstrap/Collapse';
34
34
  import '@licklist/plugins/dist/hooks/Media/useImages';
35
35
  import '@licklist/core/dist/DataMapper/Media/ImageDataMapper';
36
36
  import 'react-select';
37
- import '@licklist/plugins';
38
37
  import '@licklist/plugins/dist/context/app/hooks/useNotification';
39
38
  import '../../../../../static/index.js';
40
39
  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,oBAuCD,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,oBAwCD,CAAA"}
@@ -136,6 +136,7 @@ var getDefaultValues = function(productSet, hasNoRecurrences) {
136
136
  subProducts: subProducts === null || subProducts === void 0 ? void 0 : subProducts.map(function(_param) {
137
137
  var subProducts = _extends({}, _object_destructuring_empty(_param));
138
138
  return _object_spread_props(_object_spread({}, subProducts), {
139
+ originalProductId: null,
139
140
  productCategoryId: undefined
140
141
  });
141
142
  }),
@@ -1,4 +1,3 @@
1
- import { EventWithMetadata } from '@licklist/plugins';
2
1
  export declare const MODE_THIS_EVENT = "thisEvent";
3
2
  export declare const MODE_THIS_AND_FOLLOWING_EVENTS = "thisAndFollowingEvents";
4
3
  export declare const MODE_ALL_EVENTS = "allEvents";
@@ -9,9 +8,6 @@ export declare const RECURRENT_MODE_TYPES_LIST: {
9
8
  thisAndFollowingEvents: number;
10
9
  allEvents: number;
11
10
  };
12
- export declare const RECURRENT_MODE_TYPES_WITHOUT_ALL: {
13
- thisEvent: number;
14
- };
15
11
  export type RecurrentEventMode = (typeof MODES)[number];
16
12
  export type EditRecurrentEventModalValues = {
17
13
  mode: RecurrentEventMode;
@@ -22,12 +18,7 @@ export type EditRecurrentEventModalProps = {
22
18
  onHide: () => void;
23
19
  title: string;
24
20
  onSubmit: (values: EditRecurrentEventModalValues) => void;
25
- isDateWasChanged?: boolean;
26
- isChangeDateOrTime?: boolean;
27
- event?: EventWithMetadata;
28
- date?: string;
29
- isRemoveModal?: boolean;
30
21
  };
31
- export declare const EditRecurrentEventModal: ({ disabled, isOpen, onHide, title, onSubmit, isDateWasChanged, isChangeDateOrTime, event, date, isRemoveModal, }: EditRecurrentEventModalProps) => import("react/jsx-runtime").JSX.Element;
22
+ export declare const EditRecurrentEventModal: ({ disabled, isOpen, onHide, title, onSubmit, }: EditRecurrentEventModalProps) => import("react/jsx-runtime").JSX.Element;
32
23
  export {};
33
24
  //# sourceMappingURL=EditRecurrentEventModal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EditRecurrentEventModal.d.ts","sourceRoot":"","sources":["../../../src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAGrD,eAAO,MAAM,eAAe,cAAc,CAAA;AAC1C,eAAO,MAAM,8BAA8B,2BAA2B,CAAA;AACtE,eAAO,MAAM,eAAe,cAAc,CAAA;AAE1C,QAAA,MAAM,KAAK,+DAID,CAAA;AAEV,eAAO,MAAM,2BAA2B,cAAkB,CAAA;AAE1D,eAAO,MAAM,yBAAyB;;;;CAIrC,CAAA;AAED,eAAO,MAAM,gCAAgC;;CAE5C,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,CAAA;AAEvD,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,EAAE,kBAAkB,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,OAAO,CAAA;IACf,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,MAAM,EAAE,6BAA6B,KAAK,IAAI,CAAA;IACzD,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,KAAK,CAAC,EAAE,iBAAiB,CAAA;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,uBAAuB,qHAWjC,4BAA4B,4CAoG9B,CAAA"}
1
+ {"version":3,"file":"EditRecurrentEventModal.d.ts","sourceRoot":"","sources":["../../../src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe,cAAc,CAAA;AAC1C,eAAO,MAAM,8BAA8B,2BAA2B,CAAA;AACtE,eAAO,MAAM,eAAe,cAAc,CAAA;AAE1C,QAAA,MAAM,KAAK,+DAID,CAAA;AAEV,eAAO,MAAM,2BAA2B,cAAkB,CAAA;AAE1D,eAAO,MAAM,yBAAyB;;;;CAIrC,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,CAAA;AAEvD,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,EAAE,kBAAkB,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,OAAO,CAAA;IACf,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,MAAM,EAAE,6BAA6B,KAAK,IAAI,CAAA;CAC1D,CAAA;AAED,eAAO,MAAM,uBAAuB,mDAMjC,4BAA4B,4CAgF9B,CAAA"}
@@ -3,7 +3,6 @@ import { Modal, Form, Button } from 'react-bootstrap';
3
3
  import { useTranslation } from 'react-i18next';
4
4
  import { useForm, Controller } from 'react-hook-form';
5
5
  import { FaTimes } from 'react-icons/fa';
6
- import { checkIfEventIsBooked } from '../edit-event-modal/utils/checkIfEventBooked.js';
7
6
 
8
7
  function _define_property(obj, key, value) {
9
8
  if (key in obj) {
@@ -24,19 +23,14 @@ var MODE_ALL_EVENTS = 'allEvents';
24
23
  var DEFAULT_RECURRENT_MODE_TYPE = MODE_THIS_EVENT;
25
24
  var _obj;
26
25
  var RECURRENT_MODE_TYPES_LIST = (_obj = {}, _define_property(_obj, MODE_THIS_EVENT, 1), _define_property(_obj, MODE_THIS_AND_FOLLOWING_EVENTS, 2), _define_property(_obj, MODE_ALL_EVENTS, 3), _obj);
27
- var RECURRENT_MODE_TYPES_WITHOUT_ALL = _define_property({}, MODE_THIS_EVENT, 1);
28
26
  var EditRecurrentEventModal = function(param) {
29
- var disabled = param.disabled, isOpen = param.isOpen, onHide = param.onHide, title = param.title, onSubmit = param.onSubmit, _param_isDateWasChanged = param.isDateWasChanged, isDateWasChanged = _param_isDateWasChanged === void 0 ? false : _param_isDateWasChanged, _param_isChangeDateOrTime = param.isChangeDateOrTime, isChangeDateOrTime = _param_isChangeDateOrTime === void 0 ? false : _param_isChangeDateOrTime, event = param.event, date = param.date, _param_isRemoveModal = param.isRemoveModal, isRemoveModal = _param_isRemoveModal === void 0 ? false : _param_isRemoveModal;
27
+ var disabled = param.disabled, isOpen = param.isOpen, onHide = param.onHide, title = param.title, onSubmit = param.onSubmit;
30
28
  var t = useTranslation('Design').t;
31
29
  var _useForm = useForm({
32
30
  defaultValues: {
33
31
  mode: DEFAULT_RECURRENT_MODE_TYPE
34
32
  }
35
- }), control = _useForm.control, watch = _useForm.watch, handleSubmit = _useForm.handleSubmit;
36
- var activityMode = watch('mode');
37
- var isBooked = checkIfEventIsBooked(event, date, activityMode);
38
- var recurrentListMode = isDateWasChanged ? RECURRENT_MODE_TYPES_WITHOUT_ALL : RECURRENT_MODE_TYPES_LIST;
39
- var confirmDescription = isChangeDateOrTime && isBooked || isBooked && isRemoveModal;
33
+ }), control = _useForm.control, handleSubmit = _useForm.handleSubmit;
40
34
  return /*#__PURE__*/ jsx(Modal, {
41
35
  show: isOpen,
42
36
  onHide: onHide,
@@ -65,11 +59,6 @@ var EditRecurrentEventModal = function(param) {
65
59
  })
66
60
  ]
67
61
  }),
68
- confirmDescription && /*#__PURE__*/ jsx(Modal.Dialog, {
69
- className: "pl-4",
70
- contentClassName: "border-0",
71
- children: t(isRemoveModal ? 'App:confirmRemoveEventWithBooking' : 'App:confirmChangeEventDate')
72
- }),
73
62
  /*#__PURE__*/ jsx(Modal.Body, {
74
63
  className: "p-0 ml-4",
75
64
  children: /*#__PURE__*/ jsx(Form.Group, {
@@ -78,7 +67,7 @@ var EditRecurrentEventModal = function(param) {
78
67
  render: function(param) {
79
68
  var _param_field = param.field, value = _param_field.value, onChange = _param_field.onChange;
80
69
  return /*#__PURE__*/ jsx(Fragment, {
81
- children: Object.keys(recurrentListMode).map(function(option) {
70
+ children: Object.keys(RECURRENT_MODE_TYPES_LIST).map(function(option) {
82
71
  return /*#__PURE__*/ jsxs(Form.Check, {
83
72
  type: "radio",
84
73
  id: option,
@@ -115,14 +104,14 @@ var EditRecurrentEventModal = function(param) {
115
104
  onClick: onHide,
116
105
  className: "text-decoration-none",
117
106
  disabled: disabled,
118
- children: t(confirmDescription ? 'App:cancelChangeDate' : 'cancel')
107
+ children: t('cancel')
119
108
  }),
120
109
  /*#__PURE__*/ jsx(Button, {
121
110
  variant: "success",
122
111
  type: "submit",
123
112
  className: "text-decoration-none",
124
113
  disabled: disabled,
125
- children: t(confirmDescription ? 'App:saveChangeDate' : 'OK')
114
+ children: t('ok').toUpperCase()
126
115
  })
127
116
  ]
128
117
  })
@@ -131,4 +120,4 @@ var EditRecurrentEventModal = function(param) {
131
120
  });
132
121
  };
133
122
 
134
- export { DEFAULT_RECURRENT_MODE_TYPE, EditRecurrentEventModal, MODE_ALL_EVENTS, MODE_THIS_AND_FOLLOWING_EVENTS, MODE_THIS_EVENT, RECURRENT_MODE_TYPES_LIST, RECURRENT_MODE_TYPES_WITHOUT_ALL };
123
+ export { DEFAULT_RECURRENT_MODE_TYPE, EditRecurrentEventModal, MODE_ALL_EVENTS, MODE_THIS_AND_FOLLOWING_EVENTS, MODE_THIS_EVENT, RECURRENT_MODE_TYPES_LIST };
@@ -16,7 +16,6 @@ export interface EventCardProps extends HasPermissionProp {
16
16
  titleId?: string;
17
17
  descriptionId?: string;
18
18
  productSetName?: string;
19
- eventID?: string;
20
19
  }
21
- export declare function EventCard({ name, description, date, imageUrl, sales, onPreview, onEdit, onCopy, onRemove, hasPermission, productSetName, onStatistic, eventStatistic, titleId, descriptionId, eventID, }: EventCardProps): import("react/jsx-runtime").JSX.Element;
20
+ export declare function EventCard({ name, description, date, imageUrl, sales, onPreview, onEdit, onCopy, onRemove, hasPermission, productSetName, onStatistic, eventStatistic, titleId, descriptionId, }: EventCardProps): import("react/jsx-runtime").JSX.Element;
22
21
  //# sourceMappingURL=EventCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EventCard.d.ts","sourceRoot":"","sources":["../../../src/events/event-card/EventCard.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AACtF,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AAQjG,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAS3C,MAAM,WAAW,cAAe,SAAQ,iBAAiB;IACvD,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,KAAK,CAAC,EAAE,IAAI,EAAE,CAAA;IACd,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;IACtC,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,WAAW,EACX,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,SAAS,EACT,MAAM,EACN,MAAM,EACN,QAAQ,EACR,aAAoB,EACpB,cAAc,EACd,WAAW,EACX,cAAc,EACd,OAAO,EACP,aAAa,EACb,OAAO,GACR,EAAE,cAAc,2CA0JhB"}
1
+ {"version":3,"file":"EventCard.d.ts","sourceRoot":"","sources":["../../../src/events/event-card/EventCard.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AACtF,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AAQjG,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAS3C,MAAM,WAAW,cAAe,SAAQ,iBAAiB;IACvD,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,KAAK,CAAC,EAAE,IAAI,EAAE,CAAA;IACd,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;IACtC,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,WAAW,EACX,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,SAAS,EACT,MAAM,EACN,MAAM,EACN,QAAQ,EACR,aAAoB,EACpB,cAAc,EACd,WAAW,EACX,cAAc,EACd,OAAO,EACP,aAAa,GACd,EAAE,cAAc,2CAiJhB"}
@@ -38,7 +38,7 @@ function _object_without_properties_loose(source, excluded) {
38
38
  return target;
39
39
  }
40
40
  function EventCard(param) {
41
- var name = param.name, description = param.description, date = param.date, imageUrl = param.imageUrl, sales = param.sales, onPreview = param.onPreview, onEdit = param.onEdit, onCopy = param.onCopy, onRemove = param.onRemove, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission, productSetName = param.productSetName, onStatistic = param.onStatistic, eventStatistic = param.eventStatistic, titleId = param.titleId, descriptionId = param.descriptionId, eventID = param.eventID;
41
+ var name = param.name, description = param.description, date = param.date, imageUrl = param.imageUrl, sales = param.sales, onPreview = param.onPreview, onEdit = param.onEdit, onCopy = param.onCopy, onRemove = param.onRemove, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission, productSetName = param.productSetName, onStatistic = param.onStatistic, eventStatistic = param.eventStatistic, titleId = param.titleId, descriptionId = param.descriptionId;
42
42
  var t = useTranslation('Design').t;
43
43
  var _useIntl = useIntl(), formatNumber = _useIntl.formatNumber, formatDate = _useIntl.formatDate;
44
44
  var _getStatisticInfo = getStatisticInfo(eventStatistic, date), totalViews = _getStatisticInfo.totalViews, statistics = _object_without_properties(_getStatisticInfo, [
@@ -79,16 +79,7 @@ function EventCard(param) {
79
79
  children: [
80
80
  /*#__PURE__*/ jsx(Card.Title, {
81
81
  id: titleId,
82
- children: eventID ? /*#__PURE__*/ jsxs("div", {
83
- className: "d-flex",
84
- children: [
85
- name,
86
- /*#__PURE__*/ jsx("p", {
87
- className: "text-secondary ml-2",
88
- children: "(ID:".concat(eventID, ")")
89
- })
90
- ]
91
- }) : name
82
+ children: name
92
83
  }),
93
84
  /*#__PURE__*/ jsxs("div", {
94
85
  className: "flex-grow-1",
@@ -6,7 +6,6 @@ export type EventStatisticModalProps = {
6
6
  date?: Event['startAt'] | null;
7
7
  eventStatistic?: EventStatistic | null;
8
8
  title?: string;
9
- eventId?: string;
10
9
  };
11
- export declare const EventStatisticModal: ({ isOpen, setIsOpen, date, eventStatistic, title, eventId, }: EventStatisticModalProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const EventStatisticModal: ({ isOpen, setIsOpen, date, eventStatistic, title, }: EventStatisticModalProps) => import("react/jsx-runtime").JSX.Element;
12
11
  //# sourceMappingURL=EventStatisticModal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EventStatisticModal.d.ts","sourceRoot":"","sources":["../../../src/events/event-statistic-modal/EventStatisticModal.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AACjG,OAAO,EAAE,KAAK,EAAE,MAAM,yDAAyD,CAAA;AAK/E,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IACnC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,IAAI,CAAA;IAC9B,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;IACtC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,mBAAmB,iEAO7B,wBAAwB,4CAiD1B,CAAA"}
1
+ {"version":3,"file":"EventStatisticModal.d.ts","sourceRoot":"","sources":["../../../src/events/event-statistic-modal/EventStatisticModal.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AACjG,OAAO,EAAE,KAAK,EAAE,MAAM,yDAAyD,CAAA;AAK/E,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IACnC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,IAAI,CAAA;IAC9B,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;IACtC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,eAAO,MAAM,mBAAmB,wDAM7B,wBAAwB,4CAiD1B,CAAA"}
@@ -18,7 +18,7 @@ import '@tanstack/react-table';
18
18
  import { useTableData } from './hooks/useTableData.js';
19
19
 
20
20
  var EventStatisticModal = function(param) {
21
- var isOpen = param.isOpen, setIsOpen = param.setIsOpen, date = param.date, eventStatistic = param.eventStatistic, title = param.title, eventId = param.eventId;
21
+ var isOpen = param.isOpen, setIsOpen = param.setIsOpen, date = param.date, eventStatistic = param.eventStatistic, title = param.title;
22
22
  var t = useTranslation('Design').t;
23
23
  var data = useTableData(date, eventStatistic, eventId);
24
24
  var handleClose = function() {
@@ -106,7 +106,6 @@ var useTableData = function(date, eventStatistic, eventId) {
106
106
  // eslint-disable-next-line react-hooks/exhaustive-deps
107
107
  }, [
108
108
  date,
109
- eventId,
110
109
  eventStatistic
111
110
  ]);
112
111
  return tableRows;
@@ -1,5 +1,5 @@
1
1
  import { DateTime } from 'luxon';
2
- import { DATE_TIME_FULL_FORMAT } from '@licklist/core/dist/Config';
2
+ import { DATE_FORMAT, DATE_TIME_FULL_FORMAT } from '@licklist/core/dist/Config';
3
3
  import { maxBy } from 'lodash';
4
4
 
5
5
  function _array_like_to_array(arr, len) {
@@ -39,10 +39,10 @@ var convertEventStatisticToTableData = function(date, eventStatistic) {
39
39
  if (!eventStatistic) {
40
40
  return [];
41
41
  }
42
- var summaryFormattedDate = DateTime.fromISO(date).toFormat(DATE_TIME_FULL_FORMAT);
42
+ var summaryFormattedDate = DateTime.fromISO(date).toUTC().toFormat(DATE_FORMAT);
43
43
  var _Object_keys_filter;
44
44
  var summaryDays = (_Object_keys_filter = (_Object_keys = Object.keys(eventStatistic === null || eventStatistic === void 0 ? void 0 : eventStatistic.productCategorySummary)) === null || _Object_keys === void 0 ? void 0 : _Object_keys.filter(function(date) {
45
- return DateTime.fromFormat(date, DATE_TIME_FULL_FORMAT).toFormat(DATE_TIME_FULL_FORMAT) === summaryFormattedDate;
45
+ return DateTime.fromFormat(date, DATE_TIME_FULL_FORMAT).toFormat(DATE_FORMAT) === summaryFormattedDate;
46
46
  })) !== null && _Object_keys_filter !== void 0 ? _Object_keys_filter : [];
47
47
  var summaryMap = new Map();
48
48
  summaryDays.map(function(day) {
@@ -1 +1 @@
1
- {"version":3,"file":"EventVenueMap.d.ts","sourceRoot":"","sources":["../../../src/events/event-venue-map/EventVenueMap.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,kDAAkD,CAAA;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,+DAA+D,CAAA;AAC5F,OAAO,EAAE,OAAO,EAAE,MAAM,0DAA0D,CAAA;AAClF,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAA;AACvF,OAAO,EAAY,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAG7D,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACzC,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC9B,0BAA0B,CAAC,EAAE,MAAM,EAAE,CAAA;CACtC,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,EAAE,CAAA;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,IAAI,CAAA;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,CAAA;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,CAAA;IACvC,qBAAqB,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,KAAK,IAAI,CAAA;IACjE,eAAe,CAAC,EAAE,wBAAwB,EAAE,CAAA;CAC7C,GAAG,wBAAwB,CAAA;AAE5B,eAAO,MAAM,aAAa;SAXnB,MAAM;aACF,OAAO,CAAC,KAAK,CAAC,EAAE;WAClB,MAAM;qBACI,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,IAAI;eACvC,OAAO;eACP,OAAO,CAAC,OAAO,CAAC,EAAE;oBACb,OAAO,CAAC,YAAY,CAAC,EAAE;4BACf,CAAC,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,KAAK,IAAI;sBAC/C,wBAAwB,EAAE;0EAkD7C,CAAA"}
1
+ {"version":3,"file":"EventVenueMap.d.ts","sourceRoot":"","sources":["../../../src/events/event-venue-map/EventVenueMap.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,kDAAkD,CAAA;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,+DAA+D,CAAA;AAC5F,OAAO,EAAE,OAAO,EAAE,MAAM,0DAA0D,CAAA;AAClF,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAA;AACvF,OAAO,EAAY,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAG7D,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACzC,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC9B,0BAA0B,CAAC,EAAE,MAAM,EAAE,CAAA;CACtC,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,EAAE,CAAA;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,IAAI,CAAA;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,CAAA;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,CAAA;IACvC,qBAAqB,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,KAAK,IAAI,CAAA;IACjE,eAAe,CAAC,EAAE,wBAAwB,EAAE,CAAA;CAC7C,GAAG,wBAAwB,CAAA;AAE5B,eAAO,MAAM,aAAa;SAXnB,MAAM;aACF,OAAO,CAAC,KAAK,CAAC,EAAE;WAClB,MAAM;qBACI,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,IAAI;eACvC,OAAO;eACP,OAAO,CAAC,OAAO,CAAC,EAAE;oBACb,OAAO,CAAC,YAAY,CAAC,EAAE;4BACf,CAAC,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,KAAK,IAAI;sBAC/C,wBAAwB,EAAE;0EAiD7C,CAAA"}
@@ -58,7 +58,6 @@ function _object_spread_props(target, source) {
58
58
  }
59
59
  var EventVenueMap = /*#__PURE__*/ forwardRef(function(param, ref) {
60
60
  var url = param.url, points = param.points, _param_editMode = param.editMode, editMode = _param_editMode === void 0 ? false : _param_editMode, name = param.name, onPointsChange = param.onPointsChange, products = param.products, pointProducts = param.pointProducts, onPointProductsChange = param.onPointProductsChange, width = param.width, height = param.height, onPointClick = param.onPointClick, _param_usedInIframe = param.usedInIframe, usedInIframe = _param_usedInIframe === void 0 ? false : _param_usedInIframe, _param_choosedProductUuids = param.choosedProductUuids, choosedProductUuids = _param_choosedProductUuids === void 0 ? [] : _param_choosedProductUuids, _param_errorOnChoosedProductUuids = param.errorOnChoosedProductUuids, errorOnChoosedProductUuids = _param_errorOnChoosedProductUuids === void 0 ? [] : _param_errorOnChoosedProductUuids, soldOutProducts = param.soldOutProducts;
61
- // TODO fix often updating of canvasSizes, which leads to flashing poingts
62
61
  var canvasSizes = useCanvasSize({
63
62
  width: width,
64
63
  height: height
@@ -1 +1 @@
1
- {"version":3,"file":"useCanvasSize.d.ts","sourceRoot":"","sources":["../../../../src/events/event-venue-map/hooks/useCanvasSize.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,eAAO,MAAM,aAAa,wDAGvB,eAAe;;;CAcjB,CAAA"}
1
+ {"version":3,"file":"useCanvasSize.d.ts","sourceRoot":"","sources":["../../../../src/events/event-venue-map/hooks/useCanvasSize.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,eAAO,MAAM,aAAa,wDAGvB,eAAe;;;CAUjB,CAAA"}