@licklist/design 0.70.7 → 0.70.8-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/affiliate/form/AffiliateForm.d.ts.map +1 -1
- package/dist/assets/iframe/available.svg +4 -4
- package/dist/assets/iframe/available.svg.js +16 -18
- package/dist/auth/Login/LoginComponent.js +2 -1
- package/dist/availability-indicator/AvailabilityIndicator.d.ts +4 -2
- package/dist/availability-indicator/AvailabilityIndicator.d.ts.map +1 -1
- package/dist/availability-indicator/AvailabilityIndicator.js +112 -18
- package/dist/calendar/Calendar.d.ts +2 -0
- package/dist/calendar/Calendar.d.ts.map +1 -1
- package/dist/calendar/components/CalendarDates/CalendarDates.d.ts +2 -2
- package/dist/calendar/components/CalendarDates/CalendarDates.d.ts.map +1 -1
- package/dist/calendar/components/CalendarDates/CalendarDates.js +3 -2
- package/dist/calendar/utils/index.d.ts +8 -2
- package/dist/calendar/utils/index.d.ts.map +1 -1
- package/dist/calendar/utils/index.js +9 -21
- package/dist/date-time-button/DateContent.d.ts.map +1 -1
- package/dist/date-time-button/DateContent.js +3 -3
- package/dist/date-time-button/DateTimeButton.d.ts +3 -1
- package/dist/date-time-button/DateTimeButton.d.ts.map +1 -1
- package/dist/date-time-button/DateTimeButton.js +5 -3
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +3 -1
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +0 -1
- package/dist/events/event-venue-map/EventVenueMap.d.ts.map +1 -1
- package/dist/events/event-venue-map/EventVenueMap.js +1 -0
- package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts.map +1 -1
- package/dist/events/event-venue-map/hooks/useCanvasSize.js +11 -4
- package/dist/iframe/activity-card/ActivityCard.d.ts +3 -1
- package/dist/iframe/activity-card/ActivityCard.d.ts.map +1 -1
- package/dist/iframe/activity-card/ActivityCard.js +5 -3
- package/dist/iframe/event/ticket-description/TicketDescription.d.ts.map +1 -1
- package/dist/iframe/event/ticket-description/TicketDescription.js +43 -32
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +13 -0
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
- package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
- package/dist/iframe/ryft/RyftPaymentForm.js +25 -12
- package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
- package/dist/iframe/ryft/utils/ryft-form.js +4 -5
- package/dist/layout/DropDown.d.ts +2 -1
- package/dist/layout/DropDown.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.js +3 -0
- package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductCategoriesControl.js +48 -2
- package/dist/product-set/form/ProductSetForm.d.ts +4 -1
- package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.js +1 -1
- package/dist/product-set/form/ProductZonesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductZonesControl.js +0 -2
- package/dist/product-set/form/ProductsControl.js +1 -0
- package/dist/product-set/form/SelectCategoryModal.d.ts +12 -0
- package/dist/product-set/form/SelectCategoryModal.d.ts.map +1 -1
- package/dist/product-set/form/SelectCategoryModal.js +1 -1
- package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/SubProductsControl.js +0 -3
- package/dist/product-set/form/VenueMapSetModal.d.ts.map +1 -1
- package/dist/product-set/form/VenueMapSetModal.js +7 -7
- package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
- package/dist/product-set/form/VenueMapsControl.js +0 -3
- package/dist/product-set/product/ProductControl.d.ts.map +1 -1
- package/dist/product-set/product/advanced-options/AdvancedOptions.js +1 -0
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.d.ts.map +1 -1
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +6 -0
- package/dist/product-set/product/deposit/ProductDepositControl.d.ts.map +1 -1
- package/dist/product-set/product/deposit/ProductDepositControl.js +3 -0
- package/dist/product-set/product/duration/ProductDurationControl.d.ts.map +1 -1
- package/dist/product-set/product/duration/ProductDurationControl.js +6 -0
- package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
- package/dist/product-set/product/price/ProductPriceControl.js +3 -0
- package/dist/product-set/product/quantity/ProductQuantityConstantControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityConstantControl.js +6 -0
- package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityControl.js +6 -0
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +4 -1
- package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
- package/dist/product-set/product-category/ProductCategoryControl.js +12 -0
- package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceEndInput.js +3 -0
- package/dist/recurring-date-picker-input/RecurrenceEndInput.d.ts.map +1 -1
- package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
- package/dist/resource/form/components/CapacityControl.js +3 -0
- package/dist/resource/form/components/SortControl.d.ts.map +1 -1
- package/dist/resource/form/components/SortControl.js +3 -0
- package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
- package/dist/sales/booking/results/components/ResultCard.js +0 -2
- package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
- package/dist/sales/coupon/control/CouponFormControl.js +21 -0
- package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
- package/dist/setting/admin/PaymentFeeForm.js +16 -1
- package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/DashboardSettingForm.js +4 -1
- package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
- package/dist/snippet/snippet-template/preview/Preview.js +8 -0
- package/dist/sortable-tree/SortableTreeItem.d.ts +2 -1
- package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
- package/dist/sortable-tree/SortableTreeItem.js +10 -4
- package/dist/static/CurrencyNumberInput.d.ts.map +1 -1
- package/dist/static/CurrencyNumberInput.js +3 -0
- package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
- package/dist/static/form-number-input/FormNumberInput.js +3 -0
- package/dist/static/number-input/NumberInput.d.ts.map +1 -1
- package/dist/static/number-input/NumberInput.js +3 -0
- package/dist/styles/availability-indicator/AvailabilityIndicator.scss +9 -0
- package/dist/styles/date-time-button/DateTimeButton.scss +2 -1
- package/dist/styles/iframe-events/TicketDescription.scss +1 -1
- package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/dist/styles/product-set/ProductSetForm.scss +22 -0
- package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +1 -3
- package/dist/styles/sales/BookingResults.scss +1 -1
- package/dist/tiptap-editor/TipTapEditor.d.ts +2 -1
- package/dist/tiptap-editor/TipTapEditor.d.ts.map +1 -1
- package/dist/tiptap-editor/TipTapEditor.js +32 -2
- package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -1
- package/dist/zone/form/components/GameDurationControl.js +3 -0
- package/dist/zone/form/components/SortControl.d.ts.map +1 -1
- package/dist/zone/form/components/SortControl.js +3 -0
- package/package.json +8 -6
- package/src/affiliate/form/AffiliateForm.tsx +1 -0
- package/src/assets/iframe/available.svg +4 -4
- package/src/auth/Login/LoginComponent.tsx +1 -1
- package/src/availability-indicator/AvailabilityIndicator.tsx +92 -17
- package/src/calendar/Calendar.tsx +2 -0
- package/src/calendar/components/CalendarDates/CalendarDates.tsx +3 -0
- package/src/calendar/utils/index.ts +17 -26
- package/src/date-time-button/DateContent.tsx +3 -3
- package/src/date-time-button/DateTimeButton.tsx +7 -3
- package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +0 -1
- package/src/events/event-venue-map/EventVenueMap.tsx +1 -0
- package/src/events/event-venue-map/hooks/useCanvasSize.ts +5 -1
- package/src/iframe/activity-card/ActivityCard.tsx +15 -2
- package/src/iframe/event/ticket-description/TicketDescription.tsx +35 -22
- package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +9 -0
- package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +1 -0
- package/src/iframe/ryft/RyftPaymentForm.tsx +14 -3
- package/src/iframe/ryft/utils/ryft-form.ts +6 -5
- package/src/layout/DropDown.tsx +1 -1
- package/src/notification/email-template/control/EmailTemplateControl.tsx +1 -0
- package/src/product-set/form/ProductCategoriesControl.tsx +37 -1
- package/src/product-set/form/ProductSetForm.tsx +6 -2
- package/src/product-set/form/ProductZonesControl.tsx +1 -4
- package/src/product-set/form/SelectCategoryModal.tsx +2 -2
- package/src/product-set/form/SubProductsControl.tsx +0 -3
- package/src/product-set/form/VenueMapSetModal.tsx +8 -9
- package/src/product-set/form/VenueMapsControl.tsx +0 -3
- package/src/product-set/product/ProductControl.tsx +0 -1
- package/src/product-set/product/advanced-options/AdvancedOptions.tsx +1 -1
- package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +2 -0
- package/src/product-set/product/deposit/ProductDepositControl.tsx +1 -0
- package/src/product-set/product/duration/ProductDurationControl.tsx +2 -0
- package/src/product-set/product/price/ProductPriceControl.tsx +1 -0
- package/src/product-set/product/quantity/ProductQuantityConstantControl.tsx +2 -0
- package/src/product-set/product/quantity/ProductQuantityControl.tsx +2 -0
- package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +1 -0
- package/src/product-set/product-category/ProductCategoryControl.tsx +4 -0
- package/src/product-set/product-zone/ProductZoneControl.tsx +1 -1
- package/src/recurrence-input/RecurrenceEndInput.tsx +1 -0
- package/src/recurring-date-picker-input/RecurrenceEndInput.tsx +1 -0
- package/src/resource/form/components/CapacityControl.tsx +1 -0
- package/src/resource/form/components/SortControl.tsx +1 -0
- package/src/sales/booking/results/components/ResultCard.tsx +0 -2
- package/src/sales/coupon/control/CouponFormControl.tsx +7 -0
- package/src/setting/admin/PaymentFeeForm.tsx +5 -0
- package/src/setting/dashboard/DashboardSettingForm.tsx +1 -0
- package/src/snippet/snippet-template/preview/Preview.tsx +6 -0
- package/src/sortable-tree/SortableTreeItem.tsx +6 -0
- package/src/static/CurrencyNumberInput.tsx +1 -0
- package/src/static/form-number-input/FormNumberInput.tsx +1 -0
- package/src/static/number-input/NumberInput.tsx +1 -0
- package/src/styles/availability-indicator/AvailabilityIndicator.scss +9 -0
- package/src/styles/date-time-button/DateTimeButton.scss +2 -1
- package/src/styles/iframe-events/TicketDescription.scss +1 -1
- package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/src/styles/product-set/ProductSetForm.scss +22 -0
- package/src/styles/ryft-payment-form/RyftPaymentForm.scss +1 -3
- package/src/styles/sales/BookingResults.scss +1 -1
- package/src/tiptap-editor/TipTapEditor.tsx +8 -1
- package/src/zone/form/components/GameDurationControl.tsx +1 -0
- package/src/zone/form/components/SortControl.tsx +1 -0
- package/yarn.lock +29 -27
|
@@ -5,7 +5,7 @@ import { AvailabilityIndicator } from '../../availability-indicator/Availability
|
|
|
5
5
|
var LAYOUT_GRID = 'grid';
|
|
6
6
|
var LAYOUT_LIST = 'list';
|
|
7
7
|
var ActivityCard = function(param) {
|
|
8
|
-
var title = param.title, duration = param.duration, price = param.price, description = param.description, availableTimes = param.availableTimes, image = param.image, onSelect = param.onSelect, isSelected = param.isSelected, _param_layout = param.layout, layout = _param_layout === void 0 ? LAYOUT_GRID : _param_layout, resources = param.resources;
|
|
8
|
+
var title = param.title, duration = param.duration, price = param.price, description = param.description, availableTimes = param.availableTimes, image = param.image, onSelect = param.onSelect, isSelected = param.isSelected, _param_layout = param.layout, layout = _param_layout === void 0 ? LAYOUT_GRID : _param_layout, availabilityFormat = param.availabilityFormat, resources = param.resources;
|
|
9
9
|
if (layout === LAYOUT_GRID) {
|
|
10
10
|
return /*#__PURE__*/ jsxs("button", {
|
|
11
11
|
type: "button",
|
|
@@ -35,7 +35,8 @@ var ActivityCard = function(param) {
|
|
|
35
35
|
children: description
|
|
36
36
|
}),
|
|
37
37
|
resources && /*#__PURE__*/ jsx(AvailabilityIndicator, {
|
|
38
|
-
resources: resources
|
|
38
|
+
resources: resources,
|
|
39
|
+
availabilityFormat: availabilityFormat
|
|
39
40
|
})
|
|
40
41
|
]
|
|
41
42
|
})
|
|
@@ -74,7 +75,8 @@ var ActivityCard = function(param) {
|
|
|
74
75
|
children: description
|
|
75
76
|
}),
|
|
76
77
|
resources && /*#__PURE__*/ jsx(AvailabilityIndicator, {
|
|
77
|
-
resources: resources
|
|
78
|
+
resources: resources,
|
|
79
|
+
availabilityFormat: availabilityFormat
|
|
78
80
|
})
|
|
79
81
|
]
|
|
80
82
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TicketDescription.d.ts","sourceRoot":"","sources":["../../../../src/iframe/event/ticket-description/TicketDescription.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAY,MAAM,OAAO,CAAA;AAE1D,OAAO,EACL,KAAK,EAEN,MAAM,sDAAsD,CAAA;AAK7D,UAAU,sBAAsB;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAA;IACtB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAID,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,WAAW,EACX,SAAc,EACd,MAAM,EACN,KAAK,EACL,UAAkB,EAClB,SAAgB,GACjB,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"TicketDescription.d.ts","sourceRoot":"","sources":["../../../../src/iframe/event/ticket-description/TicketDescription.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAY,MAAM,OAAO,CAAA;AAE1D,OAAO,EACL,KAAK,EAEN,MAAM,sDAAsD,CAAA;AAK7D,UAAU,sBAAsB;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAA;IACtB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAID,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,WAAW,EACX,SAAc,EACd,MAAM,EACN,KAAK,EACL,UAAkB,EAClB,SAAgB,GACjB,EAAE,sBAAsB,2CAiDxB"}
|
|
@@ -56,40 +56,11 @@ var DESCRIPTION_MAX_LENGTH = 120;
|
|
|
56
56
|
function TicketDescription(param) {
|
|
57
57
|
var title = param.title, description = param.description, _param_className = param.className, className = _param_className === void 0 ? '' : _param_className, images = param.images, price = param.price, _param_isRequired = param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, _param_canExpand = param.canExpand, canExpand = _param_canExpand === void 0 ? true : _param_canExpand;
|
|
58
58
|
var _useState = _sliced_to_array(useState(false), 2), isDescriptionExpanded = _useState[0], setIsDescriptionExpanded = _useState[1];
|
|
59
|
-
var showDescription = !!description;
|
|
60
59
|
var wrapperClasses = clsx('ticket-description', className);
|
|
61
60
|
var imageSrc = images ? MediaService.getImageSrc(images, THUMBNAIL_IMAGE_SIZE) : null;
|
|
62
61
|
var descriptionWrapperStyle = {
|
|
63
62
|
'--description-wrapper-height': 'inherit'
|
|
64
63
|
};
|
|
65
|
-
var renderDescription = function() {
|
|
66
|
-
return /*#__PURE__*/ jsx("div", {
|
|
67
|
-
className: "description-content",
|
|
68
|
-
children: /*#__PURE__*/ jsxs("div", {
|
|
69
|
-
className: "d-flex flex-column",
|
|
70
|
-
children: [
|
|
71
|
-
/*#__PURE__*/ jsxs("div", {
|
|
72
|
-
className: "product-title",
|
|
73
|
-
children: [
|
|
74
|
-
title,
|
|
75
|
-
" ",
|
|
76
|
-
isRequired && /*#__PURE__*/ jsx("span", {
|
|
77
|
-
children: "*"
|
|
78
|
-
})
|
|
79
|
-
]
|
|
80
|
-
}),
|
|
81
|
-
showDescription && /*#__PURE__*/ jsx(TipTapEditor, {
|
|
82
|
-
viewMode: true,
|
|
83
|
-
disabled: true,
|
|
84
|
-
content: description,
|
|
85
|
-
editorStyle: {
|
|
86
|
-
backgroundColor: 'transparent'
|
|
87
|
-
}
|
|
88
|
-
})
|
|
89
|
-
]
|
|
90
|
-
})
|
|
91
|
-
});
|
|
92
|
-
};
|
|
93
64
|
return /*#__PURE__*/ jsxs("div", {
|
|
94
65
|
className: wrapperClasses,
|
|
95
66
|
children: [
|
|
@@ -110,17 +81,57 @@ function TicketDescription(param) {
|
|
|
110
81
|
className: "ticket-description__container",
|
|
111
82
|
isExpanded: isDescriptionExpanded,
|
|
112
83
|
setIsExpanded: setIsDescriptionExpanded,
|
|
113
|
-
children:
|
|
114
|
-
|
|
84
|
+
children: /*#__PURE__*/ jsx(Description, {
|
|
85
|
+
title: title,
|
|
86
|
+
isRequired: isRequired,
|
|
87
|
+
description: description
|
|
88
|
+
})
|
|
89
|
+
}) : /*#__PURE__*/ jsx(Description, {
|
|
90
|
+
title: title,
|
|
91
|
+
isRequired: isRequired,
|
|
92
|
+
description: description
|
|
93
|
+
})
|
|
115
94
|
]
|
|
116
95
|
})
|
|
117
96
|
}),
|
|
118
97
|
price && /*#__PURE__*/ jsx("div", {
|
|
119
|
-
className: clsx(
|
|
98
|
+
className: clsx({
|
|
99
|
+
'mt-5': description
|
|
100
|
+
}),
|
|
120
101
|
children: price
|
|
121
102
|
})
|
|
122
103
|
]
|
|
123
104
|
});
|
|
124
105
|
}
|
|
106
|
+
var Description = function(param) {
|
|
107
|
+
var title = param.title, isRequired = param.isRequired, description = param.description;
|
|
108
|
+
return /*#__PURE__*/ jsx("div", {
|
|
109
|
+
className: "description-content",
|
|
110
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
111
|
+
className: "d-flex flex-column",
|
|
112
|
+
children: [
|
|
113
|
+
/*#__PURE__*/ jsxs("div", {
|
|
114
|
+
className: "product-title",
|
|
115
|
+
children: [
|
|
116
|
+
title,
|
|
117
|
+
" ",
|
|
118
|
+
isRequired && /*#__PURE__*/ jsx("span", {
|
|
119
|
+
children: "*"
|
|
120
|
+
})
|
|
121
|
+
]
|
|
122
|
+
}),
|
|
123
|
+
!!description && /*#__PURE__*/ jsx(TipTapEditor, {
|
|
124
|
+
viewMode: true,
|
|
125
|
+
disabled: true,
|
|
126
|
+
content: description,
|
|
127
|
+
editorStyle: {
|
|
128
|
+
backgroundColor: 'transparent'
|
|
129
|
+
},
|
|
130
|
+
hideEmptyEditor: true
|
|
131
|
+
})
|
|
132
|
+
]
|
|
133
|
+
})
|
|
134
|
+
});
|
|
135
|
+
};
|
|
125
136
|
|
|
126
137
|
export { TicketDescription };
|
|
@@ -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,+
|
|
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"}
|
package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js
CHANGED
|
@@ -54,6 +54,9 @@ var NumberInput = /*#__PURE__*/ forwardRef(function(param, ref) {
|
|
|
54
54
|
onChange: function(e) {
|
|
55
55
|
return handleChangeValue(Number(e.target.value));
|
|
56
56
|
},
|
|
57
|
+
onWheel: function(event) {
|
|
58
|
+
return event.currentTarget.blur();
|
|
59
|
+
},
|
|
57
60
|
value: value,
|
|
58
61
|
min: 0,
|
|
59
62
|
max: max,
|
|
@@ -66,6 +69,16 @@ var NumberInput = /*#__PURE__*/ forwardRef(function(param, ref) {
|
|
|
66
69
|
/*#__PURE__*/ jsx("button", {
|
|
67
70
|
type: "button",
|
|
68
71
|
onClick: handleArrowUpClick,
|
|
72
|
+
onWheel: function(event) {
|
|
73
|
+
return event.currentTarget.blur();
|
|
74
|
+
},
|
|
75
|
+
onFocus: function(event) {
|
|
76
|
+
return event.target.addEventListener('wheel', function(event) {
|
|
77
|
+
return event.preventDefault();
|
|
78
|
+
}, {
|
|
79
|
+
passive: false
|
|
80
|
+
});
|
|
81
|
+
},
|
|
69
82
|
className: "payment-number-input__btn-up ".concat(plusButtonGreyedOut && 'disabled-number-input-button'),
|
|
70
83
|
disabled: disabled,
|
|
71
84
|
children: "+"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paymentSummary.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/payment/order-items-table/utils/paymentSummary.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,oBAAoB,EAEpB,WAAW,EAEZ,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"paymentSummary.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/payment/order-items-table/utils/paymentSummary.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,oBAAoB,EAEpB,WAAW,EAEZ,MAAM,UAAU,CAAA;AA4FjB,eAAO,MAAM,oBAAoB,oEAK9B,oBAAoB,KAAG,WAAW,EAUpC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RyftPaymentForm.d.ts","sourceRoot":"","sources":["../../../src/iframe/ryft/RyftPaymentForm.tsx"],"names":[],"mappings":"AAOA,OAAO,EAML,sBAAsB,EACvB,MAAM,kDAAkD,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,0EAA0E,CAAA;AAKlH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAW/C,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"RyftPaymentForm.d.ts","sourceRoot":"","sources":["../../../src/iframe/ryft/RyftPaymentForm.tsx"],"names":[],"mappings":"AAOA,OAAO,EAML,sBAAsB,EACvB,MAAM,kDAAkD,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,0EAA0E,CAAA;AAKlH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAW/C,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;AAOzD,MAAM,WAAW,oBAAoB;IAEnC,SAAS,EAAE,GAAG,CAAA;IACd,eAAe,EAAE,OAAO,CAAA;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAA;IAClC,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,EAAE,CACR,SAAS,EAAE,MAAM,IAAI,EACrB,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,KAChC,OAAO,CAAC,IAAI,CAAC,CAAA;IAClB,QAAQ,EAAE,MAAM,OAAO,CAAC,sBAAsB,CAAC,CAAA;IAC/C,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,uBAAuB,CAAC,EAAE,uBAAuB,CAAA;CAClD;AAED,eAAO,MAAM,eAAe,8JAUzB,oBAAoB,4CAqLtB,CAAA"}
|
|
@@ -224,8 +224,8 @@ var RyftPaymentForm = function(param) {
|
|
|
224
224
|
setReferrerBeforePayment();
|
|
225
225
|
};
|
|
226
226
|
var handleSubmit = function() {
|
|
227
|
-
var _ref = _async_to_generator(function() {
|
|
228
|
-
var paymentSession, _paymentSession_requiredAction, error;
|
|
227
|
+
var _ref = _async_to_generator(function(_paymentSession) {
|
|
228
|
+
var paymentSession, _tmp, _paymentSession_requiredAction, error;
|
|
229
229
|
return _ts_generator(this, function(_state) {
|
|
230
230
|
switch(_state.label){
|
|
231
231
|
case 0:
|
|
@@ -234,16 +234,24 @@ var RyftPaymentForm = function(param) {
|
|
|
234
234
|
case 1:
|
|
235
235
|
_state.trys.push([
|
|
236
236
|
1,
|
|
237
|
-
3,
|
|
238
237
|
4,
|
|
239
|
-
5
|
|
238
|
+
5,
|
|
239
|
+
6
|
|
240
240
|
]);
|
|
241
|
+
_tmp = _paymentSession;
|
|
242
|
+
if (_tmp) return [
|
|
243
|
+
3,
|
|
244
|
+
3
|
|
245
|
+
];
|
|
241
246
|
return [
|
|
242
247
|
4,
|
|
243
248
|
onSubmit()
|
|
244
249
|
];
|
|
245
250
|
case 2:
|
|
246
|
-
|
|
251
|
+
_tmp = _state.sent();
|
|
252
|
+
_state.label = 3;
|
|
253
|
+
case 3:
|
|
254
|
+
paymentSession = _tmp;
|
|
247
255
|
if (!paymentSession) {
|
|
248
256
|
setRyftError('unknown_error');
|
|
249
257
|
}
|
|
@@ -269,28 +277,28 @@ var RyftPaymentForm = function(param) {
|
|
|
269
277
|
}
|
|
270
278
|
return [
|
|
271
279
|
3,
|
|
272
|
-
|
|
280
|
+
6
|
|
273
281
|
];
|
|
274
|
-
case
|
|
282
|
+
case 4:
|
|
275
283
|
error = _state.sent();
|
|
276
284
|
setRyftError(error);
|
|
277
285
|
return [
|
|
278
286
|
3,
|
|
279
|
-
|
|
287
|
+
6
|
|
280
288
|
];
|
|
281
|
-
case
|
|
289
|
+
case 5:
|
|
282
290
|
setIsBtnDisabled(false);
|
|
283
291
|
return [
|
|
284
292
|
7
|
|
285
293
|
];
|
|
286
|
-
case
|
|
294
|
+
case 6:
|
|
287
295
|
return [
|
|
288
296
|
2
|
|
289
297
|
];
|
|
290
298
|
}
|
|
291
299
|
});
|
|
292
300
|
});
|
|
293
|
-
return function handleSubmit() {
|
|
301
|
+
return function handleSubmit(_paymentSession) {
|
|
294
302
|
return _ref.apply(this, arguments);
|
|
295
303
|
};
|
|
296
304
|
}();
|
|
@@ -319,6 +327,9 @@ var RyftPaymentForm = function(param) {
|
|
|
319
327
|
addEventHandler('cardValidationChanged', function(e) {
|
|
320
328
|
setIsValid(e.isValid);
|
|
321
329
|
});
|
|
330
|
+
addEventHandler('walletPaymentSessionResult', function(e) {
|
|
331
|
+
handleSubmit(e.paymentSession);
|
|
332
|
+
});
|
|
322
333
|
setRyftInitFailure(false);
|
|
323
334
|
}, function() {
|
|
324
335
|
return setRyftInitFailure(true);
|
|
@@ -374,7 +385,9 @@ var RyftPaymentForm = function(param) {
|
|
|
374
385
|
ref: formRef,
|
|
375
386
|
id: "ryft-pay-form",
|
|
376
387
|
noValidate: true,
|
|
377
|
-
onSubmit: methods.handleSubmit(
|
|
388
|
+
onSubmit: methods.handleSubmit(function() {
|
|
389
|
+
return handleSubmit();
|
|
390
|
+
}),
|
|
378
391
|
className: "ryft-payment-form",
|
|
379
392
|
children: [
|
|
380
393
|
/*#__PURE__*/ jsx("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ryft-form.d.ts","sourceRoot":"","sources":["../../../../src/iframe/ryft/utils/ryft-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAEzD,UAAU,0BACR,SAAQ,IAAI,CACV,oBAAoB,EACpB,uBAAuB,GAAG,oBAAoB,CAC/C;IACD,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,CAAC,CAAA;IACtB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,+BAA+B,CAAC,EAAE,OAAO,CAAA;CAC1C;AAED,eAAO,MAAM,0BAA0B,wGAMpC,0BAA0B,
|
|
1
|
+
{"version":3,"file":"ryft-form.d.ts","sourceRoot":"","sources":["../../../../src/iframe/ryft/utils/ryft-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAEzD,UAAU,0BACR,SAAQ,IAAI,CACV,oBAAoB,EACpB,uBAAuB,GAAG,oBAAoB,CAC/C;IACD,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,CAAC,CAAA;IACtB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,+BAA+B,CAAC,EAAE,OAAO,CAAA;CAC1C;AAED,eAAO,MAAM,0BAA0B,wGAMpC,0BAA0B,SA8E5B,CAAA"}
|
|
@@ -39,17 +39,17 @@ var injectComponentsInRyftForm = function(param) {
|
|
|
39
39
|
divider.id = 'mobile-pay-divider';
|
|
40
40
|
container.id = 'mobile-pay-divider-container';
|
|
41
41
|
container.append(dividerText, divider);
|
|
42
|
-
var payIframe = document.getElementById(
|
|
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 ?
|
|
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(
|
|
49
|
+
var appleButton = document.getElementById('ryft-pay-apple-pay-button');
|
|
50
50
|
if (googleButton) {
|
|
51
51
|
googleButton.disabled = isDisableButton;
|
|
52
|
-
googleButton.style.opacity = isDisableButton ? '1' : '0.6';
|
|
52
|
+
googleButton.style.opacity = !isDisableButton ? '1' : '0.6';
|
|
53
53
|
}
|
|
54
54
|
if (appleButton) {
|
|
55
55
|
appleButton.disabled = isDisableButton;
|
|
@@ -60,7 +60,6 @@ var injectComponentsInRyftForm = function(param) {
|
|
|
60
60
|
var applePayButton = document.createElement('button');
|
|
61
61
|
applePayButton.id = 'apple-pay';
|
|
62
62
|
applePayButton.type = 'button';
|
|
63
|
-
applePayButton.style.opacity = !isDisableButton ? '1' : '0.6';
|
|
64
63
|
applePayButton.className = 'bg-dark btn btn-primary apple-pay-button';
|
|
65
64
|
applePayButton.textContent = t('Events:payWithApple');
|
|
66
65
|
applePayButton.onclick = onApplePayButtonClick;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface Props {
|
|
2
3
|
children?: React.ReactNode | React.ReactNode[];
|
|
3
4
|
style?: any;
|
|
4
5
|
className?: any;
|
|
5
6
|
'aria-laballedby'?: any;
|
|
6
7
|
}
|
|
7
|
-
declare const DropDown:
|
|
8
|
+
declare const DropDown: React.ForwardRefExoticComponent<Props & React.RefAttributes<unknown>>;
|
|
8
9
|
export default DropDown;
|
|
9
10
|
//# sourceMappingURL=DropDown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropDown.d.ts","sourceRoot":"","sources":["../../src/layout/DropDown.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DropDown.d.ts","sourceRoot":"","sources":["../../src/layout/DropDown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;IAC9C,KAAK,CAAC,EAAE,GAAG,CAAA;IACX,SAAS,CAAC,EAAE,GAAG,CAAA;IACf,iBAAiB,CAAC,EAAE,GAAG,CAAA;CACxB;AAED,QAAA,MAAM,QAAQ,uEAcZ,CAAA;AAIF,eAAe,QAAQ,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmailTemplateControl.d.ts","sourceRoot":"","sources":["../../../../src/notification/email-template/control/EmailTemplateControl.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,cAAc,EAEf,MAAM,sEAAsE,CAAA;AAG7E,OAAO,EAAE,UAAU,EAAE,MAAM,kEAAkE,CAAA;AAM7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,wEAAwE,CAAA;AAMzG,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ,kBAAkB,CAAC,EAAE,UAAU,EAAE,CAAA;IACjC,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACtC,4BAA4B,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,gBAAgB,GAAG,IAAI,KAAK,MAAM,CAAA;CAC1E;AAED,eAAO,MAAM,oBAAoB,+
|
|
1
|
+
{"version":3,"file":"EmailTemplateControl.d.ts","sourceRoot":"","sources":["../../../../src/notification/email-template/control/EmailTemplateControl.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,cAAc,EAEf,MAAM,sEAAsE,CAAA;AAG7E,OAAO,EAAE,UAAU,EAAE,MAAM,kEAAkE,CAAA;AAM7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,wEAAwE,CAAA;AAMzG,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ,kBAAkB,CAAC,EAAE,UAAU,EAAE,CAAA;IACjC,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACtC,4BAA4B,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,gBAAgB,GAAG,IAAI,KAAK,MAAM,CAAA;CAC1E;AAED,eAAO,MAAM,oBAAoB,+GAsahC,CAAA"}
|
|
@@ -631,6 +631,9 @@ var EmailTemplateControl = /*#__PURE__*/ forwardRef(function(param, ref) {
|
|
|
631
631
|
}),
|
|
632
632
|
/*#__PURE__*/ jsx(Form.Control, _object_spread_props(_object_spread({}, register("templateOptionValues.".concat(option === null || option === void 0 ? void 0 : option.id, ".value"))), {
|
|
633
633
|
type: "number",
|
|
634
|
+
onWheel: function(event) {
|
|
635
|
+
return event.currentTarget.blur();
|
|
636
|
+
},
|
|
634
637
|
placeholder: t("Design:".concat(option.name)),
|
|
635
638
|
id: option.name + option.id,
|
|
636
639
|
defaultValue: option.selectedValue || ''
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductCategoriesControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductCategoriesControl.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProductCategoriesControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductCategoriesControl.tsx"],"names":[],"mappings":"AAaA,OAAO,EAKL,YAAY,EACb,MAAM,kEAAkE,CAAA;AAQzE,OAAO,EAAwB,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAoCtE,UAAU,6BAA8B,SAAQ,aAAa;IAC3D,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B;AA0BD,wBAAgB,wBAAwB,CAAC,EACvC,SAAS,EACT,SAAS,EACT,WAAW,EACX,qBAAqB,EACrB,oBAAoB,GACrB,EAAE,6BAA6B,2CA4T/B;AAED,eAAO,MAAM,cAAc,iBACX,YAAY,SACnB,MAAM,KACZ;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,IAczC,CAAA"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { jsxs, Fragment
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { useContext, useState, useEffect } from 'react';
|
|
3
3
|
import HookFormService from '@licklist/plugins/dist/services/Form/HookFormService';
|
|
4
4
|
import { uniqueId } from 'lodash';
|
|
5
5
|
import { Badge } from 'react-bootstrap';
|
|
6
6
|
import { useFormContext, useFieldArray, useWatch, Controller } from 'react-hook-form';
|
|
7
|
+
import { FaTicketAlt, FaCalendar, FaBars, FaBowlingBall } from 'react-icons/fa';
|
|
7
8
|
import { useTranslation } from 'react-i18next';
|
|
8
9
|
import { useSensor, MouseSensor } from '@dnd-kit/core';
|
|
9
10
|
import { CATEGORY_TYPE_GAME, CATEGORY_TYPE_FIXED_DURATION, QUANTITY_TYPE_STANDARD, CATEGORY_TYPE_TICKETS } from '@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper';
|
|
@@ -13,7 +14,7 @@ import { ProductSetModalClasses } from '../../sortable-tree/SortableTreeItem.js'
|
|
|
13
14
|
import { CreateProductSetItem } from '../item/CreateProductSetItem.js';
|
|
14
15
|
import { ProductCategoryControl } from '../product-category/ProductCategoryControl.js';
|
|
15
16
|
import { ProductsControl } from './ProductsControl.js';
|
|
16
|
-
import { SelectCategoryModal } from './SelectCategoryModal.js';
|
|
17
|
+
import { CATEGORY_TYPES_NAMES, SelectCategoryModal } from './SelectCategoryModal.js';
|
|
17
18
|
import { ProductSetLoadingContext } from './context.js';
|
|
18
19
|
import { VenueMapSetModal } from './VenueMapSetModal.js';
|
|
19
20
|
import { sortArrayByIndex, moveArrayElements } from '../utils/index.js';
|
|
@@ -117,6 +118,40 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
117
118
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
118
119
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
119
120
|
}
|
|
121
|
+
var _obj;
|
|
122
|
+
// @TODO not for first release
|
|
123
|
+
// import Popover from "./ProductSetFormPopover";
|
|
124
|
+
var CATEGORIES_TYPE = (_obj = {}, _define_property(_obj, CATEGORY_TYPES_NAMES.tickets, {
|
|
125
|
+
label: 'tickets',
|
|
126
|
+
icon: /*#__PURE__*/ jsx(FaTicketAlt, {
|
|
127
|
+
color: "#0e8ce2",
|
|
128
|
+
size: 10
|
|
129
|
+
})
|
|
130
|
+
}), _define_property(_obj, CATEGORY_TYPES_NAMES.bookings, {
|
|
131
|
+
label: 'bookings',
|
|
132
|
+
icon: /*#__PURE__*/ jsx(FaCalendar, {
|
|
133
|
+
color: "#0e8ce2",
|
|
134
|
+
size: 10
|
|
135
|
+
})
|
|
136
|
+
}), _define_property(_obj, CATEGORY_TYPES_NAMES.menuItems, {
|
|
137
|
+
label: 'menuItems',
|
|
138
|
+
icon: /*#__PURE__*/ jsx(FaBars, {
|
|
139
|
+
color: "#0e8ce2",
|
|
140
|
+
size: 10
|
|
141
|
+
})
|
|
142
|
+
}), _define_property(_obj, CATEGORY_TYPES_NAMES.game, {
|
|
143
|
+
label: 'game',
|
|
144
|
+
icon: /*#__PURE__*/ jsx(FaBowlingBall, {
|
|
145
|
+
color: "#0e8ce2",
|
|
146
|
+
size: 10
|
|
147
|
+
})
|
|
148
|
+
}), _define_property(_obj, CATEGORY_TYPES_NAMES.fixedDuration, {
|
|
149
|
+
label: 'fixedDuration',
|
|
150
|
+
icon: /*#__PURE__*/ jsx(FaCalendar, {
|
|
151
|
+
color: "#0e8ce2",
|
|
152
|
+
size: 10
|
|
153
|
+
})
|
|
154
|
+
}), _obj);
|
|
120
155
|
var getCategoryDefaultValue = function(categoryType, sort) {
|
|
121
156
|
return {
|
|
122
157
|
id: null,
|
|
@@ -250,6 +285,7 @@ function ProductCategoriesControl(param) {
|
|
|
250
285
|
var onSetIsExpanded = function() {
|
|
251
286
|
setIsExpanded(productCategoryId);
|
|
252
287
|
};
|
|
288
|
+
var categoryType = CATEGORIES_TYPE[productCategory.type];
|
|
253
289
|
return /*#__PURE__*/ jsx(Controller, {
|
|
254
290
|
name: "".concat(productCategoriesFieldName, ".").concat(index, ".name"),
|
|
255
291
|
control: control,
|
|
@@ -299,6 +335,16 @@ function ProductCategoriesControl(param) {
|
|
|
299
335
|
secondaryBadge: getBadgeConfig(productCategory.type, t(productCategory.type)),
|
|
300
336
|
modalClass: ProductSetModalClasses.category,
|
|
301
337
|
isNewAdded: showCategoryModal,
|
|
338
|
+
itemButton: /*#__PURE__*/ jsxs("div", {
|
|
339
|
+
className: "btn-outline-primary item-icon sm border border-primary rounded-sm",
|
|
340
|
+
children: [
|
|
341
|
+
categoryType.icon,
|
|
342
|
+
/*#__PURE__*/ jsx("span", {
|
|
343
|
+
className: "ml-2",
|
|
344
|
+
children: t(categoryType.label)
|
|
345
|
+
})
|
|
346
|
+
]
|
|
347
|
+
}),
|
|
302
348
|
body: /*#__PURE__*/ jsx(ProductCategoryControl, {
|
|
303
349
|
isLoading: isLoading,
|
|
304
350
|
onCategoryNameChange: onChange,
|
|
@@ -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,
|
|
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;AAIzF,OAAO,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAA;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAK3E,OAAO,EAAE,gCAAgC,EAAE,MAAM,oFAAoF,CAAA;AACrI,OAAO,EAAE,IAAI,EAAE,MAAM,wDAAwD,CAAA;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAA;AAGrF,OAAO,EAEL,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAE/B,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAI3D,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,OAAO,CAAA;CACnB;AACD,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAA;CACX;AACD,MAAM,WAAW,oBACf,SAAQ,UAAU,EAChB,
|
|
1
|
+
{"version":3,"file":"ProductSetForm.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductSetForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAA;AAIzF,OAAO,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAA;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAK3E,OAAO,EAAE,gCAAgC,EAAE,MAAM,oFAAoF,CAAA;AACrI,OAAO,EAAE,IAAI,EAAE,MAAM,wDAAwD,CAAA;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAA;AAGrF,OAAO,EAEL,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAE/B,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAI3D,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,OAAO,CAAA;CACnB;AACD,MAAM,WAAW,cAAc;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAA;CACX;AACD,MAAM,WAAW,oBACf,SAAQ,UAAU,EAChB,cAAc,EACd,uBAAuB;IACzB,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,MAAM,WAAW,mBACf,SAAQ,aAAa,EACnB,uBAAuB;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC,mBAAmB,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAA;IAC3D,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAA;IAC3D,gBAAgB,CAAC,EAAE,UAAU,EAAE,CAAA;IAC/B,YAAY,CAAC,EAAE,WAAW,CAAA;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;IAC5B,4BAA4B,CAAC,EAAE,gCAAgC,CAAC,sBAAsB,CAAC,CAAA;IACvF,KAAK,CAAC,EAAE,IAAI,EAAE,GAAG,IAAI,CAAA;IACrB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAA;IACtB,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,wBAAgB,cAAc,CAAC,EAC7B,WAAW,EACX,SAAS,EACT,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACZ,cAAsB,EACtB,YAAiB,EACjB,4BAA4B,EAC5B,KAAK,EACL,cAAc,EACd,SAAS,EACT,WAAW,EACX,oBAAoB,EACpB,QAAQ,EACR,GAAG,MAAM,EACV,EAAE,mBAAmB,2CAiKrB"}
|
|
@@ -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';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductZonesControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductZonesControl.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProductZonesControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductZonesControl.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAE,MAAM,kEAAkE,CAAA;AAG/F,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AAQrE,UAAU,wBAAwB,CAAC,CAAC,CAAE,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAClE,WAAW,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B;AAaD,eAAO,MAAM,mBAAmB,GAAI,CAAC,SAAS,UAAU,mDAIrD,wBAAwB,CAAC,CAAC,CAAC,4CAqI7B,CAAA"}
|
|
@@ -11,8 +11,6 @@ import { CreateProductSetItem } from '../item/CreateProductSetItem.js';
|
|
|
11
11
|
import { SortableTree } from '../../sortable-tree/SortableTree.js';
|
|
12
12
|
import { ProductSetModalClasses } from '../../sortable-tree/SortableTreeItem.js';
|
|
13
13
|
|
|
14
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
15
|
-
// @ts-nocheck
|
|
16
14
|
function _array_like_to_array(arr, len) {
|
|
17
15
|
if (len == null || len > arr.length) len = arr.length;
|
|
18
16
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
@@ -23,6 +23,7 @@ import 'react-bootstrap/Col';
|
|
|
23
23
|
import 'react-bootstrap/InputGroup';
|
|
24
24
|
import 'react-bootstrap/Row';
|
|
25
25
|
import '@licklist/plugins/dist/services/Form/FormErrorService';
|
|
26
|
+
import '@licklist/plugins/dist/utils/error';
|
|
26
27
|
import '@licklist/plugins';
|
|
27
28
|
import 'react-bootstrap/Button';
|
|
28
29
|
import 'react-bootstrap/OverlayTrigger';
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
1
2
|
import { CategoryType } from '@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper';
|
|
3
|
+
export declare const CATEGORY_TYPES_NAMES: {
|
|
4
|
+
readonly menuItems: "menuItems";
|
|
5
|
+
readonly tickets: "tickets";
|
|
6
|
+
readonly bookings: "bookings";
|
|
7
|
+
readonly game: "game";
|
|
8
|
+
readonly fixedDuration: "fixedDuration";
|
|
9
|
+
};
|
|
10
|
+
export type CategoryConfig = {
|
|
11
|
+
label: string;
|
|
12
|
+
icon: ReactElement;
|
|
13
|
+
};
|
|
2
14
|
export interface SelectCategoryModalProps {
|
|
3
15
|
isVisible: boolean;
|
|
4
16
|
onHide: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectCategoryModal.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/SelectCategoryModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SelectCategoryModal.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/SelectCategoryModal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAG1D,OAAO,EAML,YAAY,EACb,MAAM,kEAAkE,CAAA;AAgBzE,eAAO,MAAM,oBAAoB;;;;;;CAMvB,CAAA;AAEV,MAAM,MAAM,cAAc,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,YAAY,CAAA;CAAE,CAAA;AA4BlE,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,gBAAgB,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAA;CACnD;AAED,wBAAgB,mBAAmB,CAAC,EAClC,SAAS,EACT,MAAM,EACN,gBAAgB,GACjB,EAAE,wBAAwB,2CAyH1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubProductsControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/SubProductsControl.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAkB,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAIvD,UAAU,uBAAuB;IAC/B,YAAY,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAC,cAAc,CAAC,CAAA;IACvE,SAAS,EAAE,MAAM,CAAA;IACjB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,YAAY,EACZ,SAAS,EACT,oBAAoB,EACpB,YAAY,EACZ,WAAW,GACZ,EAAE,uBAAuB,
|
|
1
|
+
{"version":3,"file":"SubProductsControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/SubProductsControl.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAkB,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAIvD,UAAU,uBAAuB;IAC/B,YAAY,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAC,cAAc,CAAC,CAAA;IACvE,SAAS,EAAE,MAAM,CAAA;IACjB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,YAAY,EACZ,SAAS,EACT,oBAAoB,EACpB,YAAY,EACZ,WAAW,GACZ,EAAE,uBAAuB,2CAuDzB"}
|
|
@@ -108,9 +108,6 @@ function SubProductsControl(param) {
|
|
|
108
108
|
images: (_subProducts_index = subProducts[index]) === null || _subProducts_index === void 0 ? void 0 : _subProducts_index.images
|
|
109
109
|
});
|
|
110
110
|
// @ts-expect-error TS2345
|
|
111
|
-
// @TODO fix prod type error
|
|
112
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
113
|
-
// @ts-ignore
|
|
114
111
|
append(subProductCopy);
|
|
115
112
|
}
|
|
116
113
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VenueMapSetModal.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/VenueMapSetModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"VenueMapSetModal.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/VenueMapSetModal.tsx"],"names":[],"mappings":"AAcA,KAAK,qBAAqB,GAAG;IAC3B,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,eAAO,MAAM,gBAAgB,4CAI1B,qBAAqB,4CAyMvB,CAAA"}
|
|
@@ -3,7 +3,7 @@ import { useContext, useCallback, useMemo } from 'react';
|
|
|
3
3
|
import { Modal, Form, Button } from 'react-bootstrap';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import { useFormContext } from 'react-hook-form';
|
|
6
|
+
import { useFormContext, useWatch } from 'react-hook-form';
|
|
7
7
|
import HookFormService from '@licklist/plugins/dist/services/Form/HookFormService';
|
|
8
8
|
import '../../static/index.js';
|
|
9
9
|
import { ProductSetLoadingContext } from './context.js';
|
|
@@ -219,12 +219,14 @@ var VenueMapSetModal = function(param) {
|
|
|
219
219
|
'Validation'
|
|
220
220
|
]).t;
|
|
221
221
|
var _useContext = useContext(ProductSetLoadingContext), _useContext_venueMapSets = _useContext.venueMapSets, venueMapSets = _useContext_venueMapSets === void 0 ? [] : _useContext_venueMapSets, providerHasMap = _useContext.providerHasMap;
|
|
222
|
-
var _useFormContext = useFormContext(), register = _useFormContext.register, errors = _useFormContext.formState.errors, watch = _useFormContext.watch, setValue = _useFormContext.setValue, trigger = _useFormContext.trigger;
|
|
222
|
+
var _useFormContext = useFormContext(), register = _useFormContext.register, errors = _useFormContext.formState.errors, watch = _useFormContext.watch, setValue = _useFormContext.setValue, trigger = _useFormContext.trigger, control = _useFormContext.control;
|
|
223
223
|
var key = "steps.".concat(stepIndex, ".venueMapSetId");
|
|
224
224
|
var productPointsKey = "steps.".concat(stepIndex, ".pointProducts");
|
|
225
225
|
var venueMapSetId = watch(key) || null;
|
|
226
|
-
|
|
227
|
-
|
|
226
|
+
var productCategories = useWatch({
|
|
227
|
+
control: control,
|
|
228
|
+
name: "steps.".concat(stepIndex, ".productCategories")
|
|
229
|
+
});
|
|
228
230
|
var pointProducts = watch(productPointsKey) || [];
|
|
229
231
|
var onCloseModal = function() {
|
|
230
232
|
setIsVisible(false);
|
|
@@ -265,9 +267,7 @@ var VenueMapSetModal = function(param) {
|
|
|
265
267
|
}, // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
266
268
|
[]);
|
|
267
269
|
var products = useMemo(function() {
|
|
268
|
-
if (!productCategories ||
|
|
269
|
-
return [];
|
|
270
|
-
}
|
|
270
|
+
if (!(productCategories === null || productCategories === void 0 ? void 0 : productCategories.length)) return [];
|
|
271
271
|
return productCategories.reduce(function(prevProducts, currentCategory) {
|
|
272
272
|
return _to_consumable_array(prevProducts).concat(_to_consumable_array(currentCategory.products || []));
|
|
273
273
|
}, []);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VenueMapsControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/VenueMapsControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,2DAA2D,CAAA;AAEpF,OAAO,EAAE,YAAY,EAAE,MAAM,+DAA+D,CAAA;AAG5F,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAElC,KAAK,qBAAqB,GAAG;IAC3B,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,CAAA;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,CAAA;IACvC,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,KAAK,IAAI,CAAA;CACjE,CAAA;AAED,eAAO,MAAM,gBAAgB,mEAK1B,qBAAqB,
|
|
1
|
+
{"version":3,"file":"VenueMapsControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/VenueMapsControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,2DAA2D,CAAA;AAEpF,OAAO,EAAE,YAAY,EAAE,MAAM,+DAA+D,CAAA;AAG5F,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAElC,KAAK,qBAAqB,GAAG;IAC3B,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,CAAA;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,CAAA;IACvC,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,KAAK,IAAI,CAAA;CACjE,CAAA;AAED,eAAO,MAAM,gBAAgB,mEAK1B,qBAAqB,4CA2DvB,CAAA"}
|
|
@@ -35,9 +35,6 @@ var VenueMapsControl = function(param) {
|
|
|
35
35
|
url: image.url,
|
|
36
36
|
name: name,
|
|
37
37
|
points: points,
|
|
38
|
-
// @TODO fix prod type error
|
|
39
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
40
|
-
// @ts-ignore
|
|
41
38
|
products: products,
|
|
42
39
|
pointProducts: pointProducts,
|
|
43
40
|
onPointProductsChange: onPointProductsChange
|