@pisell/private-materials 3.0.16 → 3.0.17

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.
Files changed (93) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +9 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +8 -8
  11. package/es/components/booking/addons/index.d.ts +1 -1
  12. package/es/components/booking/addons/index.js +148 -32
  13. package/es/components/booking/addons/model.d.ts +1 -2
  14. package/es/components/booking/components/TabProduct/selectProductItem/index.js +21 -8
  15. package/es/components/booking/components/TabProduct/selectProductItem/index.less +34 -27
  16. package/es/components/booking/components/collapsibleList/index.d.ts +11 -0
  17. package/es/components/booking/components/collapsibleList/index.js +99 -0
  18. package/es/components/booking/components/collapsibleList/index.less +61 -0
  19. package/es/components/booking/components/collapsibleList/utils.d.ts +2 -0
  20. package/es/components/booking/components/collapsibleList/utils.js +21 -0
  21. package/es/components/booking/components/footer/amount.js +9 -10
  22. package/es/components/booking/components/footer/utils.d.ts +18 -0
  23. package/es/components/booking/components/footer/utils.js +76 -4
  24. package/es/components/booking/forms/forms.d.ts +1 -1
  25. package/es/components/booking/forms/index.d.ts +1 -1
  26. package/es/components/booking/forms/model.d.ts +1 -2
  27. package/es/components/booking/forms/single/index.js +16 -82
  28. package/es/components/booking/index.d.ts +1 -1
  29. package/es/components/booking/info/index.d.ts +1 -1
  30. package/es/components/booking/info/model.d.ts +1 -2
  31. package/es/components/booking/info/service/addService/index.js +47 -24
  32. package/es/components/booking/info/service/editService/index.js +49 -24
  33. package/es/components/booking/info/service/editService/index.less +21 -0
  34. package/es/components/booking/info/service/index.d.ts +2 -2
  35. package/es/components/booking/info/service/index.js +5 -129
  36. package/es/components/booking/info/service/index.less +0 -100
  37. package/es/components/booking/info/service/serviceItem/index.d.ts +4 -0
  38. package/es/components/booking/info/service/serviceItem/index.js +63 -0
  39. package/es/components/booking/info/service/serviceItem/index.less +97 -0
  40. package/es/components/booking/info/service/serviceList/index.d.ts +4 -0
  41. package/es/components/booking/info/service/serviceList/index.js +105 -0
  42. package/es/components/booking/info/service/serviceList/index.less +0 -0
  43. package/es/components/booking/model.d.ts +1 -2
  44. package/es/components/booking/notes/index.d.ts +1 -1
  45. package/es/components/booking/notes/model.d.ts +1 -2
  46. package/es/components/booking/payments/index.d.ts +1 -1
  47. package/es/components/booking/payments/model.d.ts +1 -2
  48. package/es/components/booking/utils.d.ts +1 -0
  49. package/es/components/booking/utils.js +15 -0
  50. package/es/components/schedules/index.d.ts +1 -1
  51. package/es/components/schedules/model.d.ts +1 -2
  52. package/lib/components/booking/addons/index.d.ts +1 -1
  53. package/lib/components/booking/addons/index.js +159 -35
  54. package/lib/components/booking/addons/model.d.ts +1 -2
  55. package/lib/components/booking/components/TabProduct/selectProductItem/index.js +33 -8
  56. package/lib/components/booking/components/TabProduct/selectProductItem/index.less +34 -27
  57. package/lib/components/booking/components/collapsibleList/index.d.ts +11 -0
  58. package/lib/components/booking/components/collapsibleList/index.js +94 -0
  59. package/lib/components/booking/components/collapsibleList/index.less +61 -0
  60. package/lib/components/booking/components/collapsibleList/utils.d.ts +2 -0
  61. package/lib/components/booking/components/collapsibleList/utils.js +46 -0
  62. package/lib/components/booking/components/footer/amount.js +9 -10
  63. package/lib/components/booking/components/footer/utils.d.ts +18 -0
  64. package/lib/components/booking/components/footer/utils.js +46 -7
  65. package/lib/components/booking/forms/forms.d.ts +1 -1
  66. package/lib/components/booking/forms/index.d.ts +1 -1
  67. package/lib/components/booking/forms/model.d.ts +1 -2
  68. package/lib/components/booking/forms/single/index.js +12 -48
  69. package/lib/components/booking/index.d.ts +1 -1
  70. package/lib/components/booking/info/index.d.ts +1 -1
  71. package/lib/components/booking/info/model.d.ts +1 -2
  72. package/lib/components/booking/info/service/addService/index.js +57 -36
  73. package/lib/components/booking/info/service/editService/index.js +76 -56
  74. package/lib/components/booking/info/service/editService/index.less +21 -0
  75. package/lib/components/booking/info/service/index.d.ts +2 -2
  76. package/lib/components/booking/info/service/index.js +4 -112
  77. package/lib/components/booking/info/service/index.less +0 -100
  78. package/lib/components/booking/info/service/serviceItem/index.d.ts +4 -0
  79. package/lib/components/booking/info/service/serviceItem/index.js +98 -0
  80. package/lib/components/booking/info/service/serviceItem/index.less +97 -0
  81. package/lib/components/booking/info/service/serviceList/index.d.ts +4 -0
  82. package/lib/components/booking/info/service/serviceList/index.js +129 -0
  83. package/lib/components/booking/info/service/serviceList/index.less +0 -0
  84. package/lib/components/booking/model.d.ts +1 -2
  85. package/lib/components/booking/notes/index.d.ts +1 -1
  86. package/lib/components/booking/notes/model.d.ts +1 -2
  87. package/lib/components/booking/payments/index.d.ts +1 -1
  88. package/lib/components/booking/payments/model.d.ts +1 -2
  89. package/lib/components/booking/utils.d.ts +1 -0
  90. package/lib/components/booking/utils.js +15 -0
  91. package/lib/components/schedules/index.d.ts +1 -1
  92. package/lib/components/schedules/model.d.ts +1 -2
  93. package/package.json +1 -1
