@pisell/private-materials 3.0.69 → 3.0.71
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +7 -7
- package/es/components/booking/components/addButton/index.d.ts +1 -0
- package/es/components/booking/components/addButton/index.js +6 -2
- package/es/components/booking/components/customSelect/index.js +4 -2
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -1
- package/es/components/booking/components/footer/FooterMenus/index.js +71 -22
- package/es/components/booking/components/footer/index.js +255 -14
- package/es/components/booking/info/client/index.js +2 -2
- package/es/components/booking/info/header/index.less +7 -1
- package/es/components/booking/info/index.js +6 -5
- package/es/components/booking/info/notes/index.d.ts +1 -1
- package/es/components/booking/info/notes/index.js +4 -1
- package/es/components/booking/info/pet/index.js +3 -0
- package/es/components/booking/info/service/addService/index.js +12 -7
- package/es/components/booking/info/service/editService/index.js +19 -4
- package/es/components/booking/info/service/serviceList/index.js +1 -1
- package/es/components/booking/locales.d.ts +3 -3
- package/es/components/booking/locales.js +13 -13
- package/es/components/booking/model.d.ts +1 -0
- package/es/components/booking/payments/index.js +0 -6
- package/es/components/booking/utils.js +1 -1
- package/lib/components/booking/components/addButton/index.d.ts +1 -0
- package/lib/components/booking/components/addButton/index.js +7 -4
- package/lib/components/booking/components/customSelect/index.js +3 -2
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -1
- package/lib/components/booking/components/footer/FooterMenus/index.js +4 -21
- package/lib/components/booking/components/footer/index.js +243 -16
- package/lib/components/booking/info/client/index.js +2 -2
- package/lib/components/booking/info/header/index.less +7 -1
- package/lib/components/booking/info/index.js +4 -3
- package/lib/components/booking/info/notes/index.d.ts +1 -1
- package/lib/components/booking/info/notes/index.js +4 -1
- package/lib/components/booking/info/pet/index.js +3 -0
- package/lib/components/booking/info/service/addService/index.js +11 -7
- package/lib/components/booking/info/service/editService/index.js +21 -6
- package/lib/components/booking/info/service/serviceList/index.js +1 -1
- package/lib/components/booking/locales.d.ts +3 -3
- package/lib/components/booking/locales.js +13 -13
- package/lib/components/booking/model.d.ts +1 -0
- package/lib/components/booking/payments/index.js +0 -6
- package/lib/components/booking/utils.js +1 -1
- package/package.json +3 -3
|
@@ -443,6 +443,7 @@ var Pet = function Pet() {
|
|
|
443
443
|
closeCallback: function closeCallback() {
|
|
444
444
|
searchChange("");
|
|
445
445
|
},
|
|
446
|
+
showDropDown: !state.disableEventBookingEdit,
|
|
446
447
|
searchChange: searchChange,
|
|
447
448
|
searchValue: params.search,
|
|
448
449
|
loadMore: loadMore,
|
|
@@ -487,6 +488,8 @@ var Pet = function Pet() {
|
|
|
487
488
|
style: {
|
|
488
489
|
margin: 0
|
|
489
490
|
},
|
|
491
|
+
disabled: state.disableEventBookingEdit,
|
|
492
|
+
showDisabledMessage: !state.disableEventBookingEdit,
|
|
490
493
|
addCallback: function () {
|
|
491
494
|
var _addCallback2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
492
495
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -34,7 +34,7 @@ import { locales, getUniqueId } from "@pisell/utils";
|
|
|
34
34
|
import { useUpdateEffect } from "ahooks";
|
|
35
35
|
var shopList = [2886, 4422, 5538, 6930, 6814, 6813, 6812, 6087, 6303, 6080];
|
|
36
36
|
var Info = function Info() {
|
|
37
|
-
var _state$service3, _state$
|
|
37
|
+
var _state$service3, _state$service5, _state$service6, _state$service6$cache;
|
|
38
38
|
var _useState = useState(""),
|
|
39
39
|
_useState2 = _slicedToArray(_useState, 2),
|
|
40
40
|
search = _useState2[0],
|
|
@@ -219,7 +219,6 @@ var Info = function Info() {
|
|
|
219
219
|
is_eject: isEject ? 1 : 0
|
|
220
220
|
},
|
|
221
221
|
callback: function callback(e) {
|
|
222
|
-
var _state$service;
|
|
223
222
|
var cacheItem = _objectSpread(_objectSpread({}, item), {}, {
|
|
224
223
|
product_id: item.id,
|
|
225
224
|
_id: getUniqueId(),
|
|
@@ -248,7 +247,12 @@ var Info = function Info() {
|
|
|
248
247
|
cacheItem: cacheItem,
|
|
249
248
|
state: state
|
|
250
249
|
});
|
|
251
|
-
|
|
250
|
+
if (state.renderType === 'eventBooking') {
|
|
251
|
+
cacheItem.autoClose = false;
|
|
252
|
+
} else {
|
|
253
|
+
var _state$service;
|
|
254
|
+
cacheItem.autoClose = !_isEdit && (cacheItem._extend.resource || cacheItem._extend.resource === 0 || (((_state$service = state.service) === null || _state$service === void 0 ? void 0 : _state$service.resourcesOrigin) || []).length === 1);
|
|
255
|
+
}
|
|
252
256
|
dispatch({
|
|
253
257
|
type: "setService",
|
|
254
258
|
payload: {
|
|
@@ -275,17 +279,18 @@ var Info = function Info() {
|
|
|
275
279
|
return state.service.value.length > 0;
|
|
276
280
|
}, [state.service.value]);
|
|
277
281
|
useEffect(function () {
|
|
278
|
-
var _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3, _context$appHelper$ut4, _context$appHelper$ut5;
|
|
282
|
+
var _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3, _context$appHelper$ut4, _context$appHelper$ut5, _state$service4, _state$service4$value;
|
|
279
283
|
// Salonip 不要这个
|
|
280
284
|
|
|
281
285
|
if (shopList.includes((_context$appHelper$ut = context.appHelper.utils.store) === null || _context$appHelper$ut === void 0 ? void 0 : (_context$appHelper$ut2 = _context$appHelper$ut.getState) === null || _context$appHelper$ut2 === void 0 ? void 0 : (_context$appHelper$ut3 = _context$appHelper$ut2.call(_context$appHelper$ut)) === null || _context$appHelper$ut3 === void 0 ? void 0 : (_context$appHelper$ut4 = _context$appHelper$ut3.global) === null || _context$appHelper$ut4 === void 0 ? void 0 : (_context$appHelper$ut5 = _context$appHelper$ut4.globalConfig) === null || _context$appHelper$ut5 === void 0 ? void 0 : _context$appHelper$ut5.id)) {
|
|
282
286
|
return;
|
|
283
287
|
}
|
|
288
|
+
|
|
284
289
|
// 如果弹窗打开,并且是创建, 则自动打开选择服务的弹窗
|
|
285
|
-
if (state.modalOpen && !state.bookingId && state.renderType !== "eventBooking") {
|
|
290
|
+
if (state.modalOpen && !state.bookingId && state.renderType !== "eventBooking" && ((_state$service4 = state.service) === null || _state$service4 === void 0 ? void 0 : (_state$service4$value = _state$service4.value) === null || _state$service4$value === void 0 ? void 0 : _state$service4$value.length) === 0) {
|
|
286
291
|
handleSelectService();
|
|
287
292
|
}
|
|
288
|
-
}, [state.modalOpen, state.bookingId]);
|
|
293
|
+
}, [state.modalOpen, state.bookingId, (_state$service5 = state.service) === null || _state$service5 === void 0 ? void 0 : _state$service5.value]);
|
|
289
294
|
var showAddButton = useMemo(function () {
|
|
290
295
|
return !state.disabledEdit && !state.channelDisabledEdit;
|
|
291
296
|
}, [state.disabledEdit, state.channelDisabledEdit]);
|
|
@@ -325,7 +330,7 @@ var Info = function Info() {
|
|
|
325
330
|
}
|
|
326
331
|
});
|
|
327
332
|
}, [state.renderType, showAddButton, isService, state.service.value, loading]);
|
|
328
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, ((_state$
|
|
333
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, ((_state$service6 = state.service) === null || _state$service6 === void 0 ? void 0 : (_state$service6$cache = _state$service6.cacheItem) === null || _state$service6$cache === void 0 ? void 0 : _state$service6$cache.autoClose) && /*#__PURE__*/React.createElement(Skeleton, {
|
|
329
334
|
loading: true,
|
|
330
335
|
active: true,
|
|
331
336
|
round: true
|
|
@@ -29,12 +29,13 @@ import "./index.less";
|
|
|
29
29
|
import CollapsibleList from "../../../components/collapsibleList";
|
|
30
30
|
import { renderBundles } from "../../../components/collapsibleList/utils";
|
|
31
31
|
import { useUpdateEffect, useMemoizedFn } from "ahooks";
|
|
32
|
+
// import SelectTime from "../../../../../../../materials/src/components/select-time";
|
|
32
33
|
import { getErrorList, getServiceTimes, deleteCacheParams } from "../../../utils";
|
|
33
34
|
import Like from "../like";
|
|
34
35
|
import { getNoResource } from "../../../mock";
|
|
35
36
|
import { formatResources, getDurationProps, getFlexibleOption, getTimeObj } from "../addService/utils";
|
|
36
37
|
var Info = function Info() {
|
|
37
|
-
var _state$bookingConfig2, _state$bookingConfig3, _state$bookingConfig4, _state$service3, _state$service3$cache, _state$service5, _state$service5$cache, _state$service5$cache2, _state$service5$cache3, _state$service$cacheI5, _state$service6, _state$service6$cache, _state$service6$cache2, _state$service$cacheI6, _state$service$cacheI7, _state$service$cacheI8, _state$service$cacheI9;
|
|
38
|
+
var _state$bookingConfig2, _state$bookingConfig3, _state$bookingConfig4, _state$service3, _state$service3$cache, _state$service5, _state$service5$cache, _state$service5$cache2, _state$service5$cache3, _window$BaseMaterials, _state$service$cacheI5, _state$service6, _state$service6$cache, _state$service6$cache2, _state$service$cacheI6, _state$service$cacheI7, _state$service$cacheI8, _state$service$cacheI9, _state$bookingConfig5, _state$bookingConfig6, _state$bookingConfig7, _state$bookingConfig8;
|
|
38
39
|
var _Form$useForm = Form.useForm(),
|
|
39
40
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
40
41
|
form = _Form$useForm2[0];
|
|
@@ -540,6 +541,7 @@ var Info = function Info() {
|
|
|
540
541
|
useEffect(function () {
|
|
541
542
|
getResourcesData();
|
|
542
543
|
}, [state.date.value]);
|
|
544
|
+
var SelectTime = (_window$BaseMaterials = window.BaseMaterials) === null || _window$BaseMaterials === void 0 ? void 0 : _window$BaseMaterials.SelectTime;
|
|
543
545
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Drawer, {
|
|
544
546
|
zIndex: 1000,
|
|
545
547
|
forceRender: true,
|
|
@@ -642,9 +644,22 @@ var Info = function Info() {
|
|
|
642
644
|
rules: [{
|
|
643
645
|
required: true
|
|
644
646
|
}]
|
|
645
|
-
}, /*#__PURE__*/React.createElement(
|
|
646
|
-
|
|
647
|
-
|
|
647
|
+
}, SelectTime ? /*#__PURE__*/React.createElement(SelectTime, {
|
|
648
|
+
slice: (_state$bookingConfig5 = state.bookingConfig) === null || _state$bookingConfig5 === void 0 ? void 0 : (_state$bookingConfig6 = _state$bookingConfig5.config) === null || _state$bookingConfig6 === void 0 ? void 0 : (_state$bookingConfig7 = _state$bookingConfig6.basic) === null || _state$bookingConfig7 === void 0 ? void 0 : (_state$bookingConfig8 = _state$bookingConfig7.service_time) === null || _state$bookingConfig8 === void 0 ? void 0 : _state$bookingConfig8.value,
|
|
649
|
+
onChange: function onChange(e) {
|
|
650
|
+
console.log("eeee", e);
|
|
651
|
+
},
|
|
652
|
+
timePickerProps: {
|
|
653
|
+
style: {
|
|
654
|
+
width: "100%"
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
timeProps: {
|
|
658
|
+
style: {
|
|
659
|
+
zoom: 0.8
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
}) : null)), /*#__PURE__*/React.createElement(Col, {
|
|
648
663
|
span: 12
|
|
649
664
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
650
665
|
label: locales.getText("pisell2.text.duration"),
|
|
@@ -27,7 +27,7 @@ var ServiceList = function ServiceList() {
|
|
|
27
27
|
maxLimit: locales.getText("pisell2.text.status.service-error-3")
|
|
28
28
|
};
|
|
29
29
|
var handleEditService = function handleEditService(item) {
|
|
30
|
-
if (state.disabledEdit) {
|
|
30
|
+
if (state.disabledEdit || state.disableEventBookingEdit) {
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
33
|
dispatch({
|
|
@@ -40,7 +40,7 @@ declare const _default: {
|
|
|
40
40
|
'pisell2.text.add-notes': string;
|
|
41
41
|
'pisell2.text.notes': string;
|
|
42
42
|
'pisell2.text.new-appointment': string;
|
|
43
|
-
'pisell2.text.enroll': string;
|
|
43
|
+
'pisell2.text.enroll.detail': string;
|
|
44
44
|
'pisell2.text.add-products-successfully': string;
|
|
45
45
|
'pisell2.text.add': string;
|
|
46
46
|
'pisell2.text.created-successfully': string;
|
|
@@ -194,7 +194,7 @@ declare const _default: {
|
|
|
194
194
|
'pisell2.text.add-notes': string;
|
|
195
195
|
'pisell2.text.notes': string;
|
|
196
196
|
'pisell2.text.new-appointment': string;
|
|
197
|
-
'pisell2.text.enroll': string;
|
|
197
|
+
'pisell2.text.enroll.detail': string;
|
|
198
198
|
'pisell2.text.add-products-successfully': string;
|
|
199
199
|
'pisell2.text.refund': string;
|
|
200
200
|
'pisell2.text.refund-amount': string;
|
|
@@ -343,7 +343,7 @@ declare const _default: {
|
|
|
343
343
|
'pisell2.text.add-notes': string;
|
|
344
344
|
'pisell2.text.notes': string;
|
|
345
345
|
'pisell2.text.new-appointment': string;
|
|
346
|
-
'pisell2.text.enroll': string;
|
|
346
|
+
'pisell2.text.enroll.detail': string;
|
|
347
347
|
'pisell2.text.add-products-successfully': string;
|
|
348
348
|
'pisell2.text.add': string;
|
|
349
349
|
'pisell2.text.created-successfully': string;
|
|
@@ -40,7 +40,7 @@ export default {
|
|
|
40
40
|
'pisell2.text.add-notes': 'Add Notes',
|
|
41
41
|
'pisell2.text.notes': 'Notes',
|
|
42
42
|
'pisell2.text.new-appointment': 'New appointment',
|
|
43
|
-
'pisell2.text.enroll': '
|
|
43
|
+
'pisell2.text.enroll.detail': 'Details',
|
|
44
44
|
'pisell2.text.add-products-successfully': 'Add products successfully',
|
|
45
45
|
'pisell2.text.add': 'Add',
|
|
46
46
|
'pisell2.text.created-successfully': 'Appointment created',
|
|
@@ -131,23 +131,23 @@ export default {
|
|
|
131
131
|
'pisell2.text.add-contacts': 'Add contact',
|
|
132
132
|
'pisell2.text.edit-profile': 'Edit profile',
|
|
133
133
|
'pisell2.text.remove-contact': 'Remove contact',
|
|
134
|
-
'pisell2.text.order.sales.channel.online': "Online
|
|
135
|
-
'pisell2.text.order.sales.channel.pos-terminal': "Pisell
|
|
134
|
+
'pisell2.text.order.sales.channel.online': "Online store",
|
|
135
|
+
'pisell2.text.order.sales.channel.pos-terminal': "Pisell terminal",
|
|
136
136
|
'pisell2.text.order.sales.channel.boxcocal': "Boxlocal",
|
|
137
|
-
'pisell2.text.order.sales.channel.tableorder': "Table
|
|
138
|
-
'pisell2.text.order.sales.channel.reserve': "Google
|
|
137
|
+
'pisell2.text.order.sales.channel.tableorder': "Table order",
|
|
138
|
+
'pisell2.text.order.sales.channel.reserve': "Google reservation",
|
|
139
139
|
'pisell2.text.rebook': "Rebook",
|
|
140
140
|
'pisell2.text.now': 'Now',
|
|
141
|
-
'pisell2.text.deposit-list': "Deposit
|
|
141
|
+
'pisell2.text.deposit-list': "Deposit list",
|
|
142
142
|
'pisell2.text.deposit-item-status-paid': "Paid",
|
|
143
143
|
'pisell2.text.deposit-item-status-unpaid': "Unpaid",
|
|
144
|
-
'pisell2.text.deposit-order-total': "Order
|
|
145
|
-
'pisell2.text.deposit-order-detail': "Order
|
|
146
|
-
'pisell2.text.deposit-collect-deposit': "Collect
|
|
144
|
+
'pisell2.text.deposit-order-total': "Order total",
|
|
145
|
+
'pisell2.text.deposit-order-detail': "Order details",
|
|
146
|
+
'pisell2.text.deposit-collect-deposit': "Collect deposit",
|
|
147
147
|
'pisell2.text.deposit-order-no': "Order No",
|
|
148
148
|
'pisell2.text.deposit-amount': "Amount",
|
|
149
|
-
'pisell2.text.deposit-deposit-amount': "Deposit
|
|
150
|
-
'pisell2.text.deposit-generate-payment-link': "Generate
|
|
149
|
+
'pisell2.text.deposit-deposit-amount': "Deposit amount",
|
|
150
|
+
'pisell2.text.deposit-generate-payment-link': "Generate payment link",
|
|
151
151
|
'pisell2.text.deposit-list-empty': "Please add a deposit",
|
|
152
152
|
'pisell2.text.deposit-amount-message': "Amount must be greater than 0",
|
|
153
153
|
'pisell2.text.deposit-amount-message2': "The deposit amount cannot be greater than the total order amount",
|
|
@@ -209,7 +209,7 @@ export default {
|
|
|
209
209
|
'pisell2.text.add-notes': '添加备注',
|
|
210
210
|
'pisell2.text.notes': '备注',
|
|
211
211
|
'pisell2.text.new-appointment': '新预约',
|
|
212
|
-
'pisell2.text.enroll': '
|
|
212
|
+
'pisell2.text.enroll.detail': '详情',
|
|
213
213
|
'pisell2.text.add-products-successfully': '添加商品成功',
|
|
214
214
|
'pisell2.text.refund': '退款',
|
|
215
215
|
'pisell2.text.refund-amount': '退款金额',
|
|
@@ -378,7 +378,7 @@ export default {
|
|
|
378
378
|
'pisell2.text.add-notes': '添加備注',
|
|
379
379
|
'pisell2.text.notes': '備注',
|
|
380
380
|
'pisell2.text.new-appointment': '新預約',
|
|
381
|
-
'pisell2.text.enroll': '
|
|
381
|
+
'pisell2.text.enroll.detail': '詳情',
|
|
382
382
|
'pisell2.text.add-products-successfully': '添加商品成功',
|
|
383
383
|
//
|
|
384
384
|
'pisell2.text.add': '添加',
|
|
@@ -87,12 +87,6 @@ var Payments = Provider(function (props) {
|
|
|
87
87
|
useEffect(function () {
|
|
88
88
|
if (state.bookingDetail) {
|
|
89
89
|
init();
|
|
90
|
-
state.action({
|
|
91
|
-
type: "pisell1.registerPlugin",
|
|
92
|
-
data: {
|
|
93
|
-
pluginList: ["RefundPlugin"]
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
90
|
}
|
|
97
91
|
}, [state.bookingDetail]);
|
|
98
92
|
var getRefundInfo = /*#__PURE__*/function () {
|
|
@@ -576,7 +576,7 @@ export var getServerItemExtend = function getServerItemExtend(state, cacheItem,
|
|
|
576
576
|
_extend.start_time = findNextSlice(findNextSliceProps);
|
|
577
577
|
} else {
|
|
578
578
|
// 没有预设日期, 则使用当前 https://www.yuque.com/feg4xm/manual/tzvrnt05ifihkndg
|
|
579
|
-
_extend.start_time = '
|
|
579
|
+
_extend.start_time = dayjs().format('HH:mm');
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
582
|
_extend = _objectSpread(_objectSpread({}, _extend), cacheItem._extend);
|
|
@@ -46,13 +46,16 @@ var AddButton = ({
|
|
|
46
46
|
subTitle,
|
|
47
47
|
style,
|
|
48
48
|
disabled,
|
|
49
|
-
loading
|
|
49
|
+
loading,
|
|
50
|
+
showDisabledMessage = true
|
|
50
51
|
}) => {
|
|
51
52
|
const _onClick = () => {
|
|
52
53
|
if (disabled) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
if (showDisabledMessage) {
|
|
55
|
+
import_antd.message.warning(
|
|
56
|
+
import_utils.locales.getText("pisell2.text.please-select-the-customer-first")
|
|
57
|
+
);
|
|
58
|
+
}
|
|
56
59
|
} else {
|
|
57
60
|
onClick == null ? void 0 : onClick();
|
|
58
61
|
}
|
|
@@ -72,7 +72,8 @@ var CustomSelect = (props, ref) => {
|
|
|
72
72
|
loadMore,
|
|
73
73
|
modalOpen,
|
|
74
74
|
closeCallback,
|
|
75
|
-
autoFocus
|
|
75
|
+
autoFocus,
|
|
76
|
+
showDropDown = true
|
|
76
77
|
} = props;
|
|
77
78
|
const searchRef = (0, import_react.useRef)();
|
|
78
79
|
const [_value, set_value] = (0, import_react.useState)([]);
|
|
@@ -206,7 +207,7 @@ var CustomSelect = (props, ref) => {
|
|
|
206
207
|
key: d[rowKey]
|
|
207
208
|
},
|
|
208
209
|
previewItemRender == null ? void 0 : previewItemRender(d),
|
|
209
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
210
|
+
showDropDown && /* @__PURE__ */ import_react.default.createElement(
|
|
210
211
|
"div",
|
|
211
212
|
{
|
|
212
213
|
onClick: (e) => {
|
|
@@ -35,27 +35,7 @@ module.exports = __toCommonJS(FooterMenus_exports);
|
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_menuButton = __toESM(require("../../../components/menuButton"));
|
|
37
37
|
var import_index = require("./index.less");
|
|
38
|
-
var
|
|
39
|
-
var FooterMenus = ({ state, source }) => {
|
|
40
|
-
const items = (0, import_react.useMemo)(() => {
|
|
41
|
-
let list = [];
|
|
42
|
-
if (source === "info" && state.bookingId && state.renderType !== "eventBooking") {
|
|
43
|
-
list.push({
|
|
44
|
-
label: import_utils.locales.getText("pisell2.text.rebook"),
|
|
45
|
-
key: "rebook"
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
return list;
|
|
49
|
-
}, [state, source]);
|
|
50
|
-
const handleRebook = () => {
|
|
51
|
-
var _a;
|
|
52
|
-
(_a = state.onRebook) == null ? void 0 : _a.call(state);
|
|
53
|
-
};
|
|
54
|
-
const menuChange = (e) => {
|
|
55
|
-
if (e.key === "rebook") {
|
|
56
|
-
handleRebook();
|
|
57
|
-
}
|
|
58
|
-
};
|
|
38
|
+
var FooterMenus = ({ state, menuChange, items }) => {
|
|
59
39
|
return items.length ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-footer-buttons-item-rebook" }, /* @__PURE__ */ import_react.default.createElement(
|
|
60
40
|
import_menuButton.default,
|
|
61
41
|
{
|
|
@@ -63,6 +43,9 @@ var FooterMenus = ({ state, source }) => {
|
|
|
63
43
|
dropdownProps: {
|
|
64
44
|
placement: "bottomLeft",
|
|
65
45
|
menu: {
|
|
46
|
+
style: {
|
|
47
|
+
minWidth: 200
|
|
48
|
+
},
|
|
66
49
|
items,
|
|
67
50
|
onClick: menuChange
|
|
68
51
|
}
|