@licklist/design 0.78.5-dev.19 → 0.78.5-dev.21

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 (148) hide show
  1. package/dist/auth/ChangePassword/ChangePasswordComponent.d.ts.map +1 -1
  2. package/dist/auth/ChangePassword/ChangePasswordComponent.js +5 -4
  3. package/dist/auth/Login/LoginComponent.d.ts.map +1 -1
  4. package/dist/auth/Login/LoginComponent.js +12 -7
  5. package/dist/auth/Register/RegisterComponent.d.ts.map +1 -1
  6. package/dist/auth/Register/RegisterComponent.js +5 -4
  7. package/dist/auth/ResetPassword/ResetPasswordComponent.d.ts.map +1 -1
  8. package/dist/auth/ResetPassword/ResetPasswordComponent.js +5 -4
  9. package/dist/auth/Social/SocialCallbackComponent.d.ts.map +1 -1
  10. package/dist/auth/Social/SocialCallbackComponent.js +5 -2
  11. package/dist/auth/Social/SocialFormComponent.d.ts.map +1 -1
  12. package/dist/auth/Social/SocialFormComponent.js +4 -4
  13. package/dist/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.d.ts.map +1 -1
  14. package/dist/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.js +5 -4
  15. package/dist/events/edit-event-modal/IntervalInput.d.ts.map +1 -1
  16. package/dist/events/edit-event-modal/IntervalInput.js +5 -1
  17. package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.d.ts +2 -1
  18. package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.d.ts.map +1 -1
  19. package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.js +3 -2
  20. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +3 -2
  21. package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
  22. package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +0 -1
  23. package/dist/events/event-card/EventCard.d.ts +1 -1
  24. package/dist/events/event-card/EventCard.d.ts.map +1 -1
  25. package/dist/events/event-card/EventCard.js +1 -1
  26. package/dist/events/event-statistic-modal/EventStatisticModal.d.ts +2 -1
  27. package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
  28. package/dist/events/event-statistic-modal/EventStatisticModal.js +2 -2
  29. package/dist/events/event-statistic-modal/hooks/useTableData.d.ts +1 -1
  30. package/dist/events/event-statistic-modal/hooks/useTableData.d.ts.map +1 -1
  31. package/dist/events/event-statistic-modal/hooks/useTableData.js +2 -1
  32. package/dist/events/event-statistic-modal/utils/index.js +3 -3
  33. package/dist/events/event-venue-map/EventVenueMap.d.ts.map +1 -1
  34. package/dist/events/event-venue-map/EventVenueMap.js +1 -0
  35. package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts.map +1 -1
  36. package/dist/events/event-venue-map/hooks/useCanvasSize.js +11 -4
  37. package/dist/file-upload/FileUpload.d.ts.map +1 -1
  38. package/dist/file-upload/FileUpload.js +4 -4
  39. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts.map +1 -1
  40. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.js +4 -11
  41. package/dist/iframe/order-process/components/BookingSummary/utils/index.js +1 -1
  42. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
  43. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +13 -0
  44. package/dist/iframe/payment/payment-page/PaymentPage.js +8 -4
  45. package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
  46. package/dist/iframe/ryft/RyftPaymentForm.js +19 -45
  47. package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
  48. package/dist/iframe/ryft/utils/ryft-form.js +4 -5
  49. package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
  50. package/dist/notification/email-template/control/EmailTemplateControl.js +6 -3
  51. package/dist/product-set/control/ProductSetControl.js +2 -1
  52. package/dist/product-set/form/ProductSetForm.d.ts +4 -1
  53. package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
  54. package/dist/product-set/form/ProductSetForm.js +1 -1
  55. package/dist/product-set/form/ProductsControl.js +1 -0
  56. package/dist/product-set/product/booking-management/ProductBookingManagementControl.d.ts.map +1 -1
  57. package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +6 -0
  58. package/dist/product-set/product/deposit/ProductDepositControl.d.ts.map +1 -1
  59. package/dist/product-set/product/deposit/ProductDepositControl.js +3 -0
  60. package/dist/product-set/product/duration/ProductDurationControl.d.ts.map +1 -1
  61. package/dist/product-set/product/duration/ProductDurationControl.js +6 -0
  62. package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
  63. package/dist/product-set/product/price/ProductPriceControl.js +3 -0
  64. package/dist/product-set/product/quantity/ProductQuantityConstantControl.d.ts.map +1 -1
  65. package/dist/product-set/product/quantity/ProductQuantityConstantControl.js +6 -0
  66. package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
  67. package/dist/product-set/product/quantity/ProductQuantityControl.js +6 -0
  68. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
  69. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +4 -1
  70. package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
  71. package/dist/product-set/product-category/ProductCategoryControl.js +12 -0
  72. package/dist/product-set/utils/index.d.ts +1 -1
  73. package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
  74. package/dist/recurrence-input/RecurrenceEndInput.js +3 -0
  75. package/dist/recurring-date-picker-input/RecurrenceEndInput.d.ts.map +1 -1
  76. package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
  77. package/dist/resource/form/components/CapacityControl.js +3 -0
  78. package/dist/resource/form/components/SortControl.d.ts.map +1 -1
  79. package/dist/resource/form/components/SortControl.js +3 -0
  80. package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
  81. package/dist/sales/coupon/control/CouponFormControl.js +21 -0
  82. package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
  83. package/dist/setting/dashboard/DashboardSettingForm.js +4 -1
  84. package/dist/static/CurrencyNumberInput.d.ts.map +1 -1
  85. package/dist/static/CurrencyNumberInput.js +3 -0
  86. package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
  87. package/dist/static/form-number-input/FormNumberInput.js +3 -0
  88. package/dist/static/number-input/NumberInput.d.ts.map +1 -1
  89. package/dist/static/number-input/NumberInput.js +3 -0
  90. package/dist/styles/iframe-events/Calendar.scss +1 -1
  91. package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
  92. package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +1 -3
  93. package/dist/styles/sales/BookingResults.scss +1 -1
  94. package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -1
  95. package/dist/zone/form/components/GameDurationControl.js +3 -0
  96. package/dist/zone/form/components/SortControl.d.ts.map +1 -1
  97. package/dist/zone/form/components/SortControl.js +3 -0
  98. package/package.json +7 -7
  99. package/src/auth/ChangePassword/ChangePasswordComponent.tsx +3 -4
  100. package/src/auth/Login/LoginComponent.tsx +8 -6
  101. package/src/auth/Register/RegisterComponent.tsx +3 -4
  102. package/src/auth/ResetPassword/ResetPasswordComponent.tsx +3 -4
  103. package/src/auth/Social/SocialCallbackComponent.tsx +3 -2
  104. package/src/auth/Social/SocialFormComponent.tsx +2 -3
  105. package/src/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.tsx +3 -4
  106. package/src/events/edit-event-modal/IntervalInput.tsx +4 -0
  107. package/src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx +12 -4
  108. package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +0 -1
  109. package/src/events/event-card/EventCard.tsx +10 -8
  110. package/src/events/event-statistic-modal/EventStatisticModal.tsx +3 -1
  111. package/src/events/event-statistic-modal/hooks/useTableData.tsx +2 -1
  112. package/src/events/event-statistic-modal/utils/index.ts +4 -4
  113. package/src/events/event-venue-map/EventVenueMap.tsx +1 -0
  114. package/src/events/event-venue-map/hooks/useCanvasSize.ts +5 -1
  115. package/src/file-upload/FileUpload.tsx +2 -3
  116. package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.tsx +1 -5
  117. package/src/iframe/order-process/components/BookingSummary/utils/index.ts +2 -2
  118. package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +9 -0
  119. package/src/iframe/payment/payment-page/PaymentPage.tsx +6 -6
  120. package/src/iframe/ryft/RyftPaymentForm.tsx +25 -58
  121. package/src/iframe/ryft/utils/ryft-form.ts +6 -5
  122. package/src/notification/email-template/control/EmailTemplateControl.tsx +7 -6
  123. package/src/product-set/control/ProductSetControl.tsx +1 -1
  124. package/src/product-set/form/ProductSetForm.tsx +6 -2
  125. package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +2 -0
  126. package/src/product-set/product/deposit/ProductDepositControl.tsx +1 -0
  127. package/src/product-set/product/duration/ProductDurationControl.tsx +2 -0
  128. package/src/product-set/product/price/ProductPriceControl.tsx +1 -0
  129. package/src/product-set/product/quantity/ProductQuantityConstantControl.tsx +2 -0
  130. package/src/product-set/product/quantity/ProductQuantityControl.tsx +2 -0
  131. package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +1 -0
  132. package/src/product-set/product-category/ProductCategoryControl.tsx +4 -0
  133. package/src/recurrence-input/RecurrenceEndInput.tsx +1 -0
  134. package/src/recurring-date-picker-input/RecurrenceEndInput.tsx +1 -0
  135. package/src/resource/form/components/CapacityControl.tsx +1 -0
  136. package/src/resource/form/components/SortControl.tsx +1 -0
  137. package/src/sales/coupon/control/CouponFormControl.tsx +7 -0
  138. package/src/setting/dashboard/DashboardSettingForm.tsx +1 -0
  139. package/src/static/CurrencyNumberInput.tsx +1 -0
  140. package/src/static/form-number-input/FormNumberInput.tsx +1 -0
  141. package/src/static/number-input/NumberInput.tsx +1 -0
  142. package/src/styles/iframe-events/Calendar.scss +1 -1
  143. package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
  144. package/src/styles/ryft-payment-form/RyftPaymentForm.scss +1 -3
  145. package/src/styles/sales/BookingResults.scss +1 -1
  146. package/src/zone/form/components/GameDurationControl.tsx +1 -0
  147. package/src/zone/form/components/SortControl.tsx +1 -0
  148. package/yarn.lock +69 -70
