@licklist/design 0.71.18-dev.0 → 0.71.18-dev.10
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/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +1 -0
- package/dist/events/event-statistic-modal/utils/index.js +3 -3
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.d.ts +18 -0
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.d.ts.map +1 -0
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.js +295 -0
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.d.ts +15 -0
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.d.ts.map +1 -0
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js +89 -0
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts +14 -0
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts.map +1 -0
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.js +404 -0
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.d.ts +10 -0
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.d.ts.map +1 -0
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.js +87 -0
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/index.d.ts +2 -0
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/index.d.ts.map +1 -0
- package/dist/iframe/ProductWithModifierModal/index.d.ts +2 -0
- package/dist/iframe/ProductWithModifierModal/index.d.ts.map +1 -0
- package/dist/iframe/ProductWithModifierModal/utils.d.ts +5 -0
- package/dist/iframe/ProductWithModifierModal/utils.d.ts.map +1 -0
- package/dist/iframe/ProductWithModifierModal/utils.js +21 -0
- package/dist/iframe/activity-card/ActivityCard.d.ts +1 -2
- package/dist/iframe/activity-card/ActivityCard.d.ts.map +1 -1
- package/dist/iframe/activity-card/ActivityCard.js +1 -7
- package/dist/iframe/event/ticket-description/TicketDescription.d.ts +2 -1
- package/dist/iframe/event/ticket-description/TicketDescription.d.ts.map +1 -1
- package/dist/iframe/event/ticket-description/TicketDescription.js +4 -3
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.js +15 -2
- package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts +4 -0
- package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/utils/index.js +29 -2
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +106 -2
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts +3 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +95 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.d.ts +23 -0
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.d.ts.map +1 -0
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.js +62 -0
- package/dist/iframe/order-process/components/CategoryProduct/constants.d.ts +2 -0
- package/dist/iframe/order-process/components/CategoryProduct/constants.d.ts.map +1 -0
- package/dist/iframe/order-process/components/CategoryProduct/constants.js +4 -0
- package/dist/iframe/order-process/components/utils/useOnWindowUnmount.d.ts +6 -0
- package/dist/iframe/order-process/components/utils/useOnWindowUnmount.d.ts.map +1 -0
- package/dist/iframe/order-process/components/utils/useOnWindowUnmount.js +18 -0
- package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/hooks/useTableData.js +83 -10
- package/dist/iframe/payment/order-items-table/utils/index.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/utils/index.js +15 -0
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.js +2 -2
- package/dist/index.js +1 -1
- package/dist/product-set/form/ProductSetForm.d.ts +3 -1
- package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.js +6 -4
- package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductsControl.js +24 -5
- package/dist/product-set/form/context.d.ts +3 -1
- package/dist/product-set/form/context.d.ts.map +1 -1
- package/dist/product-set/form/context.js +2 -1
- package/dist/product-set/product/ProductControl.d.ts +8 -0
- package/dist/product-set/product/ProductControl.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.js +25 -1
- package/dist/product-set/utils/index.d.ts +88 -0
- package/dist/product-set/utils/index.d.ts.map +1 -1
- package/dist/product-set/utils/index.js +19 -1
- package/dist/report/ReportRunnerModal/ReportRunnerModal.d.ts +2 -1
- package/dist/report/ReportRunnerModal/ReportRunnerModal.d.ts.map +1 -1
- package/dist/report/ReportRunnerModal/ReportRunnerModal.js +3 -2
- package/dist/sales/coupon/utils/index.d.ts +2 -1
- package/dist/sales/coupon/utils/index.d.ts.map +1 -1
- package/dist/sales/modals/refund-modal/RefundModal.d.ts +6 -2
- package/dist/sales/modals/refund-modal/RefundModal.d.ts.map +1 -1
- package/dist/sales/modals/refund-modal/RefundModal.js +8 -4
- package/dist/sales/modals/refund-modal/index.d.ts +2 -2
- package/dist/sales/modals/refund-modal/index.d.ts.map +1 -1
- package/dist/styles/date-time-button/DateTimeButton.scss +8 -1
- package/dist/styles/events/EditEventModal.scss +2 -0
- package/dist/styles/iframe-page/Page.scss +16 -0
- package/dist/styles/iframe-page/PageBody.scss +4 -0
- package/dist/styles/modals/Modals.scss +16 -0
- package/dist/styles/product-set/EditProductSetElement.scss +1 -0
- package/dist/styles/product-set/ProductSetForm.scss +11 -0
- package/dist/styles/sales/ManualBooking.scss +6 -0
- package/dist/styles/themes/bookedit/index.scss +19 -0
- package/package.json +6 -6
- package/src/events/event-statistic-modal/utils/index.ts +4 -4
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.tsx +212 -0
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx +75 -0
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.tsx +393 -0
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.tsx +98 -0
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/index.ts +1 -0
- package/src/iframe/ProductWithModifierModal/index.ts +1 -0
- package/src/iframe/ProductWithModifierModal/utils.ts +29 -0
- package/src/iframe/activity-card/ActivityCard.stories.tsx +0 -2
- package/src/iframe/activity-card/ActivityCard.tsx +0 -4
- package/src/iframe/event/ticket-description/TicketDescription.tsx +5 -3
- package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +21 -1
- package/src/iframe/order-process/components/BookingSummary/utils/index.ts +42 -1
- package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +155 -75
- package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +58 -1
- package/src/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.tsx +86 -0
- package/src/iframe/order-process/components/CategoryProduct/constants.ts +1 -0
- package/src/iframe/order-process/components/utils/useOnWindowUnmount.ts +25 -0
- package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +84 -14
- package/src/iframe/payment/order-items-table/utils/index.ts +23 -0
- package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +2 -2
- package/src/product-set/form/ProductSetForm.tsx +11 -3
- package/src/product-set/form/ProductsControl.tsx +33 -15
- package/src/product-set/form/context.tsx +5 -0
- package/src/product-set/product/ProductControl.tsx +37 -1
- package/src/product-set/utils/index.ts +19 -0
- package/src/report/ReportRunnerModal/ReportRunnerModal.tsx +3 -0
- package/src/sales/coupon/utils/index.ts +5 -3
- package/src/sales/modals/refund-modal/RefundModal.tsx +15 -6
- package/src/sales/modals/refund-modal/index.ts +7 -2
- package/src/styles/date-time-button/DateTimeButton.scss +8 -1
- package/src/styles/events/EditEventModal.scss +2 -0
- package/src/styles/iframe-page/Page.scss +16 -0
- package/src/styles/iframe-page/PageBody.scss +4 -0
- package/src/styles/modals/Modals.scss +16 -0
- package/src/styles/product-set/EditProductSetElement.scss +1 -0
- package/src/styles/product-set/ProductSetForm.scss +11 -0
- package/src/styles/sales/ManualBooking.scss +6 -0
- package/src/styles/themes/bookedit/index.scss +19 -0
- package/yarn.lock +345 -336
|
@@ -15,7 +15,8 @@ export type ReportRunnerModalProps = {
|
|
|
15
15
|
onHide: () => void;
|
|
16
16
|
onEdit: () => void;
|
|
17
17
|
reports?: Report[] | null;
|
|
18
|
+
providerId?: number;
|
|
18
19
|
};
|
|
19
|
-
export declare const ReportRunnerModal: ({ reportId, show, onHide, useShowReportFields, reports, generate, download, onEdit, }: 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;
|
|
20
21
|
export {};
|
|
21
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,OAAO,CAAC,CAAA;IACpD,QAAQ,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC,CAAA;IACrD,QAAQ,CAAC,EAAE,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,CAAA;IACjC,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;
|
|
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,OAAO,CAAC,CAAA;IACpD,QAAQ,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC,CAAA;IACrD,QAAQ,CAAC,EAAE,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,CAAA;IACjC,MAAM,EAAE,MAAM,IAAI,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,sGAU3B,sBAAsB,4CA8KxB,CAAA"}
|
|
@@ -190,7 +190,7 @@ function _ts_generator(thisArg, body) {
|
|
|
190
190
|
var _obj;
|
|
191
191
|
var labelByPeriodType = (_obj = {}, _define_property(_obj, PERIOD_BY_CREATION_DATE, 'Design:reportPeriodByCreationDate'), _define_property(_obj, PERIOD_BY_BOOKING_DATE, 'Design:reportPeriodByBookingDate'), _obj);
|
|
192
192
|
var ReportRunnerModal = function(param) {
|
|
193
|
-
var reportId = param.reportId, show = param.show, onHide = param.onHide, useShowReportFields = param.useShowReportFields, reports = param.reports, generate = param.generate, download = param.download, onEdit = param.onEdit;
|
|
193
|
+
var reportId = param.reportId, show = param.show, onHide = param.onHide, useShowReportFields = param.useShowReportFields, reports = param.reports, generate = param.generate, download = param.download, onEdit = param.onEdit, providerId = param.providerId;
|
|
194
194
|
var _errors_periodBy, _errors_periodBy1, _errors_periodBy2, _errors_dateFrom, _errors_dateTo;
|
|
195
195
|
var t = useTranslation([
|
|
196
196
|
'App',
|
|
@@ -231,7 +231,8 @@ var ReportRunnerModal = function(param) {
|
|
|
231
231
|
type: report.type,
|
|
232
232
|
dateFrom: values.dateFrom,
|
|
233
233
|
dateTo: values.dateTo,
|
|
234
|
-
data: data
|
|
234
|
+
data: data,
|
|
235
|
+
providerId: providerId
|
|
235
236
|
});
|
|
236
237
|
return [
|
|
237
238
|
2
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { ModifierSet } from '@licklist/core/dist/DataMapper/Product/ModifierSetDataMapper';
|
|
1
2
|
import { ProductGroup } from '@licklist/core/dist/DataMapper/Product/ProductGroupDataMapper';
|
|
2
|
-
export declare const convertToTypeaheadOptions: (productGroups?: ProductGroup[]) => {
|
|
3
|
+
export declare const convertToTypeaheadOptions: (productGroups?: ProductGroup[] | ModifierSet[]) => {
|
|
3
4
|
id: number;
|
|
4
5
|
value: string;
|
|
5
6
|
label: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sales/coupon/utils/index.ts"],"names":[],"mappings":"
|
|
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,7 +1,11 @@
|
|
|
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;
|
|
2
6
|
export interface RefundModalProps {
|
|
3
7
|
isVisible: boolean;
|
|
4
|
-
|
|
8
|
+
refundType?: RefundType;
|
|
5
9
|
onHide: () => void;
|
|
6
10
|
onSubmit: (amount?: number) => void;
|
|
7
11
|
isLoading?: boolean;
|
|
@@ -9,5 +13,5 @@ export interface RefundModalProps {
|
|
|
9
13
|
defaultValue?: number;
|
|
10
14
|
maxValue?: number;
|
|
11
15
|
}
|
|
12
|
-
export declare const RefundModal: ({ isVisible, onHide, onSubmit, isLoading,
|
|
16
|
+
export declare const RefundModal: ({ isVisible, onHide, onSubmit, isLoading, refundType, paymentType, defaultValue, maxValue, }: RefundModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
17
|
//# 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,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,OAAO,CAAA;IAClB,
|
|
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"}
|
|
@@ -61,13 +61,17 @@ 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';
|
|
64
67
|
var RefundModal = function(param) {
|
|
65
|
-
var isVisible = param.isVisible, onHide = param.onHide, onSubmit = param.onSubmit, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading,
|
|
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;
|
|
66
69
|
var _errors_amount;
|
|
67
70
|
var t = useTranslation([
|
|
68
71
|
'Design',
|
|
69
72
|
'Validation'
|
|
70
73
|
]).t;
|
|
74
|
+
var isInputDisabled = isLoading || refundType === 'fullRefund' || refundType === 'netRefund';
|
|
71
75
|
var _useForm = useForm(), handleSubmit = _useForm.handleSubmit, register = _useForm.register, errors = _useForm.formState.errors, reset = _useForm.reset;
|
|
72
76
|
var onModalSubmit = function(param) {
|
|
73
77
|
var amount = param.amount;
|
|
@@ -97,7 +101,7 @@ var RefundModal = function(param) {
|
|
|
97
101
|
children: [
|
|
98
102
|
/*#__PURE__*/ jsx(ModalTitle, {
|
|
99
103
|
as: "h5",
|
|
100
|
-
children: t(
|
|
104
|
+
children: t("Design:".concat(refundType))
|
|
101
105
|
}),
|
|
102
106
|
/*#__PURE__*/ jsx(Button, {
|
|
103
107
|
variant: "danger",
|
|
@@ -150,7 +154,7 @@ var RefundModal = function(param) {
|
|
|
150
154
|
}
|
|
151
155
|
})), {
|
|
152
156
|
step: 0.01,
|
|
153
|
-
disabled:
|
|
157
|
+
disabled: isInputDisabled,
|
|
154
158
|
isInvalid: !!errors.amount,
|
|
155
159
|
min: 0
|
|
156
160
|
})),
|
|
@@ -186,4 +190,4 @@ var RefundModal = function(param) {
|
|
|
186
190
|
});
|
|
187
191
|
};
|
|
188
192
|
|
|
189
|
-
export { RefundModal };
|
|
193
|
+
export { FULL_REFUND_TYPE, NET_REFUND_TYPE, PARTIAL_REFUND_TYPE, RefundModal };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { RefundModal } from './RefundModal';
|
|
2
|
-
export type { RefundModalProps } from './RefundModal';
|
|
1
|
+
export { RefundModal, FULL_REFUND_TYPE, NET_REFUND_TYPE, PARTIAL_REFUND_TYPE, } from './RefundModal';
|
|
2
|
+
export type { RefundModalProps, RefundType } 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,
|
|
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"}
|
|
@@ -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,3 +105,10 @@
|
|
|
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
|
+
}
|
|
@@ -24,6 +24,22 @@
|
|
|
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
|
+
|
|
27
43
|
.header-block {
|
|
28
44
|
margin-bottom: 1rem;
|
|
29
45
|
}
|
|
@@ -6,6 +6,22 @@
|
|
|
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
|
+
|
|
9
25
|
.confirm-modal {
|
|
10
26
|
z-index: 1081;
|
|
11
27
|
}
|
|
@@ -58,6 +58,11 @@
|
|
|
58
58
|
font-weight: 600;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
.modifier-badge {
|
|
62
|
+
font-size: 0.5rem;
|
|
63
|
+
font-weight: 400;
|
|
64
|
+
}
|
|
65
|
+
|
|
61
66
|
.step-badge {
|
|
62
67
|
background-color: #ffdbdb;
|
|
63
68
|
color: #d52902;
|
|
@@ -81,6 +86,12 @@
|
|
|
81
86
|
background-color: #e9f5ea;
|
|
82
87
|
color: #269b36;
|
|
83
88
|
}
|
|
89
|
+
|
|
90
|
+
.modifier-badge {
|
|
91
|
+
background-color: #e9f5ea;
|
|
92
|
+
color: #269b36;
|
|
93
|
+
height: 1rem;
|
|
94
|
+
}
|
|
84
95
|
}
|
|
85
96
|
|
|
86
97
|
.product-set-mobile-footer {
|
|
@@ -51,6 +51,25 @@
|
|
|
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
|
+
|
|
54
73
|
.header-user-image {
|
|
55
74
|
width: 3rem;
|
|
56
75
|
height: 3rem;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licklist/design",
|
|
3
|
-
"version": "0.71.18-dev.
|
|
3
|
+
"version": "0.71.18-dev.10",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@licklist/core": "0.31.2-dev.
|
|
45
|
+
"@licklist/core": "0.31.2-dev.11",
|
|
46
46
|
"@licklist/eslint-config": "0.5.6",
|
|
47
|
-
"@licklist/plugins": "0.35.1-dev.
|
|
47
|
+
"@licklist/plugins": "0.35.1-dev.8",
|
|
48
48
|
"lodash": "4.17.21",
|
|
49
49
|
"luxon": "3.5.0",
|
|
50
50
|
"react": "17.0.2",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"@dnd-kit/utilities": "2.0.0",
|
|
62
62
|
"@fortawesome/fontawesome-svg-core": "1.2.34",
|
|
63
63
|
"@fortawesome/free-solid-svg-icons": "5.15.2",
|
|
64
|
-
"@licklist/core": "0.31.2-dev.
|
|
64
|
+
"@licklist/core": "0.31.2-dev.11",
|
|
65
65
|
"@licklist/eslint-config": "0.5.6",
|
|
66
|
-
"@licklist/plugins": "0.35.1-dev.
|
|
66
|
+
"@licklist/plugins": "0.35.1-dev.8",
|
|
67
67
|
"@mantine/core": "6.0.22",
|
|
68
68
|
"@mantine/hooks": "6.0.22",
|
|
69
69
|
"@mdx-js/react": "1.6.22",
|
|
@@ -208,4 +208,4 @@
|
|
|
208
208
|
"yarn": "4.4.0"
|
|
209
209
|
},
|
|
210
210
|
"stableVersion": "0.71.4-dev.1"
|
|
211
|
-
}
|
|
211
|
+
}
|
|
@@ -33,15 +33,15 @@ export const convertEventStatisticToTableData = (
|
|
|
33
33
|
return []
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
const summaryFormattedDate = DateTime.fromISO(date)
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
const summaryFormattedDate = DateTime.fromISO(date).toFormat(
|
|
37
|
+
DATE_TIME_FULL_FORMAT,
|
|
38
|
+
)
|
|
39
39
|
|
|
40
40
|
const summaryDays =
|
|
41
41
|
Object.keys(eventStatistic?.productCategorySummary)?.filter(
|
|
42
42
|
(date) =>
|
|
43
43
|
DateTime.fromFormat(date, DATE_TIME_FULL_FORMAT).toFormat(
|
|
44
|
-
|
|
44
|
+
DATE_TIME_FULL_FORMAT,
|
|
45
45
|
) === summaryFormattedDate,
|
|
46
46
|
) ?? []
|
|
47
47
|
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { useMemo } from 'react'
|
|
2
|
+
import { Controller, FormProvider, useForm } from 'react-hook-form'
|
|
3
|
+
import { Button, Form } from 'react-bootstrap'
|
|
4
|
+
import { isEmpty, uniqBy } from 'lodash'
|
|
5
|
+
import { useTranslation } from 'react-i18next'
|
|
6
|
+
import { useIntl } from 'react-intl'
|
|
7
|
+
import { Currency } from '@licklist/core/dist/Config'
|
|
8
|
+
import { MenuStep } from '@licklist/plugins/dist/types/context/sale/menuSteps'
|
|
9
|
+
import { OrderModifierByProduct } from '@licklist/core/dist/DataMapper/Order/OrderModifiierByProduct'
|
|
10
|
+
import { Product } from '@licklist/plugins/dist/types/context/sale/menuSteps'
|
|
11
|
+
import { OrderModifier } from '@licklist/core/dist/DataMapper/Order/OrderModifierDataMapper'
|
|
12
|
+
import { NumberInputHorizontal } from 'src/sales'
|
|
13
|
+
import clsx from 'clsx'
|
|
14
|
+
import { ProductCategory } from 'dist/product-set/types'
|
|
15
|
+
import { MAX_PRODUCT_NUMBER } from '../../order-process/components/CategoryProduct/constants'
|
|
16
|
+
import { FormOrderItem } from '../../order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput'
|
|
17
|
+
import { getOrderProductModifiersPrice } from '../../order-process/components/BookingSummary/utils'
|
|
18
|
+
import { ProductControl } from './controll/ProductControll'
|
|
19
|
+
|
|
20
|
+
export interface ManualBookingFormValues {
|
|
21
|
+
steps: MenuStep[]
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface ProductWithModifierSetFormProps {
|
|
25
|
+
onHide: () => void
|
|
26
|
+
product: Product
|
|
27
|
+
category: ProductCategory
|
|
28
|
+
editOrderModifier?: OrderModifierByProduct
|
|
29
|
+
onChange: (product: FormOrderItem) => void
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const filteredOrderModifierSets = (
|
|
33
|
+
modifiersSet: OrderModifier[],
|
|
34
|
+
): OrderModifier[] => {
|
|
35
|
+
if (!modifiersSet) return []
|
|
36
|
+
const orderModifier = modifiersSet
|
|
37
|
+
?.flat()
|
|
38
|
+
.filter((modifier) => !!modifier?.quantity)
|
|
39
|
+
|
|
40
|
+
const filteredOrderModifier = uniqBy(
|
|
41
|
+
orderModifier,
|
|
42
|
+
(item) => `${item.modifierId}-${item.modifierSetId}`,
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
return filteredOrderModifier || []
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export const ProductWithModifierSetForm = ({
|
|
49
|
+
product,
|
|
50
|
+
category,
|
|
51
|
+
editOrderModifier,
|
|
52
|
+
onChange,
|
|
53
|
+
}: ProductWithModifierSetFormProps) => {
|
|
54
|
+
const form = useForm({ mode: 'onChange' })
|
|
55
|
+
const { t } = useTranslation(['App', 'Sale', 'Validation'])
|
|
56
|
+
|
|
57
|
+
const {
|
|
58
|
+
formState: { errors, isSubmitting, isValid },
|
|
59
|
+
control,
|
|
60
|
+
trigger,
|
|
61
|
+
watch,
|
|
62
|
+
} = form
|
|
63
|
+
const defaultProductQuantity = editOrderModifier?.productQuantity ?? 0
|
|
64
|
+
|
|
65
|
+
const valuesOrder = watch()
|
|
66
|
+
const productQuantity = valuesOrder?.product?.quantity ?? defaultProductQuantity
|
|
67
|
+
|
|
68
|
+
const orderModifiersSets =
|
|
69
|
+
valuesOrder[`${product.id}`]?.orderProductModifiers || []
|
|
70
|
+
|
|
71
|
+
const filteredOrderModifiers = filteredOrderModifierSets(orderModifiersSets)
|
|
72
|
+
|
|
73
|
+
const orderModifierSets: OrderModifierByProduct[] = useMemo(() => [
|
|
74
|
+
{
|
|
75
|
+
productQuantity: productQuantity ?? 1,
|
|
76
|
+
modifiers: filteredOrderModifiers,
|
|
77
|
+
},
|
|
78
|
+
]
|
|
79
|
+
, [filteredOrderModifiers, productQuantity])
|
|
80
|
+
|
|
81
|
+
const onSubmit = (event) => {
|
|
82
|
+
event.preventDefault()
|
|
83
|
+
trigger(`${product.id}`)
|
|
84
|
+
|
|
85
|
+
if (!isValid) return undefined
|
|
86
|
+
const productOrder: FormOrderItem = {
|
|
87
|
+
id: product.id,
|
|
88
|
+
name: product.name,
|
|
89
|
+
deposit: product?.deposit,
|
|
90
|
+
hasDeposit: category.allowDeposits && product?.deposit < product.price,
|
|
91
|
+
price: product.price,
|
|
92
|
+
productCategoryId: category.id,
|
|
93
|
+
quantity: productQuantity,
|
|
94
|
+
capacity: product?.capacity,
|
|
95
|
+
orderModifiersSets: orderModifierSets,
|
|
96
|
+
}
|
|
97
|
+
if (productOrder) {
|
|
98
|
+
return onChange(productOrder)
|
|
99
|
+
}
|
|
100
|
+
return undefined
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
const handleProductQuantityChange = (
|
|
104
|
+
value: number,
|
|
105
|
+
onChange: (val: number) => void,
|
|
106
|
+
) => {
|
|
107
|
+
if (value < 0) {
|
|
108
|
+
onChange(0)
|
|
109
|
+
} else if (value > MAX_PRODUCT_NUMBER) {
|
|
110
|
+
onChange(MAX_PRODUCT_NUMBER)
|
|
111
|
+
} else {
|
|
112
|
+
onChange(value)
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
const disabledAddButton = useMemo(() => {
|
|
117
|
+
if (defaultProductQuantity) return false
|
|
118
|
+
return !productQuantity || !isEmpty(errors)
|
|
119
|
+
}, [defaultProductQuantity, productQuantity, errors])
|
|
120
|
+
|
|
121
|
+
const modifierPrice = getOrderProductModifiersPrice(orderModifierSets[0])
|
|
122
|
+
const productWithModifierPrice =
|
|
123
|
+
(product.price * productQuantity || 0) + modifierPrice
|
|
124
|
+
const { formatNumber } = useIntl()
|
|
125
|
+
const formatToCurrency = (value: number) =>
|
|
126
|
+
formatNumber(value, { style: 'currency', currency: Currency.GBP })
|
|
127
|
+
|
|
128
|
+
return (
|
|
129
|
+
<FormProvider {...form}>
|
|
130
|
+
<Form>
|
|
131
|
+
<div className='manual-booking-form'>
|
|
132
|
+
<ProductControl
|
|
133
|
+
product={product}
|
|
134
|
+
editOrderModifier={editOrderModifier}
|
|
135
|
+
/>
|
|
136
|
+
<div className='bg-light m-2 p-2 rounded'>
|
|
137
|
+
<Controller
|
|
138
|
+
control={control}
|
|
139
|
+
name='product.quantity'
|
|
140
|
+
rules={{
|
|
141
|
+
min: {
|
|
142
|
+
value: 1,
|
|
143
|
+
message: t('Validation:fieldMinNumber', {
|
|
144
|
+
attribute: t('product'),
|
|
145
|
+
min: 1,
|
|
146
|
+
}) as string,
|
|
147
|
+
},
|
|
148
|
+
max: {
|
|
149
|
+
value: !product.isUnlimited
|
|
150
|
+
? product.maxQuantity
|
|
151
|
+
: MAX_PRODUCT_NUMBER,
|
|
152
|
+
message: t('Validation:fieldMaxNumber', {
|
|
153
|
+
attribute: t('product'),
|
|
154
|
+
max: product.maxQuantity,
|
|
155
|
+
}) as string,
|
|
156
|
+
},
|
|
157
|
+
}}
|
|
158
|
+
render={({
|
|
159
|
+
field: { onChange, value, ref },
|
|
160
|
+
fieldState: { invalid, error },
|
|
161
|
+
}) => (
|
|
162
|
+
<div className='mb-8 d-flex flex-column'>
|
|
163
|
+
<div className='quantity-container-product w-100'>
|
|
164
|
+
<NumberInputHorizontal
|
|
165
|
+
ref={ref}
|
|
166
|
+
size='big'
|
|
167
|
+
onChange={(val) =>
|
|
168
|
+
handleProductQuantityChange(val, onChange)
|
|
169
|
+
}
|
|
170
|
+
onMinusClick={(val) =>
|
|
171
|
+
handleProductQuantityChange(val, onChange)
|
|
172
|
+
}
|
|
173
|
+
onPlusClick={(val) => {
|
|
174
|
+
handleProductQuantityChange(val, onChange)
|
|
175
|
+
}}
|
|
176
|
+
min={0}
|
|
177
|
+
max={100}
|
|
178
|
+
value={value || defaultProductQuantity}
|
|
179
|
+
className={clsx(invalid && 'error')}
|
|
180
|
+
isLoading={isSubmitting}
|
|
181
|
+
/>
|
|
182
|
+
</div>
|
|
183
|
+
<div className=' d-flex flex-column align-items-center justify-content-center'>
|
|
184
|
+
<div className='modifier-price pb-4 pl-5'>
|
|
185
|
+
{formatToCurrency(product.price)}
|
|
186
|
+
</div>
|
|
187
|
+
{error?.message && (
|
|
188
|
+
<div className='d-flex justify-content-center mt-3 w-100'>
|
|
189
|
+
<p className='iframe-event__message-error'>
|
|
190
|
+
{error.message}
|
|
191
|
+
</p>
|
|
192
|
+
</div>
|
|
193
|
+
)}
|
|
194
|
+
</div>
|
|
195
|
+
</div>
|
|
196
|
+
)}
|
|
197
|
+
/>
|
|
198
|
+
<Button
|
|
199
|
+
as='button'
|
|
200
|
+
variant='primary'
|
|
201
|
+
className='w-100'
|
|
202
|
+
disabled={disabledAddButton}
|
|
203
|
+
onClick={onSubmit}
|
|
204
|
+
>
|
|
205
|
+
{`${t('Design:add')}${modifierPrice ? ` (${formatToCurrency(productWithModifierPrice)})` : ''}`}
|
|
206
|
+
</Button>
|
|
207
|
+
</div>
|
|
208
|
+
</div>
|
|
209
|
+
</Form>
|
|
210
|
+
</FormProvider>
|
|
211
|
+
)
|
|
212
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { useDialogContext, DialogContextProvider } from 'src/modals'
|
|
2
|
+
import { Modal } from 'react-bootstrap'
|
|
3
|
+
import { OrderModifierByProduct } from '@licklist/core/dist/DataMapper/Order/OrderModifiierByProduct'
|
|
4
|
+
import { Product } from '@licklist/plugins/dist/types/context/sale/menuSteps'
|
|
5
|
+
import { TicketDescription } from 'src/iframe/event'
|
|
6
|
+
import clsx from 'clsx'
|
|
7
|
+
import { ProductCategory } from 'dist/product-set/types'
|
|
8
|
+
import { FormOrderItem } from '../../order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput'
|
|
9
|
+
import { useOnWindowUnmount } from '../../order-process/components/utils/useOnWindowUnmount'
|
|
10
|
+
import { ProductWithModifierSetForm } from './ProductWithModifierSetForm'
|
|
11
|
+
|
|
12
|
+
interface ProductWithModifierSetModalProps {
|
|
13
|
+
show: boolean
|
|
14
|
+
onHide: () => void
|
|
15
|
+
product: Product
|
|
16
|
+
category: ProductCategory
|
|
17
|
+
editOrderModifier?: OrderModifierByProduct
|
|
18
|
+
onChange: (product: FormOrderItem) => void
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export const ProductWithModifierSetModal = ({
|
|
22
|
+
show,
|
|
23
|
+
onHide,
|
|
24
|
+
product,
|
|
25
|
+
category,
|
|
26
|
+
onChange,
|
|
27
|
+
editOrderModifier,
|
|
28
|
+
}: ProductWithModifierSetModalProps) => {
|
|
29
|
+
const { onBeforeUnload, onPopState } = useDialogContext()
|
|
30
|
+
useOnWindowUnmount({ onBeforeUnload, onPopState })
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<DialogContextProvider>
|
|
34
|
+
<Modal
|
|
35
|
+
onHide={onHide}
|
|
36
|
+
show={show}
|
|
37
|
+
className='m-0 manual-booking-form-modal mt-0 h-100 p-0'
|
|
38
|
+
dialogClassName='manual-booking-dialog mt-0'
|
|
39
|
+
>
|
|
40
|
+
<div className='close-button'>
|
|
41
|
+
<button
|
|
42
|
+
type='button'
|
|
43
|
+
onClick={onHide}
|
|
44
|
+
onKeyPress={onHide}
|
|
45
|
+
className='btn btn-light rounded-circle position-absolute top-0 end-0 m-2'
|
|
46
|
+
>
|
|
47
|
+
×
|
|
48
|
+
</button>
|
|
49
|
+
</div>
|
|
50
|
+
<div className='right-block' id='select-event-container'>
|
|
51
|
+
<div className='manual-booking-container'>
|
|
52
|
+
<div className='manual-booking-header'>
|
|
53
|
+
<TicketDescription
|
|
54
|
+
title={product.name}
|
|
55
|
+
description={product.description}
|
|
56
|
+
className={clsx('iframe-event__product-description', !product.images && 'mt-4')}
|
|
57
|
+
classNameProductModal='d-block'
|
|
58
|
+
images={product.images}
|
|
59
|
+
isRequired={product.isRequired}
|
|
60
|
+
canExpand
|
|
61
|
+
/>
|
|
62
|
+
</div>
|
|
63
|
+
<ProductWithModifierSetForm
|
|
64
|
+
product={product}
|
|
65
|
+
onHide={onHide}
|
|
66
|
+
editOrderModifier={editOrderModifier}
|
|
67
|
+
onChange={onChange}
|
|
68
|
+
category={category}
|
|
69
|
+
/>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
</Modal>
|
|
73
|
+
</DialogContextProvider>
|
|
74
|
+
)
|
|
75
|
+
}
|