@licklist/design 0.71.5 → 0.71.6-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/dist/affiliate/form/AffiliateForm.d.ts.map +1 -1
  2. package/dist/auth/Login/LoginComponent.js +2 -1
  3. package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.d.ts +7 -1
  4. package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.d.ts.map +1 -1
  5. package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.js +10 -7
  6. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +4 -1
  7. package/dist/events/edit-event-modal/hooks/useValidationOptions.d.ts +0 -1
  8. package/dist/events/edit-event-modal/hooks/useValidationOptions.d.ts.map +1 -1
  9. package/dist/events/edit-event-modal/hooks/useValidationOptions.js +1 -6
  10. package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +1 -1
  11. package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts.map +1 -1
  12. package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.js +1 -0
  13. package/dist/events/event-statistic-modal/EventStatisticModal.d.ts +2 -1
  14. package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
  15. package/dist/events/event-statistic-modal/EventStatisticModal.js +2 -2
  16. package/dist/events/event-statistic-modal/hooks/useTableData.d.ts +1 -1
  17. package/dist/events/event-statistic-modal/hooks/useTableData.d.ts.map +1 -1
  18. package/dist/events/event-statistic-modal/hooks/useTableData.js +3 -2
  19. package/dist/events/event-statistic-modal/utils/index.d.ts.map +1 -1
  20. package/dist/events/event-statistic-modal/utils/index.js +23 -12
  21. package/dist/events/event-venue-map/EventVenueMap.d.ts.map +1 -1
  22. package/dist/events/event-venue-map/EventVenueMap.js +1 -0
  23. package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts.map +1 -1
  24. package/dist/events/event-venue-map/hooks/useCanvasSize.js +11 -4
  25. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
  26. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +13 -0
  27. package/dist/iframe/page/components/PageBody/constants.d.ts +1 -0
  28. package/dist/iframe/page/components/PageBody/constants.d.ts.map +1 -1
  29. package/dist/iframe/page/components/PageBody/constants.js +2 -1
  30. package/dist/iframe/page/components/PageBody/hooks/useResizePageBody.d.ts.map +1 -1
  31. package/dist/iframe/page/components/PageBody/hooks/useResizePageBody.js +6 -1
  32. package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
  33. package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
  34. package/dist/iframe/ryft/RyftPaymentForm.js +4 -3
  35. package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
  36. package/dist/iframe/ryft/utils/ryft-form.js +4 -5
  37. package/dist/layout/DropDown.d.ts +2 -1
  38. package/dist/layout/DropDown.d.ts.map +1 -1
  39. package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
  40. package/dist/notification/email-template/control/EmailTemplateControl.js +3 -0
  41. package/dist/product-set/control/ProductSetControl.d.ts +2 -0
  42. package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
  43. package/dist/product-set/control/ProductSetControl.js +5 -0
  44. package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
  45. package/dist/product-set/form/ProductCategoriesControl.js +49 -2
  46. package/dist/product-set/form/ProductSetForm.d.ts +6 -2
  47. package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
  48. package/dist/product-set/form/ProductSetForm.js +3 -2
  49. package/dist/product-set/form/ProductZonesControl.d.ts.map +1 -1
  50. package/dist/product-set/form/ProductZonesControl.js +0 -2
  51. package/dist/product-set/form/ProductsControl.js +2 -0
  52. package/dist/product-set/form/SelectCategoryModal.d.ts +12 -0
  53. package/dist/product-set/form/SelectCategoryModal.d.ts.map +1 -1
  54. package/dist/product-set/form/SelectCategoryModal.js +1 -1
  55. package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
  56. package/dist/product-set/form/SubProductsControl.js +0 -3
  57. package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
  58. package/dist/product-set/form/VenueMapsControl.js +0 -3
  59. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  60. package/dist/product-set/product/advanced-options/AdvancedOptions.js +1 -0
  61. package/dist/product-set/product/booking-management/ProductBookingManagementControl.d.ts.map +1 -1
  62. package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +6 -0
  63. package/dist/product-set/product/deposit/ProductDepositControl.d.ts.map +1 -1
  64. package/dist/product-set/product/deposit/ProductDepositControl.js +3 -0
  65. package/dist/product-set/product/duration/ProductDurationControl.d.ts.map +1 -1
  66. package/dist/product-set/product/duration/ProductDurationControl.js +6 -0
  67. package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
  68. package/dist/product-set/product/price/ProductPriceControl.js +3 -0
  69. package/dist/product-set/product/quantity/ProductQuantityConstantControl.d.ts.map +1 -1
  70. package/dist/product-set/product/quantity/ProductQuantityConstantControl.js +6 -0
  71. package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
  72. package/dist/product-set/product/quantity/ProductQuantityControl.js +6 -0
  73. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
  74. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +4 -1
  75. package/dist/product-set/product-category/ProductCategoryControl.d.ts +1 -0
  76. package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
  77. package/dist/product-set/product-category/ProductCategoryControl.js +19 -1
  78. package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
  79. package/dist/recurrence-input/RecurrenceEndInput.js +3 -0
  80. package/dist/recurring-date-picker-input/RecurrenceEndInput.d.ts.map +1 -1
  81. package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
  82. package/dist/resource/form/components/CapacityControl.js +3 -0
  83. package/dist/resource/form/components/SortControl.d.ts.map +1 -1
  84. package/dist/resource/form/components/SortControl.js +3 -0
  85. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  86. package/dist/sales/booking/results/components/ResultCard.js +0 -2
  87. package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
  88. package/dist/sales/coupon/control/CouponFormControl.js +21 -0
  89. package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
  90. package/dist/setting/admin/PaymentFeeForm.js +16 -1
  91. package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
  92. package/dist/setting/dashboard/DashboardSettingForm.js +4 -1
  93. package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
  94. package/dist/snippet/snippet-template/preview/Preview.js +7 -0
  95. package/dist/sortable-tree/SortableTreeItem.d.ts +2 -1
  96. package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
  97. package/dist/sortable-tree/SortableTreeItem.js +10 -4
  98. package/dist/static/CurrencyNumberInput.d.ts.map +1 -1
  99. package/dist/static/CurrencyNumberInput.js +3 -0
  100. package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
  101. package/dist/static/form-number-input/FormNumberInput.js +3 -0
  102. package/dist/static/number-input/NumberInput.d.ts.map +1 -1
  103. package/dist/static/number-input/NumberInput.js +3 -0
  104. package/dist/styles/availability-indicator/AvailabilityIndicator.scss +1 -1
  105. package/dist/styles/iframe-events/Calendar.scss +1 -1
  106. package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
  107. package/dist/styles/product-set/ProductSetForm.scss +22 -0
  108. package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +1 -3
  109. package/dist/styles/sales/BookingResults.scss +1 -1
  110. package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -1
  111. package/dist/zone/form/components/GameDurationControl.js +3 -0
  112. package/dist/zone/form/components/SortControl.d.ts.map +1 -1
  113. package/dist/zone/form/components/SortControl.js +3 -0
  114. package/package.json +9 -7
  115. package/src/affiliate/form/AffiliateForm.tsx +1 -0
  116. package/src/auth/Login/LoginComponent.tsx +1 -1
  117. package/src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx +42 -16
  118. package/src/events/edit-event-modal/hooks/useValidationOptions.tsx +0 -5
  119. package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +1 -1
  120. package/src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx +6 -1
  121. package/src/events/event-statistic-modal/EventStatisticModal.tsx +3 -1
  122. package/src/events/event-statistic-modal/hooks/useTableData.tsx +5 -3
  123. package/src/events/event-statistic-modal/utils/index.ts +54 -32
  124. package/src/events/event-venue-map/EventVenueMap.tsx +1 -0
  125. package/src/events/event-venue-map/hooks/useCanvasSize.ts +5 -1
  126. package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +9 -0
  127. package/src/iframe/page/components/PageBody/constants.ts +1 -0
  128. package/src/iframe/page/components/PageBody/hooks/useResizePageBody.ts +11 -2
  129. package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +1 -0
  130. package/src/iframe/ryft/RyftPaymentForm.tsx +10 -8
  131. package/src/iframe/ryft/utils/ryft-form.ts +6 -5
  132. package/src/layout/DropDown.tsx +1 -1
  133. package/src/notification/email-template/control/EmailTemplateControl.tsx +1 -0
  134. package/src/product-set/control/ProductSetControl.tsx +5 -0
  135. package/src/product-set/form/ProductCategoriesControl.tsx +38 -1
  136. package/src/product-set/form/ProductSetForm.tsx +8 -2
  137. package/src/product-set/form/ProductZonesControl.tsx +1 -4
  138. package/src/product-set/form/SelectCategoryModal.tsx +2 -2
  139. package/src/product-set/form/SubProductsControl.tsx +0 -3
  140. package/src/product-set/form/VenueMapsControl.tsx +0 -3
  141. package/src/product-set/product/ProductControl.tsx +0 -1
  142. package/src/product-set/product/advanced-options/AdvancedOptions.tsx +1 -1
  143. package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +2 -0
  144. package/src/product-set/product/deposit/ProductDepositControl.tsx +1 -0
  145. package/src/product-set/product/duration/ProductDurationControl.tsx +2 -0
  146. package/src/product-set/product/price/ProductPriceControl.tsx +1 -0
  147. package/src/product-set/product/quantity/ProductQuantityConstantControl.tsx +2 -0
  148. package/src/product-set/product/quantity/ProductQuantityControl.tsx +2 -0
  149. package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +1 -0
  150. package/src/product-set/product-category/ProductCategoryControl.tsx +17 -0
  151. package/src/product-set/product-zone/ProductZoneControl.tsx +1 -1
  152. package/src/recurrence-input/RecurrenceEndInput.tsx +1 -0
  153. package/src/recurring-date-picker-input/RecurrenceEndInput.tsx +1 -0
  154. package/src/resource/form/components/CapacityControl.tsx +1 -0
  155. package/src/resource/form/components/SortControl.tsx +1 -0
  156. package/src/sales/booking/results/components/ResultCard.tsx +0 -2
  157. package/src/sales/coupon/control/CouponFormControl.tsx +7 -0
  158. package/src/setting/admin/PaymentFeeForm.tsx +5 -0
  159. package/src/setting/dashboard/DashboardSettingForm.tsx +1 -0
  160. package/src/snippet/snippet-template/preview/Preview.tsx +6 -0
  161. package/src/sortable-tree/SortableTreeItem.tsx +6 -0
  162. package/src/static/CurrencyNumberInput.tsx +1 -0
  163. package/src/static/form-number-input/FormNumberInput.tsx +1 -0
  164. package/src/static/number-input/NumberInput.tsx +1 -0
  165. package/src/styles/availability-indicator/AvailabilityIndicator.scss +1 -1
  166. package/src/styles/iframe-events/Calendar.scss +1 -1
  167. package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
  168. package/src/styles/product-set/ProductSetForm.scss +22 -0
  169. package/src/styles/ryft-payment-form/RyftPaymentForm.scss +1 -3
  170. package/src/styles/sales/BookingResults.scss +1 -1
  171. package/src/zone/form/components/GameDurationControl.tsx +1 -0
  172. package/src/zone/form/components/SortControl.tsx +1 -0
  173. package/yarn.lock +637 -515
