@pisell/private-materials 3.0.118 → 3.0.120
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/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +11 -11
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +10 -10
- package/es/components/booking/addons/model.d.ts +1 -2
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +2 -2
- package/es/components/booking/components/TabProduct/productItem/index.js +8 -7
- package/es/components/booking/forms/forms.d.ts +1 -1
- package/es/components/booking/forms/model.d.ts +1 -2
- package/es/components/booking/info/header/index.d.ts +2 -2
- package/es/components/booking/info/header/index.js +436 -44
- package/es/components/booking/info/header/index.less +110 -1
- package/es/components/booking/info/index.d.ts +1 -1
- package/es/components/booking/info/service/addService/index.d.ts +3 -1
- package/es/components/booking/info/service/addService/index.js +14 -8
- package/es/components/booking/info/service/editService/index.d.ts +5 -2
- package/es/components/booking/info/service/editService/index.js +155 -66
- package/es/components/booking/info/service/editService/index.less +13 -4
- package/es/components/booking/info/service/index.js +15 -2
- package/es/components/booking/info/service/serviceList/index.d.ts +5 -3
- package/es/components/booking/info/service/serviceList/index.js +15 -11
- package/es/components/booking/info/utils.js +1 -1
- package/es/components/booking/locales.d.ts +42 -0
- package/es/components/booking/locales.js +54 -6
- package/es/components/booking/model.d.ts +3 -2
- package/es/components/booking/model.js +9 -9
- 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/index.d.ts +1 -1
- package/es/components/booking/payments/model.d.ts +1 -2
- package/es/components/schedules/index.d.ts +1 -1
- package/es/components/schedules/model.d.ts +1 -2
- package/lib/components/booking/addons/model.d.ts +1 -2
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +2 -2
- package/lib/components/booking/components/TabProduct/productItem/index.js +2 -1
- package/lib/components/booking/forms/forms.d.ts +1 -1
- package/lib/components/booking/forms/model.d.ts +1 -2
- package/lib/components/booking/info/header/index.d.ts +2 -2
- package/lib/components/booking/info/header/index.js +212 -11
- package/lib/components/booking/info/header/index.less +110 -1
- package/lib/components/booking/info/index.d.ts +1 -1
- package/lib/components/booking/info/service/addService/index.d.ts +3 -1
- package/lib/components/booking/info/service/addService/index.js +9 -4
- package/lib/components/booking/info/service/editService/index.d.ts +5 -2
- package/lib/components/booking/info/service/editService/index.js +107 -62
- package/lib/components/booking/info/service/editService/index.less +13 -4
- package/lib/components/booking/info/service/index.js +8 -1
- package/lib/components/booking/info/service/serviceList/index.d.ts +5 -3
- package/lib/components/booking/info/service/serviceList/index.js +2 -1
- package/lib/components/booking/info/utils.js +1 -1
- package/lib/components/booking/locales.d.ts +42 -0
- package/lib/components/booking/locales.js +48 -6
- package/lib/components/booking/model.d.ts +3 -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/index.d.ts +1 -1
- package/lib/components/booking/payments/model.d.ts +1 -2
- package/lib/components/schedules/index.d.ts +1 -1
- package/lib/components/schedules/model.d.ts +1 -2
- package/package.json +4 -4
|
@@ -10,28 +10,29 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
10
10
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
11
11
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
12
12
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
13
|
-
import React, { useCallback, useContext } from
|
|
14
|
-
import { locales } from
|
|
13
|
+
import React, { useCallback, useContext } from 'react';
|
|
14
|
+
import { locales } from '@pisell/utils';
|
|
15
15
|
import "./index.less";
|
|
16
16
|
import { Context } from "../../model";
|
|
17
17
|
import { getNoResource } from "../../../mock";
|
|
18
18
|
import { getErrorList } from "../../../utils";
|
|
19
19
|
import ServiceItem from "../serviceItem";
|
|
20
|
-
var ServiceList = function ServiceList() {
|
|
20
|
+
var ServiceList = function ServiceList(_ref) {
|
|
21
|
+
var onEdit = _ref.onEdit;
|
|
21
22
|
var _useContext = useContext(Context),
|
|
22
23
|
state = _useContext.state,
|
|
23
24
|
dispatch = _useContext.dispatch;
|
|
24
25
|
var errorTypes = {
|
|
25
|
-
product: locales.getText(
|
|
26
|
-
time: locales.getText(
|
|
27
|
-
maxLimit: locales.getText(
|
|
26
|
+
product: locales.getText('pisell2.text.status.service-error-1'),
|
|
27
|
+
time: locales.getText('pisell2.text.status.service-error-2'),
|
|
28
|
+
maxLimit: locales.getText('pisell2.text.status.service-error-3')
|
|
28
29
|
};
|
|
29
30
|
var handleEditService = function handleEditService(item) {
|
|
30
31
|
if (state.disabledEdit || state.disableEventBookingEdit) {
|
|
31
32
|
return;
|
|
32
33
|
}
|
|
33
34
|
dispatch({
|
|
34
|
-
type:
|
|
35
|
+
type: 'setService',
|
|
35
36
|
payload: {
|
|
36
37
|
editModal: true,
|
|
37
38
|
cacheItem: _objectSpread(_objectSpread({}, item), {}, {
|
|
@@ -39,6 +40,9 @@ var ServiceList = function ServiceList() {
|
|
|
39
40
|
})
|
|
40
41
|
}
|
|
41
42
|
});
|
|
43
|
+
onEdit === null || onEdit === void 0 ? void 0 : onEdit(_objectSpread(_objectSpread({}, item), {}, {
|
|
44
|
+
new: 0
|
|
45
|
+
}));
|
|
42
46
|
};
|
|
43
47
|
var getResourceItem = useCallback(function (id) {
|
|
44
48
|
if (id === 0) {
|
|
@@ -50,15 +54,15 @@ var ServiceList = function ServiceList() {
|
|
|
50
54
|
}, [state.service.resources]);
|
|
51
55
|
var getErrorMessage = useCallback(function (service, resourceItem) {
|
|
52
56
|
var errorList = getErrorList(resourceItem, service);
|
|
53
|
-
var errorMessage =
|
|
57
|
+
var errorMessage = '';
|
|
54
58
|
if (!service.id) {
|
|
55
59
|
return errorList[0].label;
|
|
56
60
|
}
|
|
57
61
|
if (errorList.length) {
|
|
58
62
|
if (errorList.length > 1) {
|
|
59
|
-
errorMessage = "".concat(errorList.length, " ").concat(locales.getText(
|
|
63
|
+
errorMessage = "".concat(errorList.length, " ").concat(locales.getText('pisell2.text.warnings'));
|
|
60
64
|
} else {
|
|
61
|
-
errorMessage = (resourceItem === null || resourceItem === void 0 ? void 0 : resourceItem.labelText) +
|
|
65
|
+
errorMessage = (resourceItem === null || resourceItem === void 0 ? void 0 : resourceItem.labelText) + ' ' + errorTypes[errorList[0].type];
|
|
62
66
|
}
|
|
63
67
|
}
|
|
64
68
|
return errorMessage;
|
|
@@ -77,7 +81,7 @@ var ServiceList = function ServiceList() {
|
|
|
77
81
|
}) : d;
|
|
78
82
|
});
|
|
79
83
|
dispatch({
|
|
80
|
-
type:
|
|
84
|
+
type: 'setService',
|
|
81
85
|
payload: {
|
|
82
86
|
value: _list,
|
|
83
87
|
edit: true
|
|
@@ -48,7 +48,7 @@ export var moveItemToFront = function moveItemToFront(arr, targetId) {
|
|
|
48
48
|
*/
|
|
49
49
|
export var isInterval = function isInterval(time1, time2) {
|
|
50
50
|
var interval = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1000;
|
|
51
|
-
return time2 - time1 < interval;
|
|
51
|
+
return Math.abs(time2 - time1) < interval;
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
/**
|
|
@@ -172,6 +172,20 @@ declare const _default: {
|
|
|
172
172
|
list: any[];
|
|
173
173
|
}) => string;
|
|
174
174
|
'page.event.booking.text.duplicate-enrollment-confirm': string;
|
|
175
|
+
'page.booking.text.unconfirmed-payements': string;
|
|
176
|
+
'page.booking.text.unconfirmed-payements.msg': string;
|
|
177
|
+
'page.booking.text.go-to-payments': string;
|
|
178
|
+
'page.booking.text.cancel-only': string;
|
|
179
|
+
'page.booking.text.refund': string;
|
|
180
|
+
'page.booking.text.confirm': string;
|
|
181
|
+
'page.booking.text.go-back': string;
|
|
182
|
+
'page.booking.text.cancel-booking': string;
|
|
183
|
+
'page.booking.text.cancel-booking.msg': string;
|
|
184
|
+
'page.booking.text.disabled-tickets': string;
|
|
185
|
+
'page.booking.text.paid.msg': (x: string) => string;
|
|
186
|
+
'page.booking.text.please-choose-an-option': string;
|
|
187
|
+
'page.booking.text.please-choose-an-option-1': string;
|
|
188
|
+
'page.booking.text.please-choose-an-option-2': string;
|
|
175
189
|
};
|
|
176
190
|
'zh-CN': {
|
|
177
191
|
'pisell2.text.refunded-amount': string;
|
|
@@ -346,6 +360,20 @@ declare const _default: {
|
|
|
346
360
|
list: any[];
|
|
347
361
|
}) => string;
|
|
348
362
|
'page.event.booking.text.duplicate-enrollment-confirm': string;
|
|
363
|
+
'page.booking.text.unconfirmed-payements': string;
|
|
364
|
+
'page.booking.text.unconfirmed-payements.msg': string;
|
|
365
|
+
'page.booking.text.go-to-payments': string;
|
|
366
|
+
'page.booking.text.cancel-only': string;
|
|
367
|
+
'page.booking.text.refund': string;
|
|
368
|
+
'page.booking.text.confirm': string;
|
|
369
|
+
'page.booking.text.go-back': string;
|
|
370
|
+
'page.booking.text.cancel-booking': string;
|
|
371
|
+
'page.booking.text.cancel-booking.msg': string;
|
|
372
|
+
'page.booking.text.disabled-tickets': string;
|
|
373
|
+
'page.booking.text.paid.msg': (x: string) => string;
|
|
374
|
+
'page.booking.text.please-choose-an-option': string;
|
|
375
|
+
'page.booking.text.please-choose-an-option-1': string;
|
|
376
|
+
'page.booking.text.please-choose-an-option-2': string;
|
|
349
377
|
};
|
|
350
378
|
'zh-HK': {
|
|
351
379
|
'pisell2.text.refunded-amount': string;
|
|
@@ -520,6 +548,20 @@ declare const _default: {
|
|
|
520
548
|
list: any[];
|
|
521
549
|
}) => string;
|
|
522
550
|
'page.event.booking.text.duplicate-enrollment-confirm': string;
|
|
551
|
+
'page.booking.text.unconfirmed-payements': string;
|
|
552
|
+
'page.booking.text.unconfirmed-payements.msg': string;
|
|
553
|
+
'page.booking.text.go-to-payments': string;
|
|
554
|
+
'page.booking.text.cancel-only': string;
|
|
555
|
+
'page.booking.text.refund': string;
|
|
556
|
+
'page.booking.text.confirm': string;
|
|
557
|
+
'page.booking.text.go-back': string;
|
|
558
|
+
'page.booking.text.cancel-booking': string;
|
|
559
|
+
'page.booking.text.cancel-booking.msg': string;
|
|
560
|
+
'page.booking.text.disabled-tickets': string;
|
|
561
|
+
'page.booking.text.paid.msg': (x: string) => string;
|
|
562
|
+
'page.booking.text.please-choose-an-option': string;
|
|
563
|
+
'page.booking.text.please-choose-an-option-1': string;
|
|
564
|
+
'page.booking.text.please-choose-an-option-2': string;
|
|
523
565
|
};
|
|
524
566
|
};
|
|
525
567
|
export default _default;
|
|
@@ -58,7 +58,7 @@ export default {
|
|
|
58
58
|
'pisell2.text.status.confirmed': 'Confirmed',
|
|
59
59
|
'pisell2.text.status.arrived': 'Arrived',
|
|
60
60
|
'pisell2.text.status.started': 'Started',
|
|
61
|
-
'pisell2.text.status.cancelled': '
|
|
61
|
+
'pisell2.text.status.cancelled': 'Cancel',
|
|
62
62
|
'pisell2.text.status.no_show': 'No show',
|
|
63
63
|
'pisell2.text.status.completed': 'Completed',
|
|
64
64
|
'pisell2.text.status.booking_id': 'Booking ID',
|
|
@@ -197,7 +197,23 @@ export default {
|
|
|
197
197
|
});
|
|
198
198
|
return "".concat(customerName || '', " has already enrolled in the ").concat(title, " ").concat(listStr.join(','), ", Are you sure you want to enroll again\uFF1F");
|
|
199
199
|
},
|
|
200
|
-
'page.event.booking.text.duplicate-enrollment-confirm': 'Confirm'
|
|
200
|
+
'page.event.booking.text.duplicate-enrollment-confirm': 'Confirm',
|
|
201
|
+
'page.booking.text.unconfirmed-payements': 'Unconfirmed payements',
|
|
202
|
+
'page.booking.text.unconfirmed-payements.msg': 'There are unconfirmed payments, please confirm or void the payments first.',
|
|
203
|
+
'page.booking.text.go-to-payments': 'Go to payments',
|
|
204
|
+
'page.booking.text.cancel-only': 'Cancel only',
|
|
205
|
+
'page.booking.text.refund': 'Refund',
|
|
206
|
+
'page.booking.text.confirm': 'Confirm',
|
|
207
|
+
'page.booking.text.go-back': 'Go back',
|
|
208
|
+
'page.booking.text.cancel-booking': "Cancel Booking",
|
|
209
|
+
'page.booking.text.cancel-booking.msg': "The action is irreversible. Please proceed with caution. ",
|
|
210
|
+
'page.booking.text.disabled-tickets': "All tickets will be disabled.",
|
|
211
|
+
'page.booking.text.paid.msg': function pageBookingTextPaidMsg(x) {
|
|
212
|
+
return "The related order is ".concat(x === 'paid' ? 'paid' : 'partially paid', ".");
|
|
213
|
+
},
|
|
214
|
+
'page.booking.text.please-choose-an-option': "Please choose an option:",
|
|
215
|
+
'page.booking.text.please-choose-an-option-1': "Refund: Cancel the appointment and process a refund.",
|
|
216
|
+
'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)"
|
|
201
217
|
},
|
|
202
218
|
'zh-CN': {
|
|
203
219
|
'pisell2.text.refunded-amount': '已退金额',
|
|
@@ -265,7 +281,7 @@ export default {
|
|
|
265
281
|
'pisell2.text.status.confirmed': '已确认',
|
|
266
282
|
'pisell2.text.status.arrived': '已到达',
|
|
267
283
|
'pisell2.text.status.started': '已开始',
|
|
268
|
-
'pisell2.text.status.cancelled': '
|
|
284
|
+
'pisell2.text.status.cancelled': '取消',
|
|
269
285
|
'pisell2.text.status.no_show': '失约',
|
|
270
286
|
'pisell2.text.status.completed': '已完成',
|
|
271
287
|
'pisell2.text.status.booking_id': '预约 ID',
|
|
@@ -401,7 +417,23 @@ export default {
|
|
|
401
417
|
});
|
|
402
418
|
return "".concat(customerName || '', "\u5DF2\u62A5\u540D").concat(title, " ").concat(listStr.join(','), ", \u786E\u5B9A\u8981\u518D\u6B21\u62A5\u540D\u5417\uFF1F");
|
|
403
419
|
},
|
|
404
|
-
'page.event.booking.text.duplicate-enrollment-confirm': '确认'
|
|
420
|
+
'page.event.booking.text.duplicate-enrollment-confirm': '确认',
|
|
421
|
+
'page.booking.text.unconfirmed-payements': '未确认的付款',
|
|
422
|
+
'page.booking.text.unconfirmed-payements.msg': '存在未确认的付款,请先确认收款或作废。',
|
|
423
|
+
'page.booking.text.go-to-payments': '前往收款界面',
|
|
424
|
+
'page.booking.text.cancel-only': '仅取消',
|
|
425
|
+
'page.booking.text.refund': '退款',
|
|
426
|
+
'page.booking.text.confirm': '确认',
|
|
427
|
+
'page.booking.text.go-back': '返回',
|
|
428
|
+
'page.booking.text.cancel-booking': "取消预约",
|
|
429
|
+
'page.booking.text.cancel-booking.msg': "该操作不可撤销,请谨慎操作。",
|
|
430
|
+
'page.booking.text.disabled-tickets': "所有票单将被禁用。",
|
|
431
|
+
'page.booking.text.paid.msg': function pageBookingTextPaidMsg(x) {
|
|
432
|
+
return "\u5173\u8054\u8BA2\u5355".concat(x === 'paid' ? '已支付' : '部分支付', "\u3002");
|
|
433
|
+
},
|
|
434
|
+
'page.booking.text.please-choose-an-option': "请选择:",
|
|
435
|
+
'page.booking.text.please-choose-an-option-1': "退款:取消预约,同时处理退款。",
|
|
436
|
+
'page.booking.text.please-choose-an-option-2': "仅取消:仅取消预约,但不进行退款处理。(您仍然可以在取消后再进行退款操作)"
|
|
405
437
|
},
|
|
406
438
|
'zh-HK': {
|
|
407
439
|
'pisell2.text.refunded-amount': '已退金額',
|
|
@@ -467,7 +499,7 @@ export default {
|
|
|
467
499
|
'pisell2.text.status.confirmed': '已确認',
|
|
468
500
|
'pisell2.text.status.arrived': '已到達',
|
|
469
501
|
'pisell2.text.status.started': '已開始',
|
|
470
|
-
'pisell2.text.status.cancelled': '
|
|
502
|
+
'pisell2.text.status.cancelled': '取消',
|
|
471
503
|
'pisell2.text.status.no_show': '失約',
|
|
472
504
|
'pisell2.text.status.completed': '已完成',
|
|
473
505
|
'pisell2.text.status.booking_id': '預約 ID',
|
|
@@ -605,6 +637,22 @@ export default {
|
|
|
605
637
|
});
|
|
606
638
|
return "".concat(customerName || '', "\u5DF2\u5831\u540D").concat(title, " ").concat(listStr.join(','), ", \u78BA\u5B9A\u8981\u518D\u6B21\u5831\u540D\u55CE\uFF1F");
|
|
607
639
|
},
|
|
608
|
-
'page.event.booking.text.duplicate-enrollment-confirm': '確認'
|
|
640
|
+
'page.event.booking.text.duplicate-enrollment-confirm': '確認',
|
|
641
|
+
'page.booking.text.unconfirmed-payements': '未確認的付款',
|
|
642
|
+
'page.booking.text.unconfirmed-payements.msg': '存在未確認的付款,請先確認收款或作廢。',
|
|
643
|
+
'page.booking.text.go-to-payments': '前往收款界面',
|
|
644
|
+
'page.booking.text.cancel-only': '僅取消',
|
|
645
|
+
'page.booking.text.refund': '退款',
|
|
646
|
+
'page.booking.text.confirm': '確認',
|
|
647
|
+
'page.booking.text.go-back': '返回',
|
|
648
|
+
'page.booking.text.cancel-booking': '取消預約',
|
|
649
|
+
'page.booking.text.cancel-booking.msg': '該操作不可撤銷,請謹慎操作。',
|
|
650
|
+
'page.booking.text.disabled-tickets': '所有票單將被禁用。',
|
|
651
|
+
'page.booking.text.paid.msg': function pageBookingTextPaidMsg(x) {
|
|
652
|
+
return "\u95DC\u806F\u8A02\u55AE".concat(x === 'paid' ? '已支付' : '部分支付', "\u3002");
|
|
653
|
+
},
|
|
654
|
+
'page.booking.text.please-choose-an-option': '請選擇:',
|
|
655
|
+
'page.booking.text.please-choose-an-option-1': '退款:取消預約,同時處理退款。',
|
|
656
|
+
'page.booking.text.please-choose-an-option-2': '僅取消:僅取消預約,但不進行退款處理。(您仍然可以在取消後再進行退款操作)'
|
|
609
657
|
}
|
|
610
658
|
};
|
|
@@ -40,6 +40,7 @@ export interface FormState {
|
|
|
40
40
|
cacheItem: any;
|
|
41
41
|
edit: boolean;
|
|
42
42
|
addTimeModal: boolean;
|
|
43
|
+
changeService: any;
|
|
43
44
|
};
|
|
44
45
|
pet: {
|
|
45
46
|
showModal: boolean;
|
|
@@ -73,7 +74,7 @@ export interface FormState {
|
|
|
73
74
|
bookingId: string | number;
|
|
74
75
|
bookingDetail: any;
|
|
75
76
|
channelDisabledEdit: boolean;
|
|
76
|
-
renderType?:
|
|
77
|
+
renderType?: 'eventBooking';
|
|
77
78
|
modalOpen?: boolean;
|
|
78
79
|
isTerminal?: boolean;
|
|
79
80
|
isFranchisee?: boolean;
|
|
@@ -81,7 +82,7 @@ export interface FormState {
|
|
|
81
82
|
eventOtherParams?: {
|
|
82
83
|
relation_id: number;
|
|
83
84
|
number: number;
|
|
84
|
-
registration_type:
|
|
85
|
+
registration_type: 'single' | 'all' | 'extra_include';
|
|
85
86
|
start_date: string;
|
|
86
87
|
start_time: string;
|
|
87
88
|
end_date: string;
|
|
@@ -4,8 +4,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
6
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
-
import { miniRedux } from
|
|
8
|
-
import dayjs from
|
|
7
|
+
import { miniRedux } from '@pisell/utils';
|
|
8
|
+
import dayjs from 'dayjs';
|
|
9
9
|
var apis = {
|
|
10
10
|
getClients: function getClients() {
|
|
11
11
|
return [];
|
|
@@ -31,10 +31,10 @@ var apis = {
|
|
|
31
31
|
};
|
|
32
32
|
export var walkInData = {
|
|
33
33
|
id: 0,
|
|
34
|
-
nickname:
|
|
34
|
+
nickname: 'Select a customer'
|
|
35
35
|
};
|
|
36
36
|
var defaultState = {
|
|
37
|
-
amountSymbol:
|
|
37
|
+
amountSymbol: '$',
|
|
38
38
|
apis: apis,
|
|
39
39
|
client: {
|
|
40
40
|
showModal: false,
|
|
@@ -70,19 +70,19 @@ var defaultState = {
|
|
|
70
70
|
forms: []
|
|
71
71
|
},
|
|
72
72
|
notes: {
|
|
73
|
-
orderNote:
|
|
73
|
+
orderNote: '',
|
|
74
74
|
internalNotes: []
|
|
75
75
|
},
|
|
76
76
|
setGlobalState: function setGlobalState() {},
|
|
77
77
|
bookingConfig: {
|
|
78
78
|
basic: {
|
|
79
79
|
service_time: {
|
|
80
|
-
unit:
|
|
80
|
+
unit: 'minute',
|
|
81
81
|
value: 3
|
|
82
82
|
},
|
|
83
|
-
appointment_mode:
|
|
83
|
+
appointment_mode: 'multiple_appointments_mode',
|
|
84
84
|
appointment_subject: {
|
|
85
|
-
type:
|
|
85
|
+
type: 'form',
|
|
86
86
|
form_id: 247,
|
|
87
87
|
form_record_id: 246
|
|
88
88
|
}
|
|
@@ -95,7 +95,7 @@ var defaultState = {
|
|
|
95
95
|
bookingId: 0
|
|
96
96
|
};
|
|
97
97
|
var _miniRedux = miniRedux({
|
|
98
|
-
namespace:
|
|
98
|
+
namespace: 'state',
|
|
99
99
|
state: defaultState,
|
|
100
100
|
reducers: {
|
|
101
101
|
setState: function setState(state, payload) {
|
|
@@ -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: {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CalendarDataItem, ScheduleItem } from "./type";
|
|
3
2
|
import dayjs from "dayjs";
|
|
4
3
|
export interface FormState {
|
|
@@ -69,7 +68,7 @@ export interface FormState {
|
|
|
69
68
|
};
|
|
70
69
|
setGlobalState: Function | null;
|
|
71
70
|
}
|
|
72
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
71
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
73
72
|
state: FormState;
|
|
74
73
|
} & {
|
|
75
74
|
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: {
|
|
@@ -63,7 +63,8 @@ var ProductItem = ({
|
|
|
63
63
|
"img",
|
|
64
64
|
{
|
|
65
65
|
src: import_utils.image.ali(item.cover, 100),
|
|
66
|
-
className: "server-product-cover"
|
|
66
|
+
className: "server-product-cover",
|
|
67
|
+
loading: "lazy"
|
|
67
68
|
}
|
|
68
69
|
) : null,
|
|
69
70
|
/* @__PURE__ */ import_react.default.createElement("div", { className: "server-product-content" }, /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -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: {
|