@licklist/design 0.71.18-dev.18 → 0.71.18-dev.2

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 (145) hide show
  1. package/dist/events/edit-event-modal/IntervalInput.d.ts +1 -3
  2. package/dist/events/edit-event-modal/IntervalInput.d.ts.map +1 -1
  3. package/dist/events/edit-event-modal/IntervalInput.js +4 -11
  4. package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts +1 -3
  5. package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts.map +1 -1
  6. package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.js +3 -14
  7. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +0 -1
  8. package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts +1 -5
  9. package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts.map +1 -1
  10. package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.js +3 -5
  11. package/dist/events/event-statistic-modal/utils/index.js +3 -3
  12. package/dist/iframe/event/ticket-description/TicketDescription.d.ts +1 -3
  13. package/dist/iframe/event/ticket-description/TicketDescription.d.ts.map +1 -1
  14. package/dist/iframe/event/ticket-description/TicketDescription.js +7 -10
  15. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts +1 -1
  16. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
  17. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +1 -2
  18. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts +1 -5
  19. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts.map +1 -1
  20. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.js +1 -12
  21. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +0 -1
  22. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
  23. package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts +0 -4
  24. package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
  25. package/dist/iframe/order-process/components/BookingSummary/utils/index.js +2 -29
  26. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
  27. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +2 -106
  28. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts +1 -3
  29. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
  30. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +1 -95
  31. package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts.map +1 -1
  32. package/dist/iframe/payment/order-items-table/hooks/useTableData.js +10 -83
  33. package/dist/iframe/payment/order-items-table/utils/index.d.ts.map +1 -1
  34. package/dist/iframe/payment/order-items-table/utils/index.js +0 -15
  35. package/dist/iframe/payment/order-items-table/utils/paymentSummary.js +2 -2
  36. package/dist/iframe/payment/payment-page/PaymentPage.d.ts.map +1 -1
  37. package/dist/iframe/payment/payment-page/PaymentPage.js +1 -4
  38. package/dist/index.js +2 -2
  39. package/dist/product-set/form/ProductSetForm.d.ts +1 -3
  40. package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
  41. package/dist/product-set/form/ProductSetForm.js +4 -6
  42. package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
  43. package/dist/product-set/form/ProductsControl.js +5 -24
  44. package/dist/product-set/form/context.d.ts +1 -3
  45. package/dist/product-set/form/context.d.ts.map +1 -1
  46. package/dist/product-set/form/context.js +1 -2
  47. package/dist/product-set/product/ProductControl.d.ts +0 -8
  48. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  49. package/dist/product-set/product/ProductControl.js +1 -25
  50. package/dist/product-set/utils/index.d.ts +0 -88
  51. package/dist/product-set/utils/index.d.ts.map +1 -1
  52. package/dist/product-set/utils/index.js +1 -19
  53. package/dist/recurrence-input/RecurrenceInput.d.ts.map +1 -1
  54. package/dist/report/ReportRunnerModal/ReportRunnerModal.d.ts +1 -1
  55. package/dist/report/ReportRunnerModal/ReportRunnerModal.d.ts.map +1 -1
  56. package/dist/sales/coupon/utils/index.d.ts +1 -2
  57. package/dist/sales/coupon/utils/index.d.ts.map +1 -1
  58. package/dist/sales/modals/refund-modal/RefundModal.d.ts +2 -6
  59. package/dist/sales/modals/refund-modal/RefundModal.d.ts.map +1 -1
  60. package/dist/sales/modals/refund-modal/RefundModal.js +4 -8
  61. package/dist/sales/modals/refund-modal/index.d.ts +2 -2
  62. package/dist/sales/modals/refund-modal/index.d.ts.map +1 -1
  63. package/dist/styles/date-time-button/DateTimeButton.scss +1 -8
  64. package/dist/styles/events/EditEventModal.scss +0 -2
  65. package/dist/styles/iframe-page/Page.scss +0 -16
  66. package/dist/styles/iframe-page/PageBody.scss +0 -4
  67. package/dist/styles/modals/Modals.scss +0 -16
  68. package/dist/styles/product-set/EditProductSetElement.scss +0 -1
  69. package/dist/styles/product-set/ProductSetForm.scss +0 -11
  70. package/dist/styles/sales/ManualBooking.scss +0 -6
  71. package/dist/styles/themes/bookedit/index.scss +0 -19
  72. package/package.json +6 -6
  73. package/src/events/edit-event-modal/IntervalInput.tsx +3 -13
  74. package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +1 -16
  75. package/src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx +1 -9
  76. package/src/events/event-statistic-modal/utils/index.ts +4 -4
  77. package/src/iframe/event/ticket-description/TicketDescription.tsx +4 -11
  78. package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +0 -2
  79. package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +2 -24
  80. package/src/iframe/order-process/components/BookingSummary/types/index.ts +0 -1
  81. package/src/iframe/order-process/components/BookingSummary/utils/index.ts +1 -42
  82. package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +75 -155
  83. package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +1 -58
  84. package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +14 -84
  85. package/src/iframe/payment/order-items-table/utils/index.ts +0 -23
  86. package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +2 -2
  87. package/src/iframe/payment/payment-page/PaymentPage.tsx +10 -8
  88. package/src/product-set/form/ProductSetForm.tsx +3 -11
  89. package/src/product-set/form/ProductsControl.tsx +15 -33
  90. package/src/product-set/form/context.tsx +0 -5
  91. package/src/product-set/product/ProductControl.tsx +1 -37
  92. package/src/product-set/utils/index.ts +0 -19
  93. package/src/recurrence-input/RecurrenceInput.tsx +5 -3
  94. package/src/report/ReportRunnerModal/ReportRunnerModal.tsx +2 -2
  95. package/src/sales/coupon/utils/index.ts +3 -5
  96. package/src/sales/modals/refund-modal/RefundModal.tsx +6 -15
  97. package/src/sales/modals/refund-modal/index.ts +2 -7
  98. package/src/styles/date-time-button/DateTimeButton.scss +1 -8
  99. package/src/styles/events/EditEventModal.scss +0 -2
  100. package/src/styles/iframe-page/Page.scss +0 -16
  101. package/src/styles/iframe-page/PageBody.scss +0 -4
  102. package/src/styles/modals/Modals.scss +0 -16
  103. package/src/styles/product-set/EditProductSetElement.scss +0 -1
  104. package/src/styles/product-set/ProductSetForm.scss +0 -11
  105. package/src/styles/sales/ManualBooking.scss +0 -6
  106. package/src/styles/themes/bookedit/index.scss +0 -19
  107. package/yarn.lock +376 -377
  108. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.d.ts +0 -18
  109. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.d.ts.map +0 -1
  110. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.js +0 -295
  111. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.d.ts +0 -15
  112. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.d.ts.map +0 -1
  113. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js +0 -90
  114. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts +0 -14
  115. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts.map +0 -1
  116. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.js +0 -404
  117. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.d.ts +0 -10
  118. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.d.ts.map +0 -1
  119. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.js +0 -87
  120. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/index.d.ts +0 -2
  121. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/index.d.ts.map +0 -1
  122. package/dist/iframe/ProductWithModifierModal/index.d.ts +0 -2
  123. package/dist/iframe/ProductWithModifierModal/index.d.ts.map +0 -1
  124. package/dist/iframe/ProductWithModifierModal/utils.d.ts +0 -5
  125. package/dist/iframe/ProductWithModifierModal/utils.d.ts.map +0 -1
  126. package/dist/iframe/ProductWithModifierModal/utils.js +0 -21
  127. package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.d.ts +0 -23
  128. package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.d.ts.map +0 -1
  129. package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.js +0 -62
  130. package/dist/iframe/order-process/components/CategoryProduct/constants.d.ts +0 -2
  131. package/dist/iframe/order-process/components/CategoryProduct/constants.d.ts.map +0 -1
  132. package/dist/iframe/order-process/components/CategoryProduct/constants.js +0 -4
  133. package/dist/iframe/order-process/components/utils/useOnWindowUnmount.d.ts +0 -6
  134. package/dist/iframe/order-process/components/utils/useOnWindowUnmount.d.ts.map +0 -1
  135. package/dist/iframe/order-process/components/utils/useOnWindowUnmount.js +0 -18
  136. package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.tsx +0 -212
  137. package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx +0 -76
  138. package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.tsx +0 -393
  139. package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.tsx +0 -98
  140. package/src/iframe/ProductWithModifierModal/ModifierSetModal/index.ts +0 -1
  141. package/src/iframe/ProductWithModifierModal/index.ts +0 -1
  142. package/src/iframe/ProductWithModifierModal/utils.ts +0 -29
  143. package/src/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.tsx +0 -86
  144. package/src/iframe/order-process/components/CategoryProduct/constants.ts +0 -1
  145. package/src/iframe/order-process/components/utils/useOnWindowUnmount.ts +0 -25
