@pisell/private-materials 3.3.26 → 3.3.27
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 +7 -7
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +5 -5
- package/es/components/Sales/Customer/index.js +3 -1
- package/es/components/Sales/Event/Detail.js +5 -1
- package/es/components/Sales/Event/serve.d.ts +3 -0
- package/es/components/Sales/Init/index.d.ts +1 -0
- package/es/components/Sales/Init/index.js +3 -2
- package/es/components/Sales/Step/index.d.ts +2 -0
- package/es/components/Sales/Step/index.js +13 -4
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/ConfirmInformation/index.js +5 -5
- package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Services/index.js +2 -0
- package/es/components/appointmentBooking/deposit/index.js +2 -2
- package/es/components/appointmentBooking/index.d.ts +1 -0
- package/es/components/booking/components/footer/utils.js +16 -15
- package/es/components/booking/hooks/useQuotation.d.ts +4 -0
- package/es/components/booking/hooks/useQuotation.js +256 -0
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/service/addService/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/index.js +4 -4
- package/es/components/booking/info/service/editService/index.js +6 -3
- package/es/components/booking/info/service/index.js +4 -1
- package/es/components/booking/info/service2/Group/utils.js +1 -1
- package/es/components/booking/info/service2/hooks/useSelectPet.js +6 -4
- package/es/components/booking/info/service2/index.js +4 -1
- package/es/components/booking/info2/service/addService/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/index.js +29 -9
- package/es/components/booking/info2/service/editService/index.js +2 -0
- package/es/components/booking/info2/service/index.js +4 -1
- package/es/components/booking/locales.d.ts +6 -0
- package/es/components/booking/locales.js +9 -3
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/index.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/index.d.ts +1 -0
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +122 -31
- package/es/components/eventBooking/components/Provider/Event/index.js +20 -4
- package/es/components/eventBooking/components/Provider/Resource/index.js +26 -5
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +2 -2
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +1 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.js +5 -2
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.js +7 -2
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +3 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.js +60 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.less +63 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.d.ts +9 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.js +59 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.less +7 -0
- package/es/components/eventBooking/components/scheduleCalendar/index.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/index.js +30 -21
- package/es/components/eventBooking/components/scheduleCalendar/index.less +2 -0
- package/es/components/eventBooking/index.d.ts +1 -0
- package/es/components/eventBooking/index.js +2 -2
- package/es/components/eventBooking/locales.d.ts +6 -0
- package/es/components/eventBooking/locales.js +166 -160
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +3 -2
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +73 -20
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.less +30 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -1
- package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.d.ts +16 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.js +60 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.less +38 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.d.ts +17 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.js +98 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.less +133 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +7 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.js +34 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.less +23 -0
- package/es/components/pay/toC/WalletPassBlock/index.d.ts +9 -2
- package/es/components/pay/toC/WalletPassBlock/index.js +119 -21
- package/es/components/pay/toC/WalletPassBlock/index.less +82 -13
- package/es/components/pay/toC/index.js +138 -89
- package/es/components/pay/toC/locales.d.ts +69 -3
- package/es/components/pay/toC/locales.js +132 -6
- package/es/components/pay/toC/model.d.ts +4 -0
- package/es/components/pay/toC/model.js +9 -0
- package/es/components/pay/toC/serve.d.ts +23 -0
- package/es/components/pay/toC/serve.js +34 -2
- package/es/components/pay/toC/utils.d.ts +3 -1
- package/es/components/pay/toC/utils.js +8 -3
- package/es/components/productSelect/components/productGroup/index.less +4 -12
- package/es/components/productSelect/index.less +1 -1
- package/es/components/ruleSetting/index.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +15 -20
- package/es/components/ticketBooking/components/menuBar/index.less +0 -1
- package/es/components/ticketBooking/components/ticketBooking/index.less +2 -4
- package/es/hooks/useLocale.d.ts +2 -0
- package/es/hooks/useLocale.js +7 -0
- package/es/hooks/useLoginUser.d.ts +2 -0
- package/es/hooks/useLoginUser.js +19 -0
- package/lib/components/Sales/Customer/index.js +3 -1
- package/lib/components/Sales/Event/Detail.js +5 -1
- package/lib/components/Sales/Event/serve.d.ts +3 -0
- package/lib/components/Sales/Init/index.d.ts +1 -0
- package/lib/components/Sales/Init/index.js +3 -2
- package/lib/components/Sales/Step/index.d.ts +2 -0
- package/lib/components/Sales/Step/index.js +13 -4
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +2 -2
- package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Services/index.js +2 -0
- package/lib/components/appointmentBooking/deposit/index.js +2 -2
- package/lib/components/appointmentBooking/index.d.ts +1 -0
- package/lib/components/booking/components/footer/utils.js +5 -4
- package/lib/components/booking/hooks/useQuotation.d.ts +4 -0
- package/lib/components/booking/hooks/useQuotation.js +210 -0
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/index.js +2 -3
- package/lib/components/booking/info/service/editService/index.js +5 -2
- package/lib/components/booking/info/service/index.js +3 -1
- package/lib/components/booking/info/service2/Group/utils.js +2 -2
- package/lib/components/booking/info/service2/hooks/useSelectPet.js +5 -3
- package/lib/components/booking/info/service2/index.js +3 -1
- package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/index.js +25 -17
- package/lib/components/booking/info2/service/editService/index.js +2 -1
- package/lib/components/booking/info2/service/index.js +3 -1
- package/lib/components/booking/locales.d.ts +6 -0
- package/lib/components/booking/locales.js +9 -3
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/index.d.ts +1 -0
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +52 -4
- package/lib/components/eventBooking/components/Provider/Event/index.js +15 -3
- package/lib/components/eventBooking/components/Provider/Resource/index.js +16 -3
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +2 -2
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +7 -7
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.js +3 -1
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.js +6 -5
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +3 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.js +75 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.less +63 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.d.ts +9 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.js +64 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.less +7 -0
- package/lib/components/eventBooking/components/scheduleCalendar/index.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/index.js +17 -11
- package/lib/components/eventBooking/components/scheduleCalendar/index.less +2 -0
- package/lib/components/eventBooking/index.d.ts +1 -0
- package/lib/components/eventBooking/index.js +2 -2
- package/lib/components/eventBooking/locales.d.ts +6 -0
- package/lib/components/eventBooking/locales.js +10 -4
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +2 -2
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +52 -11
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.less +30 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -1
- package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.d.ts +16 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.js +87 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.less +38 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.d.ts +17 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.js +103 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.less +133 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +7 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.js +52 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.less +23 -0
- package/lib/components/pay/toC/WalletPassBlock/index.d.ts +9 -2
- package/lib/components/pay/toC/WalletPassBlock/index.js +115 -20
- package/lib/components/pay/toC/WalletPassBlock/index.less +82 -13
- package/lib/components/pay/toC/index.js +35 -9
- package/lib/components/pay/toC/locales.d.ts +69 -3
- package/lib/components/pay/toC/locales.js +72 -6
- package/lib/components/pay/toC/model.d.ts +4 -0
- package/lib/components/pay/toC/model.js +10 -0
- package/lib/components/pay/toC/serve.d.ts +23 -0
- package/lib/components/pay/toC/serve.js +12 -6
- package/lib/components/pay/toC/utils.d.ts +3 -1
- package/lib/components/pay/toC/utils.js +8 -3
- package/lib/components/productSelect/components/productGroup/index.less +4 -12
- package/lib/components/productSelect/index.less +1 -1
- package/lib/components/ruleSetting/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +13 -16
- package/lib/components/ticketBooking/components/menuBar/index.less +0 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.less +2 -4
- package/lib/hooks/useLocale.d.ts +2 -0
- package/lib/hooks/useLocale.js +41 -0
- package/lib/hooks/useLoginUser.d.ts +2 -0
- package/lib/hooks/useLoginUser.js +50 -0
- package/package.json +3 -3
|
@@ -97,12 +97,13 @@ var InitProvider = ({ children }) => {
|
|
|
97
97
|
const getBoardSetting = (0, import_ahooks.useRequest)(import_serve.getBoardSettingApi, {
|
|
98
98
|
manual: true,
|
|
99
99
|
onSuccess: (res) => {
|
|
100
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
100
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
101
101
|
setInitData({
|
|
102
102
|
boardSetting: res == null ? void 0 : res.data,
|
|
103
103
|
form_id: (_d = (_c = (_b = (_a = res == null ? void 0 : res.data) == null ? void 0 : _a.config) == null ? void 0 : _b.resource) == null ? void 0 : _c.booking_event_v2_resource) == null ? void 0 : _d.form_id,
|
|
104
104
|
shop_id: (_e = res == null ? void 0 : res.data) == null ? void 0 : _e.shop_id,
|
|
105
|
-
shop: (_i = (_h = (_g = (_f = appUtils.getStore()) == null ? void 0 : _f.getState()) == null ? void 0 : _g.core) == null ? void 0 : _h.core) == null ? void 0 : _i.shop
|
|
105
|
+
shop: (_i = (_h = (_g = (_f = appUtils.getStore()) == null ? void 0 : _f.getState()) == null ? void 0 : _g.core) == null ? void 0 : _h.core) == null ? void 0 : _i.shop,
|
|
106
|
+
scheduleDisplayType: (_m = (_l = (_k = (_j = res == null ? void 0 : res.data) == null ? void 0 : _j.config) == null ? void 0 : _k.product_display_setting) == null ? void 0 : _l.booking_event_v2_schedule_display_format) == null ? void 0 : _m.value
|
|
106
107
|
});
|
|
107
108
|
}
|
|
108
109
|
});
|
|
@@ -7,6 +7,7 @@ interface Step {
|
|
|
7
7
|
declare type StepKey = 'select-category' | 'select-event' | 'confirm-information';
|
|
8
8
|
interface StepData {
|
|
9
9
|
currentStep: StepKey;
|
|
10
|
+
isAutoOperate?: boolean;
|
|
10
11
|
}
|
|
11
12
|
interface StepContextType {
|
|
12
13
|
setStepData: (data: Partial<StepData>) => void;
|
|
@@ -18,6 +19,7 @@ interface StepContextType {
|
|
|
18
19
|
isLastStep: boolean;
|
|
19
20
|
isFirstStep: boolean;
|
|
20
21
|
isTwoStep: boolean;
|
|
22
|
+
changeAutoOperate: (newAutoOperate: boolean) => void;
|
|
21
23
|
}
|
|
22
24
|
interface StepProviderProps {
|
|
23
25
|
children: React.ReactNode;
|
|
@@ -61,7 +61,8 @@ var stepMaps = steps.reduce((acc, step) => {
|
|
|
61
61
|
return acc;
|
|
62
62
|
}, {});
|
|
63
63
|
var defaultState = {
|
|
64
|
-
currentStep: steps[0].key
|
|
64
|
+
currentStep: steps[0].key,
|
|
65
|
+
isAutoOperate: true
|
|
65
66
|
};
|
|
66
67
|
var StepContext = (0, import_react.createContext)(
|
|
67
68
|
void 0
|
|
@@ -106,7 +107,8 @@ var StepProvider = ({ children }) => {
|
|
|
106
107
|
const nextStep2 = getNextStep();
|
|
107
108
|
if (nextStep2) {
|
|
108
109
|
setStepData({
|
|
109
|
-
currentStep: nextStep2
|
|
110
|
+
currentStep: nextStep2,
|
|
111
|
+
isAutoOperate: true
|
|
110
112
|
});
|
|
111
113
|
}
|
|
112
114
|
};
|
|
@@ -114,7 +116,8 @@ var StepProvider = ({ children }) => {
|
|
|
114
116
|
const prevStep2 = getPrevStep();
|
|
115
117
|
if (prevStep2) {
|
|
116
118
|
setStepData({
|
|
117
|
-
currentStep: prevStep2
|
|
119
|
+
currentStep: prevStep2,
|
|
120
|
+
isAutoOperate: false
|
|
118
121
|
});
|
|
119
122
|
} else {
|
|
120
123
|
closePage();
|
|
@@ -138,6 +141,11 @@ var StepProvider = ({ children }) => {
|
|
|
138
141
|
const isTwoStep = (0, import_react.useMemo)(() => {
|
|
139
142
|
return (currentStepData == null ? void 0 : currentStepData.key) === steps[1].key;
|
|
140
143
|
}, [currentStepData == null ? void 0 : currentStepData.key]);
|
|
144
|
+
const changeAutoOperate = (newAutoOperate) => {
|
|
145
|
+
setStepData({
|
|
146
|
+
isAutoOperate: newAutoOperate
|
|
147
|
+
});
|
|
148
|
+
};
|
|
141
149
|
const contextValue = {
|
|
142
150
|
setStepData,
|
|
143
151
|
currentStepData,
|
|
@@ -147,7 +155,8 @@ var StepProvider = ({ children }) => {
|
|
|
147
155
|
toFirstStep,
|
|
148
156
|
isFirstStep,
|
|
149
157
|
isLastStep,
|
|
150
|
-
isTwoStep
|
|
158
|
+
isTwoStep,
|
|
159
|
+
changeAutoOperate
|
|
151
160
|
};
|
|
152
161
|
return /* @__PURE__ */ import_react.default.createElement(StepContext.Provider, { value: contextValue }, children);
|
|
153
162
|
};
|
|
@@ -62,10 +62,10 @@ var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
|
|
|
62
62
|
};
|
|
63
63
|
const handleNext = async () => {
|
|
64
64
|
var _a2;
|
|
65
|
-
|
|
65
|
+
const { deposit } = summary;
|
|
66
|
+
if ((deposit == null ? void 0 : deposit.hasDeposit) && ((_a2 = deposit == null ? void 0 : deposit.protocols) == null ? void 0 : _a2.length) > 0 && !isAgreeDepositPolicy) {
|
|
66
67
|
return (0, import_utils2.Toast)(import_utils.locales.getText("pisell2.appointment.deposit.agree.policy"));
|
|
67
68
|
}
|
|
68
|
-
const { deposit } = summary;
|
|
69
69
|
setLoading(true);
|
|
70
70
|
try {
|
|
71
71
|
const { data } = await appointmentBooking.submitOrder();
|
|
@@ -82,7 +82,7 @@ var Deposit = (props) => {
|
|
|
82
82
|
showCurrencySymbol: true,
|
|
83
83
|
className: "amount"
|
|
84
84
|
}
|
|
85
|
-
), /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.appointment.deposit.amount.tip2")))), /* @__PURE__ */ import_react.default.createElement("div", { className: "checkbox-wrap", onClick: () => handleAgreed() }, /* @__PURE__ */ import_react.default.createElement(import_antd.Checkbox, { checked: isAgreePolicy }), /* @__PURE__ */ import_react.default.createElement("div", { className: "policy-box" }, /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.appointment.deposit.agreed")), /* @__PURE__ */ import_react.default.createElement("div", { className: "policy-wrap" }, protocols == null ? void 0 : protocols.map((item, index) => {
|
|
85
|
+
), /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.appointment.deposit.amount.tip2")))), (protocols == null ? void 0 : protocols.length) > 0 ? /* @__PURE__ */ import_react.default.createElement("div", { className: "checkbox-wrap", onClick: () => handleAgreed() }, /* @__PURE__ */ import_react.default.createElement(import_antd.Checkbox, { checked: isAgreePolicy }), /* @__PURE__ */ import_react.default.createElement("div", { className: "policy-box" }, /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.appointment.deposit.agreed")), /* @__PURE__ */ import_react.default.createElement("div", { className: "policy-wrap" }, protocols == null ? void 0 : protocols.map((item, index) => {
|
|
86
86
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
87
87
|
"span",
|
|
88
88
|
{
|
|
@@ -97,7 +97,7 @@ var Deposit = (props) => {
|
|
|
97
97
|
item == null ? void 0 : item.title,
|
|
98
98
|
/* @__PURE__ */ import_react.default.createElement("span", { className: "symbol" }, _policyText(item, index))
|
|
99
99
|
);
|
|
100
|
-
}))))), /* @__PURE__ */ import_react.default.createElement(
|
|
100
|
+
})))) : null), /* @__PURE__ */ import_react.default.createElement(
|
|
101
101
|
import_PolicyModal.default,
|
|
102
102
|
{
|
|
103
103
|
open: visible,
|
|
@@ -217,7 +217,7 @@ var formatMetaData = (item) => {
|
|
|
217
217
|
return metadata;
|
|
218
218
|
};
|
|
219
219
|
var formatProducts = (item) => {
|
|
220
|
-
var _a, _b, _c, _d, _e, _f;
|
|
220
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
221
221
|
const total = Number(item._extend.total);
|
|
222
222
|
const origin_total = Number(item._extend.origin_total);
|
|
223
223
|
const discount_amount = origin_total - total;
|
|
@@ -227,6 +227,7 @@ var formatProducts = (item) => {
|
|
|
227
227
|
return {
|
|
228
228
|
"num": item._extend.quantity,
|
|
229
229
|
"price": formatProductPrice(item),
|
|
230
|
+
"source_product_price": (_a = item._extend) == null ? void 0 : _a.price,
|
|
230
231
|
"product_id": (item == null ? void 0 : item.product_id) || item.id,
|
|
231
232
|
"discount_amount": notManualDiscount.length > 0 ? 0 : discount_amount,
|
|
232
233
|
"product_discount_reason": item._extend.discount_reason || "",
|
|
@@ -236,10 +237,10 @@ var formatProducts = (item) => {
|
|
|
236
237
|
"discount_per": item._extend.discount_per,
|
|
237
238
|
"discount_type": item._extend.discount_type || discount_type,
|
|
238
239
|
"order_detail_id": item._extend.order_detail_id || 0,
|
|
239
|
-
"product_bundle": formatProductBundle((
|
|
240
|
+
"product_bundle": formatProductBundle((_c = (_b = item._extend) == null ? void 0 : _b.other) == null ? void 0 : _c.bundle),
|
|
240
241
|
"bundle_edit": item._extend.bundle_edit,
|
|
241
|
-
"product_option_item": formatProductOption((
|
|
242
|
-
"product_variant_id": ((
|
|
242
|
+
"product_option_item": formatProductOption((_e = (_d = item._extend) == null ? void 0 : _d.other) == null ? void 0 : _e.option),
|
|
243
|
+
"product_variant_id": ((_g = (_f = item._extend) == null ? void 0 : _f.other) == null ? void 0 : _g.product_variant_id) || 0,
|
|
243
244
|
"discount_list": notManualDiscount,
|
|
244
245
|
metadata: formatMetaData(item)
|
|
245
246
|
};
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/booking/hooks/useQuotation.tsx
|
|
30
|
+
var useQuotation_exports = {};
|
|
31
|
+
__export(useQuotation_exports, {
|
|
32
|
+
default: () => useQuotation_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(useQuotation_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_utils = require("../utils");
|
|
37
|
+
var import_useEngineContext = __toESM(require("../../../../es/hooks/useEngineContext"));
|
|
38
|
+
var import_utils2 = require("@pisell/utils");
|
|
39
|
+
var import_materials = require("@pisell/materials");
|
|
40
|
+
var formatBundleItemMap = (product) => {
|
|
41
|
+
return product.bundle_group.reduce((pre, cur) => {
|
|
42
|
+
const curObj = {};
|
|
43
|
+
cur.bundle_item.forEach((item) => {
|
|
44
|
+
curObj[item.id] = item;
|
|
45
|
+
});
|
|
46
|
+
return {
|
|
47
|
+
...pre,
|
|
48
|
+
...curObj
|
|
49
|
+
};
|
|
50
|
+
}, {});
|
|
51
|
+
};
|
|
52
|
+
var setNewCartValue = (cartValue, newProducts) => {
|
|
53
|
+
if (!newProducts.length) {
|
|
54
|
+
return {
|
|
55
|
+
isChange: false,
|
|
56
|
+
value: cartValue
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
let isChange = false;
|
|
60
|
+
let isBundleChange = false;
|
|
61
|
+
let isNotFoundBundle = false;
|
|
62
|
+
const notFoundProducts = [];
|
|
63
|
+
const value = cartValue.map((item) => {
|
|
64
|
+
var _a, _b, _c, _d;
|
|
65
|
+
const newProduct = newProducts.find((newItem2) => newItem2.id === item.product_id);
|
|
66
|
+
if (!newProduct) {
|
|
67
|
+
return item;
|
|
68
|
+
}
|
|
69
|
+
let isChangePrice = newProduct.price != item.price;
|
|
70
|
+
const bundleItemMap = formatBundleItemMap(newProduct);
|
|
71
|
+
const newBundle = (((_b = (_a = item._extend) == null ? void 0 : _a.other) == null ? void 0 : _b.bundle) || []).map((bundle) => {
|
|
72
|
+
if (!bundleItemMap[bundle.id]) {
|
|
73
|
+
isNotFoundBundle = true;
|
|
74
|
+
if (!notFoundProducts.some((p) => p._id === bundle._id)) {
|
|
75
|
+
notFoundProducts.push(item);
|
|
76
|
+
}
|
|
77
|
+
return bundle;
|
|
78
|
+
}
|
|
79
|
+
if (bundle.price != bundleItemMap[bundle.id].price) {
|
|
80
|
+
isChangePrice = true;
|
|
81
|
+
isBundleChange = true;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
...bundle,
|
|
85
|
+
base_price: bundleItemMap[bundle.id].base_price,
|
|
86
|
+
price: bundleItemMap[bundle.id].price
|
|
87
|
+
// product_price: bundleItemMap[item.id].product_price,
|
|
88
|
+
};
|
|
89
|
+
});
|
|
90
|
+
if (!isChangePrice) {
|
|
91
|
+
return item;
|
|
92
|
+
} else {
|
|
93
|
+
isChange = true;
|
|
94
|
+
}
|
|
95
|
+
const newItem = {
|
|
96
|
+
...item,
|
|
97
|
+
original_price: newProduct.original_price,
|
|
98
|
+
price: newProduct.price,
|
|
99
|
+
base_price: newProduct.base_price,
|
|
100
|
+
_extend: {
|
|
101
|
+
...item._extend,
|
|
102
|
+
price: newProduct.price,
|
|
103
|
+
// total: newProduct.total,
|
|
104
|
+
bundle_edit: isBundleChange ? 1 : item._extend.bundle_edit,
|
|
105
|
+
other: {
|
|
106
|
+
...item._extend.other,
|
|
107
|
+
option: (_d = (_c = item._extend) == null ? void 0 : _c.other) == null ? void 0 : _d.option,
|
|
108
|
+
bundle: newBundle
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
const total = (0, import_utils.getProductTotalPrice)(newItem);
|
|
113
|
+
newItem._extend.total = total;
|
|
114
|
+
newItem._extend.origin_total = total;
|
|
115
|
+
return newItem;
|
|
116
|
+
});
|
|
117
|
+
return {
|
|
118
|
+
isChange,
|
|
119
|
+
value,
|
|
120
|
+
isNotFoundBundle,
|
|
121
|
+
notFoundProducts
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
var useQuotation = (state, dispatch) => {
|
|
125
|
+
var _a, _b;
|
|
126
|
+
const context = (0, import_useEngineContext.default)();
|
|
127
|
+
const [open, setOpen] = (0, import_react.useState)(false);
|
|
128
|
+
const [products, setProducts] = (0, import_react.useState)([]);
|
|
129
|
+
const cartValueRef = (0, import_react.useRef)(state.service.value || []);
|
|
130
|
+
cartValueRef.current = state.service.value;
|
|
131
|
+
const getCartQuotation = async (params) => {
|
|
132
|
+
if (!cartValueRef.current.length) return;
|
|
133
|
+
const data = await state.apis.getServices({
|
|
134
|
+
skip: 1,
|
|
135
|
+
num: 500,
|
|
136
|
+
extension_type: state.renderType === "eventBooking" ? void 0 : [
|
|
137
|
+
"product_appointment",
|
|
138
|
+
"appointment_ticket",
|
|
139
|
+
"service_product",
|
|
140
|
+
"session_product",
|
|
141
|
+
"session_ticket"
|
|
142
|
+
],
|
|
143
|
+
with: ["category", "resourceRelation"],
|
|
144
|
+
ids: cartValueRef.current.map((item) => item.product_id),
|
|
145
|
+
open_quotation: 1,
|
|
146
|
+
with_schedule: 1,
|
|
147
|
+
with_count: ["bundleGroup", "optionGroup"],
|
|
148
|
+
order_by_string: "sort:desc",
|
|
149
|
+
status: "published",
|
|
150
|
+
schedule_date: params == null ? void 0 : params.schedule_date,
|
|
151
|
+
customer_id: params == null ? void 0 : params.customer_id,
|
|
152
|
+
open_bundle: 1
|
|
153
|
+
});
|
|
154
|
+
return data;
|
|
155
|
+
};
|
|
156
|
+
const currentDate = (0, import_react.useMemo)(() => {
|
|
157
|
+
return state.date.value.format("YYYY-MM-DD");
|
|
158
|
+
}, [state.date.value]);
|
|
159
|
+
const updateCartQuotation = async (params) => {
|
|
160
|
+
const data = await getCartQuotation(params);
|
|
161
|
+
if (!data) return;
|
|
162
|
+
const { isChange, value: newCartValue, isNotFoundBundle, notFoundProducts } = setNewCartValue(cartValueRef.current, data.list);
|
|
163
|
+
if (isNotFoundBundle) {
|
|
164
|
+
setProducts(notFoundProducts);
|
|
165
|
+
setOpen(true);
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
if (!isChange) return;
|
|
169
|
+
dispatch({
|
|
170
|
+
type: "setService",
|
|
171
|
+
payload: {
|
|
172
|
+
value: newCartValue,
|
|
173
|
+
edit: true
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
};
|
|
177
|
+
const isEditClientOrDate = (0, import_react.useMemo)(() => {
|
|
178
|
+
var _a2, _b2;
|
|
179
|
+
return ((_a2 = state == null ? void 0 : state.client) == null ? void 0 : _a2.edit) || ((_b2 = state == null ? void 0 : state.date) == null ? void 0 : _b2.edit);
|
|
180
|
+
}, [state]);
|
|
181
|
+
(0, import_react.useEffect)(() => {
|
|
182
|
+
var _a2, _b2, _c, _d, _e, _f;
|
|
183
|
+
const isQuotation = (_d = (_c = (_b2 = (_a2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _a2.utils) == null ? void 0 : _b2.businessUtils) == null ? void 0 : _c.getAppByModal) == null ? void 0 : _d.call(_c, "quotation");
|
|
184
|
+
if (!isQuotation || !isEditClientOrDate) return;
|
|
185
|
+
updateCartQuotation({
|
|
186
|
+
customer_id: (_f = (_e = state.client) == null ? void 0 : _e.value) == null ? void 0 : _f.id,
|
|
187
|
+
schedule_date: currentDate
|
|
188
|
+
});
|
|
189
|
+
}, [(_b = (_a = state.client) == null ? void 0 : _a.value) == null ? void 0 : _b.id, currentDate, isEditClientOrDate]);
|
|
190
|
+
const dom = (0, import_react.useMemo)(() => {
|
|
191
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
192
|
+
import_materials.PisellModal.Information,
|
|
193
|
+
{
|
|
194
|
+
open,
|
|
195
|
+
platform: "pc",
|
|
196
|
+
title: import_utils2.locales.getText("pisell2.text.quotation.product.change.title"),
|
|
197
|
+
describe: /* @__PURE__ */ import_react.default.createElement("div", null, import_utils2.locales.getText("pisell2.text.quotation.product.change.describe"), products.map((item) => /* @__PURE__ */ import_react.default.createElement("div", null, item == null ? void 0 : item.product_title))),
|
|
198
|
+
okText: import_utils2.locales.getText("pisell2.text.ok"),
|
|
199
|
+
closable: true,
|
|
200
|
+
cancelVisible: false,
|
|
201
|
+
onOk: () => setOpen(false),
|
|
202
|
+
onCancel: () => setOpen(false)
|
|
203
|
+
}
|
|
204
|
+
);
|
|
205
|
+
}, [open, products]);
|
|
206
|
+
return {
|
|
207
|
+
dom
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
var useQuotation_default = useQuotation;
|
|
@@ -107,9 +107,8 @@ var Info = (props) => {
|
|
|
107
107
|
}, [debouncedHandleResize]);
|
|
108
108
|
const customerId = (0, import_react.useMemo)(() => {
|
|
109
109
|
var _a2, _b2;
|
|
110
|
-
if (!isDay) return void 0;
|
|
111
110
|
return ((_b2 = (_a2 = state.client) == null ? void 0 : _a2.value) == null ? void 0 : _b2.id) || 1;
|
|
112
|
-
}, [(_b = (_a = state.client) == null ? void 0 : _a.value) == null ? void 0 : _b.id
|
|
111
|
+
}, [(_b = (_a = state.client) == null ? void 0 : _a.value) == null ? void 0 : _b.id]);
|
|
113
112
|
const setDefaultService = async (list) => {
|
|
114
113
|
if (state.renderType !== "eventBooking") {
|
|
115
114
|
return;
|
|
@@ -175,7 +174,6 @@ var Info = (props) => {
|
|
|
175
174
|
let dayParams = {};
|
|
176
175
|
if (isDay && !(0, import_utils3.isEventBooking)(state)) {
|
|
177
176
|
dayParams.extension_type = ["normal", "product_appointment"];
|
|
178
|
-
dayParams.customer_id = customerId;
|
|
179
177
|
}
|
|
180
178
|
let data = await state.apis.getServices({
|
|
181
179
|
skip: 1,
|
|
@@ -194,6 +192,7 @@ var Info = (props) => {
|
|
|
194
192
|
order_by_string: "sort:desc",
|
|
195
193
|
status: "published",
|
|
196
194
|
schedule_date: params == null ? void 0 : params.schedule_date,
|
|
195
|
+
customer_id: customerId,
|
|
197
196
|
...dayParams
|
|
198
197
|
});
|
|
199
198
|
setLoading(false);
|
|
@@ -78,6 +78,9 @@ var Info = (_, ref) => {
|
|
|
78
78
|
const isDayBookingMode = (0, import_react.useMemo)(() => {
|
|
79
79
|
return (0, import_utils5.isDayBooking)(state);
|
|
80
80
|
}, [state == null ? void 0 : state.renderType]);
|
|
81
|
+
const isDaysBookingMode = (0, import_react.useMemo)(() => {
|
|
82
|
+
return (0, import_utils5.isDaysBooking)(state);
|
|
83
|
+
}, [state == null ? void 0 : state.renderType]);
|
|
81
84
|
const isEventBookingMode = (0, import_react.useMemo)(() => {
|
|
82
85
|
return (0, import_utils5.isEventBooking)(state);
|
|
83
86
|
}, [state == null ? void 0 : state.renderType]);
|
|
@@ -437,7 +440,7 @@ var Info = (_, ref) => {
|
|
|
437
440
|
...sessionValue
|
|
438
441
|
},
|
|
439
442
|
isOS: isSession,
|
|
440
|
-
customer_id:
|
|
443
|
+
customer_id: (_k2 = (_j2 = state.client) == null ? void 0 : _j2.value) == null ? void 0 : _k2.id
|
|
441
444
|
},
|
|
442
445
|
callback: async (e2, extension_type, detail) => {
|
|
443
446
|
var _a3, _b3, _c3, _d3;
|
|
@@ -471,7 +474,7 @@ var Info = (_, ref) => {
|
|
|
471
474
|
cacheItem
|
|
472
475
|
}
|
|
473
476
|
});
|
|
474
|
-
if (
|
|
477
|
+
if (isDaysBookingMode) {
|
|
475
478
|
setTimeout(() => {
|
|
476
479
|
updateMultiDay({
|
|
477
480
|
start_date: values.start_date,
|
|
@@ -40,6 +40,7 @@ var import_index = require("./index.less");
|
|
|
40
40
|
var import_serviceList = __toESM(require("./serviceList"));
|
|
41
41
|
var import_addTimeModal = __toESM(require("./addTimeModal"));
|
|
42
42
|
var import_useClearCart = __toESM(require("../../hooks/useClearCart"));
|
|
43
|
+
var import_useQuotation = __toESM(require("../../hooks/useQuotation"));
|
|
43
44
|
var Service = () => {
|
|
44
45
|
var _a, _b;
|
|
45
46
|
const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
|
|
@@ -72,6 +73,7 @@ var Service = () => {
|
|
|
72
73
|
}, 100);
|
|
73
74
|
};
|
|
74
75
|
const clearCart = (0, import_useClearCart.default)(state, dispatch);
|
|
75
|
-
|
|
76
|
+
const { dom } = (0, import_useQuotation.default)(state, dispatch);
|
|
77
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-wrap" }, clearCart, /* @__PURE__ */ import_react.default.createElement(import_serviceList.default, { onEdit: handleEdit }), !state.isBookingCreatePage ? /* @__PURE__ */ import_react.default.createElement(import_addService.default, { onEdit: handleEdit }) : null), /* @__PURE__ */ import_react.default.createElement(import_editService.default, { ref: detailRef }), showAddTimeModal && /* @__PURE__ */ import_react.default.createElement(import_addTimeModal.default, null), dom);
|
|
76
78
|
};
|
|
77
79
|
var service_default = import_react.default.memo(Service);
|
|
@@ -67,14 +67,14 @@ var concatBookings = (items) => {
|
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
69
|
var createBookingItemsByGroup = (item, isBatchEdit) => {
|
|
70
|
-
var _a;
|
|
70
|
+
var _a, _b;
|
|
71
71
|
const groupId = item._extend.groupId || (0, import_utils.getUniqueId)("bookingGroup_");
|
|
72
72
|
let bookings = [];
|
|
73
73
|
for (let i = 0; i < item._extend.duration; i++) {
|
|
74
74
|
const _extend = { ...item._extend };
|
|
75
75
|
const startDate = _extend.start_date.add(i, "day");
|
|
76
76
|
const endDate = _extend.start_date.add(i + 1, "day");
|
|
77
|
-
const price = ((_a = _extend.multiDayPrices[startDate.format("YYYY-MM-DD")]) == null ? void 0 :
|
|
77
|
+
const price = ((_b = (_a = _extend.multiDayPrices) == null ? void 0 : _a[startDate.format("YYYY-MM-DD")]) == null ? void 0 : _b.total) || item._extend.price;
|
|
78
78
|
const cacheItem = {
|
|
79
79
|
...item,
|
|
80
80
|
// 编辑时组商品需要清空booking_id 否则会重复
|
|
@@ -27,7 +27,7 @@ var import_utils = require("../utils");
|
|
|
27
27
|
var useSelectPet = (state) => {
|
|
28
28
|
var _a, _b;
|
|
29
29
|
const isDaysBookingBol = (0, import_react.useMemo)(() => {
|
|
30
|
-
return (0, import_utils.
|
|
30
|
+
return (0, import_utils.isDayBooking)(state);
|
|
31
31
|
}, [state == null ? void 0 : state.renderType]);
|
|
32
32
|
const petLists = (0, import_react.useMemo)(() => {
|
|
33
33
|
var _a2, _b2, _c, _d, _e, _f;
|
|
@@ -36,9 +36,11 @@ var useSelectPet = (state) => {
|
|
|
36
36
|
}, [(_a = state == null ? void 0 : state.pet) == null ? void 0 : _a.value]);
|
|
37
37
|
const holderLists = (0, import_react.useMemo)(() => {
|
|
38
38
|
var _a2;
|
|
39
|
+
const _lists = (0, import_utils.formatHolderLists)(petLists);
|
|
40
|
+
return _lists;
|
|
39
41
|
if (isDaysBookingBol) {
|
|
40
|
-
const
|
|
41
|
-
return
|
|
42
|
+
const _lists2 = (0, import_utils.formatHolderLists)(petLists);
|
|
43
|
+
return _lists2;
|
|
42
44
|
}
|
|
43
45
|
return ((_a2 = state == null ? void 0 : state.pet) == null ? void 0 : _a2.holders) || [];
|
|
44
46
|
}, [petLists, isDaysBookingBol, (_b = state == null ? void 0 : state.pet) == null ? void 0 : _b.holders]);
|
|
@@ -38,6 +38,7 @@ var import_addService = __toESM(require("../service/addService"));
|
|
|
38
38
|
var import_editService = __toESM(require("../service/editService"));
|
|
39
39
|
var import_model = require("../model");
|
|
40
40
|
var import_Lists = __toESM(require("./Lists"));
|
|
41
|
+
var import_useQuotation = __toESM(require("../../hooks/useQuotation"));
|
|
41
42
|
var Service2Context = (0, import_react.createContext)({});
|
|
42
43
|
var Service2Cart = ({
|
|
43
44
|
hideAdd,
|
|
@@ -60,13 +61,14 @@ var Service2Cart = ({
|
|
|
60
61
|
(_b = (_a = detailRef.current) == null ? void 0 : _a.init) == null ? void 0 : _b.call(_a, cacheItem);
|
|
61
62
|
}, 100);
|
|
62
63
|
};
|
|
64
|
+
const { dom } = (0, import_useQuotation.default)(state, dispatch);
|
|
63
65
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-wrap" }, /* @__PURE__ */ import_react.default.createElement(
|
|
64
66
|
import_Lists.default,
|
|
65
67
|
{
|
|
66
68
|
onEdit: handleEdit,
|
|
67
69
|
onChange: (e, type) => dispatchService(type || "setService", e)
|
|
68
70
|
}
|
|
69
|
-
), !hideAdd && /* @__PURE__ */ import_react.default.createElement(import_addService.default, { onEdit: handleEdit })), !hideEdit && /* @__PURE__ */ import_react.default.createElement(import_editService.default, { ref: detailRef }));
|
|
71
|
+
), !hideAdd && /* @__PURE__ */ import_react.default.createElement(import_addService.default, { onEdit: handleEdit })), !hideEdit && /* @__PURE__ */ import_react.default.createElement(import_editService.default, { ref: detailRef }), dom);
|
|
70
72
|
};
|
|
71
73
|
// Annotate the CommonJS export names for ESM import in node:
|
|
72
74
|
0 && (module.exports = {
|