@pisell/private-materials 3.0.157-gray → 3.0.158
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 +1 -2
- package/es/components/booking/components/footer/index.js +3 -3
- package/es/components/booking/forms/forms.d.ts +0 -1
- package/es/components/booking/forms/forms.js +2 -4
- package/es/components/booking/forms/model.d.ts +1 -2
- package/es/components/booking/forms/single/index.d.ts +1 -1
- package/es/components/booking/forms/single/index.js +3 -4
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -1
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +2 -4
- package/es/components/booking/info/clientVariant/vertical/index.js +5 -6
- package/es/components/booking/info/clientVariant/vertical/index.less +0 -8
- package/es/components/booking/info/index.less +0 -9
- package/es/components/booking/info/pet/index.js +1 -1
- package/es/components/booking/info/service/addService/index.d.ts +2 -8
- package/es/components/booking/info/service/addService/index.js +36 -82
- package/es/components/booking/info/service/addService/index.less +1 -27
- package/es/components/booking/info/service/editService/index.js +13 -11
- package/es/components/booking/info2/utilsByBooking.js +4 -11
- package/es/components/booking/locales.d.ts +0 -48
- package/es/components/booking/locales.js +3 -51
- package/es/components/booking/model.d.ts +0 -2
- package/es/components/booking/notes/index.d.ts +1 -1
- package/es/components/booking/notes/model.d.ts +1 -2
- package/es/components/booking/payments/model.d.ts +1 -2
- package/es/components/booking/utils.d.ts +1 -1
- package/es/components/booking/utils.js +51 -54
- package/es/components/schedules/index.d.ts +1 -1
- package/es/components/schedules/model.d.ts +1 -2
- package/es/components/schedules/resources/add/index.js +9 -9
- package/es/components/schedules/resources/edit/index.d.ts +4 -0
- package/es/components/schedules/resources/edit/index.js +116 -0
- package/es/components/schedules/resources/edit/index.less +19 -0
- package/es/components/schedules/resources/index.d.ts +2 -2
- package/es/components/schedules/resources/index.js +24 -16
- package/es/index.d.ts +0 -2
- package/es/index.js +1 -3
- package/lib/components/booking/addons/model.d.ts +1 -2
- package/lib/components/booking/components/footer/index.js +3 -3
- package/lib/components/booking/forms/forms.d.ts +0 -1
- package/lib/components/booking/forms/forms.js +2 -5
- package/lib/components/booking/forms/model.d.ts +1 -2
- package/lib/components/booking/forms/single/index.d.ts +1 -1
- package/lib/components/booking/forms/single/index.js +2 -4
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +2 -4
- package/lib/components/booking/info/clientVariant/vertical/index.js +76 -88
- package/lib/components/booking/info/clientVariant/vertical/index.less +0 -8
- package/lib/components/booking/info/index.less +0 -9
- package/lib/components/booking/info/pet/index.js +1 -2
- package/lib/components/booking/info/service/addService/index.d.ts +2 -8
- package/lib/components/booking/info/service/addService/index.js +29 -66
- package/lib/components/booking/info/service/addService/index.less +1 -27
- package/lib/components/booking/info/service/editService/index.js +6 -9
- package/lib/components/booking/info2/utilsByBooking.js +4 -11
- package/lib/components/booking/locales.d.ts +0 -48
- package/lib/components/booking/locales.js +3 -51
- package/lib/components/booking/model.d.ts +0 -2
- package/lib/components/booking/notes/index.d.ts +1 -1
- package/lib/components/booking/notes/model.d.ts +1 -2
- package/lib/components/booking/payments/model.d.ts +1 -2
- package/lib/components/booking/utils.d.ts +1 -1
- package/lib/components/booking/utils.js +22 -57
- package/lib/components/schedules/index.d.ts +1 -1
- package/lib/components/schedules/model.d.ts +1 -2
- package/lib/components/schedules/resources/add/index.js +7 -7
- package/lib/components/schedules/resources/edit/index.d.ts +4 -0
- package/lib/components/schedules/resources/edit/index.js +132 -0
- package/lib/components/schedules/resources/edit/index.less +19 -0
- package/lib/components/schedules/resources/index.d.ts +2 -2
- package/lib/components/schedules/resources/index.js +7 -4
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -6
- package/package.json +3 -3
- package/es/components/booking/dashboard/index.d.ts +0 -20
- package/es/components/booking/dashboard/index.js +0 -253
- package/es/components/booking/dashboard/serve.d.ts +0 -1
- package/es/components/booking/dashboard/serve.js +0 -27
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -7
- package/es/components/booking/info/addServiceVariant/index.js +0 -33
- package/lib/components/booking/dashboard/index.d.ts +0 -20
- package/lib/components/booking/dashboard/index.js +0 -251
- package/lib/components/booking/dashboard/serve.d.ts +0 -1
- package/lib/components/booking/dashboard/serve.js +0 -33
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -7
- package/lib/components/booking/info/addServiceVariant/index.js +0 -58
- package/lowcode/booking-dashboard/meta.ts +0 -137
- package/lowcode/booking-vertical-add-service/meta.ts +0 -124
- package/lowcode/vertical-add-service/meta.ts +0 -71
|
@@ -15,13 +15,4 @@
|
|
|
15
15
|
// height: 42px;
|
|
16
16
|
// background: #069456;
|
|
17
17
|
// }
|
|
18
|
-
}
|
|
19
|
-
#create-booking-page-info-wrap {
|
|
20
|
-
.pisell-lowcode__booking-tab-pane-footer {
|
|
21
|
-
padding: 12px 16px !important;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
.create-booking-page-info-wrap {
|
|
25
|
-
position: initial !important;
|
|
26
|
-
padding: 0 16px !important;
|
|
27
18
|
}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { PisellDrawerProps } from '../../../components/drawer';
|
|
3
2
|
import './index.less';
|
|
4
|
-
|
|
3
|
+
declare const Info: ({ onEdit }: {
|
|
5
4
|
onEdit: any;
|
|
6
|
-
|
|
7
|
-
state?: any;
|
|
8
|
-
drawerProps?: PisellDrawerProps;
|
|
9
|
-
renderMode?: 'current' | 'drawer';
|
|
10
|
-
}
|
|
11
|
-
declare const Info: (props: AddServiceProps) => React.JSX.Element;
|
|
5
|
+
}) => React.JSX.Element;
|
|
12
6
|
export default Info;
|
|
@@ -63,16 +63,13 @@ var shopList = [
|
|
|
63
63
|
6848,
|
|
64
64
|
6305
|
|
65
65
|
];
|
|
66
|
-
var Info = (
|
|
66
|
+
var Info = ({ onEdit }) => {
|
|
67
67
|
var _a, _b, _c, _d;
|
|
68
|
-
const { onEdit, drawerProps, renderMode } = props;
|
|
69
68
|
const [search, setSearch] = (0, import_react.useState)("");
|
|
70
|
-
|
|
69
|
+
const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
|
|
71
70
|
const [loading, setLoading] = (0, import_react.useState)(false);
|
|
72
71
|
const searchRef = (0, import_react.useRef)();
|
|
73
72
|
const context = (0, import_useEngineContext.default)();
|
|
74
|
-
state = state || (props == null ? void 0 : props.state);
|
|
75
|
-
dispatch = dispatch || (props == null ? void 0 : props.dispatch);
|
|
76
73
|
import_utils3.request.setRequest(context.appHelper.utils.request);
|
|
77
74
|
const setDefaultService = async (list) => {
|
|
78
75
|
if (state.renderType !== "eventBooking") {
|
|
@@ -123,7 +120,7 @@ var Info = (props) => {
|
|
|
123
120
|
}
|
|
124
121
|
});
|
|
125
122
|
};
|
|
126
|
-
const getServices = async (
|
|
123
|
+
const getServices = async () => {
|
|
127
124
|
var _a2;
|
|
128
125
|
setLoading(true);
|
|
129
126
|
let data = await state.apis.getServices({
|
|
@@ -137,10 +134,8 @@ var Info = (props) => {
|
|
|
137
134
|
with_count: ["bundleGroup", "optionGroup"],
|
|
138
135
|
order_by_string: "sort:desc",
|
|
139
136
|
status: "published",
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
useCache: true
|
|
143
|
-
}
|
|
137
|
+
_config: {
|
|
138
|
+
useCache: true
|
|
144
139
|
}
|
|
145
140
|
});
|
|
146
141
|
setLoading(false);
|
|
@@ -216,9 +211,6 @@ var Info = (props) => {
|
|
|
216
211
|
cacheItem._id = (_a2 = state.service.cacheItem) == null ? void 0 : _a2._id;
|
|
217
212
|
cacheItem.new = 0;
|
|
218
213
|
}
|
|
219
|
-
if (renderMode === "current") {
|
|
220
|
-
cacheItem.currentDefaultTime = state.date.value.format("HH:mm");
|
|
221
|
-
}
|
|
222
214
|
cacheItem._extend = (0, import_utils2.getProductExtend)({ cacheItem, state });
|
|
223
215
|
if (state.renderType === "eventBooking") {
|
|
224
216
|
cacheItem.autoClose = false;
|
|
@@ -277,24 +269,12 @@ var Info = (props) => {
|
|
|
277
269
|
setSearch("");
|
|
278
270
|
}
|
|
279
271
|
}, [state.service.addModal]);
|
|
280
|
-
const currentDate = (0, import_react.useMemo)(() => {
|
|
281
|
-
return state.date.value.format("YYYY-MM-DD");
|
|
282
|
-
}, [state.date.value]);
|
|
283
|
-
console.log(currentDate, "currentDate");
|
|
284
|
-
(0, import_react.useEffect)(() => {
|
|
285
|
-
if (renderMode === "current") {
|
|
286
|
-
getServices({ schedule_date: currentDate });
|
|
287
|
-
}
|
|
288
|
-
}, [renderMode, currentDate]);
|
|
289
272
|
(0, import_react.useEffect)(() => {
|
|
290
273
|
if (state.renderType === "eventBooking" && state.modalOpen) {
|
|
291
274
|
getServices();
|
|
292
275
|
}
|
|
293
276
|
}, [state.renderType, state.modalOpen]);
|
|
294
277
|
const addButton = (0, import_react.useMemo)(() => {
|
|
295
|
-
if (state.isBookingCreatePage) {
|
|
296
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { style: { height: 20 } });
|
|
297
|
-
}
|
|
298
278
|
if (state.renderType === "eventBooking") {
|
|
299
279
|
return isService ? /* @__PURE__ */ import_react.default.createElement("div", { style: { height: 20 } }) : /* @__PURE__ */ import_react.default.createElement(
|
|
300
280
|
import_addButton.default,
|
|
@@ -323,50 +303,13 @@ var Info = (props) => {
|
|
|
323
303
|
state.service.value,
|
|
324
304
|
loading
|
|
325
305
|
]);
|
|
326
|
-
const isRenderCurrent = (0, import_react.useMemo)(() => {
|
|
327
|
-
return renderMode === "current";
|
|
328
|
-
}, [renderMode]);
|
|
329
306
|
return (0, import_react.useMemo)(() => {
|
|
330
307
|
var _a2, _b2;
|
|
331
|
-
const header = /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-header" }, /* @__PURE__ */ import_react.default.createElement(
|
|
332
|
-
import_antd.Input,
|
|
333
|
-
{
|
|
334
|
-
ref: searchRef,
|
|
335
|
-
prefix: /* @__PURE__ */ import_react.default.createElement(import_SearchLg.default, null),
|
|
336
|
-
style: { marginTop: 16, height: 44 },
|
|
337
|
-
placeholder: import_utils4.locales.getText("pisell2.text.search"),
|
|
338
|
-
allowClear: true,
|
|
339
|
-
value: search,
|
|
340
|
-
onChange: (e) => {
|
|
341
|
-
setSearch(e.target.value);
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
));
|
|
345
|
-
const content = /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body" }, /* @__PURE__ */ import_react.default.createElement(
|
|
346
|
-
import_TabProduct.default,
|
|
347
|
-
{
|
|
348
|
-
list: renderList,
|
|
349
|
-
amountSymbol: state.amountSymbol,
|
|
350
|
-
onChange: handleSelectProduct,
|
|
351
|
-
scrollDom: isRenderCurrent ? ".pisell-lowcode__booking-vertical-add-service-wrap" : ".booking-server-wrap .pisell-lowcode-drawer-body "
|
|
352
|
-
}
|
|
353
|
-
));
|
|
354
|
-
if (renderMode === "current") {
|
|
355
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
356
|
-
"div",
|
|
357
|
-
{
|
|
358
|
-
className: "pisell-lowcode__booking-vertical-add-service-wrap",
|
|
359
|
-
style: { width: "100%", height: "100%", overflow: "auto" }
|
|
360
|
-
},
|
|
361
|
-
header,
|
|
362
|
-
content
|
|
363
|
-
);
|
|
364
|
-
}
|
|
365
308
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, ((_b2 = (_a2 = state.service) == null ? void 0 : _a2.cacheItem) == null ? void 0 : _b2.autoClose) && /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { loading: true, active: true, round: true }), addButton, /* @__PURE__ */ import_react.default.createElement(
|
|
366
309
|
import_drawer.default,
|
|
367
310
|
{
|
|
368
311
|
titleNoWrap: true,
|
|
369
|
-
open: state.service.addModal
|
|
312
|
+
open: state.service.addModal,
|
|
370
313
|
title: import_utils4.locales.getText("pisell2.text.select-service"),
|
|
371
314
|
rootClassName: "booking-server-wrap",
|
|
372
315
|
onClose: () => {
|
|
@@ -378,10 +321,30 @@ var Info = (props) => {
|
|
|
378
321
|
}
|
|
379
322
|
});
|
|
380
323
|
},
|
|
381
|
-
header,
|
|
382
|
-
|
|
324
|
+
header: /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-header" }, /* @__PURE__ */ import_react.default.createElement(
|
|
325
|
+
import_antd.Input,
|
|
326
|
+
{
|
|
327
|
+
ref: searchRef,
|
|
328
|
+
prefix: /* @__PURE__ */ import_react.default.createElement(import_SearchLg.default, null),
|
|
329
|
+
style: { marginTop: 16, height: 44 },
|
|
330
|
+
placeholder: import_utils4.locales.getText("pisell2.text.search"),
|
|
331
|
+
allowClear: true,
|
|
332
|
+
value: search,
|
|
333
|
+
onChange: (e) => {
|
|
334
|
+
setSearch(e.target.value);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
))
|
|
383
338
|
},
|
|
384
|
-
|
|
339
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body" }, /* @__PURE__ */ import_react.default.createElement(
|
|
340
|
+
import_TabProduct.default,
|
|
341
|
+
{
|
|
342
|
+
list: renderList,
|
|
343
|
+
amountSymbol: state.amountSymbol,
|
|
344
|
+
onChange: handleSelectProduct,
|
|
345
|
+
scrollDom: ".booking-server-wrap .pisell-lowcode-drawer-body"
|
|
346
|
+
}
|
|
347
|
+
))
|
|
385
348
|
));
|
|
386
349
|
}, [
|
|
387
350
|
(_d = (_c = state.service) == null ? void 0 : _c.cacheItem) == null ? void 0 : _d.autoClose,
|
|
@@ -3,33 +3,7 @@
|
|
|
3
3
|
// border-bottom: 1px solid var(--gray-300, #D0D5DD);
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
+
|
|
6
7
|
.pisell-lowcode__booking-service-body {
|
|
7
8
|
background: var(--gray-50, #F9FAFB);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.pisell-lowcode__booking-vertical-add-service-wrap {
|
|
11
|
-
&::-webkit-scrollbar {
|
|
12
|
-
display: none !important;
|
|
13
|
-
}
|
|
14
|
-
.pisell-lowcode__booking-service-header {
|
|
15
|
-
background-color: #fff;
|
|
16
|
-
top: 0;
|
|
17
|
-
position: sticky;
|
|
18
|
-
z-index: 2;
|
|
19
|
-
padding: 16px !important;
|
|
20
|
-
margin: 0;
|
|
21
|
-
.pisell-lowcode-input-affix-wrapper {
|
|
22
|
-
margin: 0 !important;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
.booking-category-list {
|
|
26
|
-
padding: 0 16px !important;
|
|
27
|
-
}
|
|
28
|
-
.pisell-lowcode__booking-service-body {
|
|
29
|
-
.booking-tab-product {
|
|
30
|
-
.booking-tabs-wrap {
|
|
31
|
-
top: 76px !important;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
9
|
}
|
|
@@ -117,7 +117,7 @@ var Info = (_, ref) => {
|
|
|
117
117
|
} catch (err) {
|
|
118
118
|
}
|
|
119
119
|
}, [useDuration, flexibleOption]);
|
|
120
|
-
const getResources = async (cacheItem
|
|
120
|
+
const getResources = async (cacheItem) => {
|
|
121
121
|
console.log("getResources2");
|
|
122
122
|
try {
|
|
123
123
|
let _list = state.service.resourcesOrigin || [];
|
|
@@ -142,7 +142,7 @@ var Info = (_, ref) => {
|
|
|
142
142
|
}, 200);
|
|
143
143
|
} else {
|
|
144
144
|
setTimeout(() => {
|
|
145
|
-
if (selectOpen === void 0
|
|
145
|
+
if (selectOpen === void 0) {
|
|
146
146
|
setSelectOpen(true);
|
|
147
147
|
}
|
|
148
148
|
}, 500);
|
|
@@ -265,12 +265,12 @@ var Info = (_, ref) => {
|
|
|
265
265
|
}
|
|
266
266
|
});
|
|
267
267
|
});
|
|
268
|
-
const setEditData = (0, import_ahooks.useMemoizedFn)((_cacheItem
|
|
268
|
+
const setEditData = (0, import_ahooks.useMemoizedFn)((_cacheItem) => {
|
|
269
269
|
let cacheItem = _cacheItem || state.service.cacheItem;
|
|
270
270
|
let values = cacheItem._extend;
|
|
271
271
|
form.setFieldsValue(values);
|
|
272
272
|
if (state.renderType !== "eventBooking") {
|
|
273
|
-
getResources(
|
|
273
|
+
getResources(_cacheItem);
|
|
274
274
|
}
|
|
275
275
|
});
|
|
276
276
|
const isReason = (0, import_react.useMemo)(() => {
|
|
@@ -297,10 +297,7 @@ var Info = (_, ref) => {
|
|
|
297
297
|
(_f = state.service.cacheItem) == null ? void 0 : _f.autoClose
|
|
298
298
|
]);
|
|
299
299
|
(0, import_react.useEffect)(() => {
|
|
300
|
-
|
|
301
|
-
setEditData(null, true);
|
|
302
|
-
}
|
|
303
|
-
}, [state.service.editModal, state.isBookingCreatePage]);
|
|
300
|
+
}, [state.service.editModal]);
|
|
304
301
|
(0, import_react.useEffect)(() => {
|
|
305
302
|
getErrorMsg();
|
|
306
303
|
}, [useResource, useStartTime, useDuration]);
|
|
@@ -437,7 +434,7 @@ var Info = (_, ref) => {
|
|
|
437
434
|
});
|
|
438
435
|
}
|
|
439
436
|
},
|
|
440
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body-edit" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form, { layout: "vertical", form, onFinish }, /* @__PURE__ */ import_react.default.createElement(import_antd.Row, { style: { width: "100%" }, gutter: [16, 0] }, /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "product_name" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name" }, ((_d2 = (_c2 = (_b2 = state.service) == null ? void 0 : _b2.cacheItem) == null ? void 0 : _c2._extend) == null ? void 0 : _d2.product_name) || "-"), /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: handleEdit }, import_utils.locales.getText("pisell2.text.edit")),
|
|
437
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body-edit" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form, { layout: "vertical", form, onFinish }, /* @__PURE__ */ import_react.default.createElement(import_antd.Row, { style: { width: "100%" }, gutter: [16, 0] }, /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "product_name" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name" }, ((_d2 = (_c2 = (_b2 = state.service) == null ? void 0 : _b2.cacheItem) == null ? void 0 : _c2._extend) == null ? void 0 : _d2.product_name) || "-"), /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: handleEdit }, import_utils.locales.getText("pisell2.text.edit")), /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: handleChange }, import_utils.locales.getText("pisell2.text.change"))), /* @__PURE__ */ import_react.default.createElement(
|
|
441
438
|
import_collapsibleList.default,
|
|
442
439
|
{
|
|
443
440
|
style: { marginTop: bundles.length ? "8px" : 0 },
|
|
@@ -167,17 +167,10 @@ var getErrorList = (resource, cacheItem) => {
|
|
|
167
167
|
}
|
|
168
168
|
const isSingle = ((_c = (_b = (_a = cacheItem == null ? void 0 : cacheItem._data) == null ? void 0 : _a.resourceMaps) == null ? void 0 : _b[resource == null ? void 0 : resource.form_id]) == null ? void 0 : _c.type) === "single";
|
|
169
169
|
if (!((_d = resource._extend) == null ? void 0 : _d.usableTime)) {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
});
|
|
175
|
-
} else {
|
|
176
|
-
list.push({
|
|
177
|
-
label: import_utils.locales.getText("pisell1.text.resource-error-message-2")(resource.labelText, startText, endText),
|
|
178
|
-
type: "time"
|
|
179
|
-
});
|
|
180
|
-
}
|
|
170
|
+
list.push({
|
|
171
|
+
label: import_utils.locales.getText("pisell1.text.resource-error-message-2")(resource.labelText, startText, endText),
|
|
172
|
+
type: "time"
|
|
173
|
+
});
|
|
181
174
|
} else {
|
|
182
175
|
if (!((_g = (_f = (_e = resource._extend) == null ? void 0 : _e.usableTime) == null ? void 0 : _f._extend) == null ? void 0 : _g.isCountRange)) {
|
|
183
176
|
list.push({
|
|
@@ -195,22 +195,6 @@ 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
|
-
'pisell2.booking.dashboard.groups-on-site-now': string;
|
|
199
|
-
'pisell2.booking.dashboard.groups-on-site-now-tip': string;
|
|
200
|
-
'pisell2.booking.dashboard.people-on-site-now': string;
|
|
201
|
-
'pisell2.booking.dashboard.people-on-site-now-tip': string;
|
|
202
|
-
'pisell2.booking.dashboard.total-visitors-today': string;
|
|
203
|
-
'pisell2.booking.dashboard.total-visitors-today-tip': string;
|
|
204
|
-
'pisell2.booking.dashboard.ongoing-visitors': string;
|
|
205
|
-
'pisell2.booking.dashboard.ongoing-visitors-tip': string;
|
|
206
|
-
'pisell2.booking.dashboard.upcoming-visitors': string;
|
|
207
|
-
'pisell2.booking.dashboard.upcoming-visitors-tip': string;
|
|
208
|
-
'pisell2.booking.dashboard.overdue-visitors': string;
|
|
209
|
-
'pisell2.booking.dashboard.overdue-visitors-tip': string;
|
|
210
|
-
'pisell2.booking.dashboard.completed-visitors': string;
|
|
211
|
-
'pisell2.booking.dashboard.completed-visitors-tip': string;
|
|
212
|
-
'pisell2.booking.dashboard.departed-visitors': string;
|
|
213
|
-
'pisell2.booking.dashboard.departed-visitors-tip': string;
|
|
214
198
|
};
|
|
215
199
|
'zh-CN': {
|
|
216
200
|
'pisell2.text.refunded-amount': string;
|
|
@@ -408,22 +392,6 @@ declare const _default: {
|
|
|
408
392
|
'page.booking.text.please-choose-an-option-1': string;
|
|
409
393
|
'page.booking.text.please-choose-an-option-2': string;
|
|
410
394
|
'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
|
|
411
|
-
'pisell2.booking.dashboard.groups-on-site-now': string;
|
|
412
|
-
'pisell2.booking.dashboard.groups-on-site-now-tip': string;
|
|
413
|
-
'pisell2.booking.dashboard.people-on-site-now': string;
|
|
414
|
-
'pisell2.booking.dashboard.people-on-site-now-tip': string;
|
|
415
|
-
'pisell2.booking.dashboard.total-visitors-today': string;
|
|
416
|
-
'pisell2.booking.dashboard.total-visitors-today-tip': string;
|
|
417
|
-
'pisell2.booking.dashboard.ongoing-visitors': string;
|
|
418
|
-
'pisell2.booking.dashboard.ongoing-visitors-tip': string;
|
|
419
|
-
'pisell2.booking.dashboard.upcoming-visitors': string;
|
|
420
|
-
'pisell2.booking.dashboard.upcoming-visitors-tip': string;
|
|
421
|
-
'pisell2.booking.dashboard.overdue-visitors': string;
|
|
422
|
-
'pisell2.booking.dashboard.overdue-visitors-tip': string;
|
|
423
|
-
'pisell2.booking.dashboard.completed-visitors': string;
|
|
424
|
-
'pisell2.booking.dashboard.completed-visitors-tip': string;
|
|
425
|
-
'pisell2.booking.dashboard.departed-visitors': string;
|
|
426
|
-
'pisell2.booking.dashboard.departed-visitors-tip': string;
|
|
427
395
|
};
|
|
428
396
|
'zh-HK': {
|
|
429
397
|
'pisell2.text.refunded-amount': string;
|
|
@@ -621,22 +589,6 @@ declare const _default: {
|
|
|
621
589
|
'page.booking.text.please-choose-an-option-1': string;
|
|
622
590
|
'page.booking.text.please-choose-an-option-2': string;
|
|
623
591
|
'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
|
|
624
|
-
'pisell2.booking.dashboard.groups-on-site-now': string;
|
|
625
|
-
'pisell2.booking.dashboard.groups-on-site-now-tip': string;
|
|
626
|
-
'pisell2.booking.dashboard.people-on-site-now': string;
|
|
627
|
-
'pisell2.booking.dashboard.people-on-site-now-tip': string;
|
|
628
|
-
'pisell2.booking.dashboard.total-visitors-today': string;
|
|
629
|
-
'pisell2.booking.dashboard.total-visitors-today-tip': string;
|
|
630
|
-
'pisell2.booking.dashboard.ongoing-visitors': string;
|
|
631
|
-
'pisell2.booking.dashboard.ongoing-visitors-tip': string;
|
|
632
|
-
'pisell2.booking.dashboard.upcoming-visitors': string;
|
|
633
|
-
'pisell2.booking.dashboard.upcoming-visitors-tip': string;
|
|
634
|
-
'pisell2.booking.dashboard.overdue-visitors': string;
|
|
635
|
-
'pisell2.booking.dashboard.overdue-visitors-tip': string;
|
|
636
|
-
'pisell2.booking.dashboard.completed-visitors': string;
|
|
637
|
-
'pisell2.booking.dashboard.completed-visitors-tip': string;
|
|
638
|
-
'pisell2.booking.dashboard.departed-visitors': string;
|
|
639
|
-
'pisell2.booking.dashboard.departed-visitors-tip': string;
|
|
640
592
|
};
|
|
641
593
|
};
|
|
642
594
|
export default _default;
|
|
@@ -250,23 +250,7 @@ var locales_default = {
|
|
|
250
250
|
"page.booking.text.please-choose-an-option": "Please choose an option:",
|
|
251
251
|
"page.booking.text.please-choose-an-option-1": "Refund: Cancel the appointment and process a refund.",
|
|
252
252
|
"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)",
|
|
253
|
-
"page.booking.text.resource.min-length-error": (x, y) => `Select at least ${x} ${y}
|
|
254
|
-
"pisell2.booking.dashboard.groups-on-site-now": "Groups on-site now",
|
|
255
|
-
"pisell2.booking.dashboard.groups-on-site-now-tip": "Tip: Total number of groups who have checked in and are currently on-site",
|
|
256
|
-
"pisell2.booking.dashboard.people-on-site-now": "People on-site now",
|
|
257
|
-
"pisell2.booking.dashboard.people-on-site-now-tip": "Tip: Total number of people who have checked in and are currently on-site",
|
|
258
|
-
"pisell2.booking.dashboard.total-visitors-today": "Total visitors today",
|
|
259
|
-
"pisell2.booking.dashboard.total-visitors-today-tip": "Tip: Total number of visitors today, regardless of check-in status",
|
|
260
|
-
"pisell2.booking.dashboard.ongoing-visitors": "Ongoing visitors",
|
|
261
|
-
"pisell2.booking.dashboard.ongoing-visitors-tip": "Tip: Total number of visitors who have passed the start time, regardless of check-in status",
|
|
262
|
-
"pisell2.booking.dashboard.upcoming-visitors": "Upcoming visitors",
|
|
263
|
-
"pisell2.booking.dashboard.upcoming-visitors-tip": "Tip: Total number of visitors expected to arrive in the near future",
|
|
264
|
-
"pisell2.booking.dashboard.overdue-visitors": "Overdue visitors",
|
|
265
|
-
"pisell2.booking.dashboard.overdue-visitors-tip": "Tip: Total number of visitors whose playtime has expired but have not yet left the venue",
|
|
266
|
-
"pisell2.booking.dashboard.completed-visitors": "Completed visitors",
|
|
267
|
-
"pisell2.booking.dashboard.completed-visitors-tip": "Tip: Total number of visitors whose playtime has ended, regardless of whether they have left the venue",
|
|
268
|
-
"pisell2.booking.dashboard.departed-visitors": "Departed visitors",
|
|
269
|
-
"pisell2.booking.dashboard.departed-visitors-tip": "Tip: Total number of visitors who checked in and have left the venue today"
|
|
253
|
+
"page.booking.text.resource.min-length-error": (x, y) => `Select at least ${x} ${y}`
|
|
270
254
|
},
|
|
271
255
|
"zh-CN": {
|
|
272
256
|
"pisell2.text.refunded-amount": "已退金额",
|
|
@@ -489,23 +473,7 @@ var locales_default = {
|
|
|
489
473
|
"page.booking.text.please-choose-an-option": "请选择:",
|
|
490
474
|
"page.booking.text.please-choose-an-option-1": "退款:取消预约,同时处理退款。",
|
|
491
475
|
"page.booking.text.please-choose-an-option-2": "仅取消:仅取消预约,但不进行退款处理。(您仍然可以在取消后再进行退款操作)",
|
|
492
|
-
"page.booking.text.resource.min-length-error": (x, y) => `至少选择${x}项${y}
|
|
493
|
-
"pisell2.booking.dashboard.groups-on-site-now": "当前在场团体",
|
|
494
|
-
"pisell2.booking.dashboard.groups-on-site-now-tip": "提示:已检票并在场内的团体总数",
|
|
495
|
-
"pisell2.booking.dashboard.people-on-site-now": "当前在场人数",
|
|
496
|
-
"pisell2.booking.dashboard.people-on-site-now-tip": "提示:已检票并在场内的总人数",
|
|
497
|
-
"pisell2.booking.dashboard.total-visitors-today": "今日游客总数",
|
|
498
|
-
"pisell2.booking.dashboard.total-visitors-today-tip": "提示:今日的游客总人数,无论是否检票入场",
|
|
499
|
-
"pisell2.booking.dashboard.ongoing-visitors": "进行中的游客",
|
|
500
|
-
"pisell2.booking.dashboard.ongoing-visitors-tip": "提示:已过开始时间的游客总数,无论是否检票",
|
|
501
|
-
"pisell2.booking.dashboard.upcoming-visitors": "即将到达的游客",
|
|
502
|
-
"pisell2.booking.dashboard.upcoming-visitors-tip": "提示:预计将在未来到场的游客总人数",
|
|
503
|
-
"pisell2.booking.dashboard.overdue-visitors": "超时的游客",
|
|
504
|
-
"pisell2.booking.dashboard.overdue-visitors-tip": "提示:游玩时间已过,但尚未离场的游客总人数",
|
|
505
|
-
"pisell2.booking.dashboard.completed-visitors": "已完成的游客",
|
|
506
|
-
"pisell2.booking.dashboard.completed-visitors-tip": "提示:游玩时长已结束的游客总人数,无论是否离场",
|
|
507
|
-
"pisell2.booking.dashboard.departed-visitors": "已离场的游客",
|
|
508
|
-
"pisell2.booking.dashboard.departed-visitors-tip": "提示:今日已检票并离场的游客总人数"
|
|
476
|
+
"page.booking.text.resource.min-length-error": (x, y) => `至少选择${x}项${y}`
|
|
509
477
|
},
|
|
510
478
|
"zh-HK": {
|
|
511
479
|
"pisell2.text.refunded-amount": "已退金額",
|
|
@@ -728,22 +696,6 @@ var locales_default = {
|
|
|
728
696
|
"page.booking.text.please-choose-an-option": "請選擇:",
|
|
729
697
|
"page.booking.text.please-choose-an-option-1": "退款:取消預約,同時處理退款。",
|
|
730
698
|
"page.booking.text.please-choose-an-option-2": "僅取消:僅取消預約,但不進行退款處理。(您仍然可以在取消後再進行退款操作)",
|
|
731
|
-
"page.booking.text.resource.min-length-error": (x, y) => `至少選擇${x}項${y}
|
|
732
|
-
"pisell2.booking.dashboard.groups-on-site-now": "當前在場團體",
|
|
733
|
-
"pisell2.booking.dashboard.groups-on-site-now-tip": "提示:已檢票並在場內的團體總數",
|
|
734
|
-
"pisell2.booking.dashboard.people-on-site-now": "當前在場人數",
|
|
735
|
-
"pisell2.booking.dashboard.people-on-site-now-tip": "提示:已檢票並在場內的總人數",
|
|
736
|
-
"pisell2.booking.dashboard.total-visitors-today": "今日遊客總數",
|
|
737
|
-
"pisell2.booking.dashboard.total-visitors-today-tip": "提示:今日的遊客總人數,無論是否檢票入場",
|
|
738
|
-
"pisell2.booking.dashboard.ongoing-visitors": "進行中的遊客",
|
|
739
|
-
"pisell2.booking.dashboard.ongoing-visitors-tip": "提示:已過開始時間的遊客總數,無論是否檢票",
|
|
740
|
-
"pisell2.booking.dashboard.upcoming-visitors": "即將到達的遊客",
|
|
741
|
-
"pisell2.booking.dashboard.upcoming-visitors-tip": "提示:預計將在未來到場的遊客總人數",
|
|
742
|
-
"pisell2.booking.dashboard.overdue-visitors": "超時的遊客",
|
|
743
|
-
"pisell2.booking.dashboard.overdue-visitors-tip": "提示:遊玩時間已過,但尚未離場的遊客總人數",
|
|
744
|
-
"pisell2.booking.dashboard.completed-visitors": "已完成的遊客",
|
|
745
|
-
"pisell2.booking.dashboard.completed-visitors-tip": "提示:遊玩時長已結束的遊客總人數,無論是否離場",
|
|
746
|
-
"pisell2.booking.dashboard.departed-visitors": "已離場的遊客",
|
|
747
|
-
"pisell2.booking.dashboard.departed-visitors-tip": "提示:今日已檢票並離場的遊客總人數"
|
|
699
|
+
"page.booking.text.resource.min-length-error": (x, y) => `至少選擇${x}項${y}`
|
|
748
700
|
}
|
|
749
701
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
2
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
4
3
|
state: FormState;
|
|
5
4
|
} & {
|
|
6
5
|
dispatch: (params: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
2
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
4
3
|
state: FormState;
|
|
5
4
|
} & {
|
|
6
5
|
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;
|