@pisell/private-materials 3.0.160 → 3.0.162-gray
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/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +10 -10
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +11 -11
- package/es/components/booking/addons/model.d.ts +2 -1
- package/es/components/booking/components/footer/index.js +34 -5
- package/es/components/booking/components/footer/utils.js +4 -1
- package/es/components/booking/dashboard/index.d.ts +20 -0
- package/es/components/booking/dashboard/index.js +298 -0
- package/es/components/booking/dashboard/serve.d.ts +1 -0
- package/es/components/booking/dashboard/serve.js +27 -0
- package/es/components/booking/forms/forms.d.ts +1 -0
- package/es/components/booking/forms/forms.js +4 -2
- package/es/components/booking/forms/model.d.ts +2 -1
- package/es/components/booking/forms/single/index.d.ts +1 -1
- package/es/components/booking/forms/single/index.js +4 -3
- package/es/components/booking/hooks/useClearCart.d.ts +3 -0
- package/es/components/booking/hooks/useClearCart.js +27 -0
- package/es/components/booking/hooks/useCreateBookingPageHeader.d.ts +6 -0
- package/es/components/booking/hooks/useCreateBookingPageHeader.js +21 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +7 -0
- package/es/components/booking/info/addServiceVariant/index.js +42 -0
- package/es/components/booking/info/client/index.js +1 -1
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +1 -0
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +4 -2
- package/es/components/booking/info/clientVariant/vertical/index.js +6 -5
- package/es/components/booking/info/clientVariant/vertical/index.less +8 -0
- package/es/components/booking/info/index.less +19 -0
- package/es/components/booking/info/main.js +11 -5
- package/es/components/booking/info/pet/index.js +1 -1
- package/es/components/booking/info/service/addService/index.d.ts +9 -3
- package/es/components/booking/info/service/addService/index.js +82 -36
- package/es/components/booking/info/service/addService/index.less +27 -1
- package/es/components/booking/info/service/editService/index.js +25 -41
- package/es/components/booking/info/service/index.js +5 -2
- package/es/components/booking/info/service/index.less +18 -0
- package/es/components/booking/info/service/serviceItem/index.d.ts +3 -3
- package/es/components/booking/info/service/serviceItem/index.js +22 -8
- package/es/components/booking/info/service/serviceItem/index.less +8 -0
- package/es/components/booking/info/service/serviceList/index.js +20 -1
- package/es/components/booking/info2/index.js +9 -3
- package/es/components/booking/info2/service/addService/index.d.ts +8 -2
- package/es/components/booking/info2/service/addService/index.js +82 -36
- package/es/components/booking/info2/service/addTimeModal/index.js +1 -0
- package/es/components/booking/info2/service/editService/index.js +11 -4
- package/es/components/booking/info2/service/index.js +5 -2
- package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -1
- package/es/components/booking/info2/service/serviceItem/index.js +16 -3
- package/es/components/booking/info2/service/serviceList/index.js +20 -1
- package/es/components/booking/info2/utilsByBooking.js +6 -2
- package/es/components/booking/locales.d.ts +63 -0
- package/es/components/booking/locales.js +72 -3
- package/es/components/booking/model.d.ts +2 -0
- package/es/components/booking/notes/index.d.ts +1 -1
- package/es/components/booking/notes/model.d.ts +2 -1
- package/es/components/booking/payments/model.d.ts +2 -1
- package/es/components/booking/utils.d.ts +1 -1
- package/es/components/booking/utils.js +54 -51
- package/es/components/schedules/index.d.ts +1 -1
- package/es/components/schedules/model.d.ts +2 -1
- package/es/index.d.ts +2 -0
- package/es/index.js +3 -1
- package/lib/components/booking/addons/model.d.ts +2 -1
- package/lib/components/booking/components/footer/index.js +30 -5
- package/lib/components/booking/components/footer/utils.js +2 -1
- package/lib/components/booking/dashboard/index.d.ts +20 -0
- package/lib/components/booking/dashboard/index.js +279 -0
- package/lib/components/booking/dashboard/serve.d.ts +1 -0
- package/lib/components/booking/dashboard/serve.js +33 -0
- package/lib/components/booking/forms/forms.d.ts +1 -0
- package/lib/components/booking/forms/forms.js +5 -2
- package/lib/components/booking/forms/model.d.ts +2 -1
- package/lib/components/booking/forms/single/index.d.ts +1 -1
- package/lib/components/booking/forms/single/index.js +4 -2
- package/lib/components/booking/hooks/useClearCart.d.ts +3 -0
- package/lib/components/booking/hooks/useClearCart.js +62 -0
- package/lib/components/booking/hooks/useCreateBookingPageHeader.d.ts +6 -0
- package/lib/components/booking/hooks/useCreateBookingPageHeader.js +53 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +7 -0
- package/lib/components/booking/info/addServiceVariant/index.js +70 -0
- package/lib/components/booking/info/client/index.js +1 -1
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +4 -2
- package/lib/components/booking/info/clientVariant/vertical/index.js +88 -76
- package/lib/components/booking/info/clientVariant/vertical/index.less +8 -0
- package/lib/components/booking/info/index.less +19 -0
- package/lib/components/booking/info/main.js +9 -3
- package/lib/components/booking/info/pet/index.js +2 -1
- package/lib/components/booking/info/service/addService/index.d.ts +9 -3
- package/lib/components/booking/info/service/addService/index.js +66 -29
- package/lib/components/booking/info/service/addService/index.less +27 -1
- package/lib/components/booking/info/service/editService/index.js +30 -38
- package/lib/components/booking/info/service/index.js +4 -2
- package/lib/components/booking/info/service/index.less +18 -0
- package/lib/components/booking/info/service/serviceItem/index.d.ts +3 -3
- package/lib/components/booking/info/service/serviceItem/index.js +15 -1
- package/lib/components/booking/info/service/serviceItem/index.less +8 -0
- package/lib/components/booking/info/service/serviceList/index.js +18 -1
- package/lib/components/booking/info2/index.js +8 -2
- package/lib/components/booking/info2/service/addService/index.d.ts +8 -2
- package/lib/components/booking/info2/service/addService/index.js +66 -29
- package/lib/components/booking/info2/service/addTimeModal/index.js +1 -0
- package/lib/components/booking/info2/service/editService/index.js +7 -1
- package/lib/components/booking/info2/service/index.js +4 -2
- package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -1
- package/lib/components/booking/info2/service/serviceItem/index.js +14 -1
- package/lib/components/booking/info2/service/serviceList/index.js +18 -1
- package/lib/components/booking/info2/utilsByBooking.js +5 -1
- package/lib/components/booking/locales.d.ts +63 -0
- package/lib/components/booking/locales.js +66 -3
- package/lib/components/booking/model.d.ts +2 -0
- package/lib/components/booking/notes/index.d.ts +1 -1
- package/lib/components/booking/notes/model.d.ts +2 -1
- package/lib/components/booking/payments/model.d.ts +2 -1
- package/lib/components/booking/utils.d.ts +1 -1
- package/lib/components/booking/utils.js +57 -22
- package/lib/components/schedules/index.d.ts +1 -1
- package/lib/components/schedules/model.d.ts +2 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +6 -0
- package/lowcode/booking-dashboard/meta.ts +137 -0
- package/lowcode/booking-vertical-add-service/meta.ts +124 -0
- package/lowcode/vertical-add-service/meta.ts +71 -0
- package/package.json +3 -3
|
@@ -574,6 +574,7 @@ var AddTimeModal = function AddTimeModal() {
|
|
|
574
574
|
return "".concat(locales.getText('page.booking.text.update-time'), ": ").concat(startTime, " ~ ").concat(endTime, " (").concat(hours, ")");
|
|
575
575
|
}, [newService, state.locale]);
|
|
576
576
|
return /*#__PURE__*/React.createElement(Drawer, {
|
|
577
|
+
titleNoWrap: true,
|
|
577
578
|
open: state.service.addTimeModal,
|
|
578
579
|
title: locales.getText('page.booking.text.add-time'),
|
|
579
580
|
rootClassName: "booking-server-wrap",
|
|
@@ -336,6 +336,12 @@ var Info = function Info(_, ref) {
|
|
|
336
336
|
getResources();
|
|
337
337
|
}
|
|
338
338
|
}, [useStartTime, useDuration, state.renderType, state.service.resourcesOrigin]);
|
|
339
|
+
useEffect(function () {
|
|
340
|
+
// 预约创建页面并且打开了编辑弹窗
|
|
341
|
+
if (state.isBookingCreatePage && state.service.editModal) {
|
|
342
|
+
setEditData(null);
|
|
343
|
+
}
|
|
344
|
+
}, [state.service.editModal, state.isBookingCreatePage]);
|
|
339
345
|
|
|
340
346
|
/**
|
|
341
347
|
* @title: 价格发生变化,重新计算折扣
|
|
@@ -458,9 +464,10 @@ var Info = function Info(_, ref) {
|
|
|
458
464
|
});
|
|
459
465
|
console.log('state.service.value', state.service.value);
|
|
460
466
|
var SelectTime = (_window$BaseMaterials = window.BaseMaterials) === null || _window$BaseMaterials === void 0 ? void 0 : _window$BaseMaterials.SelectTime;
|
|
461
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Drawer
|
|
462
|
-
|
|
463
|
-
|
|
467
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Drawer, {
|
|
468
|
+
titleNoWrap: true
|
|
469
|
+
//通过zIndex的方式控制 添加商品 和 编辑服务弹窗的上下层级
|
|
470
|
+
,
|
|
464
471
|
zIndex: state.service.changeService ? 999 : 1000,
|
|
465
472
|
forceRender: true,
|
|
466
473
|
open: state.service.editModal && !((_state$service$cacheI9 = state.service.cacheItem) !== null && _state$service$cacheI9 !== void 0 && _state$service$cacheI9.autoClose),
|
|
@@ -498,7 +505,7 @@ var Info = function Info(_, ref) {
|
|
|
498
505
|
className: "current-service-info-name"
|
|
499
506
|
}, ((_state$service8 = state.service) === null || _state$service8 === void 0 ? void 0 : (_state$service8$cache = _state$service8.cacheItem) === null || _state$service8$cache === void 0 ? void 0 : (_state$service8$cache2 = _state$service8$cache._extend) === null || _state$service8$cache2 === void 0 ? void 0 : _state$service8$cache2.product_name) || '-'), /*#__PURE__*/React.createElement(Button, {
|
|
500
507
|
onClick: handleEdit
|
|
501
|
-
}, locales.getText('pisell2.text.edit')), /*#__PURE__*/React.createElement(Button, {
|
|
508
|
+
}, locales.getText('pisell2.text.edit')), !state.isBookingCreatePage && /*#__PURE__*/React.createElement(Button, {
|
|
502
509
|
onClick: handleChange
|
|
503
510
|
}, locales.getText('pisell2.text.change'))), /*#__PURE__*/React.createElement(CollapsibleList, {
|
|
504
511
|
style: {
|
|
@@ -5,10 +5,12 @@ import EditService from "./editService";
|
|
|
5
5
|
import "../../info/service/index.less";
|
|
6
6
|
import ServiceList from "./serviceList";
|
|
7
7
|
import AddTimeModal from "./addTimeModal";
|
|
8
|
+
import useClearCart from "../../hooks/useClearCart";
|
|
8
9
|
var Service = function Service() {
|
|
9
10
|
var _state$bookingConfig2, _state$bookingConfig3;
|
|
10
11
|
var _useContext = useContext(Context),
|
|
11
|
-
state = _useContext.state
|
|
12
|
+
state = _useContext.state,
|
|
13
|
+
dispatch = _useContext.dispatch;
|
|
12
14
|
var detailRef = useRef();
|
|
13
15
|
useEffect(function () {
|
|
14
16
|
document.body.id = 'body';
|
|
@@ -42,9 +44,10 @@ var Service = function Service() {
|
|
|
42
44
|
(_detailRef$current = detailRef.current) === null || _detailRef$current === void 0 ? void 0 : (_detailRef$current$in = _detailRef$current.init) === null || _detailRef$current$in === void 0 ? void 0 : _detailRef$current$in.call(_detailRef$current, cacheItem);
|
|
43
45
|
}, 100);
|
|
44
46
|
};
|
|
47
|
+
var clearCart = useClearCart(state, dispatch);
|
|
45
48
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
46
49
|
className: "pisell-lowcode__booking-service-wrap"
|
|
47
|
-
}, /*#__PURE__*/React.createElement(ServiceList, {
|
|
50
|
+
}, clearCart, /*#__PURE__*/React.createElement(ServiceList, {
|
|
48
51
|
onEdit: handleEdit
|
|
49
52
|
}), /*#__PURE__*/React.createElement(AddService, {
|
|
50
53
|
onEdit: handleEdit
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './index.less';
|
|
3
|
-
declare const ServiceItem: ({ d, handleEditService, state, handleLike, errorMessage, }: any) => React.JSX.Element;
|
|
3
|
+
declare const ServiceItem: ({ d, handleEditService, state, handleLike, errorMessage, handleDeleteService, }: any) => React.JSX.Element;
|
|
4
4
|
export default ServiceItem;
|
|
@@ -4,9 +4,10 @@ import { getServiceTime } from "../../../utils";
|
|
|
4
4
|
import { formatAmount, locales } from '@pisell/utils';
|
|
5
5
|
import CollapsibleList from "../../../components/collapsibleList";
|
|
6
6
|
import { renderBundles } from "../../../components/collapsibleList/utils";
|
|
7
|
-
import { Alert } from 'antd';
|
|
7
|
+
import { Alert, Button } from 'antd';
|
|
8
8
|
import Actions from "../actions";
|
|
9
9
|
import "./index.less";
|
|
10
|
+
import { Iconfont } from "@pisell/materials";
|
|
10
11
|
var getName = function getName(name, locale) {
|
|
11
12
|
return name[locale] || name['original'] || name['en'] || '';
|
|
12
13
|
};
|
|
@@ -42,7 +43,8 @@ var ServiceItem = function ServiceItem(_ref) {
|
|
|
42
43
|
handleEditService = _ref.handleEditService,
|
|
43
44
|
state = _ref.state,
|
|
44
45
|
handleLike = _ref.handleLike,
|
|
45
|
-
errorMessage = _ref.errorMessage
|
|
46
|
+
errorMessage = _ref.errorMessage,
|
|
47
|
+
handleDeleteService = _ref.handleDeleteService;
|
|
46
48
|
var isDiscount = useMemo(function () {
|
|
47
49
|
var _d$_extend, _d$_extend2;
|
|
48
50
|
return Number((_d$_extend = d._extend) === null || _d$_extend === void 0 ? void 0 : _d$_extend.total) != Number((_d$_extend2 = d._extend) === null || _d$_extend2 === void 0 ? void 0 : _d$_extend2.origin_total);
|
|
@@ -127,7 +129,18 @@ var ServiceItem = function ServiceItem(_ref) {
|
|
|
127
129
|
onClick: function onClick() {
|
|
128
130
|
handleEditService(d);
|
|
129
131
|
}
|
|
130
|
-
},
|
|
132
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
133
|
+
className: "pisell-lowcode__booking-service-item-delete",
|
|
134
|
+
onClick: function onClick(e) {
|
|
135
|
+
e.stopPropagation();
|
|
136
|
+
handleDeleteService(d);
|
|
137
|
+
}
|
|
138
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
139
|
+
type: "text",
|
|
140
|
+
icon: /*#__PURE__*/React.createElement(Iconfont, {
|
|
141
|
+
type: "pisell2-trash-01"
|
|
142
|
+
})
|
|
143
|
+
})), d.id ? /*#__PURE__*/React.createElement("div", {
|
|
131
144
|
className: "pisell-lowcode__booking-service-item-title"
|
|
132
145
|
}, d.title) : null, d._extend && state.renderType !== 'eventBooking' ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
133
146
|
className: "pisell-lowcode__booking-service-item-date"
|
|
@@ -45,6 +45,24 @@ var ServiceList = function ServiceList(_ref) {
|
|
|
45
45
|
});
|
|
46
46
|
onEdit === null || onEdit === void 0 ? void 0 : onEdit(cacheItem);
|
|
47
47
|
};
|
|
48
|
+
var handleDeleteService = function handleDeleteService(item) {
|
|
49
|
+
if (state.disabledEdit || state.disableEventBookingEdit || state.channelDisabledEdit) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
var _list = _toConsumableArray(state.service.value);
|
|
53
|
+
_list = _list.filter(function (d) {
|
|
54
|
+
return d._id !== item._id;
|
|
55
|
+
});
|
|
56
|
+
dispatch({
|
|
57
|
+
type: 'setService',
|
|
58
|
+
payload: {
|
|
59
|
+
editModal: false,
|
|
60
|
+
value: _list,
|
|
61
|
+
edit: true,
|
|
62
|
+
cacheItem: null
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
};
|
|
48
66
|
var getErrorMessage = useCallback(function (service) {
|
|
49
67
|
var _errorList;
|
|
50
68
|
var errorList = [];
|
|
@@ -99,7 +117,8 @@ var ServiceList = function ServiceList(_ref) {
|
|
|
99
117
|
d: d,
|
|
100
118
|
handleEditService: handleEditService,
|
|
101
119
|
state: state,
|
|
102
|
-
handleLike: handleLike
|
|
120
|
+
handleLike: handleLike,
|
|
121
|
+
handleDeleteService: handleDeleteService
|
|
103
122
|
});
|
|
104
123
|
}));
|
|
105
124
|
};
|
|
@@ -324,8 +324,12 @@ export var getServiceStartTimeAndEndTime = function getServiceStartTimeAndEndTim
|
|
|
324
324
|
if (findNextSliceProps.date && findNextSliceProps.date !== '00:00') {
|
|
325
325
|
_extend.start_time = findNextSliceProps.date;
|
|
326
326
|
} else {
|
|
327
|
-
|
|
328
|
-
|
|
327
|
+
if (cacheItem.currentDefaultTime) {
|
|
328
|
+
_extend.start_time = cacheItem.currentDefaultTime;
|
|
329
|
+
} else {
|
|
330
|
+
// 没有预设日期, 则使用当前 https://www.yuque.com/feg4xm/manual/tzvrnt05ifihkndg
|
|
331
|
+
_extend.start_time = dayjs().format('HH:mm');
|
|
332
|
+
}
|
|
329
333
|
}
|
|
330
334
|
}
|
|
331
335
|
_extend = _objectSpread(_objectSpread({}, _extend), cacheItem._extend);
|
|
@@ -195,6 +195,27 @@ declare const _default: {
|
|
|
195
195
|
'page.booking.text.please-choose-an-option-1': string;
|
|
196
196
|
'page.booking.text.please-choose-an-option-2': string;
|
|
197
197
|
'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
|
|
198
|
+
'page.booking.text.price-extra': (origin: string, current: string) => string;
|
|
199
|
+
'pisell2.booking.dashboard.groups-on-site-now': string;
|
|
200
|
+
'pisell2.booking.dashboard.groups-on-site-now-tip': string;
|
|
201
|
+
'pisell2.booking.dashboard.people-on-site-now': string;
|
|
202
|
+
'pisell2.booking.dashboard.people-on-site-now-tip': string;
|
|
203
|
+
'pisell2.booking.dashboard.total-visitors-today': string;
|
|
204
|
+
'pisell2.booking.dashboard.total-visitors-today-tip': string;
|
|
205
|
+
'pisell2.booking.dashboard.ongoing-visitors': string;
|
|
206
|
+
'pisell2.booking.dashboard.ongoing-visitors-tip': string;
|
|
207
|
+
'pisell2.booking.dashboard.upcoming-visitors': string;
|
|
208
|
+
'pisell2.booking.dashboard.upcoming-visitors-tip': string;
|
|
209
|
+
'pisell2.booking.dashboard.overdue-visitors': string;
|
|
210
|
+
'pisell2.booking.dashboard.overdue-visitors-tip': string;
|
|
211
|
+
'pisell2.booking.dashboard.completed-visitors': string;
|
|
212
|
+
'pisell2.booking.dashboard.completed-visitors-tip': string;
|
|
213
|
+
'pisell2.booking.dashboard.departed-visitors': string;
|
|
214
|
+
'pisell2.booking.dashboard.departed-visitors-tip': string;
|
|
215
|
+
'pisell2.booking.dashboard.default': string;
|
|
216
|
+
'pisell2.booking.info.text.clear-cart': string;
|
|
217
|
+
'pisell2.booking.info.text.clear-all': string;
|
|
218
|
+
'pisell2.booking.info.text.create-new': string;
|
|
198
219
|
};
|
|
199
220
|
'zh-CN': {
|
|
200
221
|
'pisell2.text.refunded-amount': string;
|
|
@@ -392,6 +413,27 @@ declare const _default: {
|
|
|
392
413
|
'page.booking.text.please-choose-an-option-1': string;
|
|
393
414
|
'page.booking.text.please-choose-an-option-2': string;
|
|
394
415
|
'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
|
|
416
|
+
'page.booking.text.price-extra': (origin: string, current: string) => string;
|
|
417
|
+
'pisell2.booking.dashboard.groups-on-site-now': string;
|
|
418
|
+
'pisell2.booking.dashboard.groups-on-site-now-tip': string;
|
|
419
|
+
'pisell2.booking.dashboard.people-on-site-now': string;
|
|
420
|
+
'pisell2.booking.dashboard.people-on-site-now-tip': string;
|
|
421
|
+
'pisell2.booking.dashboard.total-visitors-today': string;
|
|
422
|
+
'pisell2.booking.dashboard.total-visitors-today-tip': string;
|
|
423
|
+
'pisell2.booking.dashboard.ongoing-visitors': string;
|
|
424
|
+
'pisell2.booking.dashboard.ongoing-visitors-tip': string;
|
|
425
|
+
'pisell2.booking.dashboard.upcoming-visitors': string;
|
|
426
|
+
'pisell2.booking.dashboard.upcoming-visitors-tip': string;
|
|
427
|
+
'pisell2.booking.dashboard.overdue-visitors': string;
|
|
428
|
+
'pisell2.booking.dashboard.overdue-visitors-tip': string;
|
|
429
|
+
'pisell2.booking.dashboard.completed-visitors': string;
|
|
430
|
+
'pisell2.booking.dashboard.completed-visitors-tip': string;
|
|
431
|
+
'pisell2.booking.dashboard.departed-visitors': string;
|
|
432
|
+
'pisell2.booking.dashboard.departed-visitors-tip': string;
|
|
433
|
+
'pisell2.booking.dashboard.default': string;
|
|
434
|
+
'pisell2.booking.info.text.clear-cart': string;
|
|
435
|
+
'pisell2.booking.info.text.clear-all': string;
|
|
436
|
+
'pisell2.booking.info.text.create-new': string;
|
|
395
437
|
};
|
|
396
438
|
'zh-HK': {
|
|
397
439
|
'pisell2.text.refunded-amount': string;
|
|
@@ -589,6 +631,27 @@ declare const _default: {
|
|
|
589
631
|
'page.booking.text.please-choose-an-option-1': string;
|
|
590
632
|
'page.booking.text.please-choose-an-option-2': string;
|
|
591
633
|
'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
|
|
634
|
+
'page.booking.text.price-extra': (origin: string, current: string) => string;
|
|
635
|
+
'pisell2.booking.dashboard.groups-on-site-now': string;
|
|
636
|
+
'pisell2.booking.dashboard.groups-on-site-now-tip': string;
|
|
637
|
+
'pisell2.booking.dashboard.people-on-site-now': string;
|
|
638
|
+
'pisell2.booking.dashboard.people-on-site-now-tip': string;
|
|
639
|
+
'pisell2.booking.dashboard.total-visitors-today': string;
|
|
640
|
+
'pisell2.booking.dashboard.total-visitors-today-tip': string;
|
|
641
|
+
'pisell2.booking.dashboard.ongoing-visitors': string;
|
|
642
|
+
'pisell2.booking.dashboard.ongoing-visitors-tip': string;
|
|
643
|
+
'pisell2.booking.dashboard.upcoming-visitors': string;
|
|
644
|
+
'pisell2.booking.dashboard.upcoming-visitors-tip': string;
|
|
645
|
+
'pisell2.booking.dashboard.overdue-visitors': string;
|
|
646
|
+
'pisell2.booking.dashboard.overdue-visitors-tip': string;
|
|
647
|
+
'pisell2.booking.dashboard.completed-visitors': string;
|
|
648
|
+
'pisell2.booking.dashboard.completed-visitors-tip': string;
|
|
649
|
+
'pisell2.booking.dashboard.departed-visitors': string;
|
|
650
|
+
'pisell2.booking.dashboard.departed-visitors-tip': string;
|
|
651
|
+
'pisell2.booking.dashboard.default': string;
|
|
652
|
+
'pisell2.booking.info.text.clear-cart': string;
|
|
653
|
+
'pisell2.booking.info.text.clear-all': string;
|
|
654
|
+
'pisell2.booking.info.text.create-new': string;
|
|
592
655
|
};
|
|
593
656
|
};
|
|
594
657
|
export default _default;
|
|
@@ -225,7 +225,30 @@ export default {
|
|
|
225
225
|
'page.booking.text.please-choose-an-option-2': "Cancel only: Cancel the appointment without processing a refund. (You can still process a refund after cancellation if needed)",
|
|
226
226
|
'page.booking.text.resource.min-length-error': function pageBookingTextResourceMinLengthError(x, y) {
|
|
227
227
|
return "Select at least ".concat(x, " ").concat(y);
|
|
228
|
-
}
|
|
228
|
+
},
|
|
229
|
+
'page.booking.text.price-extra': function pageBookingTextPriceExtra(origin, current) {
|
|
230
|
+
return "Original price of the item:".concat(origin, ",Current price of the item:").concat(current);
|
|
231
|
+
},
|
|
232
|
+
'pisell2.booking.dashboard.groups-on-site-now': "Groups on-site now",
|
|
233
|
+
'pisell2.booking.dashboard.groups-on-site-now-tip': "Tip: Total number of groups who have checked in and are currently on-site",
|
|
234
|
+
'pisell2.booking.dashboard.people-on-site-now': "People on-site now",
|
|
235
|
+
'pisell2.booking.dashboard.people-on-site-now-tip': "Tip: Total number of people who have checked in and are currently on-site",
|
|
236
|
+
'pisell2.booking.dashboard.total-visitors-today': "Total visitors today",
|
|
237
|
+
'pisell2.booking.dashboard.total-visitors-today-tip': "Tip: Total number of visitors today, regardless of check-in status",
|
|
238
|
+
'pisell2.booking.dashboard.ongoing-visitors': "Ongoing visitors",
|
|
239
|
+
'pisell2.booking.dashboard.ongoing-visitors-tip': "Tip: Total number of visitors who have passed the start time, regardless of check-in status",
|
|
240
|
+
'pisell2.booking.dashboard.upcoming-visitors': "Upcoming visitors",
|
|
241
|
+
'pisell2.booking.dashboard.upcoming-visitors-tip': "Tip: Total number of visitors expected to arrive in the near future",
|
|
242
|
+
'pisell2.booking.dashboard.overdue-visitors': "Overdue visitors",
|
|
243
|
+
'pisell2.booking.dashboard.overdue-visitors-tip': "Tip: Total number of visitors whose playtime has expired but have not yet left the venue",
|
|
244
|
+
'pisell2.booking.dashboard.completed-visitors': "Completed visitors",
|
|
245
|
+
'pisell2.booking.dashboard.completed-visitors-tip': "Tip: Total number of visitors whose playtime has ended, regardless of whether they have left the venue",
|
|
246
|
+
'pisell2.booking.dashboard.departed-visitors': "Departed visitors",
|
|
247
|
+
'pisell2.booking.dashboard.departed-visitors-tip': "Tip: Total number of visitors who checked in and have left the venue today",
|
|
248
|
+
'pisell2.booking.dashboard.default': "Default",
|
|
249
|
+
'pisell2.booking.info.text.clear-cart': "Clear cart",
|
|
250
|
+
'pisell2.booking.info.text.clear-all': "Clear all",
|
|
251
|
+
'pisell2.booking.info.text.create-new': "Create new"
|
|
229
252
|
},
|
|
230
253
|
'zh-CN': {
|
|
231
254
|
'pisell2.text.refunded-amount': '已退金额',
|
|
@@ -457,7 +480,30 @@ export default {
|
|
|
457
480
|
'page.booking.text.please-choose-an-option-2': "仅取消:仅取消预约,但不进行退款处理。(您仍然可以在取消后再进行退款操作)",
|
|
458
481
|
'page.booking.text.resource.min-length-error': function pageBookingTextResourceMinLengthError(x, y) {
|
|
459
482
|
return "\u81F3\u5C11\u9009\u62E9".concat(x, "\u9879").concat(y);
|
|
460
|
-
}
|
|
483
|
+
},
|
|
484
|
+
'page.booking.text.price-extra': function pageBookingTextPriceExtra(origin, current) {
|
|
485
|
+
return "\u5546\u54C1\u539F\u4EF7:".concat(origin, ",\u5546\u54C1\u73B0\u4EF7:").concat(current);
|
|
486
|
+
},
|
|
487
|
+
'pisell2.booking.dashboard.groups-on-site-now': "当前在场团体",
|
|
488
|
+
'pisell2.booking.dashboard.groups-on-site-now-tip': "提示:已检票并在场内的团体总数",
|
|
489
|
+
'pisell2.booking.dashboard.people-on-site-now': "当前在场人数",
|
|
490
|
+
'pisell2.booking.dashboard.people-on-site-now-tip': "提示:已检票并在场内的总人数",
|
|
491
|
+
'pisell2.booking.dashboard.total-visitors-today': "今日游客总数",
|
|
492
|
+
'pisell2.booking.dashboard.total-visitors-today-tip': "提示:今日的游客总人数,无论是否检票入场",
|
|
493
|
+
'pisell2.booking.dashboard.ongoing-visitors': "进行中的游客",
|
|
494
|
+
'pisell2.booking.dashboard.ongoing-visitors-tip': "提示:已过开始时间的游客总数,无论是否检票",
|
|
495
|
+
'pisell2.booking.dashboard.upcoming-visitors': "即将到达的游客",
|
|
496
|
+
'pisell2.booking.dashboard.upcoming-visitors-tip': "提示:预计将在未来到场的游客总人数",
|
|
497
|
+
'pisell2.booking.dashboard.overdue-visitors': "超时的游客",
|
|
498
|
+
'pisell2.booking.dashboard.overdue-visitors-tip': "提示:游玩时间已过,但尚未离场的游客总人数",
|
|
499
|
+
'pisell2.booking.dashboard.completed-visitors': "已完成的游客",
|
|
500
|
+
'pisell2.booking.dashboard.completed-visitors-tip': "提示:游玩时长已结束的游客总人数,无论是否离场",
|
|
501
|
+
'pisell2.booking.dashboard.departed-visitors': "已离场的游客",
|
|
502
|
+
'pisell2.booking.dashboard.departed-visitors-tip': "提示:今日已检票并离场的游客总人数",
|
|
503
|
+
'pisell2.booking.dashboard.default': "默认",
|
|
504
|
+
'pisell2.booking.info.text.clear-cart': "清空购物车",
|
|
505
|
+
'pisell2.booking.info.text.clear-all': "清空",
|
|
506
|
+
'pisell2.booking.info.text.create-new': "新建"
|
|
461
507
|
},
|
|
462
508
|
'zh-HK': {
|
|
463
509
|
'pisell2.text.refunded-amount': '已退金額',
|
|
@@ -689,6 +735,29 @@ export default {
|
|
|
689
735
|
'page.booking.text.please-choose-an-option-2': '僅取消:僅取消預約,但不進行退款處理。(您仍然可以在取消後再進行退款操作)',
|
|
690
736
|
'page.booking.text.resource.min-length-error': function pageBookingTextResourceMinLengthError(x, y) {
|
|
691
737
|
return "\u81F3\u5C11\u9078\u64C7".concat(x, "\u9805").concat(y);
|
|
692
|
-
}
|
|
738
|
+
},
|
|
739
|
+
'page.booking.text.price-extra': function pageBookingTextPriceExtra(origin, current) {
|
|
740
|
+
return "\u5546\u54C1\u539F\u50F9:".concat(origin, ",\u5546\u54C1\u73FE\u50F9:").concat(current);
|
|
741
|
+
},
|
|
742
|
+
'pisell2.booking.dashboard.groups-on-site-now': "當前在場團體",
|
|
743
|
+
'pisell2.booking.dashboard.groups-on-site-now-tip': "提示:已檢票並在場內的團體總數",
|
|
744
|
+
'pisell2.booking.dashboard.people-on-site-now': "當前在場人數",
|
|
745
|
+
'pisell2.booking.dashboard.people-on-site-now-tip': "提示:已檢票並在場內的總人數",
|
|
746
|
+
'pisell2.booking.dashboard.total-visitors-today': "今日遊客總數",
|
|
747
|
+
'pisell2.booking.dashboard.total-visitors-today-tip': "提示:今日的遊客總人數,無論是否檢票入場",
|
|
748
|
+
'pisell2.booking.dashboard.ongoing-visitors': "進行中的遊客",
|
|
749
|
+
'pisell2.booking.dashboard.ongoing-visitors-tip': "提示:已過開始時間的遊客總數,無論是否檢票",
|
|
750
|
+
'pisell2.booking.dashboard.upcoming-visitors': "即將到達的遊客",
|
|
751
|
+
'pisell2.booking.dashboard.upcoming-visitors-tip': "提示:預計將在未來到場的遊客總人數",
|
|
752
|
+
'pisell2.booking.dashboard.overdue-visitors': "超時的遊客",
|
|
753
|
+
'pisell2.booking.dashboard.overdue-visitors-tip': "提示:遊玩時間已過,但尚未離場的遊客總人數",
|
|
754
|
+
'pisell2.booking.dashboard.completed-visitors': "已完成的遊客",
|
|
755
|
+
'pisell2.booking.dashboard.completed-visitors-tip': "提示:遊玩時長已結束的遊客總人數,無論是否離場",
|
|
756
|
+
'pisell2.booking.dashboard.departed-visitors': "已離場的遊客",
|
|
757
|
+
'pisell2.booking.dashboard.departed-visitors-tip': "提示:今日已檢票並離場的遊客總人數",
|
|
758
|
+
'pisell2.booking.dashboard.default': "默认",
|
|
759
|
+
'pisell2.booking.info.text.clear-cart': "清空購物車",
|
|
760
|
+
'pisell2.booking.info.text.clear-all': "清空",
|
|
761
|
+
'pisell2.booking.info.text.create-new': "新建"
|
|
693
762
|
}
|
|
694
763
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { FormState } from "../model";
|
|
2
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
|
|
3
4
|
state: FormState;
|
|
4
5
|
} & {
|
|
5
6
|
dispatch: (params: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { FormState } from "../model";
|
|
2
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
|
|
3
4
|
state: FormState;
|
|
4
5
|
} & {
|
|
5
6
|
dispatch: (params: {
|
|
@@ -62,7 +62,7 @@ export declare const getServeStartTime: (start_time: string) => string;
|
|
|
62
62
|
* @Date: 2024-04-26 14:04
|
|
63
63
|
*/
|
|
64
64
|
export declare const getServiceTime: (item: any, currentDate: any) => string;
|
|
65
|
-
export declare const findNextSlice: ({ timeSlices, index, date }: {
|
|
65
|
+
export declare const findNextSlice: ({ timeSlices, index, date, }: {
|
|
66
66
|
timeSlices: any[];
|
|
67
67
|
index?: number | undefined;
|
|
68
68
|
date?: string | undefined;
|