@licklist/design 0.71.18-dev.18 → 0.71.18-dev.3
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/IntervalInput.d.ts +1 -3
- package/dist/events/edit-event-modal/IntervalInput.d.ts.map +1 -1
- package/dist/events/edit-event-modal/IntervalInput.js +4 -11
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts +1 -3
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.js +3 -14
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +0 -1
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts +1 -5
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts.map +1 -1
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.js +3 -5
- package/dist/events/event-statistic-modal/utils/index.js +3 -3
- package/dist/iframe/event/ticket-description/TicketDescription.d.ts +1 -3
- package/dist/iframe/event/ticket-description/TicketDescription.d.ts.map +1 -1
- package/dist/iframe/event/ticket-description/TicketDescription.js +7 -10
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts +1 -1
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +1 -2
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts +1 -5
- 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 +1 -12
- package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +0 -1
- package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts +0 -4
- package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/utils/index.js +2 -29
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +2 -106
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts +1 -3
- 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 +1 -95
- package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/hooks/useTableData.js +10 -83
- package/dist/iframe/payment/order-items-table/utils/index.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/utils/index.js +0 -15
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.js +2 -2
- package/dist/iframe/payment/payment-page/PaymentPage.d.ts.map +1 -1
- package/dist/iframe/payment/payment-page/PaymentPage.js +1 -4
- package/dist/index.js +1 -1
- package/dist/product-set/form/ProductSetForm.d.ts +1 -3
- package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.js +4 -6
- package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductsControl.js +5 -24
- package/dist/product-set/form/context.d.ts +1 -3
- package/dist/product-set/form/context.d.ts.map +1 -1
- package/dist/product-set/form/context.js +1 -2
- package/dist/product-set/product/ProductControl.d.ts +0 -8
- package/dist/product-set/product/ProductControl.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.js +1 -25
- package/dist/product-set/utils/index.d.ts +0 -88
- package/dist/product-set/utils/index.d.ts.map +1 -1
- package/dist/product-set/utils/index.js +1 -19
- package/dist/recurrence-input/RecurrenceInput.d.ts.map +1 -1
- package/dist/sales/coupon/utils/index.d.ts +1 -2
- package/dist/sales/coupon/utils/index.d.ts.map +1 -1
- package/dist/styles/date-time-button/DateTimeButton.scss +0 -7
- package/dist/styles/events/EditEventModal.scss +0 -2
- package/dist/styles/iframe-page/Page.scss +0 -16
- package/dist/styles/iframe-page/PageBody.scss +0 -4
- package/dist/styles/modals/Modals.scss +0 -16
- package/dist/styles/product-set/EditProductSetElement.scss +0 -1
- package/dist/styles/product-set/ProductSetForm.scss +0 -11
- package/dist/styles/sales/ManualBooking.scss +0 -6
- package/dist/styles/themes/bookedit/index.scss +0 -19
- package/package.json +6 -6
- package/src/events/edit-event-modal/IntervalInput.tsx +3 -13
- package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +1 -16
- package/src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx +1 -9
- package/src/events/event-statistic-modal/utils/index.ts +4 -4
- package/src/iframe/event/ticket-description/TicketDescription.tsx +4 -11
- package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +0 -2
- package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +2 -24
- package/src/iframe/order-process/components/BookingSummary/types/index.ts +0 -1
- package/src/iframe/order-process/components/BookingSummary/utils/index.ts +1 -42
- package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +75 -155
- package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +1 -58
- package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +14 -84
- package/src/iframe/payment/order-items-table/utils/index.ts +0 -23
- package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +2 -2
- package/src/iframe/payment/payment-page/PaymentPage.tsx +10 -8
- package/src/product-set/form/ProductSetForm.tsx +3 -11
- package/src/product-set/form/ProductsControl.tsx +15 -33
- package/src/product-set/form/context.tsx +0 -5
- package/src/product-set/product/ProductControl.tsx +1 -37
- package/src/product-set/utils/index.ts +0 -19
- package/src/recurrence-input/RecurrenceInput.tsx +5 -3
- package/src/sales/coupon/utils/index.ts +3 -5
- package/src/styles/date-time-button/DateTimeButton.scss +0 -7
- package/src/styles/events/EditEventModal.scss +0 -2
- package/src/styles/iframe-page/Page.scss +0 -16
- package/src/styles/iframe-page/PageBody.scss +0 -4
- package/src/styles/modals/Modals.scss +0 -16
- package/src/styles/product-set/EditProductSetElement.scss +0 -1
- package/src/styles/product-set/ProductSetForm.scss +0 -11
- package/src/styles/sales/ManualBooking.scss +0 -6
- package/src/styles/themes/bookedit/index.scss +0 -19
- package/yarn.lock +376 -377
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.d.ts +0 -18
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.d.ts.map +0 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.js +0 -295
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.d.ts +0 -15
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.d.ts.map +0 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js +0 -90
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts +0 -14
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts.map +0 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.js +0 -404
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.d.ts +0 -10
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.d.ts.map +0 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.js +0 -87
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/index.d.ts +0 -2
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/index.d.ts.map +0 -1
- package/dist/iframe/ProductWithModifierModal/index.d.ts +0 -2
- package/dist/iframe/ProductWithModifierModal/index.d.ts.map +0 -1
- package/dist/iframe/ProductWithModifierModal/utils.d.ts +0 -5
- package/dist/iframe/ProductWithModifierModal/utils.d.ts.map +0 -1
- package/dist/iframe/ProductWithModifierModal/utils.js +0 -21
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.d.ts +0 -23
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.d.ts.map +0 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.js +0 -62
- package/dist/iframe/order-process/components/CategoryProduct/constants.d.ts +0 -2
- package/dist/iframe/order-process/components/CategoryProduct/constants.d.ts.map +0 -1
- package/dist/iframe/order-process/components/CategoryProduct/constants.js +0 -4
- package/dist/iframe/order-process/components/utils/useOnWindowUnmount.d.ts +0 -6
- package/dist/iframe/order-process/components/utils/useOnWindowUnmount.d.ts.map +0 -1
- package/dist/iframe/order-process/components/utils/useOnWindowUnmount.js +0 -18
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.tsx +0 -212
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx +0 -76
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.tsx +0 -393
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.tsx +0 -98
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/index.ts +0 -1
- package/src/iframe/ProductWithModifierModal/index.ts +0 -1
- package/src/iframe/ProductWithModifierModal/utils.ts +0 -29
- package/src/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.tsx +0 -86
- package/src/iframe/order-process/components/CategoryProduct/constants.ts +0 -1
- package/src/iframe/order-process/components/utils/useOnWindowUnmount.ts +0 -25
|
@@ -5,14 +5,12 @@ interface IntervalInputProps {
|
|
|
5
5
|
productSets?: ProductSet[];
|
|
6
6
|
productSetId?: number;
|
|
7
7
|
disabled?: boolean;
|
|
8
|
-
disabledRecurrent?: boolean;
|
|
9
|
-
isCopyCreate?: boolean;
|
|
10
8
|
}
|
|
11
9
|
export interface IntervalInputValues {
|
|
12
10
|
start: string;
|
|
13
11
|
end: string;
|
|
14
12
|
rrule: string | null;
|
|
15
13
|
}
|
|
16
|
-
export declare function IntervalInput({ disabled, editedProductSet, productSetId, productSets,
|
|
14
|
+
export declare function IntervalInput({ disabled, editedProductSet, productSetId, productSets, }: IntervalInputProps): import("react/jsx-runtime").JSX.Element;
|
|
17
15
|
export {};
|
|
18
16
|
//# sourceMappingURL=IntervalInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntervalInput.d.ts","sourceRoot":"","sources":["../../../src/events/edit-event-modal/IntervalInput.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AAIxF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAG7D,UAAU,kBAAkB;IAC1B,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;IACvC,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"IntervalInput.d.ts","sourceRoot":"","sources":["../../../src/events/edit-event-modal/IntervalInput.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AAIxF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAG7D,UAAU,kBAAkB;IAC1B,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;IACvC,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB;AAED,wBAAgB,aAAa,CAAC,EAC5B,QAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,WAAW,GACZ,EAAE,kBAAkB,2CA4JpB"}
|
|
@@ -110,7 +110,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
110
110
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
111
111
|
}
|
|
112
112
|
function IntervalInput(param) {
|
|
113
|
-
var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, editedProductSet = param.editedProductSet, productSetId = param.productSetId, productSets = param.productSets
|
|
113
|
+
var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, editedProductSet = param.editedProductSet, productSetId = param.productSetId, productSets = param.productSets;
|
|
114
114
|
var _errors_start, _errors_end;
|
|
115
115
|
var t = useTranslation([
|
|
116
116
|
'Design',
|
|
@@ -138,6 +138,7 @@ function IntervalInput(param) {
|
|
|
138
138
|
var endDateInput = useRef(null);
|
|
139
139
|
var updateEndDate = function(param) {
|
|
140
140
|
var _param_target = param.target, nextStartDate = _param_target.value;
|
|
141
|
+
setRecurrent(false);
|
|
141
142
|
setValue('start', nextStartDate);
|
|
142
143
|
if (DateTime.fromISO(end).diff(DateTime.fromISO(nextStartDate)).toMillis() < 0) {
|
|
143
144
|
setValue('end', nextStartDate);
|
|
@@ -152,14 +153,6 @@ function IntervalInput(param) {
|
|
|
152
153
|
}, [
|
|
153
154
|
editedProductSet
|
|
154
155
|
]);
|
|
155
|
-
useEffect(function() {
|
|
156
|
-
if (!isCopyCreate) return;
|
|
157
|
-
setRecurrent(false);
|
|
158
|
-
setValue('rrule', null);
|
|
159
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
160
|
-
}, [
|
|
161
|
-
isCopyCreate
|
|
162
|
-
]);
|
|
163
156
|
useEffect(function() {
|
|
164
157
|
if (!productSets) return;
|
|
165
158
|
var isOverridenProductSet = productSets.find(function(productSet) {
|
|
@@ -264,7 +257,7 @@ function IntervalInput(param) {
|
|
|
264
257
|
var checked = param.target.checked;
|
|
265
258
|
onChangeRecurrent(checked);
|
|
266
259
|
},
|
|
267
|
-
disabled: disabled || Boolean(editedProductSet)
|
|
260
|
+
disabled: disabled || Boolean(editedProductSet)
|
|
268
261
|
}),
|
|
269
262
|
!recurrent && /*#__PURE__*/ jsx(Form.Text, {
|
|
270
263
|
muted: true,
|
|
@@ -290,7 +283,7 @@ function IntervalInput(param) {
|
|
|
290
283
|
minDate: DateTime.fromISO(start).plus({
|
|
291
284
|
day: 1
|
|
292
285
|
}).toFormat('yyyy-MM-dd'),
|
|
293
|
-
disabled: disabled
|
|
286
|
+
disabled: disabled
|
|
294
287
|
});
|
|
295
288
|
}
|
|
296
289
|
})
|
|
@@ -36,8 +36,6 @@ export interface EditEventFormProps extends HasPermissionProp {
|
|
|
36
36
|
timeZone: string;
|
|
37
37
|
eventProductSet?: ProductSet;
|
|
38
38
|
overrideNameError?: string;
|
|
39
|
-
disabledRecurrent?: boolean;
|
|
40
|
-
isCopyCreate?: boolean;
|
|
41
39
|
}
|
|
42
|
-
export declare const EditEventForm: ({ disabled, categories, title, hasPermission, defaultEventValues, serverErrors, onSaveEvent, productSets, createProductSet, setEditProductSetId, isExternalPaymentLinkEnabled, timeZone, eventProductSet, overrideNameError,
|
|
40
|
+
export declare const EditEventForm: ({ disabled, categories, title, hasPermission, defaultEventValues, serverErrors, onSaveEvent, productSets, createProductSet, setEditProductSetId, isExternalPaymentLinkEnabled, timeZone, eventProductSet, overrideNameError, }: EditEventFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
43
41
|
//# sourceMappingURL=EditEventForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditEventForm.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,EACN,MAAM,sDAAsD,CAAA;AAM7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAGtF,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAG3E,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAS5D,OAAO,EAAiB,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAGxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAA;AAGlF,MAAM,WAAW,mBAAoB,SAAQ,mBAAmB;IAC9D,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC,OAAO,EAAE,OAAO,GAAG,MAAM,CAAA;IACzB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAA;IACtB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;CACxC;AAED,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,aAAa,EAAE,CAAA;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,kBAAkB,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAA;IACjD,YAAY,CAAC,EAAE,WAAW,CAAA;IAC1B,WAAW,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAA;IAClD,WAAW,CAAC,EAAE,UAAU,EAAE,GAAG,IAAI,CAAA;IACjC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,gBAAgB,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAA;IACtD,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5C,4BAA4B,CAAC,EAAE,OAAO,CAAA;IACtC,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,CAAC,EAAE,UAAU,CAAA;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"EditEventForm.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,EACN,MAAM,sDAAsD,CAAA;AAM7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAGtF,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAG3E,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAS5D,OAAO,EAAiB,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAGxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAA;AAGlF,MAAM,WAAW,mBAAoB,SAAQ,mBAAmB;IAC9D,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC,OAAO,EAAE,OAAO,GAAG,MAAM,CAAA;IACzB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAA;IACtB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;CACxC;AAED,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,aAAa,EAAE,CAAA;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,kBAAkB,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAA;IACjD,YAAY,CAAC,EAAE,WAAW,CAAA;IAC1B,WAAW,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAA;IAClD,WAAW,CAAC,EAAE,UAAU,EAAE,GAAG,IAAI,CAAA;IACjC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,gBAAgB,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAA;IACtD,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5C,4BAA4B,CAAC,EAAE,OAAO,CAAA;IACtC,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,CAAC,EAAE,UAAU,CAAA;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAOD,eAAO,MAAM,aAAa,mOAevB,kBAAkB,4CAwVpB,CAAA"}
|
|
@@ -139,8 +139,8 @@ var eventImageTypes = {
|
|
|
139
139
|
uploadCover: IMAGE_TYPE_MAP[IMAGE_TYPE_COVER]
|
|
140
140
|
};
|
|
141
141
|
var EditEventForm = function(param) {
|
|
142
|
-
var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, categories = param.categories, title = param.title, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission, defaultEventValues = param.defaultEventValues, serverErrors = param.serverErrors, onSaveEvent = param.onSaveEvent, productSets = param.productSets, createProductSet = param.createProductSet, setEditProductSetId = param.setEditProductSetId, isExternalPaymentLinkEnabled = param.isExternalPaymentLinkEnabled, timeZone = param.timeZone, eventProductSet = param.eventProductSet, overrideNameError = param.overrideNameError
|
|
143
|
-
var
|
|
142
|
+
var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, categories = param.categories, title = param.title, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission, defaultEventValues = param.defaultEventValues, serverErrors = param.serverErrors, onSaveEvent = param.onSaveEvent, productSets = param.productSets, createProductSet = param.createProductSet, setEditProductSetId = param.setEditProductSetId, isExternalPaymentLinkEnabled = param.isExternalPaymentLinkEnabled, timeZone = param.timeZone, eventProductSet = param.eventProductSet, overrideNameError = param.overrideNameError;
|
|
143
|
+
var _errors_name, _errors_externalPaymentLink, _errors_integrationUrl;
|
|
144
144
|
var t = useTranslation([
|
|
145
145
|
'Design',
|
|
146
146
|
'Validation'
|
|
@@ -160,7 +160,6 @@ var EditEventForm = function(param) {
|
|
|
160
160
|
var visible = watch('visible');
|
|
161
161
|
var editedProductSet = watch('editedProductSet');
|
|
162
162
|
var productSetId = watch('productSetId');
|
|
163
|
-
var rrule = watch('rrule');
|
|
164
163
|
var _useMultipleImages = useMultipleImages(initialImages), images = _useMultipleImages.images, handleImageRemove = _useMultipleImages.handleImageRemove, handleImageUploading = _useMultipleImages.handleImageUploading, isImagesLoading = _useMultipleImages.isImagesLoading, isCoverImagesLoading = _useMultipleImages.isCoverImagesLoading;
|
|
165
164
|
var onErrorSubmit = function(submitErrors) {
|
|
166
165
|
scrollToError(getFirstErrorKey(submitErrors));
|
|
@@ -210,14 +209,6 @@ var EditEventForm = function(param) {
|
|
|
210
209
|
};
|
|
211
210
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
212
211
|
}, []);
|
|
213
|
-
var defaultExDate = (defaultEventValues === null || defaultEventValues === void 0 ? void 0 : (_defaultEventValues_rrule = defaultEventValues.rrule) === null || _defaultEventValues_rrule === void 0 ? void 0 : _defaultEventValues_rrule.includes('EXDATE')) ? defaultEventValues === null || defaultEventValues === void 0 ? void 0 : (_defaultEventValues_rrule1 = defaultEventValues.rrule) === null || _defaultEventValues_rrule1 === void 0 ? void 0 : _defaultEventValues_rrule1.split(';EXDATE=')[1] : '';
|
|
214
|
-
useEffect(function() {
|
|
215
|
-
if (!defaultExDate || (rrule === null || rrule === void 0 ? void 0 : rrule.includes('EXDATE'))) return;
|
|
216
|
-
rrule && setValue('rrule', rrule === null || rrule === void 0 ? void 0 : rrule.concat(";EXDATE=".concat(defaultExDate)));
|
|
217
|
-
}, [
|
|
218
|
-
defaultExDate,
|
|
219
|
-
rrule
|
|
220
|
-
]);
|
|
221
212
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
222
213
|
children: [
|
|
223
214
|
/*#__PURE__*/ jsx(Dialog, {
|
|
@@ -314,9 +305,7 @@ var EditEventForm = function(param) {
|
|
|
314
305
|
disabled: disabled,
|
|
315
306
|
productSetId: productSetId,
|
|
316
307
|
productSets: productSets,
|
|
317
|
-
|
|
318
|
-
editedProductSet: editedProductSet,
|
|
319
|
-
isCopyCreate: isCopyCreate
|
|
308
|
+
editedProductSet: editedProductSet
|
|
320
309
|
}, watch('name')),
|
|
321
310
|
categories.length !== 0 && /*#__PURE__*/ jsx(Form.Group, {
|
|
322
311
|
children: /*#__PURE__*/ jsx(Accordion, {
|
|
@@ -33,7 +33,6 @@ import '@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper';
|
|
|
33
33
|
import 'react-bootstrap/Collapse';
|
|
34
34
|
import '@licklist/plugins/dist/hooks/Media/useImages';
|
|
35
35
|
import '@licklist/core/dist/DataMapper/Media/ImageDataMapper';
|
|
36
|
-
import 'react-select';
|
|
37
36
|
import '@licklist/plugins';
|
|
38
37
|
import '@licklist/plugins/dist/context/app/hooks/useNotification';
|
|
39
38
|
import '../../../../../static/index.js';
|
|
@@ -8,9 +8,6 @@ export declare const RECURRENT_MODE_TYPES_LIST: {
|
|
|
8
8
|
thisAndFollowingEvents: number;
|
|
9
9
|
allEvents: number;
|
|
10
10
|
};
|
|
11
|
-
export declare const RECURRENT_MODE_TYPES_WITHOUT_ALL: {
|
|
12
|
-
thisEvent: number;
|
|
13
|
-
};
|
|
14
11
|
export type RecurrentEventMode = (typeof MODES)[number];
|
|
15
12
|
export type EditRecurrentEventModalValues = {
|
|
16
13
|
mode: RecurrentEventMode;
|
|
@@ -21,8 +18,7 @@ export type EditRecurrentEventModalProps = {
|
|
|
21
18
|
onHide: () => void;
|
|
22
19
|
title: string;
|
|
23
20
|
onSubmit: (values: EditRecurrentEventModalValues) => void;
|
|
24
|
-
isDateWasChanged?: boolean;
|
|
25
21
|
};
|
|
26
|
-
export declare const EditRecurrentEventModal: ({ disabled, isOpen, onHide, title, onSubmit,
|
|
22
|
+
export declare const EditRecurrentEventModal: ({ disabled, isOpen, onHide, title, onSubmit, }: EditRecurrentEventModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
23
|
export {};
|
|
28
24
|
//# sourceMappingURL=EditRecurrentEventModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditRecurrentEventModal.d.ts","sourceRoot":"","sources":["../../../src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe,cAAc,CAAA;AAC1C,eAAO,MAAM,8BAA8B,2BAA2B,CAAA;AACtE,eAAO,MAAM,eAAe,cAAc,CAAA;AAE1C,QAAA,MAAM,KAAK,+DAID,CAAA;AAEV,eAAO,MAAM,2BAA2B,cAAkB,CAAA;AAE1D,eAAO,MAAM,yBAAyB;;;;CAIrC,CAAA;AAED,
|
|
1
|
+
{"version":3,"file":"EditRecurrentEventModal.d.ts","sourceRoot":"","sources":["../../../src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe,cAAc,CAAA;AAC1C,eAAO,MAAM,8BAA8B,2BAA2B,CAAA;AACtE,eAAO,MAAM,eAAe,cAAc,CAAA;AAE1C,QAAA,MAAM,KAAK,+DAID,CAAA;AAEV,eAAO,MAAM,2BAA2B,cAAkB,CAAA;AAE1D,eAAO,MAAM,yBAAyB;;;;CAIrC,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,CAAA;AAEvD,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,EAAE,kBAAkB,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,OAAO,CAAA;IACf,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,MAAM,EAAE,6BAA6B,KAAK,IAAI,CAAA;CAC1D,CAAA;AAED,eAAO,MAAM,uBAAuB,mDAMjC,4BAA4B,4CAgF9B,CAAA"}
|
|
@@ -23,16 +23,14 @@ var MODE_ALL_EVENTS = 'allEvents';
|
|
|
23
23
|
var DEFAULT_RECURRENT_MODE_TYPE = MODE_THIS_EVENT;
|
|
24
24
|
var _obj;
|
|
25
25
|
var RECURRENT_MODE_TYPES_LIST = (_obj = {}, _define_property(_obj, MODE_THIS_EVENT, 1), _define_property(_obj, MODE_THIS_AND_FOLLOWING_EVENTS, 2), _define_property(_obj, MODE_ALL_EVENTS, 3), _obj);
|
|
26
|
-
var RECURRENT_MODE_TYPES_WITHOUT_ALL = _define_property({}, MODE_THIS_EVENT, 1);
|
|
27
26
|
var EditRecurrentEventModal = function(param) {
|
|
28
|
-
var disabled = param.disabled, isOpen = param.isOpen, onHide = param.onHide, title = param.title, onSubmit = param.onSubmit
|
|
27
|
+
var disabled = param.disabled, isOpen = param.isOpen, onHide = param.onHide, title = param.title, onSubmit = param.onSubmit;
|
|
29
28
|
var t = useTranslation('Design').t;
|
|
30
29
|
var _useForm = useForm({
|
|
31
30
|
defaultValues: {
|
|
32
31
|
mode: DEFAULT_RECURRENT_MODE_TYPE
|
|
33
32
|
}
|
|
34
33
|
}), control = _useForm.control, handleSubmit = _useForm.handleSubmit;
|
|
35
|
-
var recurrentListMode = isDateWasChanged ? RECURRENT_MODE_TYPES_WITHOUT_ALL : RECURRENT_MODE_TYPES_LIST;
|
|
36
34
|
return /*#__PURE__*/ jsx(Modal, {
|
|
37
35
|
show: isOpen,
|
|
38
36
|
onHide: onHide,
|
|
@@ -69,7 +67,7 @@ var EditRecurrentEventModal = function(param) {
|
|
|
69
67
|
render: function(param) {
|
|
70
68
|
var _param_field = param.field, value = _param_field.value, onChange = _param_field.onChange;
|
|
71
69
|
return /*#__PURE__*/ jsx(Fragment, {
|
|
72
|
-
children: Object.keys(
|
|
70
|
+
children: Object.keys(RECURRENT_MODE_TYPES_LIST).map(function(option) {
|
|
73
71
|
return /*#__PURE__*/ jsxs(Form.Check, {
|
|
74
72
|
type: "radio",
|
|
75
73
|
id: option,
|
|
@@ -122,4 +120,4 @@ var EditRecurrentEventModal = function(param) {
|
|
|
122
120
|
});
|
|
123
121
|
};
|
|
124
122
|
|
|
125
|
-
export { DEFAULT_RECURRENT_MODE_TYPE, EditRecurrentEventModal, MODE_ALL_EVENTS, MODE_THIS_AND_FOLLOWING_EVENTS, MODE_THIS_EVENT, RECURRENT_MODE_TYPES_LIST
|
|
123
|
+
export { DEFAULT_RECURRENT_MODE_TYPE, EditRecurrentEventModal, MODE_ALL_EVENTS, MODE_THIS_AND_FOLLOWING_EVENTS, MODE_THIS_EVENT, RECURRENT_MODE_TYPES_LIST };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DateTime } from 'luxon';
|
|
2
|
-
import { DATE_TIME_FULL_FORMAT } from '@licklist/core/dist/Config';
|
|
2
|
+
import { DATE_FORMAT, DATE_TIME_FULL_FORMAT } from '@licklist/core/dist/Config';
|
|
3
3
|
import { maxBy } from 'lodash';
|
|
4
4
|
|
|
5
5
|
function _array_like_to_array(arr, len) {
|
|
@@ -39,10 +39,10 @@ var convertEventStatisticToTableData = function(date, eventStatistic) {
|
|
|
39
39
|
if (!eventStatistic) {
|
|
40
40
|
return [];
|
|
41
41
|
}
|
|
42
|
-
var summaryFormattedDate = DateTime.fromISO(date).toFormat(
|
|
42
|
+
var summaryFormattedDate = DateTime.fromISO(date).toUTC().toFormat(DATE_FORMAT);
|
|
43
43
|
var _Object_keys_filter;
|
|
44
44
|
var summaryDays = (_Object_keys_filter = (_Object_keys = Object.keys(eventStatistic === null || eventStatistic === void 0 ? void 0 : eventStatistic.productCategorySummary)) === null || _Object_keys === void 0 ? void 0 : _Object_keys.filter(function(date) {
|
|
45
|
-
return DateTime.fromFormat(date, DATE_TIME_FULL_FORMAT).toFormat(
|
|
45
|
+
return DateTime.fromFormat(date, DATE_TIME_FULL_FORMAT).toFormat(DATE_FORMAT) === summaryFormattedDate;
|
|
46
46
|
})) !== null && _Object_keys_filter !== void 0 ? _Object_keys_filter : [];
|
|
47
47
|
var summaryMap = new Map();
|
|
48
48
|
summaryDays.map(function(day) {
|
|
@@ -4,13 +4,11 @@ interface TicketDescriptionProps {
|
|
|
4
4
|
title: string;
|
|
5
5
|
description: string;
|
|
6
6
|
className?: string;
|
|
7
|
-
classNameProductModal?: string;
|
|
8
7
|
images: Image[] | null;
|
|
9
8
|
price?: ReactNode;
|
|
10
9
|
isRequired?: boolean;
|
|
11
10
|
canExpand?: boolean;
|
|
12
|
-
isModal?: boolean;
|
|
13
11
|
}
|
|
14
|
-
export declare function TicketDescription({ title, description, className,
|
|
12
|
+
export declare function TicketDescription({ title, description, className, images, price, isRequired, canExpand, }: TicketDescriptionProps): import("react/jsx-runtime").JSX.Element;
|
|
15
13
|
export {};
|
|
16
14
|
//# sourceMappingURL=TicketDescription.d.ts.map
|
|
@@ -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,
|
|
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"}
|
|
@@ -54,7 +54,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
54
54
|
}
|
|
55
55
|
var DESCRIPTION_MAX_LENGTH = 120;
|
|
56
56
|
function TicketDescription(param) {
|
|
57
|
-
var title = param.title, description = param.description, _param_className = param.className, className = _param_className === void 0 ? '' : _param_className,
|
|
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
59
|
var wrapperClasses = clsx('ticket-description', className);
|
|
60
60
|
var imageSrc = images ? MediaService.getImageSrc(images, THUMBNAIL_IMAGE_SIZE) : null;
|
|
@@ -68,12 +68,11 @@ function TicketDescription(param) {
|
|
|
68
68
|
className: "ticket-description__wrapper",
|
|
69
69
|
style: descriptionWrapperStyle,
|
|
70
70
|
children: /*#__PURE__*/ jsxs("div", {
|
|
71
|
-
className:
|
|
71
|
+
className: "ticket-description__wrapper-children",
|
|
72
72
|
children: [
|
|
73
73
|
imageSrc && /*#__PURE__*/ jsx("div", {
|
|
74
|
-
className:
|
|
74
|
+
className: "image-wrapper",
|
|
75
75
|
children: /*#__PURE__*/ jsx("img", {
|
|
76
|
-
className: clsx(classNameProductModal && 'w-100'),
|
|
77
76
|
src: imageSrc,
|
|
78
77
|
alt: title
|
|
79
78
|
})
|
|
@@ -85,14 +84,12 @@ function TicketDescription(param) {
|
|
|
85
84
|
children: /*#__PURE__*/ jsx(Description, {
|
|
86
85
|
title: title,
|
|
87
86
|
isRequired: isRequired,
|
|
88
|
-
description: description
|
|
89
|
-
isModal: isModal
|
|
87
|
+
description: description
|
|
90
88
|
})
|
|
91
89
|
}) : /*#__PURE__*/ jsx(Description, {
|
|
92
90
|
title: title,
|
|
93
91
|
isRequired: isRequired,
|
|
94
|
-
description: description
|
|
95
|
-
isModal: isModal
|
|
92
|
+
description: description
|
|
96
93
|
})
|
|
97
94
|
]
|
|
98
95
|
})
|
|
@@ -107,9 +104,9 @@ function TicketDescription(param) {
|
|
|
107
104
|
});
|
|
108
105
|
}
|
|
109
106
|
var Description = function(param) {
|
|
110
|
-
var title = param.title, isRequired = param.isRequired, description = param.description
|
|
107
|
+
var title = param.title, isRequired = param.isRequired, description = param.description;
|
|
111
108
|
return /*#__PURE__*/ jsx("div", {
|
|
112
|
-
className:
|
|
109
|
+
className: "description-content",
|
|
113
110
|
children: /*#__PURE__*/ jsxs("div", {
|
|
114
111
|
className: "d-flex flex-column",
|
|
115
112
|
children: [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BookingSummaryProps } from './types';
|
|
2
2
|
export declare const BookingSummary: {
|
|
3
|
-
({ date, time, menuSteps, formValues, shouldHidePeopleAmount, eventName,
|
|
3
|
+
({ date, time, menuSteps, formValues, shouldHidePeopleAmount, eventName, transactionFee, productsWithErrors, isLoading, hasPeopleInput, peopleAmount, footer, headerComponent, isPaymentPage, }: Omit<BookingSummaryProps, "totallWithDiscount">): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
SummaryTotal: ({ formValues, totalWithDiscount, transactionFee, isFreePayment, }: Pick<BookingSummaryProps, "formValues" | "totalWithDiscount" | "transactionFee" | "isFreePayment">) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
Accordion: ({ children, title, showTitleOnlyOnMobile, hasPeopleInput, isPaymentPage, headerComponent, }: import("./components/BookingSummaryAccordion").BookingSummaryAccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BookingSummary.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/order-process/components/BookingSummary/BookingSummary.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAM7C,eAAO,MAAM,cAAc;
|
|
1
|
+
{"version":3,"file":"BookingSummary.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/order-process/components/BookingSummary/BookingSummary.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAM7C,eAAO,MAAM,cAAc;qMAgBxB,IAAI,CAAC,mBAAmB,EAAE,oBAAoB,CAAC;;;CAgFjD,CAAA"}
|
|
@@ -12,7 +12,7 @@ import { ReactComponent as SvgCalendar } from '../../../../assets/iframe/calenda
|
|
|
12
12
|
import { LoaderIndicator } from '../../../../static/loader/LoaderIndicator.js';
|
|
13
13
|
|
|
14
14
|
var BookingSummary = function(param) {
|
|
15
|
-
var date = param.date, time = param.time, menuSteps = param.menuSteps, _param_formValues = param.formValues, formValues = _param_formValues === void 0 ? {} : _param_formValues, shouldHidePeopleAmount = param.shouldHidePeopleAmount, eventName = param.eventName,
|
|
15
|
+
var date = param.date, time = param.time, menuSteps = param.menuSteps, _param_formValues = param.formValues, formValues = _param_formValues === void 0 ? {} : _param_formValues, shouldHidePeopleAmount = param.shouldHidePeopleAmount, eventName = param.eventName, _param_transactionFee = param.transactionFee, transactionFee = _param_transactionFee === void 0 ? 0 : _param_transactionFee, _param_productsWithErrors = param.productsWithErrors, productsWithErrors = _param_productsWithErrors === void 0 ? [] : _param_productsWithErrors, isLoading = param.isLoading, hasPeopleInput = param.hasPeopleInput, peopleAmount = param.peopleAmount, footer = param.footer, headerComponent = param.headerComponent, // TODO Remove this, when all iframe pages will be ready
|
|
16
16
|
isPaymentPage = param.isPaymentPage;
|
|
17
17
|
var _values;
|
|
18
18
|
var t = useTranslation('Design').t;
|
|
@@ -30,7 +30,6 @@ var BookingSummary = function(param) {
|
|
|
30
30
|
children: /*#__PURE__*/ jsxs(BookingSummaryAccordion, {
|
|
31
31
|
isPaymentPage: isPaymentPage,
|
|
32
32
|
hasPeopleInput: hasPeopleInput,
|
|
33
|
-
title: headerTitle,
|
|
34
33
|
headerComponent: headerComponent,
|
|
35
34
|
children: [
|
|
36
35
|
/*#__PURE__*/ jsx("div", {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { OrderItem } from '@licklist/plugins/dist/types/context/Iframe/orderItems';
|
|
2
|
-
import { OrderModifierByProduct } from '@licklist/core/dist/DataMapper/Order/OrderModifiierByProduct';
|
|
3
|
-
interface IOrderProduct extends OrderItem {
|
|
4
|
-
orderProductModifiers?: OrderModifierByProduct[] | null;
|
|
5
|
-
}
|
|
6
2
|
type ProductSummaryProps = {
|
|
7
3
|
name?: string;
|
|
8
4
|
productQuantityError?: string;
|
|
9
|
-
orderProduct:
|
|
5
|
+
orderProduct: OrderItem;
|
|
10
6
|
};
|
|
11
7
|
export declare const ProductSummary: ({ name, productQuantityError, orderProduct, }: ProductSummaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
8
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductSummary.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,wDAAwD,CAAA;
|
|
1
|
+
{"version":3,"file":"ProductSummary.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,wDAAwD,CAAA;AAElF,KAAK,mBAAmB,GAAG;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,YAAY,EAAE,SAAS,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,cAAc,kDAIxB,mBAAmB,4CA2BrB,CAAA"}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { jsxs, jsx
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
4
|
import * as Config from '@licklist/core/dist/Config';
|
|
5
|
-
import { ProductWithModifier } from '../../../CategoryProduct/components/ProductWithModifier/ProductWithModifier.js';
|
|
6
5
|
|
|
7
6
|
var ProductSummary = function(param) {
|
|
8
7
|
var name = param.name, productQuantityError = param.productQuantityError, orderProduct = param.orderProduct;
|
|
9
8
|
var t = useTranslation('Design').t;
|
|
10
9
|
var formatNumber = useIntl().formatNumber;
|
|
11
10
|
var priceForOneProduct = orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.price;
|
|
12
|
-
var modifiersSets = (orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.orderModifiersSets) || (orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.orderProductModifiers);
|
|
13
11
|
var fullPrice = formatNumber(priceForOneProduct * (orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.quantity), {
|
|
14
12
|
style: 'currency',
|
|
15
13
|
currency: Config.Currency.GBP
|
|
@@ -38,15 +36,6 @@ var ProductSummary = function(param) {
|
|
|
38
36
|
})
|
|
39
37
|
]
|
|
40
38
|
}),
|
|
41
|
-
!!modifiersSets.length && /*#__PURE__*/ jsx(Fragment, {
|
|
42
|
-
children: modifiersSets.map(function(modifier, index) {
|
|
43
|
-
return /*#__PURE__*/ jsx(ProductWithModifier, {
|
|
44
|
-
modifier: modifier,
|
|
45
|
-
modifierKey: index,
|
|
46
|
-
isSummary: true
|
|
47
|
-
}, modifier.productQuantity.toString());
|
|
48
|
-
})
|
|
49
|
-
}),
|
|
50
39
|
productQuantityError && /*#__PURE__*/ jsx("p", {
|
|
51
40
|
className: "iframe-event__message-error",
|
|
52
41
|
children: productQuantityError
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/BookingSummary/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAA;AACvF,OAAO,EAAE,UAAU,EAAE,MAAM,wDAAwD,CAAA;AACnF,OAAO,EAAE,QAAQ,EAAE,MAAM,qDAAqD,CAAA;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,eAAO,MAAM,YAAY,MAAM,CAAA;AAC/B,eAAO,MAAM,aAAa,oBAAoB,CAAA;AAE9C,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAA;IACtB,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,kBAAkB,CAAC,EAAE,wBAAwB,EAAE,CAAA;IAC/C,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,eAAe,CAAC,EAAE,YAAY,CAAA;IAC9B,MAAM,CAAC,EAAE,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/BookingSummary/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAA;AACvF,OAAO,EAAE,UAAU,EAAE,MAAM,wDAAwD,CAAA;AACnF,OAAO,EAAE,QAAQ,EAAE,MAAM,qDAAqD,CAAA;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,eAAO,MAAM,YAAY,MAAM,CAAA;AAC/B,eAAO,MAAM,aAAa,oBAAoB,CAAA;AAE9C,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAA;IACtB,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,kBAAkB,CAAC,EAAE,wBAAwB,EAAE,CAAA;IAC/C,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,eAAe,CAAC,EAAE,YAAY,CAAA;IAC9B,MAAM,CAAC,EAAE,YAAY,CAAA;CACtB,CAAA"}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { OrderModifierByProduct } from '@licklist/core/dist/DataMapper/Order/OrderModifiierByProduct';
|
|
2
1
|
import { QuantityCheckProductInfo } from '@licklist/plugins/dist/types/Api/verifyStock';
|
|
3
2
|
import { OrderItem } from '@licklist/plugins/dist/types/context/Iframe/orderItems';
|
|
4
3
|
export declare const cartSumByOrderProducts: ({ orderProducts, isTotalSum, }: {
|
|
5
4
|
orderProducts?: OrderItem[];
|
|
6
5
|
isTotalSum?: boolean;
|
|
7
6
|
}) => number;
|
|
8
|
-
export declare const getModifierName: (modifier: OrderModifierByProduct) => string;
|
|
9
|
-
export declare const calculateTotalModifiersPrice: (orderModifiersSets: OrderModifierByProduct[]) => number;
|
|
10
|
-
export declare const getOrderProductModifiersPrice: (modifierFromProduct: OrderModifierByProduct) => number;
|
|
11
7
|
export declare const getProductError: (productsWithErrors: QuantityCheckProductInfo[], productId: OrderItem["id"]) => string | undefined;
|
|
12
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/BookingSummary/utils/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/BookingSummary/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAA;AACvF,OAAO,EAAE,SAAS,EAAE,MAAM,wDAAwD,CAAA;AAElF,eAAO,MAAM,sBAAsB,mCAGhC;IACD,aAAa,CAAC,EAAE,SAAS,EAAE,CAAA;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,WAeA,CAAA;AAED,eAAO,MAAM,eAAe,uBACN,wBAAwB,EAAE,aACnC,SAAS,CAAC,IAAI,CAAC,KACzB,MAAM,GAAG,SAGA,CAAA"}
|
|
@@ -5,37 +5,10 @@ var cartSumByOrderProducts = function(param) {
|
|
|
5
5
|
}
|
|
6
6
|
return orderProducts.reduce(function(prevSumValue, product) {
|
|
7
7
|
if (!product) return 0;
|
|
8
|
-
var modifiersPrice = calculateTotalModifiersPrice(product === null || product === void 0 ? void 0 : product.orderModifiersSets);
|
|
9
8
|
var price = isTotalSum ? product === null || product === void 0 ? void 0 : product.price : product.hasDeposit ? product === null || product === void 0 ? void 0 : product.deposit : product === null || product === void 0 ? void 0 : product.price;
|
|
10
|
-
return prevSumValue + price * product.quantity
|
|
9
|
+
return prevSumValue + price * product.quantity;
|
|
11
10
|
}, 0);
|
|
12
11
|
};
|
|
13
|
-
var getModifierName = function(modifier) {
|
|
14
|
-
var modifierName = function(orderModifier) {
|
|
15
|
-
var _orderModifier_modifier;
|
|
16
|
-
var _orderModifier_modifier_name;
|
|
17
|
-
return (_orderModifier_modifier_name = orderModifier === null || orderModifier === void 0 ? void 0 : (_orderModifier_modifier = orderModifier.modifier) === null || _orderModifier_modifier === void 0 ? void 0 : _orderModifier_modifier.name) !== null && _orderModifier_modifier_name !== void 0 ? _orderModifier_modifier_name : orderModifier === null || orderModifier === void 0 ? void 0 : orderModifier.name;
|
|
18
|
-
};
|
|
19
|
-
return "".concat(modifier.modifiers.map(function(item) {
|
|
20
|
-
return (item === null || item === void 0 ? void 0 : item.quantity) > 1 ? "".concat(item === null || item === void 0 ? void 0 : item.quantity, "x - ").concat(modifierName(item)) : modifierName(item);
|
|
21
|
-
}).join(', '));
|
|
22
|
-
};
|
|
23
|
-
var calculateTotalModifiersPrice = function(orderModifiersSets) {
|
|
24
|
-
return orderModifiersSets === null || orderModifiersSets === void 0 ? void 0 : orderModifiersSets.map(function(set) {
|
|
25
|
-
return set.modifiers.reduce(function(sum, modifier) {
|
|
26
|
-
return sum + modifier.price * modifier.quantity * set.productQuantity;
|
|
27
|
-
}, 0);
|
|
28
|
-
}).reduce(function(total, setTotal) {
|
|
29
|
-
return total + setTotal;
|
|
30
|
-
}, 0);
|
|
31
|
-
};
|
|
32
|
-
var getOrderProductModifiersPrice = function(modifierFromProduct) {
|
|
33
|
-
var modifiers = modifierFromProduct.modifiers, productQuantity = modifierFromProduct.productQuantity;
|
|
34
|
-
var modifiersPrices = modifiers.reduce(function(prevSumModifier, modifier) {
|
|
35
|
-
return prevSumModifier + modifier.price * modifier.quantity;
|
|
36
|
-
}, 0);
|
|
37
|
-
return modifiersPrices * productQuantity;
|
|
38
|
-
};
|
|
39
12
|
var getProductError = function(productsWithErrors, productId) {
|
|
40
13
|
var _productsWithErrors_find;
|
|
41
14
|
return (_productsWithErrors_find = productsWithErrors.find(function(productWithError) {
|
|
@@ -43,4 +16,4 @@ var getProductError = function(productsWithErrors, productId) {
|
|
|
43
16
|
})) === null || _productsWithErrors_find === void 0 ? void 0 : _productsWithErrors_find.message;
|
|
44
17
|
};
|
|
45
18
|
|
|
46
|
-
export {
|
|
19
|
+
export { cartSumByOrderProducts, getProductError };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CategoryProduct.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAA;AACvF,OAAO,EACL,OAAO,EACP,eAAe,EAChB,MAAM,qDAAqD,CAAA;
|
|
1
|
+
{"version":3,"file":"CategoryProduct.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAA;AACvF,OAAO,EACL,OAAO,EACP,eAAe,EAChB,MAAM,qDAAqD,CAAA;AAI5D,UAAU,oBAAoB;IAC5B,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,eAAe,CAAA;IACzB,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,kBAAkB,CAAC,EAAE,wBAAwB,EAAE,CAAA;IAC/C,eAAe,CAAC,EAAE,wBAAwB,EAAE,CAAA;CAC7C;AAED,eAAO,MAAM,eAAe,sFAMzB,oBAAoB,4CA0KtB,CAAA"}
|