@@ -1,7 +1,7 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import { showAlert } from '@licklist/plugins/dist/context/app/AlertContext';
2
3
  import { useEffect, useState } from 'react';
3
4
  import clsx from 'clsx';
4
- import useNotification from '@licklist/plugins/dist/context/app/hooks/useNotification';
5
5
  import { useTranslation } from 'react-i18next';
6
6
  import { Form } from 'react-bootstrap';
7
7
  import '../static/index.js';
@@ -10,7 +10,7 @@ import { ReactComponent as SvgAddImage } from '../assets/dashboard/addImage.svg.
10
10
  import { LoaderIndicator } from '../static/loader/LoaderIndicator.js';
11
11
  import '@licklist/plugins/dist/hooks/Media/useWindowDimensions';
12
12
 
13
- /* eslint-disable no-return-assign */ /* eslint-disable react-hooks/exhaustive-deps */ function _array_like_to_array(arr, len) {
13
+ function _array_like_to_array(arr, len) {
14
14
  if (len == null || len > arr.length) len = arr.length;
15
15
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
16
16
  return arr2;
@@ -163,7 +163,6 @@ var useFileUpload = function(param) {
163
163
  var allowMultiple = param.allowMultiple, allowedExtensions = param.allowedExtensions, onFileRemove = param.onFileRemove;
164
164
  var _useState = _sliced_to_array(useState(null), 2), files = _useState[0], setFiles = _useState[1];
165
165
  var _useState1 = _sliced_to_array(useState(false), 2), isDragged = _useState1[0], setIsDragged = _useState1[1];
166
- var notification = useNotification();
167
166
  var t = useTranslation('Design').t;
168
167
  var uploadFile = function(file) {
169
168
  var sameFile = files === null || files === void 0 ? void 0 : files.find(function(uploadedFile) {
@@ -190,7 +189,8 @@ var useFileUpload = function(param) {
190
189
  if (isExtensionValid) {
191
190
  uploadFile(file);
192
191
  } else {
193
- notification.danger({
192
+ showAlert({
193
+ type: 'error',
194
194
  title: t('fileNotUploaded', {
195
195
  fileName: file.name
196
196
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"ModifierSetControll.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,8DAA8D,CAAA;AAC5F,OAAO,EAAE,QAAQ,EAAE,MAAM,2DAA2D,CAAA;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAA;AAY1F,UAAU,yBAAyB;IACjC,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,wBAAwB,CAAC,EAAE,aAAa,EAAE,CAAA;CAC3C;AAED,eAAO,MAAM,mBAAmB,4FAO7B,yBAAyB,4CAoV3B,CAAA"}
1
+ {"version":3,"file":"ModifierSetControll.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,8DAA8D,CAAA;AAC5F,OAAO,EAAE,QAAQ,EAAE,MAAM,2DAA2D,CAAA;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAA;AAY1F,UAAU,yBAAyB;IACjC,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,wBAAwB,CAAC,EAAE,aAAa,EAAE,CAAA;CAC3C;AAED,eAAO,MAAM,mBAAmB,4FAO7B,yBAAyB,4CAgV3B,CAAA"}
@@ -59,19 +59,12 @@ import '@licklist/plugins/dist/hooks/Query/useQuery';
59
59
  import '../../../../table/utils/index.js';
60
60
  import '@tanstack/react-table';
61
61
 
62
- function _type_of(obj) {
63
- "@swc/helpers - typeof";
64
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
65
- }
66
62
  var ModifiersSetControl = function(param) {
67
63
  var modifierSet = param.modifierSet, modifiers = param.modifiers, productId = param.productId, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isEditMode = param.isEditMode, isEditMode = _param_isEditMode === void 0 ? false : _param_isEditMode, orderProductModifierSets = param.orderProductModifierSets;
68
- var _orderModifiersSets_flat, _currentOrderModifiersSets_find;
64
+ var _currentOrderModifiersSets_find;
69
65
  var _useFormContext = useFormContext(), control = _useFormContext.control, watch = _useFormContext.watch, setValue = _useFormContext.setValue, trigger = _useFormContext.trigger;
70
66
  var t = useTranslation('App').t;
71
67
  var orderModifiersSets = watch("".concat(productId, ".orderProductModifiers"));
72
- var filteredOrderModifiersSets = orderModifiersSets === null || orderModifiersSets === void 0 ? void 0 : (_orderModifiersSets_flat = orderModifiersSets.flat(Infinity)) === null || _orderModifiersSets_flat === void 0 ? void 0 : _orderModifiersSets_flat.filter(function(item) {
73
- return item && (typeof item === "undefined" ? "undefined" : _type_of(item)) === 'object';
74
- });
75
68
  var formatNumber = useIntl().formatNumber;
76
69
  var formatToCurrency = function(value) {
77
70
  return formatNumber(value, {
@@ -88,14 +81,14 @@ var ModifiersSetControl = function(param) {
88
81
  modifierSet.id
89
82
  ]);
90
83
  var onChangeModifiers = function(e, type, quantity) {
91
- var _filteredOrderModifiersSets_find;
84
+ var _orderModifiersSets_find;
92
85
  if (!modifiers) return;
93
86
  var selectedModifier = modifiers === null || modifiers === void 0 ? void 0 : modifiers.find(function(item) {
94
87
  return item.id === Number(e.target.defaultValue || e.target.id);
95
88
  });
96
- var checkSelectedModifier = (filteredOrderModifiersSets === null || filteredOrderModifiersSets === void 0 ? void 0 : (_filteredOrderModifiersSets_find = filteredOrderModifiersSets.find(function(modifier) {
89
+ var checkSelectedModifier = (orderModifiersSets === null || orderModifiersSets === void 0 ? void 0 : (_orderModifiersSets_find = orderModifiersSets.find(function(modifier) {
97
90
  return (modifier === null || modifier === void 0 ? void 0 : modifier.modifierId) === (selectedModifier === null || selectedModifier === void 0 ? void 0 : selectedModifier.id);
98
- })) === null || _filteredOrderModifiersSets_find === void 0 ? void 0 : _filteredOrderModifiersSets_find.quantity) === 1;
91
+ })) === null || _orderModifiersSets_find === void 0 ? void 0 : _orderModifiersSets_find.quantity) === 1;
99
92
  if (selectedModifier && type === 'radio') {
100
93
  modifiers.forEach(function(modifier) {
101
94
  var isSelected = modifier.id === selectedModifier.id;
@@ -5,7 +5,7 @@ var cartSumByOrderProducts = function(param) {
5
5
  }
6
6
  return orderProducts.reduce(function(prevSumValue, product) {
7
7
  if (!product) return 0;
8
- var modifiersPrice = calculateTotalModifiersPrice(product === null || product === void 0 ? void 0 : product.orderModifiersSets) || 0;
8
+ var modifiersPrice = calculateTotalModifiersPrice(product === null || product === void 0 ? void 0 : product.orderModifiersSets);
9
9
  var price = isTotalSum ? product === null || product === void 0 ? void 0 : product.price : product.hasDeposit ? product === null || product === void 0 ? void 0 : product.deposit : product === null || product === void 0 ? void 0 : product.price;
10
10
  return prevSumValue + price * product.quantity + modifiersPrice;
11
11
  }, 0);
@@ -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: "+"
@@ -213,8 +213,12 @@ var PaymentPage = function(_param) {
213
213
  }),
214
214
  footer: /*#__PURE__*/ jsx("div", {
215
215
  className: "d-flex flex-column justify-content-between",
216
- children: (paymentMetadata === null || paymentMetadata === void 0 ? void 0 : paymentMetadata.total) ? /*#__PURE__*/ jsxs(Fragment, {
216
+ children: paymentMetadata ? /*#__PURE__*/ jsxs(Fragment, {
217
217
  children: [
218
+ /*#__PURE__*/ jsx(SummaryTotalBlock, {
219
+ label: t('total'),
220
+ amount: paymentMetadata.total || 0
221
+ }),
218
222
  /*#__PURE__*/ jsx(SummaryTotalBlock, {
219
223
  label: t('paidSum'),
220
224
  amount: paymentMetadata.paid || 0
@@ -226,15 +230,15 @@ var PaymentPage = function(_param) {
226
230
  ]
227
231
  }) : /*#__PURE__*/ jsxs(Fragment, {
228
232
  children: [
229
- !!isCalculatedAmountGreaterThanOrderAmount && /*#__PURE__*/ jsx(SummaryTotalBlock, {
233
+ isCalculatedAmountGreaterThanOrderAmount && /*#__PURE__*/ jsx(SummaryTotalBlock, {
230
234
  label: t(hasRemaingToPay ? 'payNow' : 'total'),
231
235
  amount: orderCartAmountByFormValues + ((bookingSummaryProps === null || bookingSummaryProps === void 0 ? void 0 : bookingSummaryProps.transactionFee) || 0)
232
236
  }),
233
- !!hasRemaingToPay && /*#__PURE__*/ jsx(SummaryTotalBlock, {
237
+ hasRemaingToPay && /*#__PURE__*/ jsx(SummaryTotalBlock, {
234
238
  label: t('remaining'),
235
239
  amount: orderTotalAmountByFormValues - orderCartAmountByFormValues
236
240
  }),
237
- !!isPaymentLinkWithRemainingToPay && /*#__PURE__*/ jsx(SummaryTotalBlock, {
241
+ isPaymentLinkWithRemainingToPay && /*#__PURE__*/ jsx(SummaryTotalBlock, {
238
242
  label: t('remaningToPay'),
239
243
  amount: Number(data === null || data === void 0 ? void 0 : data.remaining_to_pay)
240
244
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"RyftPaymentForm.d.ts","sourceRoot":"","sources":["../../../src/iframe/ryft/RyftPaymentForm.tsx"],"names":[],"mappings":"AAWA,OAAO,EAEL,sBAAsB,EACvB,MAAM,kDAAkD,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,0EAA0E,CAAA;AAIlH,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,4CAsNtB,CAAA"}
1
+ {"version":3,"file":"RyftPaymentForm.d.ts","sourceRoot":"","sources":["../../../src/iframe/ryft/RyftPaymentForm.tsx"],"names":[],"mappings":"AAWA,OAAO,EAEL,sBAAsB,EACvB,MAAM,kDAAkD,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,0EAA0E,CAAA;AAIlH,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"}
@@ -198,7 +198,7 @@ var ryftErrorMap = {
198
198
  };
199
199
  var RyftPaymentForm = function(param) {
200
200
  var accountId = param.accountId, isCreateLoading = param.isCreateLoading, isAppUsingInIframe = param.isAppUsingInIframe, providerPaymentSettings = param.providerPaymentSettings, onApplePayButtonClick = param.onApplePayButtonClick, initRyft = param.initRyft, resetReferrer = param.resetReferrer, onSubmit = param.onSubmit, payButtonDisabled = param.payButtonDisabled;
201
- var _formRef_current_childNodes, _formRef_current, _accountId_data, _formRef_current_childNodes1, _formRef_current1;
201
+ var _formRef_current_childNodes, _formRef_current, _accountId_data;
202
202
  var t = useTranslation([
203
203
  'Design',
204
204
  'Validation',
@@ -302,32 +302,24 @@ var RyftPaymentForm = function(param) {
302
302
  return _ref.apply(this, arguments);
303
303
  };
304
304
  }();
305
- console.log((_formRef_current = formRef.current) === null || _formRef_current === void 0 ? void 0 : (_formRef_current_childNodes = _formRef_current.childNodes) === null || _formRef_current_childNodes === void 0 ? void 0 : _formRef_current_childNodes.length, 'formRef.current?.childNodes?.length ');
306
- // useEffect(() => {
307
- // const formBox = document.getElementById('form-disable-box')
308
- // const cardContainer = document.getElementById('ryft-pay-iframe')
309
- // const googleButton = document.getElementById(
310
- // 'gpay-button-online-api-id',
311
- // ) as HTMLButtonElement | null
312
- // const appleButton = document.getElementById(
313
- // 'ryft-pay-apple-pay-button',
314
- // ) as HTMLButtonElement | null
315
- // if (cardContainer) {
316
- // cardContainer.style.opacity = payButtonDisabled ? '0.6' : '1'
317
- // cardContainer.setAttribute('aria-disabled', payButtonDisabled.toString())
318
- // }
319
- // if (googleButton) {
320
- // googleButton.disabled = payButtonDisabled
321
- // googleButton.style.opacity = payButtonDisabled ? '0.6' : '1'
322
- // }
323
- // if (appleButton) {
324
- // appleButton.disabled = payButtonDisabled
325
- // appleButton.style.opacity = payButtonDisabled ? '0.6' : '1'
326
- // }
327
- // if (formBox) {
328
- // formBox.style.display = payButtonDisabled ? 'block' : 'none'
329
- // }
330
- // }, [payButtonDisabled])
305
+ useEffect(function() {
306
+ var _formRef_current_childNodes, _formRef_current, _formRef_current_childNodes1, _formRef_current1, _accountId_data;
307
+ if (!((_formRef_current = formRef.current) === null || _formRef_current === void 0 ? void 0 : (_formRef_current_childNodes = _formRef_current.childNodes) === null || _formRef_current_childNodes === void 0 ? void 0 : _formRef_current_childNodes.length) || ((_formRef_current1 = formRef.current) === null || _formRef_current1 === void 0 ? void 0 : (_formRef_current_childNodes1 = _formRef_current1.childNodes) === null || _formRef_current_childNodes1 === void 0 ? void 0 : _formRef_current_childNodes1.length) < 3 || !((_accountId_data = accountId.data) === null || _accountId_data === void 0 ? void 0 : _accountId_data.account_id)) {
308
+ return;
309
+ }
310
+ injectComponentsInRyftForm({
311
+ t: t,
312
+ isAppUsingInIframe: isAppUsingInIframe,
313
+ onApplePayButtonClick: onApplePayButtonClick,
314
+ isDisableButton: !payButtonDisabled,
315
+ additionalPaymentMethodsEnabled: providerPaymentSettings === null || providerPaymentSettings === void 0 ? void 0 : providerPaymentSettings.additionalPaymentMethodsEnabled
316
+ });
317
+ }, // eslint-disable-next-line react-hooks/exhaustive-deps
318
+ [
319
+ (_formRef_current = formRef.current) === null || _formRef_current === void 0 ? void 0 : (_formRef_current_childNodes = _formRef_current.childNodes) === null || _formRef_current_childNodes === void 0 ? void 0 : _formRef_current_childNodes.length,
320
+ showApplePayButton,
321
+ payButtonDisabled
322
+ ]);
331
323
  useEffect(function() {
332
324
  var _accountId_data;
333
325
  if (!((_accountId_data = accountId.data) === null || _accountId_data === void 0 ? void 0 : _accountId_data.account_id) || accountId.isError) return;
@@ -346,24 +338,6 @@ var RyftPaymentForm = function(param) {
346
338
  }, [
347
339
  (_accountId_data = accountId.data) === null || _accountId_data === void 0 ? void 0 : _accountId_data.account_id
348
340
  ]);
349
- useEffect(function() {
350
- var _formRef_current_childNodes, _formRef_current, _formRef_current_childNodes1, _formRef_current1, _accountId_data;
351
- if (!((_formRef_current = formRef.current) === null || _formRef_current === void 0 ? void 0 : (_formRef_current_childNodes = _formRef_current.childNodes) === null || _formRef_current_childNodes === void 0 ? void 0 : _formRef_current_childNodes.length) || ((_formRef_current1 = formRef.current) === null || _formRef_current1 === void 0 ? void 0 : (_formRef_current_childNodes1 = _formRef_current1.childNodes) === null || _formRef_current_childNodes1 === void 0 ? void 0 : _formRef_current_childNodes1.length) < 3 || !((_accountId_data = accountId.data) === null || _accountId_data === void 0 ? void 0 : _accountId_data.account_id)) {
352
- return;
353
- }
354
- injectComponentsInRyftForm({
355
- t: t,
356
- isAppUsingInIframe: isAppUsingInIframe,
357
- onApplePayButtonClick: onApplePayButtonClick,
358
- isDisableButton: !payButtonDisabled,
359
- additionalPaymentMethodsEnabled: providerPaymentSettings === null || providerPaymentSettings === void 0 ? void 0 : providerPaymentSettings.additionalPaymentMethodsEnabled
360
- });
361
- }, // eslint-disable-next-line react-hooks/exhaustive-deps
362
- [
363
- (_formRef_current1 = formRef.current) === null || _formRef_current1 === void 0 ? void 0 : (_formRef_current_childNodes1 = _formRef_current1.childNodes) === null || _formRef_current_childNodes1 === void 0 ? void 0 : _formRef_current_childNodes1.length,
364
- showApplePayButton,
365
- payButtonDisabled
366
- ]);
367
341
  if (accountId.isLoading || accountId.isFetching || isCreateLoading) return /*#__PURE__*/ jsx("div", {
368
342
  className: "mt-5 pt-5",
369
343
  children: /*#__PURE__*/ jsx(BlockLoader, {})
@@ -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,SAAS,CAAA;AACnC,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,SAAS,CAAA;AACnC,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 +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,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,4BAA4B,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,gBAAgB,GAAG,IAAI,KAAK,MAAM,CAAA;CAC1E;AAED,eAAO,MAAM,oBAAoB,+GAsahC,CAAA"}
1
+ {"version":3,"file":"EmailTemplateControl.d.ts","sourceRoot":"","sources":["../../../../src/notification/email-template/control/EmailTemplateControl.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,cAAc,EAEf,MAAM,sEAAsE,CAAA;AAG7E,OAAO,EAAE,UAAU,EAAE,MAAM,kEAAkE,CAAA;AAM7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,wEAAwE,CAAA;AAMzG,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ,kBAAkB,CAAC,EAAE,UAAU,EAAE,CAAA;IACjC,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACtC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,4BAA4B,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,gBAAgB,GAAG,IAAI,KAAK,MAAM,CAAA;CAC1E;AAED,eAAO,MAAM,oBAAoB,+GAuahC,CAAA"}
@@ -476,11 +476,11 @@ var EmailTemplateControl = /*#__PURE__*/ forwardRef(function(param, ref) {
476
476
  ]
477
477
  })
478
478
  }),
479
- /*#__PURE__*/ jsx(Row, {
479
+ !waiverType && /*#__PURE__*/ jsx(Row, {
480
480
  children: /*#__PURE__*/ jsxs(Form.Group, {
481
481
  as: Col,
482
482
  children: [
483
- !waiverType && /*#__PURE__*/ jsx(Form.Check, _object_spread_props(_object_spread({}, register('isActive')), {
483
+ /*#__PURE__*/ jsx(Form.Check, _object_spread_props(_object_spread({}, register('isActive')), {
484
484
  name: "isActive",
485
485
  label: t('Design:active'),
486
486
  id: "formGroupIsActive",
@@ -577,7 +577,7 @@ var EmailTemplateControl = /*#__PURE__*/ forwardRef(function(param, ref) {
577
577
  }));
578
578
  }
579
579
  // should show dropdown only if user want to include PDF file
580
- if (option.type === OPTION_TYPE.files_selector && !waiverType) {
580
+ if (option.type === OPTION_TYPE.files_selector) {
581
581
  var fileSelectors = (option === null || option === void 0 ? void 0 : option.defaultValue) ? JSON.parse(option.defaultValue) : '';
582
582
  var fileNames = Object.values(fileSelectors);
583
583
  var fileKeys = Object.keys(fileSelectors);
@@ -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 || ''
@@ -184,7 +184,8 @@ function ProductSetControl(param) {
184
184
  })
185
185
  }),
186
186
  /*#__PURE__*/ jsx(SaleDeadline, {
187
- disabled: false
187
+ disabled: false,
188
+ isProductSet: true
188
189
  }),
189
190
  /*#__PURE__*/ jsx("div", {
190
191
  className: "divider"
@@ -10,10 +10,13 @@ import { SelectItem } from '../../types/generic/SelectItem';
10
10
  export interface WithIsLoading {
11
11
  isLoading: boolean;
12
12
  }
13
+ export interface WithIdOptional {
14
+ id?: number;
15
+ }
13
16
  export interface WithId {
14
17
  id: number;
15
18
  }
16
- export interface ProductSetFormValues extends FormValues, WithId, ProductSetControlValues {
19
+ export interface ProductSetFormValues extends FormValues, WithIdOptional, ProductSetControlValues {
17
20
  steps: Step[];
18
21
  isOverrides?: boolean;
19
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ProductSetForm.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductSetForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAA;AAKzF,OAAO,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAA;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAE3E,OAAO,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAA;AAE1F,OAAO,EAAE,IAAI,EAAE,MAAM,wDAAwD,CAAA;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAA;AAGrF,OAAO,EAEL,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAE/B,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAQ3D,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,OAAO,CAAA;CACnB;AACD,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAA;CACX;AACD,MAAM,WAAW,oBACf,SAAQ,UAAU,EAChB,MAAM,EACN,uBAAuB;IACzB,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,MAAM,WAAW,mBACf,SAAQ,aAAa,EACnB,uBAAuB;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC,mBAAmB,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAA;IAC3D,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAA;IAC3D,gBAAgB,CAAC,EAAE,UAAU,EAAE,CAAA;IAC/B,YAAY,CAAC,EAAE,WAAW,CAAA;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;IAC5B,4BAA4B,CAAC,EAAE,OAAO,CAAA;IACtC,KAAK,CAAC,EAAE,IAAI,EAAE,GAAG,IAAI,CAAA;IACrB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,QAAQ,EAAE,MAAM,CAAA;IAChB,gBAAgB,CAAC,EAAE,WAAW,EAAE,CAAA;CACjC;AAED,wBAAgB,cAAc,CAAC,EAC7B,WAAW,EACX,SAAS,EACT,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,cAAsB,EACtB,YAAiB,EACjB,4BAA4B,EAC5B,KAAK,EACL,cAAc,EACd,SAAS,EACT,YAAY,EACZ,WAAW,EACX,oBAAoB,EACpB,QAAQ,EACR,GAAG,MAAM,EACV,EAAE,mBAAmB,2CAkKrB"}
1
+ {"version":3,"file":"ProductSetForm.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductSetForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAA;AAKzF,OAAO,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAA;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAE3E,OAAO,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAA;AAE1F,OAAO,EAAE,IAAI,EAAE,MAAM,wDAAwD,CAAA;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAA;AAGrF,OAAO,EAEL,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAE/B,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAQ3D,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,OAAO,CAAA;CACnB;AACD,MAAM,WAAW,cAAc;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAA;CACX;AACD,MAAM,WAAW,oBACf,SAAQ,UAAU,EAChB,cAAc,EACd,uBAAuB;IACzB,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,MAAM,WAAW,mBACf,SAAQ,aAAa,EACnB,uBAAuB;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC,mBAAmB,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAA;IAC3D,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAA;IAC3D,gBAAgB,CAAC,EAAE,UAAU,EAAE,CAAA;IAC/B,YAAY,CAAC,EAAE,WAAW,CAAA;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;IAC5B,4BAA4B,CAAC,EAAE,OAAO,CAAA;IACtC,KAAK,CAAC,EAAE,IAAI,EAAE,GAAG,IAAI,CAAA;IACrB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,QAAQ,EAAE,MAAM,CAAA;IAChB,gBAAgB,CAAC,EAAE,WAAW,EAAE,CAAA;CACjC;AAED,wBAAgB,cAAc,CAAC,EAC7B,WAAW,EACX,SAAS,EACT,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,cAAsB,EACtB,YAAiB,EACjB,4BAA4B,EAC5B,KAAK,EACL,cAAc,EACd,SAAS,EACT,YAAY,EACZ,WAAW,EACX,oBAAoB,EACpB,QAAQ,EACR,GAAG,MAAM,EACV,EAAE,mBAAmB,2CAkKrB"}
@@ -5,7 +5,7 @@ import { useForm, FormProvider } from 'react-hook-form';
5
5
  import { useTranslation } from 'react-i18next';
6
6
  import FormErrorService from '@licklist/plugins/dist/services/Form/FormErrorService';
7
7
  import { isEqual } from 'lodash';
8
- import { transformErrorToMessage } from '@licklist/plugins';
8
+ import { transformErrorToMessage } from '@licklist/plugins/dist/utils/error';
9
9
  import { Dialog } from '../../modals/dialog/Dialog.js';
10
10
  import { useDialogContext } from '../../modals/dialog/DialogContext.js';
11
11
  import { ProductSetControl } from '../control/ProductSetControl.js';
@@ -22,6 +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
26
  import '@licklist/plugins';
26
27
  import 'react-bootstrap/Button';
27
28
  import 'react-bootstrap/OverlayTrigger';
@@ -1 +1 @@
1
- {"version":3,"file":"ProductBookingManagementControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/booking-management/ProductBookingManagementControl.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AAOrE,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAE9D,MAAM,WAAW,qCAAsC,SAAQ,UAAU;IACvE,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,oCAAoC,CAAC,CAAC,CACrD,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAA;CACxB;AAED,wBAAgB,+BAA+B,CAAC,CAAC,SAAS,UAAU,EAClE,KAAK,EAAE,oCAAoC,CAAC,CAAC,CAAC,2CAyJ/C"}
1
+ {"version":3,"file":"ProductBookingManagementControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/booking-management/ProductBookingManagementControl.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AAOrE,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAE9D,MAAM,WAAW,qCAAsC,SAAQ,UAAU;IACvE,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,oCAAoC,CAAC,CAAC,CACrD,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAA;CACxB;AAED,wBAAgB,+BAA+B,CAAC,CAAC,SAAS,UAAU,EAClE,KAAK,EAAE,oCAAoC,CAAC,CAAC,CAAC,2CA2J/C"}
@@ -128,6 +128,9 @@ function ProductBookingManagementControl(props) {
128
128
  return /*#__PURE__*/ jsx(Form.Control, {
129
129
  ref: ref,
130
130
  type: "number",
131
+ onWheel: function(event) {
132
+ return event.currentTarget.blur();
133
+ },
131
134
  min: 0,
132
135
  step: 1,
133
136
  value: value,
@@ -174,6 +177,9 @@ function ProductBookingManagementControl(props) {
174
177
  return /*#__PURE__*/ jsx(Form.Control, {
175
178
  ref: ref,
176
179
  type: "number",
180
+ onWheel: function(event) {
181
+ return event.currentTarget.blur();
182
+ },
177
183
  min: "0",
178
184
  step: "1",
179
185
  value: value,
@@ -1 +1 @@
1
- {"version":3,"file":"ProductDepositControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/deposit/ProductDepositControl.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AASrE,MAAM,WAAW,2BAA4B,SAAQ,UAAU;IAC7D,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,0BAA0B,CAAC,CAAC,CAAE,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC3E,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,UAAU,EACxD,KAAK,EAAE,0BAA0B,CAAC,CAAC,CAAC,2CA2ErC"}
1
+ {"version":3,"file":"ProductDepositControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/deposit/ProductDepositControl.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AASrE,MAAM,WAAW,2BAA4B,SAAQ,UAAU;IAC7D,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,0BAA0B,CAAC,CAAC,CAAE,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC3E,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,UAAU,EACxD,KAAK,EAAE,0BAA0B,CAAC,CAAC,CAAC,2CA4ErC"}
@@ -40,6 +40,9 @@ function ProductDepositControl(props) {
40
40
  return /*#__PURE__*/ jsx(Form.Control, {
41
41
  ref: ref,
42
42
  type: "number",
43
+ onWheel: function(event) {
44
+ return event.currentTarget.blur();
45
+ },
43
46
  min: 0,
44
47
  max: Number(totalPrice),
45
48
  step: "0.01",
@@ -1 +1 @@
1
- {"version":3,"file":"ProductDurationControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/duration/ProductDurationControl.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8DAA8D,CAAA;AAOlG,MAAM,WAAW,2BAA2B,CAAC,CAAC,CAAE,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC5E,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED,eAAO,MAAM,sBAAsB,GAAI,CAAC,kCAGrC,2BAA2B,CAAC,CAAC,CAAC,4CAqIhC,CAAA"}
1
+ {"version":3,"file":"ProductDurationControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/duration/ProductDurationControl.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8DAA8D,CAAA;AAOlG,MAAM,WAAW,2BAA2B,CAAC,CAAC,CAAE,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC5E,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED,eAAO,MAAM,sBAAsB,GAAI,CAAC,kCAGrC,2BAA2B,CAAC,CAAC,CAAC,4CAuIhC,CAAA"}
@@ -87,6 +87,9 @@ var ProductDurationControl = function(param) {
87
87
  /*#__PURE__*/ jsx(Form.Control, {
88
88
  type: "number",
89
89
  min: 0,
90
+ onWheel: function(event) {
91
+ return event.currentTarget.blur();
92
+ },
90
93
  step: 1,
91
94
  value: durationHours,
92
95
  disabled: disabled,
@@ -134,6 +137,9 @@ var ProductDurationControl = function(param) {
134
137
  type: "number",
135
138
  min: 0,
136
139
  step: 1,
140
+ onWheel: function(event) {
141
+ return event.currentTarget.blur();
142
+ },
137
143
  disabled: disabled,
138
144
  value: durationMinutes,
139
145
  isInvalid: isInvalid,
@@ -1 +1 @@
1
- {"version":3,"file":"ProductPriceControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/price/ProductPriceControl.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAA;AAKzF,OAAO,EAAc,IAAI,EAAkB,MAAM,iBAAiB,CAAA;AAIlE,MAAM,WAAW,yBAA0B,SAAQ,UAAU;IAC3D,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,wBAAwB,CAAC,CAAC;IACzC,SAAS,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,eAAe,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACxB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB;AAED,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,UAAU,EAAE,EACxD,SAAiB,EACjB,eAAe,EACf,KAAK,EACL,aAAa,EACb,UAAiB,EACjB,cAAc,GACf,EAAE,wBAAwB,CAAC,CAAC,CAAC,2CAgG7B"}
1
+ {"version":3,"file":"ProductPriceControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/price/ProductPriceControl.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAA;AAKzF,OAAO,EAAc,IAAI,EAAkB,MAAM,iBAAiB,CAAA;AAIlE,MAAM,WAAW,yBAA0B,SAAQ,UAAU;IAC3D,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,wBAAwB,CAAC,CAAC;IACzC,SAAS,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,eAAe,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACxB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB;AAED,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,UAAU,EAAE,EACxD,SAAiB,EACjB,eAAe,EACf,KAAK,EACL,aAAa,EACb,UAAiB,EACjB,cAAc,GACf,EAAE,wBAAwB,CAAC,CAAC,CAAC,2CAiG7B"}
@@ -42,6 +42,9 @@ function ProductPriceControl(param) {
42
42
  ref: ref,
43
43
  type: "number",
44
44
  min: 0,
45
+ onWheel: function(event) {
46
+ return event.currentTarget.blur();
47
+ },
45
48
  max: 999999.99,
46
49
  step: "0.01",
47
50
  value: value,
@@ -1 +1 @@
1
- {"version":3,"file":"ProductQuantityConstantControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/quantity/ProductQuantityConstantControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AAiBrE,MAAM,WAAW,oCAAqC,SAAQ,UAAU;IACtE,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,mCAAmC,CAAC,CAAC,CACpD,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,KAAK,IAAI,CAAA;CAC5C;AAED,wBAAgB,8BAA8B,CAAC,CAAC,SAAS,UAAU,EACjE,KAAK,EAAE,mCAAmC,CAAC,CAAC,CAAC,2CAkL9C"}
1
+ {"version":3,"file":"ProductQuantityConstantControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/quantity/ProductQuantityConstantControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AAiBrE,MAAM,WAAW,oCAAqC,SAAQ,UAAU;IACtE,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,mCAAmC,CAAC,CAAC,CACpD,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,KAAK,IAAI,CAAA;CAC5C;AAED,wBAAgB,8BAA8B,CAAC,CAAC,SAAS,UAAU,EACjE,KAAK,EAAE,mCAAmC,CAAC,CAAC,CAAC,2CAoL9C"}
@@ -67,6 +67,9 @@ function ProductQuantityConstantControl(props) {
67
67
  type: "number",
68
68
  min: 0,
69
69
  step: 1,
70
+ onWheel: function(event) {
71
+ return event.currentTarget.blur();
72
+ },
70
73
  value: value,
71
74
  isInvalid: HookFormService.isInvalid("".concat(fieldNamePrefix, ".totalQuantity"), errors),
72
75
  disabled: true
@@ -120,6 +123,9 @@ function ProductQuantityConstantControl(props) {
120
123
  type: "number",
121
124
  min: 0,
122
125
  step: 1,
126
+ onWheel: function(event) {
127
+ return event.currentTarget.blur();
128
+ },
123
129
  value: value,
124
130
  onChange: onChange,
125
131
  onFocus: onFocus,
@@ -1 +1 @@
1
- {"version":3,"file":"ProductQuantityControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/quantity/ProductQuantityControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AAWrE,MAAM,WAAW,4BAA6B,SAAQ,UAAU;IAC9D,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,2BAA2B,CAAC,CAAC,CAAE,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC5E,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,KAAK,IAAI,CAAA;IAC3C,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,UAAU,EACzD,KAAK,EAAE,2BAA2B,CAAC,CAAC,CAAC,2CAsJtC"}
1
+ {"version":3,"file":"ProductQuantityControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/quantity/ProductQuantityControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AAWrE,MAAM,WAAW,4BAA6B,SAAQ,UAAU;IAC9D,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,2BAA2B,CAAC,CAAC,CAAE,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC5E,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,KAAK,IAAI,CAAA;IAC3C,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,UAAU,EACzD,KAAK,EAAE,2BAA2B,CAAC,CAAC,CAAC,2CAwJtC"}
@@ -65,6 +65,9 @@ function ProductQuantityControl(props) {
65
65
  type: "number",
66
66
  min: 0,
67
67
  step: 1,
68
+ onWheel: function(event) {
69
+ return event.currentTarget.blur();
70
+ },
68
71
  value: value,
69
72
  onChange: onChange,
70
73
  onFocus: onFocus,
@@ -123,6 +126,9 @@ function ProductQuantityControl(props) {
123
126
  type: "number",
124
127
  min: 0,
125
128
  step: 1,
129
+ onWheel: function(event) {
130
+ return event.currentTarget.blur();
131
+ },
126
132
  value: value && value,
127
133
  onFocus: onFocus,
128
134
  onChange: onChange,
@@ -1 +1 @@
1
- {"version":3,"file":"ProductQuantityRechargingControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/quantity/ProductQuantityRechargingControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AASrE,MAAM,WAAW,sCAAuC,SAAQ,UAAU;IACxE,aAAa,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,qCAAqC,CAAC,CAAC,CACtD,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,KAAK,IAAI,CAAA;CAC5C;AAED,wBAAgB,gCAAgC,CAAC,CAAC,SAAS,UAAU,EACnE,KAAK,EAAE,qCAAqC,CAAC,CAAC,CAAC,2CAkGhD"}
1
+ {"version":3,"file":"ProductQuantityRechargingControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/quantity/ProductQuantityRechargingControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AASrE,MAAM,WAAW,sCAAuC,SAAQ,UAAU;IACxE,aAAa,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,qCAAqC,CAAC,CAAC,CACtD,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,KAAK,IAAI,CAAA;CAC5C;AAED,wBAAgB,gCAAgC,CAAC,CAAC,SAAS,UAAU,EACnE,KAAK,EAAE,qCAAqC,CAAC,CAAC,CAAC,2CAmGhD"}
@@ -97,7 +97,10 @@ function ProductQuantityRechargingControl(props) {
97
97
  ref: ref,
98
98
  type: "number",
99
99
  min: 0,
100
- step: 1
100
+ step: 1,
101
+ onWheel: function(event) {
102
+ return event.currentTarget.blur();
103
+ }
101
104
  }, register("".concat(fieldNamePrefix, ".totalQuantity"), {
102
105
  validate: function(value) {
103
106
  if (unlimited) return true;
@@ -1 +1 @@
1
- {"version":3,"file":"ProductCategoryControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/product-category/ProductCategoryControl.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAA;AAEzF,OAAO,EACL,YAAY,EACZ,YAAY,EAKb,MAAM,kEAAkE,CAAA;AAGzE,OAAO,EAAE,gBAAgB,EAAmB,MAAM,UAAU,CAAA;AAO5D,MAAM,WAAW,4BAA6B,SAAQ,UAAU;IAC9D,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,YAAY,EAAE,YAAY,CAAA;IAC1B,IAAI,EAAE,YAAY,CAAA;IAClB,aAAa,EAAE,OAAO,CAAA;IACtB,eAAe,EAAE,OAAO,CAAA;IACxB,SAAS,EAAE,OAAO,CAAA;IAClB,aAAa,EAAE,OAAO,CAAA;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,oBAAoB,EAAE,OAAO,CAAA;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;CACpB;AAED,MAAM,WAAW,2BAA4B,SAAQ,gBAAgB;IACnE,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IAEpB,oBAAoB,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAA;IACzC,SAAS,EAAE,MAAM,CAAA;IACjB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAQD,wBAAgB,sBAAsB,CAAC,EACrC,SAAS,EACT,YAAY,EACZ,oBAAoB,EACpB,oBAAoB,EACpB,SAAS,EACT,UAAkB,GACnB,EAAE,2BAA2B,2CAof7B"}
1
+ {"version":3,"file":"ProductCategoryControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/product-category/ProductCategoryControl.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAA;AAEzF,OAAO,EACL,YAAY,EACZ,YAAY,EAKb,MAAM,kEAAkE,CAAA;AAGzE,OAAO,EAAE,gBAAgB,EAAmB,MAAM,UAAU,CAAA;AAO5D,MAAM,WAAW,4BAA6B,SAAQ,UAAU;IAC9D,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,YAAY,EAAE,YAAY,CAAA;IAC1B,IAAI,EAAE,YAAY,CAAA;IAClB,aAAa,EAAE,OAAO,CAAA;IACtB,eAAe,EAAE,OAAO,CAAA;IACxB,SAAS,EAAE,OAAO,CAAA;IAClB,aAAa,EAAE,OAAO,CAAA;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,oBAAoB,EAAE,OAAO,CAAA;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;CACpB;AAED,MAAM,WAAW,2BAA4B,SAAQ,gBAAgB;IACnE,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IAEpB,oBAAoB,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAA;IACzC,SAAS,EAAE,MAAM,CAAA;IACjB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAQD,wBAAgB,sBAAsB,CAAC,EACrC,SAAS,EACT,YAAY,EACZ,oBAAoB,EACpB,oBAAoB,EACpB,SAAS,EACT,UAAkB,GACnB,EAAE,2BAA2B,2CAwf7B"}