@pisell/private-materials 3.0.16 → 3.0.18
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 +7 -7
- 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 +8 -8
- package/es/components/booking/addons/index.js +148 -32
- package/es/components/booking/components/TabProduct/selectProductItem/index.js +21 -8
- package/es/components/booking/components/TabProduct/selectProductItem/index.less +34 -27
- package/es/components/booking/components/collapsibleList/index.d.ts +11 -0
- package/es/components/booking/components/collapsibleList/index.js +99 -0
- package/es/components/booking/components/collapsibleList/index.less +61 -0
- package/es/components/booking/components/collapsibleList/utils.d.ts +2 -0
- package/es/components/booking/components/collapsibleList/utils.js +21 -0
- package/es/components/booking/components/footer/amount.js +9 -10
- package/es/components/booking/components/footer/utils.d.ts +18 -0
- package/es/components/booking/components/footer/utils.js +76 -4
- package/es/components/booking/forms/single/index.js +16 -82
- package/es/components/booking/info/service/addService/index.js +47 -24
- package/es/components/booking/info/service/editService/index.js +49 -24
- package/es/components/booking/info/service/editService/index.less +21 -0
- package/es/components/booking/info/service/index.d.ts +2 -2
- package/es/components/booking/info/service/index.js +5 -129
- package/es/components/booking/info/service/index.less +0 -97
- package/es/components/booking/info/service/serviceItem/index.d.ts +4 -0
- package/es/components/booking/info/service/serviceItem/index.js +63 -0
- package/es/components/booking/info/service/serviceItem/index.less +97 -0
- package/es/components/booking/info/service/serviceList/index.d.ts +4 -0
- package/es/components/booking/info/service/serviceList/index.js +105 -0
- package/es/components/booking/info/service/serviceList/index.less +0 -0
- package/es/components/booking/utils.d.ts +1 -0
- package/es/components/booking/utils.js +15 -0
- package/lib/components/booking/addons/index.js +159 -35
- package/lib/components/booking/components/TabProduct/selectProductItem/index.js +33 -8
- package/lib/components/booking/components/TabProduct/selectProductItem/index.less +34 -27
- package/lib/components/booking/components/collapsibleList/index.d.ts +11 -0
- package/lib/components/booking/components/collapsibleList/index.js +94 -0
- package/lib/components/booking/components/collapsibleList/index.less +61 -0
- package/lib/components/booking/components/collapsibleList/utils.d.ts +2 -0
- package/lib/components/booking/components/collapsibleList/utils.js +46 -0
- package/lib/components/booking/components/footer/amount.js +9 -10
- package/lib/components/booking/components/footer/utils.d.ts +18 -0
- package/lib/components/booking/components/footer/utils.js +46 -7
- package/lib/components/booking/forms/single/index.js +12 -48
- package/lib/components/booking/info/service/addService/index.js +57 -36
- package/lib/components/booking/info/service/editService/index.js +76 -56
- package/lib/components/booking/info/service/editService/index.less +21 -0
- package/lib/components/booking/info/service/index.d.ts +2 -2
- package/lib/components/booking/info/service/index.js +4 -112
- package/lib/components/booking/info/service/index.less +0 -97
- package/lib/components/booking/info/service/serviceItem/index.d.ts +4 -0
- package/lib/components/booking/info/service/serviceItem/index.js +98 -0
- package/lib/components/booking/info/service/serviceItem/index.less +97 -0
- package/lib/components/booking/info/service/serviceList/index.d.ts +4 -0
- package/lib/components/booking/info/service/serviceList/index.js +129 -0
- package/lib/components/booking/info/service/serviceList/index.less +0 -0
- package/lib/components/booking/utils.d.ts +1 -0
- package/lib/components/booking/utils.js +15 -0
- package/package.json +2 -2
|
@@ -32,11 +32,11 @@ var getProductAmount = (state, isEdit) => {
|
|
|
32
32
|
if (isEdit) {
|
|
33
33
|
if ((state == null ? void 0 : state.service) || (state == null ? void 0 : state.addons)) {
|
|
34
34
|
for (let item of state == null ? void 0 : state.service.value) {
|
|
35
|
-
price += Number(item._extend.
|
|
35
|
+
price += Number(item._extend.total);
|
|
36
36
|
duration += import_utils.flexibleObj.getValue(item._extend.duration);
|
|
37
37
|
}
|
|
38
38
|
for (let item of state.addons.value) {
|
|
39
|
-
price += Number(item.
|
|
39
|
+
price += Number(item._extend.total) * item._extend.quantity;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
} else {
|
|
@@ -53,7 +53,7 @@ var getProductAmount = (state, isEdit) => {
|
|
|
53
53
|
};
|
|
54
54
|
var getProductItemTax = (item, bookingDetail) => {
|
|
55
55
|
let price = 0;
|
|
56
|
-
const productDiscountPrice = Number(item.
|
|
56
|
+
const productDiscountPrice = Number(item.total);
|
|
57
57
|
const shopTax = productDiscountPrice * Number(bookingDetail.tax_rate) * Number(item.is_charge_tax);
|
|
58
58
|
const shopTaxRate = 1 + bookingDetail.tax_rate * bookingDetail.is_price_include_tax;
|
|
59
59
|
const res = shopTax / shopTaxRate * item.quantity;
|
|
@@ -61,10 +61,7 @@ var getProductItemTax = (item, bookingDetail) => {
|
|
|
61
61
|
return price;
|
|
62
62
|
};
|
|
63
63
|
var getTotal = (item) => {
|
|
64
|
-
return item._extend.payment_price !== void 0 ? item._extend.payment_price : item._extend.
|
|
65
|
-
};
|
|
66
|
-
var getAddonsTotal = (item) => {
|
|
67
|
-
return item.payment_price !== void 0 ? item.payment_price : item.price;
|
|
64
|
+
return item._extend.payment_price !== void 0 ? item._extend.payment_price : item._extend.total;
|
|
68
65
|
};
|
|
69
66
|
var getTax = (state, isEdit) => {
|
|
70
67
|
var _a;
|
|
@@ -80,7 +77,8 @@ var getTax = (state, isEdit) => {
|
|
|
80
77
|
price += getProductItemTax(
|
|
81
78
|
{
|
|
82
79
|
...item,
|
|
83
|
-
|
|
80
|
+
total: getTotal(item),
|
|
81
|
+
price: item._extend.price,
|
|
84
82
|
quantity: item._extend.quantity
|
|
85
83
|
},
|
|
86
84
|
state.bookingDetail
|
|
@@ -89,8 +87,9 @@ var getTax = (state, isEdit) => {
|
|
|
89
87
|
for (let item of state.addons.value) {
|
|
90
88
|
price += getProductItemTax({
|
|
91
89
|
...item,
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
total: getTotal(item),
|
|
91
|
+
price: item._extend.price,
|
|
92
|
+
quantity: item._extend.quantity
|
|
94
93
|
}, state.bookingDetail);
|
|
95
94
|
}
|
|
96
95
|
}
|
|
@@ -1 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @title: 套餐单规格信息
|
|
3
|
+
* @description:
|
|
4
|
+
* @param {any} option
|
|
5
|
+
* @return {*}
|
|
6
|
+
* @Author: zhiwei.Wang
|
|
7
|
+
* @Date: 2024-02-19 09:26
|
|
8
|
+
*/
|
|
9
|
+
export declare const formatProductOption: (option: any) => any;
|
|
10
|
+
/**
|
|
11
|
+
* @title: 套餐信息
|
|
12
|
+
* @description:
|
|
13
|
+
* @param {any} bundle
|
|
14
|
+
* @return {*}
|
|
15
|
+
* @Author: zhiwei.Wang
|
|
16
|
+
* @Date: 2024-02-19 09:26
|
|
17
|
+
*/
|
|
18
|
+
export declare const formatProductBundle: (bundle: any) => any;
|
|
1
19
|
export declare const formatValues: (state: any) => any;
|
|
@@ -19,6 +19,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
// src/components/booking/components/footer/utils.ts
|
|
20
20
|
var utils_exports = {};
|
|
21
21
|
__export(utils_exports, {
|
|
22
|
+
formatProductBundle: () => formatProductBundle,
|
|
23
|
+
formatProductOption: () => formatProductOption,
|
|
22
24
|
formatValues: () => formatValues
|
|
23
25
|
});
|
|
24
26
|
module.exports = __toCommonJS(utils_exports);
|
|
@@ -42,28 +44,63 @@ var formatCustomer = (data) => {
|
|
|
42
44
|
country_calling_code: (_l = (_k = data.client) == null ? void 0 : _k.value) == null ? void 0 : _l.country_calling_code
|
|
43
45
|
};
|
|
44
46
|
};
|
|
47
|
+
var formatProductOption = (option) => {
|
|
48
|
+
if (!option) {
|
|
49
|
+
return [];
|
|
50
|
+
}
|
|
51
|
+
return option.map((d) => {
|
|
52
|
+
return {
|
|
53
|
+
"num": d.num,
|
|
54
|
+
"option_group_item_id": d.product_option_item_id,
|
|
55
|
+
"option_group_id": d.option_group_id
|
|
56
|
+
};
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
var formatProductBundle = (bundle) => {
|
|
60
|
+
if (!bundle) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
return bundle.map((d) => {
|
|
64
|
+
return {
|
|
65
|
+
"bundle_group_id": d.group_id,
|
|
66
|
+
"bundle_id": d.id,
|
|
67
|
+
"bundle_product_id": d._bundle_product_id,
|
|
68
|
+
"bundle_variant_id": d.bundle_variant_id,
|
|
69
|
+
"num": d.num,
|
|
70
|
+
"extension_id": d.extension_id,
|
|
71
|
+
"extension_type": d.extension_type,
|
|
72
|
+
"option": formatProductOption(d.option)
|
|
73
|
+
};
|
|
74
|
+
});
|
|
75
|
+
};
|
|
45
76
|
var formatBookings = (data) => {
|
|
46
77
|
const list = data.service.value;
|
|
47
78
|
const eventOtherParams = data.eventOtherParams;
|
|
48
79
|
let bookings = [];
|
|
49
80
|
bookings = list.map((item) => {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
81
|
+
var _a, _b;
|
|
82
|
+
const start_date = item._extend.startDate.format("YYYY-MM-DD");
|
|
83
|
+
const end_date = item._extend.endDate.format("YYYY-MM-DD");
|
|
84
|
+
const end_time = item._extend.endDate.format("HH:mm");
|
|
85
|
+
const start_time = item._extend.startDate.format("HH:mm");
|
|
86
|
+
const total = Number(item._extend.total);
|
|
87
|
+
const origin_total = Number(item._extend.origin_total);
|
|
88
|
+
const discount_amount = origin_total - total;
|
|
54
89
|
return {
|
|
55
90
|
"product": {
|
|
56
91
|
"num": item._extend.quantity,
|
|
57
|
-
"price": item.price,
|
|
92
|
+
"price": item._extend.price,
|
|
58
93
|
"product_id": item.id,
|
|
59
|
-
"discount_amount":
|
|
94
|
+
"discount_amount": discount_amount,
|
|
60
95
|
"product_discount_reason": item._extend.discount_reason || "",
|
|
61
96
|
"is_charge_tax": item.is_charge_tax,
|
|
62
97
|
"note": "",
|
|
63
98
|
"discountway": item._extend.discountway || "num",
|
|
64
99
|
"discount_per": item._extend.discount_per,
|
|
65
100
|
"discount_type": item._extend.discount_type || "discount",
|
|
66
|
-
"order_detail_id": item._extend.order_detail_id || 0
|
|
101
|
+
"order_detail_id": item._extend.order_detail_id || 0,
|
|
102
|
+
"product_bundle": formatProductBundle((_b = (_a = item._extend) == null ? void 0 : _a.other) == null ? void 0 : _b.bundle),
|
|
103
|
+
"bundle_edit": item._extend.bundle_edit
|
|
67
104
|
},
|
|
68
105
|
"id": item.booking_id || 0,
|
|
69
106
|
"relation_id": item._extend.relation_id,
|
|
@@ -130,5 +167,7 @@ var formatValues = (state) => {
|
|
|
130
167
|
};
|
|
131
168
|
// Annotate the CommonJS export names for ESM import in node:
|
|
132
169
|
0 && (module.exports = {
|
|
170
|
+
formatProductBundle,
|
|
171
|
+
formatProductOption,
|
|
133
172
|
formatValues
|
|
134
173
|
});
|
|
@@ -37,8 +37,8 @@ var import_FileDownload02 = __toESM(require("@pisell/icon/es/FileDownload02"));
|
|
|
37
37
|
var import_utils = require("@pisell/utils");
|
|
38
38
|
var import_antd = require("antd");
|
|
39
39
|
var import_customSelect = __toESM(require("../../components/customSelect"));
|
|
40
|
+
var import_collapsibleList = __toESM(require("../../components/collapsibleList"));
|
|
40
41
|
var import_index = require("./index.less");
|
|
41
|
-
var MAX_LIMIT = 3;
|
|
42
42
|
var Single = ({
|
|
43
43
|
value,
|
|
44
44
|
onChange,
|
|
@@ -53,7 +53,6 @@ var Single = ({
|
|
|
53
53
|
watch
|
|
54
54
|
}) => {
|
|
55
55
|
var _a, _b;
|
|
56
|
-
const [maxLimit, setMaxLimit] = (0, import_react.useState)({});
|
|
57
56
|
const renderFieldValue = (fieldData, field) => {
|
|
58
57
|
const val = fieldData[field.key];
|
|
59
58
|
if (field.filed_type === "attachment") {
|
|
@@ -107,41 +106,17 @@ var Single = ({
|
|
|
107
106
|
const renderItem = (0, import_react.useCallback)(
|
|
108
107
|
(fieldData) => {
|
|
109
108
|
let _fields = form.field || [];
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
);
|
|
120
|
-
const handlePreviewAll = (d) => {
|
|
121
|
-
let _maxLimit = maxLimit[d.form_record_id] || MAX_LIMIT;
|
|
122
|
-
if (_maxLimit === MAX_LIMIT) {
|
|
123
|
-
_maxLimit = 99;
|
|
124
|
-
} else {
|
|
125
|
-
_maxLimit = MAX_LIMIT;
|
|
126
|
-
}
|
|
127
|
-
setMaxLimit({
|
|
128
|
-
...maxLimit,
|
|
129
|
-
[d.form_record_id]: _maxLimit
|
|
130
|
-
});
|
|
131
|
-
};
|
|
132
|
-
const showAll = (0, import_react.useMemo)(() => {
|
|
133
|
-
let _field = form.field || [];
|
|
134
|
-
return _field.length > MAX_LIMIT;
|
|
135
|
-
}, [maxLimit, form]);
|
|
136
|
-
const viewAllText = (0, import_react.useCallback)(
|
|
137
|
-
(d) => {
|
|
138
|
-
let _maxLimit = maxLimit[d.form_record_id] || MAX_LIMIT;
|
|
139
|
-
if (_maxLimit === MAX_LIMIT) {
|
|
140
|
-
return import_utils.locales.getText("pisell2.text.view-all");
|
|
141
|
-
}
|
|
142
|
-
return import_utils.locales.getText("pisell2.text.view-less");
|
|
109
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
110
|
+
import_collapsibleList.default,
|
|
111
|
+
{
|
|
112
|
+
list: _fields,
|
|
113
|
+
renderItem: (field) => {
|
|
114
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pet-form-item", key: field.key }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pet-form-item-label" }, field.field_column.title), /* @__PURE__ */ import_react.default.createElement("div", { className: "pet-form-item-value" }, renderFieldValue(fieldData, field)));
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
);
|
|
143
118
|
},
|
|
144
|
-
[
|
|
119
|
+
[form]
|
|
145
120
|
);
|
|
146
121
|
const _optionRender = (item) => {
|
|
147
122
|
if (optionRender) {
|
|
@@ -183,18 +158,7 @@ var Single = ({
|
|
|
183
158
|
mode: _mode,
|
|
184
159
|
previewItemClassName: "pisell-lowcode__booking-pet-card",
|
|
185
160
|
previewItemRender: (d) => {
|
|
186
|
-
return
|
|
187
|
-
"div",
|
|
188
|
-
{
|
|
189
|
-
className: "pet-form-view-all",
|
|
190
|
-
onClick: (e) => {
|
|
191
|
-
e.preventDefault();
|
|
192
|
-
e.stopPropagation();
|
|
193
|
-
handlePreviewAll(d);
|
|
194
|
-
}
|
|
195
|
-
},
|
|
196
|
-
viewAllText(d)
|
|
197
|
-
) : null);
|
|
161
|
+
return renderItem(d);
|
|
198
162
|
},
|
|
199
163
|
name: ((_a = form.form) == null ? void 0 : _a.title) || "-",
|
|
200
164
|
addButtonProps: _addButtonProps,
|
|
@@ -40,17 +40,17 @@ var import_model = require("../../model");
|
|
|
40
40
|
var import_addButton = __toESM(require("../../../components/addButton"));
|
|
41
41
|
var import_antd = require("antd");
|
|
42
42
|
var import_index = require("./index.less");
|
|
43
|
-
var import_utils = require("../../../utils");
|
|
44
|
-
var import_utils2 = require("@pisell/utils");
|
|
45
43
|
var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
|
|
46
44
|
var import_serve = require("../serve");
|
|
47
|
-
var
|
|
45
|
+
var import_utils = require("../../utils");
|
|
46
|
+
var import_utils2 = require("../../../utils");
|
|
47
|
+
var import_utils3 = require("@pisell/utils");
|
|
48
48
|
var Info = () => {
|
|
49
49
|
var _a;
|
|
50
50
|
const [search, setSearch] = (0, import_react.useState)("");
|
|
51
51
|
const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
|
|
52
52
|
const context = (0, import_useEngineContext.default)();
|
|
53
|
-
|
|
53
|
+
import_utils2.request.setRequest(context.appHelper.utils.request);
|
|
54
54
|
const setDefaultService = async (list) => {
|
|
55
55
|
if (state.renderType !== "eventBooking") {
|
|
56
56
|
return;
|
|
@@ -69,13 +69,13 @@ var Info = () => {
|
|
|
69
69
|
const detail = await (0, import_serve.getProductDetail)(product.id, {
|
|
70
70
|
schedule_date: state.date.value.format("YYYY-MM-DD")
|
|
71
71
|
});
|
|
72
|
-
const isBundleOrCombination = (0,
|
|
72
|
+
const isBundleOrCombination = (0, import_utils.getIsBundleOrCombination)(detail.data);
|
|
73
73
|
if (isBundleOrCombination)
|
|
74
74
|
return;
|
|
75
75
|
let _item = {
|
|
76
76
|
...product,
|
|
77
77
|
product_id: product.id,
|
|
78
|
-
_id: (0,
|
|
78
|
+
_id: (0, import_utils3.getUniqueId)(),
|
|
79
79
|
_extend: {
|
|
80
80
|
start_date: state.date.value,
|
|
81
81
|
startDate: state.date.value,
|
|
@@ -111,7 +111,7 @@ var Info = () => {
|
|
|
111
111
|
// include_variant: "no",
|
|
112
112
|
ids: state.renderType === "eventBooking" ? (_a2 = state.eventOtherParams) == null ? void 0 : _a2.productIds : void 0,
|
|
113
113
|
open_quotation: 1,
|
|
114
|
-
with_schedule:
|
|
114
|
+
with_schedule: 1
|
|
115
115
|
});
|
|
116
116
|
setDefaultService(data == null ? void 0 : data.list);
|
|
117
117
|
dispatch({
|
|
@@ -131,29 +131,50 @@ var Info = () => {
|
|
|
131
131
|
});
|
|
132
132
|
};
|
|
133
133
|
const handleSelectProduct = (item) => {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
134
|
+
state.action({
|
|
135
|
+
type: "pisell1.handleOpenProductModal",
|
|
136
|
+
data: {
|
|
137
|
+
id: item.id,
|
|
138
|
+
date: state.date.value.format("YYYY-MM-DD"),
|
|
139
|
+
showConfig: {
|
|
140
|
+
option: false,
|
|
141
|
+
session: false,
|
|
142
|
+
variant: false,
|
|
143
|
+
package: true
|
|
144
|
+
}
|
|
145
145
|
},
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
146
|
+
callback: (e) => {
|
|
147
|
+
var _a2;
|
|
148
|
+
let cacheItem = {
|
|
149
|
+
...item,
|
|
150
|
+
product_id: item.id,
|
|
151
|
+
_id: (0, import_utils3.getUniqueId)(),
|
|
152
|
+
_key: e.key,
|
|
153
|
+
_extend: {
|
|
154
|
+
start_date: state.date.value,
|
|
155
|
+
quantity: 1,
|
|
156
|
+
price: item.price,
|
|
157
|
+
product_name: item.title,
|
|
158
|
+
other: e
|
|
159
|
+
},
|
|
160
|
+
new: 1
|
|
161
|
+
};
|
|
162
|
+
let _total = (0, import_utils2.getProductTotalPrice)(cacheItem);
|
|
163
|
+
console.log("_total", e);
|
|
164
|
+
cacheItem._extend.total = _total;
|
|
165
|
+
cacheItem._extend.origin_total = _total;
|
|
166
|
+
const _isEdit = !!state.service.cacheItem;
|
|
167
|
+
if (_isEdit) {
|
|
168
|
+
cacheItem._id = (_a2 = state.service.cacheItem) == null ? void 0 : _a2._id;
|
|
169
|
+
cacheItem.new = 0;
|
|
170
|
+
}
|
|
171
|
+
dispatch({
|
|
172
|
+
type: "setService",
|
|
173
|
+
payload: {
|
|
174
|
+
editModal: true,
|
|
175
|
+
cacheItem
|
|
176
|
+
}
|
|
177
|
+
});
|
|
157
178
|
}
|
|
158
179
|
});
|
|
159
180
|
};
|
|
@@ -163,7 +184,7 @@ var Info = () => {
|
|
|
163
184
|
const isIncludes = (str) => {
|
|
164
185
|
return str.toLowerCase().indexOf(search.toLowerCase()) !== -1;
|
|
165
186
|
};
|
|
166
|
-
return (0,
|
|
187
|
+
return (0, import_utils2.formatProductListByCategory)(
|
|
167
188
|
_list,
|
|
168
189
|
search ? (item) => isIncludes(item.title) : void 0
|
|
169
190
|
);
|
|
@@ -188,8 +209,8 @@ var Info = () => {
|
|
|
188
209
|
import_addButton.default,
|
|
189
210
|
{
|
|
190
211
|
showSub: false,
|
|
191
|
-
title:
|
|
192
|
-
subTitle:
|
|
212
|
+
title: import_utils3.locales.getText("pisell2.text.add-a-service"),
|
|
213
|
+
subTitle: import_utils3.locales.getText("pisell2.text.add-another-service"),
|
|
193
214
|
onClick: handleSelectService
|
|
194
215
|
}
|
|
195
216
|
);
|
|
@@ -198,8 +219,8 @@ var Info = () => {
|
|
|
198
219
|
import_addButton.default,
|
|
199
220
|
{
|
|
200
221
|
showSub: isService,
|
|
201
|
-
title:
|
|
202
|
-
subTitle:
|
|
222
|
+
title: import_utils3.locales.getText("pisell2.text.add-a-service"),
|
|
223
|
+
subTitle: import_utils3.locales.getText("pisell2.text.add-another-service"),
|
|
203
224
|
onClick: handleSelectService
|
|
204
225
|
}
|
|
205
226
|
) : /* @__PURE__ */ import_react.default.createElement("div", { style: { height: 20 } });
|
|
@@ -208,7 +229,7 @@ var Info = () => {
|
|
|
208
229
|
import_drawer.default,
|
|
209
230
|
{
|
|
210
231
|
open: state.service.addModal,
|
|
211
|
-
title:
|
|
232
|
+
title: import_utils3.locales.getText("pisell2.text.select-service"),
|
|
212
233
|
rootClassName: "booking-server-wrap",
|
|
213
234
|
onClose: () => {
|
|
214
235
|
dispatch({
|
|
@@ -223,7 +244,7 @@ var Info = () => {
|
|
|
223
244
|
{
|
|
224
245
|
prefix: /* @__PURE__ */ import_react.default.createElement(import_SearchLg.default, null),
|
|
225
246
|
style: { marginTop: 16, height: 44 },
|
|
226
|
-
placeholder:
|
|
247
|
+
placeholder: import_utils3.locales.getText("pisell2.text.search"),
|
|
227
248
|
allowClear: true,
|
|
228
249
|
value: search,
|
|
229
250
|
onChange: (e) => {
|