@@ -112,8 +112,6 @@ var getDefaultProductValue = function(sort) {
112
112
  maxQuantity: null,
113
113
  totalQuantity: 0,
114
114
  isAvailable: true,
115
- modifiersSet: [],
116
- modifiersSetsId: [],
117
115
  isSoldOut: false,
118
116
  isRequired: false,
119
117
  isUnlimited: false,
@@ -168,12 +166,6 @@ function ProductsControl(param) {
168
166
  return "".concat(productControlFieldName, ".").concat(index, ".isUnlimited");
169
167
  }))
170
168
  });
171
- var modifierSets = useWatch({
172
- control: control,
173
- name: _to_consumable_array(fields.map(function(_, index) {
174
- return "".concat(productControlFieldName, ".").concat(index, ".modifiersSet");
175
- }))
176
- });
177
169
  var categoryProductErrors = errors === null || errors === void 0 ? void 0 : (_errors_steps = errors.steps) === null || _errors_steps === void 0 ? void 0 : (_errors_steps_stepIndex = _errors_steps[stepIndex]) === null || _errors_steps_stepIndex === void 0 ? void 0 : (_errors_steps_stepIndex_productCategories = _errors_steps_stepIndex.productCategories) === null || _errors_steps_stepIndex_productCategories === void 0 ? void 0 : (_errors_steps_stepIndex_productCategories_productCategoryIndex = _errors_steps_stepIndex_productCategories[productCategoryIndex]) === null || _errors_steps_stepIndex_productCategories_productCategoryIndex === void 0 ? void 0 : _errors_steps_stepIndex_productCategories_productCategoryIndex.products;
178
170
  var isFirstProductAdded = fields.length === 1;