@@ -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,4CA8FpB,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,4CA+FpB,CAAA"}
@@ -203,9 +203,10 @@ var LoginComponent = function(param) {
203
203
  var _useState = _sliced_to_array(useState(false), 2), isLoading = _useState[0], setIsLoading = _useState[1];
204
204
  var userApiService = useUserApi(request);
205
205
  var handleError = function(error) {
206
+ var _error_response_data, _error_response;
206
207
  notification.danger({
207
208
  title: 'Error',
208
- message: error.message
209
+ message: (error === null || error === void 0 ? void 0 : (_error_response = error.response) === null || _error_response === void 0 ? void 0 : (_error_response_data = _error_response.data) === null || _error_response_data === void 0 ? void 0 : _error_response_data.message) || error.message
209
210
  });
210
211
  };
211
212
  var storeSecrets = function(secrets) {
@@ -1,4 +1,10 @@
1
- export declare const SaleDeadline: ({ disabled }: {
1
+ export declare const SALE_DEADLINE_NAME_CATEGORY = "saleDeadlineCategory";
2
+ export declare const SALE_DEADLINE_NAME = "saleDeadline";
3
+ export declare const DEADLINE_NAME: readonly ["saleDeadlineCategory", "saleDeadline"];
4
+ export type DeadLineNameType = (typeof DEADLINE_NAME)[number];
5
+ export declare const SaleDeadline: ({ disabled, onlyBefore, deadLineCategory, }: {
2
6
  disabled?: boolean;
7
+ onlyBefore?: boolean;
8
+ deadLineCategory?: string;
3
9
  }) => import("react/jsx-runtime").JSX.Element;
4
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":"AAwBA,eAAO,MAAM,YAAY,iBAA0B;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,4CAwJxE,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;AAQ7D,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"}
@@ -56,6 +56,8 @@ function _unsupported_iterable_to_array(o, minLen) {
56
56
  }
57
57
  var SALE_DEADLINE_BEFORE_TYPE = 'before';
58
58
  var SALE_DEADLINE_AFTER_TYPE = 'after';
59
+ var SALE_DEADLINE_NAME_CATEGORY = 'saleDeadlineCategory';
60
+ var SALE_DEADLINE_NAME = 'saleDeadline';
59
61
  var SALE_DEADLINES_EVENT_START_TYPES = [
60
62
  {
61
63
  type: SALE_DEADLINE_BEFORE_TYPE
@@ -65,15 +67,16 @@ var SALE_DEADLINES_EVENT_START_TYPES = [
65
67
  }
66
68
  ];
67
69
  var SaleDeadline = function(param) {
68
- var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled;
69
- var _errors_saleDeadline;
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
+ var _errors_root;
70
72
  var t = useTranslation([
71
73
  'Design'
72
74
  ]).t;
73
75
  var _useFormContext = useFormContext(), control = _useFormContext.control, watch = _useFormContext.watch, errors = _useFormContext.formState.errors;
74
76
  var _useState = _sliced_to_array(useState(SALE_DEADLINE_BEFORE_TYPE), 2), deadlineType = _useState[0], setDeadlineType = _useState[1];
75
- var saleDeadline = watch('saleDeadline');
77
+ var saleDeadline = watch(deadLineCategory || SALE_DEADLINE_NAME);
76
78
  useEffect(function() {
79
+ if (onlyBefore) return;
77
80
  if (saleDeadline > 0) {
78
81
  setDeadlineType(SALE_DEADLINE_AFTER_TYPE);
79
82
  }
@@ -89,11 +92,11 @@ var SaleDeadline = function(param) {
89
92
  }),
90
93
  /*#__PURE__*/ jsx(Form.Control.Feedback, {
91
94
  type: "invalid",
92
- children: (_errors_saleDeadline = errors.saleDeadline) === null || _errors_saleDeadline === void 0 ? void 0 : _errors_saleDeadline.message
95
+ children: (_errors_root = errors.root) === null || _errors_root === void 0 ? void 0 : _errors_root.message
93
96
  }),
94
97
  /*#__PURE__*/ jsx(Controller, {
95
98
  control: control,
96
- name: "saleDeadline",
99
+ name: deadLineCategory || SALE_DEADLINE_NAME,
97
100
  render: function(param) {
98
101
  var _param_field = param.field, value = _param_field.value, onChange = _param_field.onChange, _param_fieldState = param.fieldState, invalid = _param_fieldState.invalid, error = _param_fieldState.error;
99
102
  var changeValueByType = function(type) {
@@ -124,7 +127,7 @@ var SaleDeadline = function(param) {
124
127
  };
125
128
  return /*#__PURE__*/ jsxs(Fragment, {
126
129
  children: [
127
- /*#__PURE__*/ jsx(Form.Group, {
130
+ !onlyBefore && /*#__PURE__*/ jsx(Form.Group, {
128
131
  className: "d-flex flex-column flex-grow-1 align-items-start",
129
132
  children: /*#__PURE__*/ jsx(Switch, {
130
133
  name: "sale-deadline",
@@ -211,4 +214,4 @@ var SaleDeadline = function(param) {
211
214
  });
212
215
  };
213
216
 
214
- export { SaleDeadline };
217
+ export { SALE_DEADLINE_NAME, SALE_DEADLINE_NAME_CATEGORY, SaleDeadline };
@@ -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';
25
+ import '@licklist/plugins/dist/utils/error';
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,6 +33,7 @@ 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';
36
37
  import '@licklist/plugins/dist/context/app/hooks/useNotification';
37
38
  import '../../../../../static/index.js';
38
39
  import '../../../../../tiptap-editor/TipTapEditor.js';
@@ -63,6 +64,7 @@ import '@tanstack/react-table';
63
64
  import '../../../../../iframe/payment/order-items-table/hooks/useTableData.js';
64
65
  import '@licklist/plugins/dist/context/payment/PaymentSessionContext';
65
66
  import 'react-bootstrap/Alert';
67
+ import '@licklist/core/dist/DataMapper/Order/PaymentSessionOrderDataMapper';
66
68
  import '@licklist/plugins/dist/hooks/Ryft/useRyftPayment';
67
69
  import '@licklist/plugins/dist';
68
70
  import '../../../../../iframe/order-process/components/BookingSummary/BookingSummary.js';
@@ -75,6 +77,7 @@ import '../../../../../sortable-tree/SortableTree.js';
75
77
  import '@dnd-kit/core';
76
78
  import '@dnd-kit/sortable';
77
79
  import '@dnd-kit/utilities';
80
+ import '@licklist/core/dist/Services/Event/EventService';
78
81
  import 'framer-motion';
79
82
  import '../../../../../product-set/tabs/ProductSetTabs.js';
80
83
  import { getDefaultValues } from '../../../utils/getDefaultProductSet.js';
@@ -1,7 +1,6 @@
1
1
  export declare const useValidationOptions: () => {
2
2
  start: {
3
3
  required: string;
4
- validate: (value: any) => string | true;
5
4
  };
6
5
  end: {
7
6
  required: string;
@@ -1 +1 @@
1
- {"version":3,"file":"useValidationOptions.d.ts","sourceRoot":"","sources":["../../../../src/events/edit-event-modal/hooks/useValidationOptions.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB;;kBASrB,MAAM;;;;kBAWN,MAAM;;;CAWjB,CAAA"}
1
+ {"version":3,"file":"useValidationOptions.d.ts","sourceRoot":"","sources":["../../../../src/events/edit-event-modal/hooks/useValidationOptions.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB;;kBASrB,MAAM;;;kBAMN,MAAM;;;CAWjB,CAAA"}
@@ -16,12 +16,7 @@ var useValidationOptions = function() {
16
16
  start: {
17
17
  required: t('Validation:fieldRequired', {
18
18
  attribute: t('start')
19
- }),
20
- // TODO: uncomment when event splitting is implemented
21
- // and extract into plugins
22
- validate: function(value) {
23
- return DateTime.fromISO(value).diffNow().toMillis() > 0 || t('Validation:fieldValidEventStart');
24
- }
19
+ })
25
20
  },
26
21
  end: {
27
22
  required: t('Validation:fieldRequired', {
@@ -112,6 +112,7 @@ var getDefaultValues = function(productSet, hasNoRecurrences) {
112
112
  relyOnPeopleType: (_productSet_relyOnPeopleType = productSet === null || productSet === void 0 ? void 0 : productSet.relyOnPeopleType) !== null && _productSet_relyOnPeopleType !== void 0 ? _productSet_relyOnPeopleType : null,
113
113
  thankYouPageUrl: (_productSet_thankYouPageUrl = productSet === null || productSet === void 0 ? void 0 : productSet.thankYouPageUrl) !== null && _productSet_thankYouPageUrl !== void 0 ? _productSet_thankYouPageUrl : '',
114
114
  fieldSetId: productSet === null || productSet === void 0 ? void 0 : productSet.fieldSetId,
115
+ saleDeadline: productSet === null || productSet === void 0 ? void 0 : productSet.saleDeadline,
115
116
  emailTemplates: (productSet === null || productSet === void 0 ? void 0 : productSet.mailTemplates) && (productSet === null || productSet === void 0 ? void 0 : (_productSet_mailTemplates = productSet.mailTemplates) === null || _productSet_mailTemplates === void 0 ? void 0 : _productSet_mailTemplates.length) > 0 ? getFilteredTemplates(productSet === null || productSet === void 0 ? void 0 : productSet.mailTemplates) : undefined,
116
117
  smsTemplates: (productSet === null || productSet === void 0 ? void 0 : productSet.smsTemplates) && (productSet === null || productSet === void 0 ? void 0 : (_productSet_smsTemplates = productSet.smsTemplates) === null || _productSet_smsTemplates === void 0 ? void 0 : _productSet_smsTemplates.length) > 0 ? getFilteredTemplates(productSet === null || productSet === void 0 ? void 0 : productSet.smsTemplates) : undefined,
117
118
  steps: (_productSet_steps_map = productSet === null || productSet === void 0 ? void 0 : (_productSet_steps = productSet.steps) === null || _productSet_steps === void 0 ? void 0 : _productSet_steps.map(function(_param) {
@@ -135,7 +136,6 @@ var getDefaultValues = function(productSet, hasNoRecurrences) {
135
136
  subProducts: subProducts === null || subProducts === void 0 ? void 0 : subProducts.map(function(_param) {
136
137
  var subProducts = _extends({}, _object_destructuring_empty(_param));
137
138
  return _object_spread_props(_object_spread({}, subProducts), {
138
- originalProductId: null,
139
139
  productCategoryId: undefined
140
140
  });
141
141
  }),
@@ -1 +1 @@
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,4CA2E9B,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"}
@@ -51,6 +51,7 @@ var EditRecurrentEventModal = function(param) {
51
51
  /*#__PURE__*/ jsx(Button, {
52
52
  variant: "danger",
53
53
  className: "btn-sm rounded",
54
+ disabled: disabled,
54
55
  onClick: onHide,
55
56
  children: /*#__PURE__*/ jsx(FaTimes, {
56
57
  size: 16
@@ -6,6 +6,7 @@ export type EventStatisticModalProps = {
6
6
  date?: Event['startAt'] | null;
7
7
  eventStatistic?: EventStatistic | null;
8
8
  title?: string;
9
+ eventId?: string;
9
10
  };
10
- export declare const EventStatisticModal: ({ isOpen, setIsOpen, date, eventStatistic, title, }: EventStatisticModalProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const EventStatisticModal: ({ isOpen, setIsOpen, date, eventStatistic, title, eventId, }: EventStatisticModalProps) => import("react/jsx-runtime").JSX.Element;
11
12
  //# 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;CACf,CAAA;AAED,eAAO,MAAM,mBAAmB,wDAM7B,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;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,mBAAmB,iEAO7B,wBAAwB,4CAiD1B,CAAA"}
@@ -18,9 +18,9 @@ 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;
21
+ var isOpen = param.isOpen, setIsOpen = param.setIsOpen, date = param.date, eventStatistic = param.eventStatistic, title = param.title, eventId = param.eventId;
22
22
  var t = useTranslation('Design').t;
23
- var data = useTableData(date, eventStatistic);
23
+ var data = useTableData(date, eventStatistic, eventId);
24
24
  var handleClose = function() {
25
25
  setIsOpen(false);
26
26
  };
@@ -1,5 +1,5 @@
1
1
  import { EventStatistic } from '@licklist/core/dist/DataMapper/Provider/EventStatisticDataMapper';
2
2
  import { Event } from '@licklist/core/dist/DataMapper/Provider/EventDataMapper';
3
3
  import { StaticTableData } from '../../../table';
4
- export declare const useTableData: (date: Event["startAt"] | null, eventStatistic: EventStatistic | null) => StaticTableData[];
4
+ export declare const useTableData: (date: Event["startAt"] | null, eventStatistic: EventStatistic | null, eventId: string) => StaticTableData[];
5
5
  //# sourceMappingURL=useTableData.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTableData.d.ts","sourceRoot":"","sources":["../../../../src/events/event-statistic-modal/hooks/useTableData.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AACjG,OAAO,EAAE,KAAK,EAAE,MAAM,yDAAyD,CAAA;AAE/E,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAEhD,eAAO,MAAM,YAAY,SACjB,KAAK,CAAC,SAAS,CAAC,GAAG,IAAI,kBACb,cAAc,GAAG,IAAI,sBA6EtC,CAAA"}
1
+ {"version":3,"file":"useTableData.d.ts","sourceRoot":"","sources":["../../../../src/events/event-statistic-modal/hooks/useTableData.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AACjG,OAAO,EAAE,KAAK,EAAE,MAAM,yDAAyD,CAAA;AAE/E,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAEhD,eAAO,MAAM,YAAY,SACjB,KAAK,CAAC,SAAS,CAAC,GAAG,IAAI,kBACb,cAAc,GAAG,IAAI,WAC5B,MAAM,sBA8EhB,CAAA"}
@@ -52,7 +52,7 @@ function _unsupported_iterable_to_array(o, minLen) {
52
52
  if (n === "Map" || n === "Set") return Array.from(n);
53
53
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
54
54
  }
55
- var useTableData = function(date, eventStatistic) {
55
+ var useTableData = function(date, eventStatistic, eventId) {
56
56
  var t = useTranslation('Design').t;
57
57
  var formatNumber = useIntl().formatNumber;
58
58
  var _useState = _sliced_to_array(useState([]), 2), tableRows = _useState[0], setTableRows = _useState[1];
@@ -70,7 +70,7 @@ var useTableData = function(date, eventStatistic) {
70
70
  }
71
71
  return t(key);
72
72
  };
73
- var transformStatisticToTableRows = function(date, statistic) {
73
+ var transformStatisticToTableRows = function(date, statistic, eventId) {
74
74
  if (!statistic) {
75
75
  return [];
76
76
  }
@@ -106,6 +106,7 @@ var useTableData = function(date, eventStatistic) {
106
106
  // eslint-disable-next-line react-hooks/exhaustive-deps
107
107
  }, [
108
108
  date,
109
+ eventId,
109
110
  eventStatistic
110
111
  ]);
111
112
  return tableRows;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/events/event-statistic-modal/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AAIjG,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAA;AAED,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE;QACT,aAAa,EAAE,MAAM,CAAA;QACrB,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;CACF,CAAA;AAED,eAAO,MAAM,gCAAgC,SACrC,MAAM,kBACI,cAAc,sBA4G/B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/events/event-statistic-modal/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AAKjG,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAA;AAED,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE;QACT,aAAa,EAAE,MAAM,CAAA;QACrB,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;CACF,CAAA;AAED,eAAO,MAAM,gCAAgC,SACrC,MAAM,kBACI,cAAc,sBAiI/B,CAAA"}
@@ -1,5 +1,6 @@
1
1
  import { DateTime } from 'luxon';
2
2
  import { DATE_FORMAT, DATE_TIME_FULL_FORMAT } from '@licklist/core/dist/Config';
3
+ import { maxBy } from 'lodash';
3
4
 
4
5
  function _array_like_to_array(arr, len) {
5
6
  if (len == null || len > arr.length) len = arr.length;
@@ -48,10 +49,16 @@ var convertEventStatisticToTableData = function(date, eventStatistic) {
48
49
  return eventStatistic === null || eventStatistic === void 0 ? void 0 : eventStatistic.productCategorySummary[day];
49
50
  }).flat().sort(function(prev, next) {
50
51
  return prev.categoryName === next.categoryName ? 0 : prev.categoryName > next.categoryName ? 1 : -1;
51
- }).forEach(function(param) {
52
+ }).forEach(function(param, _, // all category at summaryDays
53
+ selfCategory) {
52
54
  var totalPerCategory = param.totalPerCategory, _param_productsSummary = param.productsSummary, productsSummary = _param_productsSummary === void 0 ? [] : _param_productsSummary, categoryName = param.categoryName, eventId = param.eventId;
53
55
  var quantity = 0;
54
56
  totalAmount += totalPerCategory || 0;
57
+ var allProductSummaryAtCategory = selfCategory.filter(function(category) {
58
+ return category.categoryName === categoryName;
59
+ }).flatMap(function(categorySummary) {
60
+ return categorySummary.productsSummary;
61
+ });
55
62
  if (!summaryMap.has("".concat(categoryName))) {
56
63
  summaryMap.set("".concat(categoryName), {
57
64
  name: categoryName,
@@ -62,24 +69,28 @@ var convertEventStatisticToTableData = function(date, eventStatistic) {
62
69
  total: TRANSLATION_KEYS.total
63
70
  });
64
71
  }
65
- productsSummary === null || productsSummary === void 0 ? void 0 : productsSummary.forEach(function(param) {
66
- var productsSold = param.productsSold, name = param.name, totalQuantity = param.totalQuantity, total = param.total;
67
- quantity += productsSold;
72
+ productsSummary === null || productsSummary === void 0 ? void 0 : productsSummary.forEach(function(productSummary, productIndex) {
73
+ quantity += productSummary.productsSold;
68
74
  var _summaryMap_get;
69
- var existingProduct = (_summaryMap_get = summaryMap.get("".concat(categoryName, ".").concat(name))) !== null && _summaryMap_get !== void 0 ? _summaryMap_get : {
75
+ var existingProduct = (_summaryMap_get = summaryMap.get("".concat(categoryName, ".").concat(productSummary.name))) !== null && _summaryMap_get !== void 0 ? _summaryMap_get : {
70
76
  metadata: {
71
77
  _productsSold: 0,
72
78
  _total: 0
73
79
  }
74
80
  };
75
- summaryMap.set("".concat(categoryName, ".").concat(name), {
76
- name: name,
77
- key: "".concat(eventId, ".").concat(categoryName, ".").concat(name),
78
- quantity: totalQuantity ? "".concat(existingProduct.metadata._productsSold + productsSold, " / ").concat(totalQuantity) : String(existingProduct.metadata._productsSold + productsSold),
79
- total: String(existingProduct.metadata._total + total),
81
+ var overrides = allProductSummaryAtCategory.filter(function(summary) {
82
+ return summary.originalProductId === productSummary.id;
83
+ });
84
+ var maxTotalQuantity = maxBy(overrides, 'id').totalQuantity;
85
+ var totalQuantity = maxTotalQuantity || productSummary.totalQuantity;
86
+ summaryMap.set("".concat(categoryName, ".").concat(productSummary.name), {
87
+ name: productSummary.name,
88
+ key: "".concat(eventId, ".").concat(categoryName).concat(productIndex).concat(productSummary.name),
89
+ quantity: totalQuantity ? "".concat(existingProduct.metadata._productsSold + productSummary.productsSold, " / ").concat(totalQuantity) : String(existingProduct.metadata._productsSold + productSummary.productsSold),
90
+ total: String(existingProduct.metadata._total + productSummary.total),
80
91
  metadata: {
81
- _productsSold: existingProduct.metadata._productsSold + productsSold,
82
- _total: existingProduct.metadata._total + total
92
+ _productsSold: existingProduct.metadata._productsSold + productSummary.productsSold,
93
+ _total: existingProduct.metadata._total + productSummary.total
83
94
  }
84
95
  });
85
96
  });
@@ -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;0EAiD7C,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;0EAkD7C,CAAA"}
@@ -58,6 +58,7 @@ 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
61
62
  var canvasSizes = useCanvasSize({
62
63
  width: width,
63
64
  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;;;CAUjB,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;;;CAcjB,CAAA"}
@@ -3,7 +3,17 @@ import { useWindowDimensions } from '@licklist/plugins/dist/hooks/Media/useWindo
3
3
 
4
4
  var useCanvasSize = function(param) {
5
5
  var componentWidth = param.width, componentHeight = param.height;
6
+ // TODO Fix often updating of width and height
6
7
  var _useWindowDimensions = useWindowDimensions(), width = _useWindowDimensions.width, height = _useWindowDimensions.height;
8
+ // eslint-disable-next-line react-hooks/exhaustive-deps
9
+ var memoizedDimensions = useMemo(function() {
10
+ return {
11
+ width: width,
12
+ height: height
13
+ };
14
+ }, [
15
+ width
16
+ ]);
7
17
  var memoedComponentParameters = useMemo(function() {
8
18
  if (!componentWidth && !componentHeight) return null;
9
19
  return {
@@ -14,10 +24,7 @@ var useCanvasSize = function(param) {
14
24
  componentWidth,
15
25
  componentHeight
16
26
  ]);
17
- return memoedComponentParameters || {
18
- width: width,
19
- height: height
20
- };
27
+ return memoedComponentParameters || memoizedDimensions;
21
28
  };
22
29
 
23
30
  export { useCanvasSize };
@@ -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,+GAgGvB,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,+GAyGvB,CAAA"}
@@ -54,6 +54,9 @@ 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
+ },
57
60
  value: value,
58
61
  min: 0,
59
62
  max: max,
@@ -66,6 +69,16 @@ var NumberInput = /*#__PURE__*/ forwardRef(function(param, ref) {
66
69
  /*#__PURE__*/ jsx("button", {
67
70
  type: "button",
68
71
  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
+ },
69
82
  className: "payment-number-input__btn-up ".concat(plusButtonGreyedOut && 'disabled-number-input-button'),
70
83
  disabled: disabled,
71
84
  children: "+"
@@ -1,4 +1,5 @@
1
1
  export declare const TAB_WIDTH = 768;
2
+ export declare const MOBILE_WIDTH = 480;
2
3
  export declare const RIGHT_BLOCK_RESIZED_EVENT = "RIGHT_BLOCK_RESIZED_EVENT";
3
4
  export declare const STANDARD_BODY_PADDING: number;
4
5
  export declare const STANDARD_HEADER_FOOTER_SIZE = 96;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/page/components/PageBody/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,MAAM,CAAA;AAC5B,eAAO,MAAM,yBAAyB,8BAA8B,CAAA;AAEpE,eAAO,MAAM,qBAAqB,QAAU,CAAA;AAE5C,eAAO,MAAM,2BAA2B,KAAK,CAAA;AAG7C,eAAO,MAAM,0BAA0B,MAAM,CAAA;AAI7C,eAAO,MAAM,0CAA0C,KAAK,CAAA;AAE5D,eAAO,MAAM,kBAAkB,+BAA+B,CAAA;AAC9D,eAAO,MAAM,oBAAoB,yBAAyB,CAAA;AAC1D,eAAO,MAAM,oBAAoB,iCAAiC,CAAA;AAClE,eAAO,MAAM,qBAAqB,0BAA0B,CAAA;AAE5D,eAAO,MAAM,mBAAmB,qBAAqB,CAAA;AACrD,eAAO,MAAM,4BAA4B,oCAAoC,CAAA;AAC7E,eAAO,MAAM,0BAA0B,kCAAkC,CAAA;AACzE,eAAO,MAAM,uBAAuB,IAAI,CAAA;AACxC,eAAO,MAAM,eAAe,KAAK,CAAA;AAEjC,eAAO,MAAM,4BAA4B,8BAA8B,CAAA;AACvE,eAAO,MAAM,4BAA4B,4BAA4B,CAAA;AACrE,eAAO,MAAM,qBAAqB,0BAA0B,CAAA;AAE5D,eAAO,MAAM,gCAAgC,MAAM,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/page/components/PageBody/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,MAAM,CAAA;AAC5B,eAAO,MAAM,YAAY,MAAM,CAAA;AAC/B,eAAO,MAAM,yBAAyB,8BAA8B,CAAA;AAEpE,eAAO,MAAM,qBAAqB,QAAU,CAAA;AAE5C,eAAO,MAAM,2BAA2B,KAAK,CAAA;AAG7C,eAAO,MAAM,0BAA0B,MAAM,CAAA;AAI7C,eAAO,MAAM,0CAA0C,KAAK,CAAA;AAE5D,eAAO,MAAM,kBAAkB,+BAA+B,CAAA;AAC9D,eAAO,MAAM,oBAAoB,yBAAyB,CAAA;AAC1D,eAAO,MAAM,oBAAoB,iCAAiC,CAAA;AAClE,eAAO,MAAM,qBAAqB,0BAA0B,CAAA;AAE5D,eAAO,MAAM,mBAAmB,qBAAqB,CAAA;AACrD,eAAO,MAAM,4BAA4B,oCAAoC,CAAA;AAC7E,eAAO,MAAM,0BAA0B,kCAAkC,CAAA;AACzE,eAAO,MAAM,uBAAuB,IAAI,CAAA;AACxC,eAAO,MAAM,eAAe,KAAK,CAAA;AAEjC,eAAO,MAAM,4BAA4B,8BAA8B,CAAA;AACvE,eAAO,MAAM,4BAA4B,4BAA4B,CAAA;AACrE,eAAO,MAAM,qBAAqB,0BAA0B,CAAA;AAE5D,eAAO,MAAM,gCAAgC,MAAM,CAAA"}
@@ -1,4 +1,5 @@
1
1
  var TAB_WIDTH = 768;
2
+ var MOBILE_WIDTH = 480;
2
3
  var RIGHT_BLOCK_RESIZED_EVENT = 'RIGHT_BLOCK_RESIZED_EVENT';
3
4
  // The sum of paddings in PageBody + header for first block
4
5
  var STANDARD_BODY_PADDING = 48 + 49;
@@ -20,4 +21,4 @@ var PAGE_CALENDAR_SELECT_WRAPPER = 'calendar-select-wrapper';
20
21
  var PAGE_BODY_WITH_SCROLL = 'page-body-with-scroll';
21
22
  var PAGE_LEFT_BLOCK_MAP_DEFAULT_SIZE = 300;
22
23
 
23
- export { COLLAPSE_MARGIN, DEFAULT_RIGHT_BLOCK_HEIGHT, PAGE_BODY_WITH_SCROLL, PAGE_CALENDAR_SELECT_WRAPPER, PAGE_LEFT_BLOCK_CONTAINER_ID, PAGE_LEFT_BLOCK_MAP_DEFAULT_SIZE, PAGE_RIGHT_BLOCK_BOTTOM_ID, PAGE_RIGHT_BLOCK_CHILDREN_ID, PAGE_RIGHT_BLOCK_ID, RIGHT_BLOCK_COLLAPSE, RIGHT_BLOCK_COLLAPSED, RIGHT_BLOCK_EXPAND, RIGHT_BLOCK_EXPANDED, RIGHT_BLOCK_RESIZED_EVENT, SEPARATOR_DEFAULT_WIDTH, STANDARD_BODY_PADDING, STANDARD_HEADER_FOOTER_SIZE, TAB_WIDTH };
24
+ export { COLLAPSE_MARGIN, DEFAULT_RIGHT_BLOCK_HEIGHT, MOBILE_WIDTH, PAGE_BODY_WITH_SCROLL, PAGE_CALENDAR_SELECT_WRAPPER, PAGE_LEFT_BLOCK_CONTAINER_ID, PAGE_LEFT_BLOCK_MAP_DEFAULT_SIZE, PAGE_RIGHT_BLOCK_BOTTOM_ID, PAGE_RIGHT_BLOCK_CHILDREN_ID, PAGE_RIGHT_BLOCK_ID, RIGHT_BLOCK_COLLAPSE, RIGHT_BLOCK_COLLAPSED, RIGHT_BLOCK_EXPAND, RIGHT_BLOCK_EXPANDED, RIGHT_BLOCK_RESIZED_EVENT, SEPARATOR_DEFAULT_WIDTH, STANDARD_BODY_PADDING, STANDARD_HEADER_FOOTER_SIZE, TAB_WIDTH };
@@ -1 +1 @@
1
- {"version":3,"file":"useResizePageBody.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/page/components/PageBody/hooks/useResizePageBody.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;eAMnB,MAAM;gBACL,MAAM;;CA2OjB,CAAA"}
1
+ {"version":3,"file":"useResizePageBody.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/page/components/PageBody/hooks/useResizePageBody.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;eAMnB,MAAM;gBACL,MAAM;;CAmPjB,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { useState, useRef, useMemo, useEffect } from 'react';
2
2
  import { useWindowDimensions } from '@licklist/plugins/dist/hooks/Media/useWindowDimensions';
3
- import { DEFAULT_RIGHT_BLOCK_HEIGHT, PAGE_LEFT_BLOCK_MAP_DEFAULT_SIZE, TAB_WIDTH, PAGE_CALENDAR_SELECT_WRAPPER, PAGE_BODY_WITH_SCROLL, STANDARD_BODY_PADDING, STANDARD_HEADER_FOOTER_SIZE, PAGE_LEFT_BLOCK_CONTAINER_ID, PAGE_RIGHT_BLOCK_BOTTOM_ID, SEPARATOR_DEFAULT_WIDTH, COLLAPSE_MARGIN, RIGHT_BLOCK_RESIZED_EVENT, RIGHT_BLOCK_EXPAND, RIGHT_BLOCK_EXPANDED, RIGHT_BLOCK_COLLAPSE, RIGHT_BLOCK_COLLAPSED } from '../constants.js';
3
+ import { DEFAULT_RIGHT_BLOCK_HEIGHT, PAGE_LEFT_BLOCK_MAP_DEFAULT_SIZE, TAB_WIDTH, PAGE_CALENDAR_SELECT_WRAPPER, PAGE_BODY_WITH_SCROLL, MOBILE_WIDTH, STANDARD_BODY_PADDING, STANDARD_HEADER_FOOTER_SIZE, PAGE_LEFT_BLOCK_CONTAINER_ID, PAGE_RIGHT_BLOCK_BOTTOM_ID, SEPARATOR_DEFAULT_WIDTH, COLLAPSE_MARGIN, RIGHT_BLOCK_RESIZED_EVENT, RIGHT_BLOCK_EXPAND, RIGHT_BLOCK_EXPANDED, RIGHT_BLOCK_COLLAPSE, RIGHT_BLOCK_COLLAPSED } from '../constants.js';
4
4
 
5
5
  function _array_like_to_array(arr, len) {
6
6
  if (len == null || len > arr.length) len = arr.length;
@@ -73,6 +73,11 @@ var useResizePageBody = function() {
73
73
  behavior: 'smooth'
74
74
  });
75
75
  }
76
+ if (width <= MOBILE_WIDTH && Boolean(CALENDAR_WRAPPER_HEIGHT)) {
77
+ return {
78
+ maxHeight: height - STANDARD_BODY_PADDING - rightBlockHeight - CALENDAR_WRAPPER_HEIGHT
79
+ };
80
+ }
76
81
  return {
77
82
  maxHeight: height - STANDARD_BODY_PADDING - rightBlockHeight - STANDARD_HEADER_FOOTER_SIZE - CALENDAR_WRAPPER_HEIGHT
78
83
  };
@@ -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;AA2FjB,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;AA4FjB,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,EAML,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;AAOzD,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,4CAqLtB,CAAA"}
1
+ {"version":3,"file":"RyftPaymentForm.d.ts","sourceRoot":"","sources":["../../../src/iframe/ryft/RyftPaymentForm.tsx"],"names":[],"mappings":"AAaA,OAAO,EAEL,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;AAOzD,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,4CAqLtB,CAAA"}
@@ -5,7 +5,8 @@ import { useForm } from 'react-hook-form';
5
5
  import Button from 'react-bootstrap/Button';
6
6
  import { useHistory } from 'react-router-dom';
7
7
  import Alert from 'react-bootstrap/Alert';
8
- import { useRyftPayment, RYFT_STATUS_PENDING_ACTION, RYFT_STATUS_APPROVED, RYFT_STATUS_CAPTURED, RYFT_STATUS_PENDING_PAYMENT } from '@licklist/plugins/dist/hooks/Ryft/useRyftPayment';
8
+ import { STATUS_PENDING_ACTION, STATUS_APPROVED, STATUS_CAPTURED, STATUS_PENDING_PAYMENT } from '@licklist/core/dist/DataMapper/Order/PaymentSessionOrderDataMapper';
9
+ import { useRyftPayment } from '@licklist/plugins/dist/hooks/Ryft/useRyftPayment';
9
10
  import '../../static/index.js';
10
11
  import { injectComponentsInRyftForm } from './utils/ryft-form.js';
11
12
  import { ButtonLoader } from '../../static/loader/ButtonLoader.js';
@@ -256,7 +257,7 @@ var RyftPaymentForm = function(param) {
256
257
  setRyftError('unknown_error');
257
258
  }
258
259
  if ('requiredAction' in paymentSession) {
259
- if (paymentSession.status !== RYFT_STATUS_PENDING_ACTION || !((_paymentSession_requiredAction = paymentSession.requiredAction) === null || _paymentSession_requiredAction === void 0 ? void 0 : _paymentSession_requiredAction.url)) {
260
+ if (paymentSession.status !== STATUS_PENDING_ACTION || !((_paymentSession_requiredAction = paymentSession.requiredAction) === null || _paymentSession_requiredAction === void 0 ? void 0 : _paymentSession_requiredAction.url)) {
260
261
  redirectOnFailAttempt(paymentSession);
261
262
  return [
262
263
  2
@@ -265,7 +266,7 @@ var RyftPaymentForm = function(param) {
265
266
  window.location.href = paymentSession.requiredAction.url;
266
267
  setReferrerBeforePayment();
267
268
  }
268
- if (paymentSession.status === RYFT_STATUS_APPROVED || paymentSession.status === RYFT_STATUS_CAPTURED || paymentSession.status === RYFT_STATUS_PENDING_PAYMENT) {
269
+ if (paymentSession.status === STATUS_APPROVED || paymentSession.status === STATUS_CAPTURED || paymentSession.status === STATUS_PENDING_PAYMENT) {
269
270
  redirectOnFailAttempt(paymentSession);
270
271
  return [
271
272
  2
@@ -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,SA6E5B,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,SA8E5B,CAAA"}
@@ -39,17 +39,17 @@ 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
- googleButton.style.opacity = isDisableButton ? '1' : '0.6';
52
+ googleButton.style.opacity = !isDisableButton ? '1' : '0.6';
53
53
  }
54
54
  if (appleButton) {
55
55
  appleButton.disabled = isDisableButton;
@@ -60,7 +60,6 @@ var injectComponentsInRyftForm = function(param) {
60
60
  var applePayButton = document.createElement('button');
61
61
  applePayButton.id = 'apple-pay';
62
62
  applePayButton.type = 'button';
63
- applePayButton.style.opacity = !isDisableButton ? '1' : '0.6';
64
63
  applePayButton.className = 'bg-dark btn btn-primary apple-pay-button';
65
64
  applePayButton.textContent = t('Events:payWithApple');
66
65
  applePayButton.onclick = onApplePayButtonClick;
@@ -1,9 +1,10 @@
1
+ import React from 'react';
1
2
  interface Props {
2
3
  children?: React.ReactNode | React.ReactNode[];
3
4
  style?: any;
4
5
  className?: any;
5
6
  'aria-laballedby'?: any;
6
7
  }
7
- declare const DropDown: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<unknown>>;
8
+ declare const DropDown: React.ForwardRefExoticComponent<Props & React.RefAttributes<unknown>>;
8
9
  export default DropDown;
9
10
  //# sourceMappingURL=DropDown.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropDown.d.ts","sourceRoot":"","sources":["../../src/layout/DropDown.tsx"],"names":[],"mappings":"AAEA,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,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
+ {"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 +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,+GAqahC,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,+GAsahC,CAAA"}
@@ -631,6 +631,9 @@ 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
+ },
634
637
  placeholder: t("Design:".concat(option.name)),
635
638
  id: option.name + option.id,
636
639
  defaultValue: option.selectedValue || ''