@@ -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.price) * (item._extend.quantity || 1);
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.price) * item.quantity;
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.price);
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.price;
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
- price: getTotal(item),
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
- price: getAddonsTotal(item),
93
- quantity: item.quantity
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
- let start_date = item._extend.startDate.format("YYYY-MM-DD");
51
- let start_time = item._extend.startDate.format("HH:mm");
52
- let end_date = item._extend.endDate.format("YYYY-MM-DD");
53
- let end_time = item._extend.endDate.format("HH:mm");
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": Number(item.price) - Number(item._extend.price),
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
  });
@@ -21,5 +21,5 @@ export interface InfoProps {
21
21
  * @Author: zhiwei.Wang
22
22
  * @Date: 2024-01-30 17:10
23
23
  */
24
- declare const Forms: (props: any) => any;
24
+ declare const Forms: (props: any) => JSX.Element;
25
25
  export default Forms;
@@ -5,5 +5,5 @@ export interface InfoProps {
5
5
  globalState: any;
6
6
  setGlobalState: any;
7
7
  }
8
- declare const Forms: (props: any) => any;
8
+ declare const Forms: (props: any) => JSX.Element;
9
9
  export default Forms;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
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: {
@@ -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
- let _maxLimit = maxLimit[fieldData.form_record_id] || MAX_LIMIT;
111
- if (_fields.length > _maxLimit) {
112
- _fields = _fields.slice(0, _maxLimit);
113
- }
114
- return _fields.map((field) => {
115
- 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)));
116
- });
117
- },
118
- [form, maxLimit]
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
- [maxLimit]
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 /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, renderItem(d), showAll ? /* @__PURE__ */ import_react.default.createElement(
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,
@@ -1,2 +1,2 @@
1
- declare const Booking: (props: any) => any;
1
+ declare const Booking: (props: any) => JSX.Element;
2
2
  export default Booking;
@@ -8,5 +8,5 @@ export interface InfoProps {
8
8
  slot: any;
9
9
  setState: any;
10
10
  }
11
- declare const Info: (props: any) => any;
11
+ declare const Info: (props: any) => JSX.Element;
12
12
  export default Info;
@@ -1,10 +1,9 @@
1
- /// <reference types="react" />
2
1
  import { FormState } from "../model";
3
2
  export declare const walkInData: {
4
3
  id: number;
5
4
  nickname: string;
6
5
  };
7
- export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
6
+ export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
8
7
  state: FormState;
9
8
  } & {
10
9
  dispatch: (params: {
@@ -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 import_utils3 = require("../../utils");
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
- import_utils.request.setRequest(context.appHelper.utils.request);
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, import_utils3.getIsBundleOrCombination)(detail.data);
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, import_utils2.getUniqueId)(),
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: 0
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
- var _a2;
135
- const _isEdit = !!state.service.cacheItem;
136
- let _item = {
137
- ...item,
138
- product_id: item.id,
139
- _id: (0, import_utils2.getUniqueId)(),
140
- _extend: {
141
- start_date: state.date.value,
142
- quantity: 1,
143
- price: item.price,
144
- product_name: item.title
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
- new: 1
147
- };
148
- if (_isEdit) {
149
- _item._id = (_a2 = state.service.cacheItem) == null ? void 0 : _a2._id;
150
- _item.new = 0;
151
- }
152
- dispatch({
153
- type: "setService",
154
- payload: {
155
- editModal: true,
156
- cacheItem: _item
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, import_utils.formatProductListByCategory)(
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: import_utils2.locales.getText("pisell2.text.add-a-service"),
192
- subTitle: import_utils2.locales.getText("pisell2.text.add-another-service"),
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: import_utils2.locales.getText("pisell2.text.add-a-service"),
202
- subTitle: import_utils2.locales.getText("pisell2.text.add-another-service"),
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: import_utils2.locales.getText("pisell2.text.select-service"),
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: import_utils2.locales.getText("pisell2.text.search"),
247
+ placeholder: import_utils3.locales.getText("pisell2.text.search"),
227
248
  allowClear: true,
228
249
  value: search,
229
250
  onChange: (e) => {