179
171
  var mouseSensor = useSensor(MouseSensor, {
@@ -217,10 +209,8 @@ function ProductsControl(param) {
217
209
  mouseSensor
218
210
  ],
219
211
  children: fields.map(function(product, index) {
220
- var _modifierSets_index;
221
212
  var isOverridesProductSet = isEventEditProductSet ? !!product.id : isOverrides && !!product.originalProductId;
222
213
  var isNewProductOverrides = isCreateNewOverrides && !!product.id;
223
- var modifiersSets = ((_modifierSets_index = modifierSets[index]) === null || _modifierSets_index === void 0 ? void 0 : _modifierSets_index.length) || 0;
224
214
  return /*#__PURE__*/ jsx(Controller, {
225
215
  control: control,
226
216
  name: "".concat(productControlFieldName, ".").concat(index, ".name"),
@@ -250,22 +240,13 @@ function ProductsControl(param) {
250
240
  },
251
241
  secondaryBadge: getBadgeConfig(categoryType, t(categoryType)),
252
242
  subTitle: /*#__PURE__*/ jsxs("div", {
253
- className: "d-flex justify-content-between",
243
+ className: "product-set-badges-container",
254
244
  children: [
255
- /*#__PURE__*/ jsxs("div", {
256
- className: "product-set-badges-container",
257
- children: [
258
- /*#__PURE__*/ jsx("div", {
259
- className: "product-set-subtitle-dot product-set-subtitle-product-dot"
260
- }),
261
- /*#__PURE__*/ jsx("span", {
262
- children: "\xa3".concat(prices[index], " ").concat(t('each'), " - ").concat(t('qty'), ":").concat(!isUnlimitedQuantities[index] ? " ".concat(quantities[index]) : t(' unlimited'), " ").concat(!isUnlimitedQuantities[index] ? " - ".concat(t('possibleRevenue'), " \xa3").concat(prices[index] * quantities[index]) : '', " ")
263
- })
264
- ]
245
+ /*#__PURE__*/ jsx("div", {
246
+ className: "product-set-subtitle-dot product-set-subtitle-product-dot"
265
247
  }),
266
- !!modifiersSets && /*#__PURE__*/ jsx(Badge, {
267
- className: "modifier-badge",
268
- children: "".concat(modifiersSets, " ").concat(t('modifiersSets'))
248
+ /*#__PURE__*/ jsx("span", {
249
+ children: "\xa3".concat(prices[index], " ").concat(t('each'), " - ").concat(t('qty'), ":").concat(!isUnlimitedQuantities[index] ? " ".concat(quantities[index]) : t(' unlimited'), " ").concat(!isUnlimitedQuantities[index] ? " - ".concat(t('possibleRevenue'), " \xa3").concat(prices[index] * quantities[index]) : '', " ")
269
250
  })
270
251
  ]
271
252
  }),
@@ -1,6 +1,5 @@
1
1
  import { PropsWithChildren, SetStateAction, Dispatch } from 'react';
2
2
  import { VenueMapSet } from '@licklist/core/dist/DataMapper/Product/VenueMapSetDataMapper';
3
- import { ModifierSet } from '@licklist/core/dist/DataMapper/Product/ModifierSetDataMapper';
4
3
  import { ProviderBookingManagementSetting } from '@licklist/core/dist/DataMapper/Provider/ProviderBookingManagementSettingDataMapper';
5
4
  import { Zone } from '@licklist/core/dist/DataMapper/Provider/ZoneDataMapper';
6
5
  import { SelectItem } from '../../types/generic/SelectItem';
@@ -8,7 +7,6 @@ interface LoadingContext {
8
7
  isLoading: boolean;
9
8
  setLoading: (loading: boolean) => void;
10
9
  productGroupList?: SelectItem[];
11
- modifiersSetList?: ModifierSet[] | null;
12
10
  providerHasMap?: boolean | null;
13
11
  venueMapSets?: VenueMapSet[];
14
12
  providerHasBookingManagement?: ProviderBookingManagementSetting['hasBookingManagement'];
@@ -18,6 +16,6 @@ interface LoadingContext {
18
16
  }
19
17
  export declare const ProductSetLoadingContext: import("react").Context<LoadingContext>;
20
18
  type ProductSetContextProviderProps = PropsWithChildren<Omit<LoadingContext, 'isLoading' | 'setLoading' | 'expandedProductCategories' | 'setExpandedProductCategories'>>;
21
- export declare function ProductSetContextProvider({ children, productGroupList, modifiersSetList, providerHasMap, venueMapSets, providerHasBookingManagement, zones, }: ProductSetContextProviderProps): import("react/jsx-runtime").JSX.Element;
19
+ export declare function ProductSetContextProvider({ children, productGroupList, providerHasMap, venueMapSets, providerHasBookingManagement, zones, }: ProductSetContextProviderProps): import("react/jsx-runtime").JSX.Element;
22
20
  export {};
23
21
  //# sourceMappingURL=context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/context.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,cAAc,EAId,QAAQ,EACT,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAA;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAA;AAE1F,OAAO,EAAE,gCAAgC,EAAE,MAAM,oFAAoF,CAAA;AACrI,OAAO,EAAE,IAAI,EAAE,MAAM,wDAAwD,CAAA;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAG3D,UAAU,cAAc;IACtB,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,gBAAgB,CAAC,EAAE,UAAU,EAAE,CAAA;IAC/B,gBAAgB,CAAC,EAAE,WAAW,EAAE,GAAG,IAAI,CAAA;IACvC,cAAc,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IAC/B,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;IAC5B,4BAA4B,CAAC,EAAE,gCAAgC,CAAC,sBAAsB,CAAC,CAAA;IACvF,KAAK,CAAC,EAAE,IAAI,EAAE,GAAG,IAAI,CAAA;IACrB,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAClD,4BAA4B,EAAE,QAAQ,CACpC,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CACxC,CAAA;CACF;AAED,eAAO,MAAM,wBAAwB,yCAEpC,CAAA;AAED,KAAK,8BAA8B,GAAG,iBAAiB,CACrD,IAAI,CACF,cAAc,EACZ,WAAW,GAC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B,8BAA8B,CACjC,CACF,CAAA;AAED,wBAAgB,yBAAyB,CAAC,EACxC,QAAQ,EACR,gBAAqB,EACrB,cAAsB,EACtB,YAAiB,EACjB,4BAA4B,EAC5B,KAAK,GACN,EAAE,8BAA8B,2CA0BhC"}
@@ -49,7 +49,7 @@ function _unsupported_iterable_to_array(o, minLen) {
49
49
  }
50
50
  var ProductSetLoadingContext = /*#__PURE__*/ createContext(null);
51
51
  function ProductSetContextProvider(param) {
52
- var children = param.children, _param_productGroupList = param.productGroupList, productGroupList = _param_productGroupList === void 0 ? [] : _param_productGroupList, _param_modifiersSetList = param.modifiersSetList, modifiersSetList = _param_modifiersSetList === void 0 ? [] : _param_modifiersSetList, _param_providerHasMap = param.providerHasMap, providerHasMap = _param_providerHasMap === void 0 ? false : _param_providerHasMap, _param_venueMapSets = param.venueMapSets, venueMapSets = _param_venueMapSets === void 0 ? [] : _param_venueMapSets, providerHasBookingManagement = param.providerHasBookingManagement, zones = param.zones;
52
+ var children = param.children, _param_productGroupList = param.productGroupList, productGroupList = _param_productGroupList === void 0 ? [] : _param_productGroupList, _param_providerHasMap = param.providerHasMap, providerHasMap = _param_providerHasMap === void 0 ? false : _param_providerHasMap, _param_venueMapSets = param.venueMapSets, venueMapSets = _param_venueMapSets === void 0 ? [] : _param_venueMapSets, providerHasBookingManagement = param.providerHasBookingManagement, zones = param.zones;
53
53
  var _useState = _sliced_to_array(useState(undefined), 2), zonesState = _useState[0], setZonesState = _useState[1];
54
54
  var _useState1 = _sliced_to_array(useState(false), 2), loading = _useState1[0], setLoading = _useState1[1];
55
55
  var _useState2 = _sliced_to_array(useState({}), 2), expandedProductCategories = _useState2[0], setExpandedProductCategories = _useState2[1];
@@ -63,7 +63,6 @@ function ProductSetContextProvider(param) {
63
63
  isLoading: loading,
64
64
  setLoading: setLoading,
65
65
  productGroupList: productGroupList,
66
- modifiersSetList: modifiersSetList,
67
66
  providerHasMap: providerHasMap,
68
67
  venueMapSets: venueMapSets,
69
68
  providerHasBookingManagement: providerHasBookingManagement,
@@ -7,12 +7,6 @@ import { ProductBookingManagementControlProps } from './booking-management/Produ
7
7
  import { ProductDepositControlValues } from './deposit/ProductDepositControl';
8
8
  import { IsDeletableEvent } from '../types';
9
9
  import { ProductZoneControlValues } from '../product-zone';
10
- export interface ModifiersSet {
11
- id: number;
12
- value?: string;
13
- name?: string;
14
- label?: string;
15
- }
16
10
  export interface ProductControlValues extends FormValues, ProductDepositControlValues {
17
11
  name: string;
18
12
  productGroupId: number;
@@ -32,8 +26,6 @@ export interface ProductControlValues extends FormValues, ProductDepositControlV
32
26
  hasSpecialNotes: boolean;
33
27
  minSpend?: number | null;
34
28
  type?: ProductType;
35
- modifiersSetsId?: Array<ModifiersSet>;
36
- modifiersSet?: Array<ModifiersSet>;
37
29
  weight?: number;
38
30
  tierId?: number;
39
31
  images: Image[] | null;
@@ -1 +1 @@
1
- {"version":3,"file":"ProductControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/product/ProductControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,YAAY,EAIb,MAAM,kEAAkE,CAAA;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,0DAA0D,CAAA;AAGtF,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AAErE,OAAO,EACL,WAAW,EAKZ,MAAM,OAAO,CAAA;AAed,OAAO,EACL,KAAK,EAEN,MAAM,sDAAsD,CAAA;AAS7D,OAAO,EAEL,oCAAoC,EACrC,MAAM,sDAAsD,CAAA;AAC7D,OAAO,EAEL,2BAA2B,EAC5B,MAAM,iCAAiC,CAAA;AAOxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAG3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAA;AAK1D,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE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B,YAAY,EAAE,YAAY,CAAA;IAC1B,aAAa,EAAE,OAAO,CAAA;IACtB,oBAAoB,EAAE,OAAO,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,mBAAmB,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAA;IAC/D,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAA;CAEtB;AAED,wBAAgB,cAAc,CAAC,CAAC,SAAS,UAAU,EAAE,EACnD,SAAiB,EACjB,eAAe,EACf,aAAqB,EACrB,oBAA4B,EAC5B,QAAa,EACb,MAAM,EACN,mBAAmB,EACnB,WAAW,EACX,SAAS,EACT,YAAY,EACZ,WAAmB,GACpB,EAAE,mBAAmB,CAAC,CAAC,CAAC,2CA+XxB"}
1
+ {"version":3,"file":"ProductControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/product/ProductControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,YAAY,EAIb,MAAM,kEAAkE,CAAA;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,0DAA0D,CAAA;AAGtF,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AAErE,OAAO,EACL,WAAW,EAKZ,MAAM,OAAO,CAAA;AAed,OAAO,EACL,KAAK,EAEN,MAAM,sDAAsD,CAAA;AAO7D,OAAO,EAEL,oCAAoC,EACrC,MAAM,sDAAsD,CAAA;AAC7D,OAAO,EAEL,2BAA2B,EAC5B,MAAM,iCAAiC,CAAA;AAOxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAG3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAA;AAM1D,MAAM,WAAW,oBACf,SAAQ,UAAU,EAChB,2BAA2B;IAC7B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AC/D,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,wBAAgB,cAAc,CAAC,CAAC,SAAS,UAAU,EAAE,EACnD,SAAiB,EACjB,eAAe,EACf,aAAqB,EACrB,oBAA4B,EAC5B,QAAa,EACb,MAAM,EACN,mBAAmB,EACnB,WAAW,EACX,SAAS,EACT,YAAY,EACZ,WAAmB,GACpB,EAAE,mBAAmB,CAAC,CAAC,CAAC,2CAwWxB"}
@@ -13,8 +13,6 @@ import { useTranslation } from 'react-i18next';
13
13
  import { useImages } from '@licklist/plugins/dist/hooks/Media/useImages';
14
14
  import { IMAGE_TYPE_IMAGE } from '@licklist/core/dist/DataMapper/Media/ImageDataMapper';
15
15
  import { FaClipboard } from 'react-icons/fa';
16
- import { Typeahead } from '../../typeahead/Typeahead.js';
17
- import { convertToTypeaheadOptions } from '../../sales/coupon/utils/index.js';
18
16
  import { checkIfZoneCategory } from '@licklist/plugins';
19
17
  import { FileUpload } from '../../file-upload/FileUpload.js';
20
18
  import '../../static/index.js';
@@ -132,7 +130,7 @@ function _unsupported_iterable_to_array(o, minLen) {
132
130
  function ProductControl(param) {
133
131
  var _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, fieldNamePrefix = param.fieldNamePrefix, _param_allowDeposits = param.allowDeposits, allowDeposits = _param_allowDeposits === void 0 ? false : _param_allowDeposits, _param_hasBookingManagement = param.hasBookingManagement, hasBookingManagement = _param_hasBookingManagement === void 0 ? false : _param_hasBookingManagement, _param_zoneList = param.zoneList, zoneList = _param_zoneList === void 0 ? [] : _param_zoneList, onCopy = param.onCopy, onProductNameChange = param.onProductNameChange, productName = param.productName, hasTicket = param.hasTicket, categoryType = param.categoryType, _param_isOverrides = param.isOverrides, isOverrides = _param_isOverrides === void 0 ? false : _param_isOverrides;
134
132
  var _useFormContext = useFormContext(), register = _useFormContext.register, control = _useFormContext.control, errors = _useFormContext.formState.errors, setValue = _useFormContext.setValue, getValues = _useFormContext.getValues, watch = _useFormContext.watch;
135
- var _useContext = useContext(ProductSetLoadingContext), setLoading = _useContext.setLoading, modifiersSetList = _useContext.modifiersSetList;
133
+ var setLoading = useContext(ProductSetLoadingContext).setLoading;
136
134
  var t = useTranslation([
137
135
  'Design',
138
136
  'Validation',
@@ -208,7 +206,6 @@ function ProductControl(param) {
208
206
  ]);
209
207
  var quantitySelector = quantityValue !== null && quantityValue !== void 0 ? quantityValue : '1';
210
208
  var quantity = QUANTITY_TYPE_LIST_DTO[quantitySelector];
211
- var modifierList = convertToTypeaheadOptions(modifiersSetList);
212
209
  return /*#__PURE__*/ jsxs(Fragment, {
213
210
  children: [
214
211
  /*#__PURE__*/ jsx(Row, {
@@ -352,27 +349,6 @@ function ProductControl(param) {
352
349
  ]
353
350
  })
354
351
  }),
355
- /*#__PURE__*/ jsx(Row, {
356
- children: /*#__PURE__*/ jsx(Col, {
357
- children: /*#__PURE__*/ jsxs(Form.Group, {
358
- className: "mb-3",
359
- children: [
360
- /*#__PURE__*/ jsx(Form.Label, {
361
- children: t('Design:addModifierSet')
362
- }),
363
- /*#__PURE__*/ jsx(Typeahead, _object_spread_props(_object_spread({
364
- name: "modifierList",
365
- options: modifierList
366
- }, register("".concat(fieldNamePrefix, ".modifiersSet"))), {
367
- isMultipleChoise: true,
368
- isCouponForm: true,
369
- placeholder: t('Design:choose'),
370
- noOptionsMessage: t('Design:noSelectedModifier')
371
- }))
372
- ]
373
- })
374
- })
375
- }),
376
352
  /*#__PURE__*/ jsxs(Row, {
377
353
  className: "my-4 mx-0 d-flex flex-column",
378
354
  children: [
@@ -20,94 +20,6 @@ export declare const sortArrayByIndex: <T>(array: T[]) => (T & {
20
20
  sort: number;
21
21
  })[];
22
22
  export declare const getFilteredTemplates: (templates?: EmailTemplate[] | SmsTemplate[], formTemplates?: TemplateItem[]) => TemplateItem[] | undefined;
23
- export declare const updateModifiersSetAtProductSetForm: (data: ProductSetFormValues) => {
24
- steps: {
25
- productCategories: {
26
- products: {
27
- modifiersSet: {
28
- id: number;
29
- value: string;
30
- label: string;
31
- }[];
32
- id: number;
33
- name: string;
34
- productGroupId: number;
35
- description: string;
36
- termsAndConditions: string;
37
- price: number;
38
- deposit: number;
39
- minQuantity: number;
40
- maxQuantity: number;
41
- totalQuantity: number;
42
- isAvailable: boolean;
43
- isSoldOut: boolean;
44
- originalProductId: number | null;
45
- isUnlimited: boolean;
46
- isRequired: boolean;
47
- quantitySelector: number;
48
- hasSpecialNotes: boolean;
49
- minSpend?: number | null;
50
- type?: import("@licklist/core/dist/DataMapper/Product/ProductDataMapper").ProductType;
51
- modifiersSetsId?: Array<import("..").ModifiersSet>;
52
- weight?: number;
53
- tierId?: number;
54
- images: import("@licklist/core/dist/DataMapper/Media/ImageDataMapper").Image[] | null;
55
- uuid: string;
56
- sort: number | null;
57
- color?: string;
58
- productZones?: import("../product-zone").ProductZoneControlValues[];
59
- subProducts?: import("../types").SubProduct[];
60
- _id?: number;
61
- }[];
62
- id: number;
63
- uniqueId?: string;
64
- name: string;
65
- minSubItems: number | null;
66
- maxSubItems: number | null;
67
- overallQuantity?: number | null;
68
- quantityType: import("@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper").QuantityType;
69
- type: import("@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper").CategoryType;
70
- isTimeRelated: boolean;
71
- collectUserInfo: boolean;
72
- hasTicket: boolean;
73
- allowDeposits: boolean;
74
- remainderExpireAfter?: number;
75
- hasBookingManagement: boolean;
76
- hasSubEvents?: boolean;
77
- weight?: number;
78
- isReusable?: boolean;
79
- saleDeadlineCategory?: number;
80
- termsAndConditions?: string;
81
- sort: number | null;
82
- _id?: number;
83
- }[];
84
- id: number;
85
- name: string;
86
- weight?: number;
87
- termsAndConditions?: string;
88
- hasMap: boolean;
89
- venueMapSetId: null | number;
90
- pointProducts?: Partial<import("@licklist/core/dist/DataMapper/Product/PointProductDataMapper").PointProduct>[];
91
- _id?: number;
92
- }[];
93
- isOverrides?: boolean;
94
- id?: number;
95
- name: string;
96
- description?: string;
97
- image?: import("@licklist/core/dist/DataMapper/Media/ImageDataMapper").Image;
98
- type: import("@licklist/core/dist/DataMapper/Product/ProductSetDataMapper").ProductSetType;
99
- termsAndConditions: string;
100
- thankYouPageUrl: string;
101
- operationalCost: import("@licklist/core/dist/DataMapper/Product/ProductSetDataMapper").OperationalCostType;
102
- productGroups?: import("../../types/generic/SelectItem").SelectItem[];
103
- relyOnPeopleType?: import("@licklist/core/dist/DataMapper/Product/ProductSetDataMapper").RelyOnPeopleType | null;
104
- fieldSetId?: number;
105
- saleDeadline?: number;
106
- emailTemplates?: TemplateItem[];
107
- smsTemplates?: TemplateItem[];
108
- localImageBlobURL?: string;
109
- menuRecurrences?: Partial<import("@licklist/core/dist/DataMapper/Product/ProductSetRecurrenceDataMapper").ProductSetRecurrence>[];
110
- };
111
23
  export declare const checkAvailableTimesErrors: ({ values, setError, t, }: CheckAvailableTimesErrors) => boolean;
112
24
  export declare const getTypeHeadItemsFromMenus: (menus?: (ProductSet | ProductSetFormValues)[]) => MenuTypeheadItem[];
113
25
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/product-set/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAA;AACnG,OAAO,EAAE,WAAW,EAAE,MAAM,mEAAmE,CAAA;AAG/F,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAG7D,UAAU,yBAAyB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,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D,UAAU,yBAAyB;IACjC,MAAM,EAAE,oBAAoB,CAAA;IAC5B,QAAQ,EAAE,eAAe,CAAC,oBAAoB,CAAC,CAAA;IAC/C,CAAC,EAAE,SAAS,CAAA;CACb;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd;AACD,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAC1B,CAAC,EAAE,aACC,MAAM,aACN,MAAM,QAQlB,CAAA;AAED,eAAO,MAAM,gBAAgB,GAAI,CAAC,SAAS,CAAC,EAAE;;IACmB,CAAA;AAEjE,eAAO,MAAM,oBAAoB,eACnB,aAAa,EAAE,GAAG,WAAW,EAAE,kBAC3B,YAAY,EAAE,KAC7B,YAAY,EAAE,GAAG,SAmBnB,CAAA;AAED,eAAO,MAAM,yBAAyB,6BAInC,yBAAyB,YA0B3B,CAAA;AAED,eAAO,MAAM,yBAAyB,WAC5B,CAAC,UAAU,GAAG,oBAAoB,CAAC,EAAE,KAC5C,gBAAgB,EACwD,CAAA"}
@@ -1,4 +1,3 @@
1
- import { convertToTypeaheadOptions } from '../../sales/coupon/utils/index.js';
2
1
  import { checkIfZoneCategory } from '@licklist/plugins';
3
2
 
4
3
  function _array_like_to_array(arr, len) {
@@ -110,23 +109,6 @@ var getFilteredTemplates = function(templates, formTemplates) {
110
109
  };
111
110
  });
112
111
  };
113
- var updateModifiersSetAtProductSetForm = function(data) {
114
- return _object_spread_props(_object_spread({}, data), {
115
- steps: data.steps.map(function(step) {
116
- return _object_spread_props(_object_spread({}, step), {
117
- productCategories: step.productCategories.map(function(category) {
118
- return _object_spread_props(_object_spread({}, category), {
119
- products: category.products.map(function(product) {
120
- return _object_spread_props(_object_spread({}, product), {
121
- modifiersSet: (product === null || product === void 0 ? void 0 : product.modifiersSet) ? convertToTypeaheadOptions(product.modifiersSet) : []
122
- });
123
- })
124
- });
125
- })
126
- });
127
- })
128
- });
129
- };
130
112
  var checkAvailableTimesErrors = function(param) {
131
113
  var values = param.values, setError = param.setError, t = param.t;
132
114
  var _values_steps, _values_menuRecurrences;
@@ -164,4 +146,4 @@ var getTypeHeadItemsFromMenus = function(menus) {
164
146
  });
165
147
  };
166
148
 
167
- export { checkAvailableTimesErrors, getFilteredTemplates, getTypeHeadItemsFromMenus, moveArrayElements, sortArrayByIndex, updateModifiersSetAtProductSetForm };
149
+ export { checkAvailableTimesErrors, getFilteredTemplates, getTypeHeadItemsFromMenus, moveArrayElements, sortArrayByIndex };
@@ -1 +1 @@
1
- {"version":3,"file":"RecurrenceInput.d.ts","sourceRoot":"","sources":["../../src/recurrence-input/RecurrenceInput.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,SAAS,EAAW,MAAM,OAAO,CAAA;AAWjD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,gBAAgB,CAAC,EAAE,SAAS,CAAA;CAC7B;AAED,wBAAgB,eAAe,CAAC,EAC9B,QAAgB,EAChB,IAAI,EACJ,OAAO,EACP,KAAK,EACL,QAAQ,EACR,gBAAmC,GACpC,EAAE,oBAAoB,2CAmEtB"}
1
+ {"version":3,"file":"RecurrenceInput.d.ts","sourceRoot":"","sources":["../../src/recurrence-input/RecurrenceInput.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,SAAS,EAAW,MAAM,OAAO,CAAA;AAWjD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,gBAAgB,CAAC,EAAE,SAAS,CAAA;CAC7B;AAED,wBAAgB,eAAe,CAAC,EAC9B,QAAgB,EAChB,IAAI,EACJ,OAAO,EACP,KAAK,EACL,QAAQ,EACR,gBAAmC,GACpC,EAAE,oBAAoB,2CAqEtB"}
@@ -17,6 +17,6 @@ export type ReportRunnerModalProps = {
17
17
  reports?: Report[] | null;
18
18
  providerId?: number;
19
19
  };
20
- export declare const ReportRunnerModal: ({ reportId, show, onHide, useShowReportFields, reports, generate, download, onEdit, providerId, }: ReportRunnerModalProps) => import("react/jsx-runtime").JSX.Element;
20
+ export declare const ReportRunnerModal: ({ reportId, show, onHide, useShowReportFields, reports, generate, download, onEdit, providerId }: ReportRunnerModalProps) => import("react/jsx-runtime").JSX.Element;
21
21
  export {};
22
22
  //# sourceMappingURL=ReportRunnerModal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ReportRunnerModal.d.ts","sourceRoot":"","sources":["../../../src/report/ReportRunnerModal/ReportRunnerModal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,MAAM,EAEN,UAAU,EACX,MAAM,uCAAuC,CAAA;AAM9C,OAAO,EAAE,SAAS,EAAE,MAAM,+CAA+C,CAAA;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qDAAqD,CAAA;AAG7F,UAAU,WAAW;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IAC7B,IAAI,EAAE,OAAO,CAAA;IACb,mBAAmB,EAAE,CACnB,UAAU,CAAC,EAAE,UAAU,KACpB,uBAAuB,CAAC,WAAW,EAAE,EAAE,OA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CAAA;IAClB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IACzB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AASD,eAAO,MAAM,iBAAiB,qGAU3B,sBAAsB,4CA8KxB,CAAA"}
@@ -1,6 +1,5 @@
1
- import { ModifierSet } from '@licklist/core/dist/DataMapper/Product/ModifierSetDataMapper';
2
1
  import { ProductGroup } from '@licklist/core/dist/DataMapper/Product/ProductGroupDataMapper';
3
- export declare const convertToTypeaheadOptions: (productGroups?: ProductGroup[] | ModifierSet[]) => {
2
+ export declare const convertToTypeaheadOptions: (productGroups?: ProductGroup[]) => {
4
3
  id: number;
5
4
  value: string;
6
5
  label: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sales/coupon/utils/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAA;AAC1F,OAAO,EAAE,YAAY,EAAE,MAAM,+DAA+D,CAAA;AAE5F,eAAO,MAAM,yBAAyB,mBAAoB,YAAY,EAAE,GAAG,WAAW,EAAE;;;;GAUvF,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sales/coupon/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,+DAA+D,CAAA;AAE5F,eAAO,MAAM,yBAAyB,mBAAoB,YAAY,EAAE;;;;GAUvE,CAAA"}
@@ -1,11 +1,7 @@
1
1
  import { OrderPaymentType } from '@licklist/core/dist/DataMapper/Order/OrderPaymentDataMapper';
2
- export declare const FULL_REFUND_TYPE = "fullRefund";
3
- export declare const PARTIAL_REFUND_TYPE = "partialRefund";
4
- export declare const NET_REFUND_TYPE = "netRefund";
5
- export type RefundType = typeof FULL_REFUND_TYPE | typeof PARTIAL_REFUND_TYPE | typeof NET_REFUND_TYPE;
6
2
  export interface RefundModalProps {
7
3
  isVisible: boolean;
8
- refundType?: RefundType;
4
+ isFullRefund?: boolean;
9
5
  onHide: () => void;
10
6
  onSubmit: (amount?: number) => void;
11
7
  isLoading?: boolean;
@@ -13,5 +9,5 @@ export interface RefundModalProps {
13
9
  defaultValue?: number;
14
10
  maxValue?: number;
15
11
  }
16
- export declare const RefundModal: ({ isVisible, onHide, onSubmit, isLoading, refundType, paymentType, defaultValue, maxValue, }: RefundModalProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const RefundModal: ({ isVisible, onHide, onSubmit, isLoading, isFullRefund, paymentType, defaultValue, maxValue, }: RefundModalProps) => import("react/jsx-runtime").JSX.Element;
17
13
  //# sourceMappingURL=RefundModal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RefundModal.d.ts","sourceRoot":"","sources":["../../../../src/sales/modals/refund-modal/RefundModal.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6DAA6D,CAAA;AAK9F,eAAO,MAAM,gBAAgB,eAAe,CAAA;AAC5C,eAAO,MAAM,mBAAmB,kBAAkB,CAAA;AAClD,eAAO,MAAM,eAAe,cAAc,CAAA;AAE1C,MAAM,MAAM,UAAU,GAClB,OAAO,gBAAgB,GACvB,OAAO,mBAAmB,GAC1B,OAAO,eAAe,CAAA;AAE1B,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,EAAE,gBAAgB,CAAA;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAMD,eAAO,MAAM,WAAW,iGASrB,gBAAgB,4CAoGlB,CAAA"}
1
+ {"version":3,"file":"RefundModal.d.ts","sourceRoot":"","sources":["../../../../src/sales/modals/refund-modal/RefundModal.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6DAA6D,CAAA;AAK9F,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,EAAE,gBAAgB,CAAA;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAMD,eAAO,MAAM,WAAW,mGASrB,gBAAgB,4CAoGlB,CAAA"}
@@ -61,17 +61,13 @@ function _object_spread_props(target, source) {
61
61
  }
62
62
  return target;
63
63
  }
64
- var FULL_REFUND_TYPE = 'fullRefund';
65
- var PARTIAL_REFUND_TYPE = 'partialRefund';
66
- var NET_REFUND_TYPE = 'netRefund';
67
64
  var RefundModal = function(param) {
68
- var isVisible = param.isVisible, onHide = param.onHide, onSubmit = param.onSubmit, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_refundType = param.refundType, refundType = _param_refundType === void 0 ? PARTIAL_REFUND_TYPE : _param_refundType, paymentType = param.paymentType, _param_defaultValue = param.defaultValue, defaultValue = _param_defaultValue === void 0 ? 0 : _param_defaultValue, maxValue = param.maxValue;
65
+ var isVisible = param.isVisible, onHide = param.onHide, onSubmit = param.onSubmit, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isFullRefund = param.isFullRefund, isFullRefund = _param_isFullRefund === void 0 ? false : _param_isFullRefund, paymentType = param.paymentType, _param_defaultValue = param.defaultValue, defaultValue = _param_defaultValue === void 0 ? 0 : _param_defaultValue, maxValue = param.maxValue;
69
66
  var _errors_amount;
70
67
  var t = useTranslation([
71
68
  'Design',
72
69
  'Validation'
73
70
  ]).t;
74
- var isInputDisabled = isLoading || refundType === 'fullRefund' || refundType === 'netRefund';
75
71
  var _useForm = useForm(), handleSubmit = _useForm.handleSubmit, register = _useForm.register, errors = _useForm.formState.errors, reset = _useForm.reset;
76
72
  var onModalSubmit = function(param) {
77
73
  var amount = param.amount;
@@ -101,7 +97,7 @@ var RefundModal = function(param) {
101
97
  children: [
102
98
  /*#__PURE__*/ jsx(ModalTitle, {
103
99
  as: "h5",
104
- children: t("Design:".concat(refundType))
100
+ children: t(isFullRefund ? 'Design:fullRefund' : 'Design:partialRefund')
105
101
  }),
106
102
  /*#__PURE__*/ jsx(Button, {
107
103
  variant: "danger",
@@ -154,7 +150,7 @@ var RefundModal = function(param) {
154
150
  }
155
151
  })), {
156
152
  step: 0.01,
157
- disabled: isInputDisabled,
153
+ disabled: isLoading || isFullRefund,
158
154
  isInvalid: !!errors.amount,
159
155
  min: 0
160
156
  })),
@@ -190,4 +186,4 @@ var RefundModal = function(param) {
190
186
  });
191
187
  };
192
188
 
193
- export { FULL_REFUND_TYPE, NET_REFUND_TYPE, PARTIAL_REFUND_TYPE, RefundModal };
189
+ export { RefundModal };
@@ -1,3 +1,3 @@
1
- export { RefundModal, FULL_REFUND_TYPE, NET_REFUND_TYPE, PARTIAL_REFUND_TYPE, } from './RefundModal';
2
- export type { RefundModalProps, RefundType } from './RefundModal';
1
+ export { RefundModal } from './RefundModal';
2
+ export type { RefundModalProps } from './RefundModal';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sales/modals/refund-modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,mBAAmB,GACpB,MAAM,eAAe,CAAA;AACtB,YAAY,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sales/modals/refund-modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA"}
@@ -33,7 +33,7 @@
33
33
 
34
34
  &.disabled {
35
35
  border: 2px solid $snippet-calendar-disabled-button-border-color;
36
- background-color: transparent;
36
+ background-color:transparent;
37
37
  border: none;
38
38
  color: $snippet-calendar-disabled-button-font-color;
39
39
  cursor: not-allowed;
@@ -105,10 +105,3 @@
105
105
  font-weight: 300;
106
106
  color: $snippet-calendar-button-font-color;
107
107
  }
108
-
109
- .modifier-price {
110
- font-size: 1rem;
111
- line-height: 1.03rem;
112
- font-weight: 500;
113
- color: $snippet-calendar-button-font-color;
114
- }
@@ -37,8 +37,6 @@
37
37
  .edit-step-dialog {
38
38
  .custom-checkbox {
39
39
  align-items: unset;
40
- position: relative;
41
- z-index: 0;
42
40
  .form-check-label {
43
41
  margin-top: 1rem;
44
42
  }
@@ -24,22 +24,6 @@
24
24
  min-width: auto;
25
25
  }
26
26
 
27
- .manual-booking-form-modal {
28
- width: 40vw !important;
29
- left: 60vh;
30
-
31
- .modal-content {
32
- height: 96vh;
33
- margin-left: auto;
34
- }
35
-
36
- @include media-breakpoint-down(sm) {
37
- width: 100vw !important;
38
- left: 0;
39
- top: 10% !important;
40
- }
41
- }
42
-
43
27
  .header-block {
44
28
  margin-bottom: 1rem;
45
29
  }
@@ -10,8 +10,6 @@
10
10
  height: calc(100svh - 5.5rem);
11
11
  }
12
12
 
13
-
14
-
15
13
  .left-block {
16
14
  flex: 1;
17
15
  align-items: stretch;
@@ -27,8 +25,6 @@
27
25
  min-height: calc(100svh - 6.5rem);
28
26
  }
29
27
 
30
-
31
-
32
28
  .navigation {
33
29
  font-size: 1.125rem;
34
30
  font-weight: 500;
@@ -6,22 +6,6 @@
6
6
  z-index: 1080;
7
7
  }
8
8
 
9
- .manual-booking-form-modal {
10
- width: 40vw !important;
11
- left: 66vw;
12
-
13
- .modal-content {
14
- min-height: 95vh;
15
- margin-left: auto;
16
- }
17
-
18
- @include media-breakpoint-down(sm) {
19
- width: 100vw !important;
20
- left: 0;
21
- top: 10% !important;
22
- }
23
- }
24
-
25
9
  .confirm-modal {
26
10
  z-index: 1081;
27
11
  }
@@ -90,7 +90,6 @@
90
90
  }
91
91
  label.btn-link {
92
92
  width: 4.5rem;
93
- z-index: 0;
94
93
  display: flex;
95
94
  justify-content: center;
96
95
  span {
@@ -58,11 +58,6 @@
58
58
  font-weight: 600;
59
59
  }
60
60
 
61
- .modifier-badge {
62
- font-size: 0.5rem;
63
- font-weight: 400;
64
- }
65
-
66
61
  .step-badge {
67
62
  background-color: #ffdbdb;
68
63
  color: #d52902;
@@ -86,12 +81,6 @@
86
81
  background-color: #e9f5ea;
87
82
  color: #269b36;
88
83
  }
89
-
90
- .modifier-badge {
91
- background-color: #e9f5ea;
92
- color: #269b36;
93
- height: 1rem;
94
- }
95
84
  }
96
85
 
97
86
  .product-set-mobile-footer {
@@ -234,12 +234,6 @@
234
234
  margin-bottom: 2rem;
235
235
  }
236
236
 
237
- .quantity-container-product {
238
- display: flex;
239
- justify-content: center;
240
- margin: 1rem;
241
- }
242
-
243
237
  .save-btn:disabled {
244
238
  background-color: #fafafa;
245
239
  border: none;
@@ -51,25 +51,6 @@
51
51
  border-bottom: 1px solid #f0f0f0;
52
52
  }
53
53
 
54
- .modifier-header {
55
- background-color: color('white');
56
- padding: 0 2.5rem;
57
- z-index: 2;
58
- margin-top: 1rem;
59
- min-height: 2rem;
60
- }
61
-
62
- .modifier-container {
63
- background-color: color('white');
64
- padding-bottom: 1rem;
65
- }
66
-
67
- .modifier-set-container {
68
- background-color: color('white');
69
- border-bottom: 2px solid #f0f0f0;
70
- padding-bottom: 1rem;
71
- }
72
-
73
54
  .header-user-image {
74
55
  width: 3rem;
75
56
  height: 3rem;