@pisell/private-materials 3.4.3 → 3.4.4
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 +13 -13
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +4 -4
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +7 -7
- package/es/components/Sales/Cart/index.js +5 -1
- package/es/components/Sales/Cart/utils.d.ts +40 -0
- package/es/components/Sales/Cart/utils.js +187 -0
- package/es/components/Sales/Checkout/index.d.ts +4 -0
- package/es/components/Sales/Checkout/index.js +52 -8
- package/es/components/Sales/Checkout/serve.d.ts +13 -0
- package/es/components/Sales/Checkout/serve.js +16 -2
- package/es/components/Sales/Checkout/utils.d.ts +1 -0
- package/es/components/Sales/Checkout/utils.js +9 -2
- package/es/components/Sales/Customer/index.d.ts +25 -0
- package/es/components/Sales/Event/Detail.d.ts +1 -0
- package/es/components/Sales/Event/Detail.js +45 -11
- package/es/components/Sales/Event/serve.d.ts +10 -0
- package/es/components/Sales/Event/serve.js +25 -0
- package/es/components/Sales/Summary/index.d.ts +10 -0
- package/es/components/Sales/Summary/index.js +17 -2
- package/es/components/Sales/Summary/serve.d.ts +1 -0
- package/es/components/Sales/Summary/serve.js +6 -0
- package/es/components/Sales/Summary/utils.d.ts +16 -1
- package/es/components/Sales/Summary/utils.js +43 -1
- package/es/components/appointmentBooking/components/Content/index.js +15 -1
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
- package/es/components/appointmentBooking/components/Deposit/index.js +27 -7
- package/es/components/appointmentBooking/components/Form/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/Form/utils.d.ts +8 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +25 -20
- package/es/components/appointmentBooking/deposit/index.js +4 -2
- package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
- package/es/components/booking/components/browserSelect/index.js +1 -1
- package/es/components/booking/components/footer/index.js +32 -24
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/info/service/Lists.d.ts +2 -0
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/like/index.js +1 -1
- package/es/components/booking/info/utils.js +1 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/index.d.ts +4 -0
- package/es/components/booking/info2/utils.d.ts +4 -0
- package/es/components/booking/info2/utilsByBooking.js +9 -3
- package/es/components/booking/materiels/startTime/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/index.js +11 -11
- package/es/components/booking/notes/model.js +5 -5
- package/es/components/booking/payments/model.js +5 -5
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +5 -5
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +29 -17
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +17 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +10 -6
- package/es/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
- package/es/components/eventBooking/components/bookingDetailModal/index.js +6 -3
- package/es/components/eventBooking/locales.d.ts +24 -0
- package/es/components/eventBooking/locales.js +27 -3
- package/es/components/listComponent/index.js +5 -5
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +18 -3
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +7 -2
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +8 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +18 -3
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +113 -0
- package/es/components/pay/toC/locales.d.ts +3 -0
- package/es/components/pay/toC/locales.js +3 -0
- package/es/components/pay/toC/utils.d.ts +57 -0
- package/es/components/productExtension/card/index.js +3 -3
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
- package/es/components/productExtension/fields/Forms/index.js +12 -12
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
- package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
- package/es/components/productExtension/server.js +2 -2
- package/es/components/ruleSetting/ruleBorder/index.js +1 -1
- package/es/components/schedules/calendar/index.js +4 -4
- package/es/components/schedules/calendar/serve.js +2 -2
- package/es/components/schedules/components/CurrentDay/index.js +5 -5
- package/es/components/schedules/components/CurrentDay/serve.js +2 -2
- package/es/components/schedules/components/DropdownSort/index.js +1 -1
- package/es/components/schedules/components/ResourceList/index.js +1 -1
- package/es/components/schedules/components/Search/index.js +5 -5
- package/es/components/schedules/model.js +5 -5
- package/es/components/schedules/openHours/index.js +1 -1
- package/es/components/schedules/openHours/serve.js +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
- package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
- package/es/components/schedules/products/serve.js +2 -2
- package/es/components/schedules/products/utils.js +5 -5
- package/es/components/schedules/resources/detail/detailContent.js +2 -2
- package/es/components/schedules/resources/detail/index.js +10 -10
- package/es/components/schedules/resources/list/index.js +2 -2
- package/es/components/schedules/resources/relationProduct/index.js +1 -1
- package/es/components/schedules/resources/serve.js +2 -2
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
- package/es/components/schedules/utils.d.ts +1 -1
- package/es/components/schedules/utils.js +4 -4
- package/es/components/selectModal/index.js +2 -2
- package/es/components/shoppingCart/components/Cart/Product.d.ts +3 -0
- package/es/components/ticketBooking/components/menuBar/index.js +38 -2
- package/es/components/ticketBooking/components/menuBar/index.less +8 -0
- package/es/components/ticketBooking/locales.d.ts +174 -0
- package/es/components/ticketBooking/locales.js +6 -3
- package/es/hooks/useComponents.js +1 -1
- package/es/utils/index.d.ts +1 -1
- package/lib/components/Sales/Cart/index.js +1 -0
- package/lib/components/Sales/Cart/utils.d.ts +40 -0
- package/lib/components/Sales/Cart/utils.js +129 -0
- package/lib/components/Sales/Checkout/index.d.ts +4 -0
- package/lib/components/Sales/Checkout/index.js +39 -7
- package/lib/components/Sales/Checkout/serve.d.ts +13 -0
- package/lib/components/Sales/Checkout/serve.js +7 -2
- package/lib/components/Sales/Checkout/utils.d.ts +1 -0
- package/lib/components/Sales/Checkout/utils.js +5 -2
- package/lib/components/Sales/Customer/index.d.ts +25 -0
- package/lib/components/Sales/Event/Detail.d.ts +1 -0
- package/lib/components/Sales/Event/Detail.js +37 -12
- package/lib/components/Sales/Event/serve.d.ts +10 -0
- package/lib/components/Sales/Event/serve.js +7 -0
- package/lib/components/Sales/Summary/index.d.ts +10 -0
- package/lib/components/Sales/Summary/index.js +7 -1
- package/lib/components/Sales/Summary/serve.d.ts +1 -0
- package/lib/components/Sales/Summary/serve.js +32 -0
- package/lib/components/Sales/Summary/utils.d.ts +16 -1
- package/lib/components/Sales/Summary/utils.js +30 -1
- package/lib/components/appointmentBooking/components/Content/index.js +6 -1
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
- package/lib/components/appointmentBooking/components/Deposit/index.js +36 -4
- package/lib/components/appointmentBooking/components/Form/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/Form/utils.d.ts +8 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +8 -4
- package/lib/components/appointmentBooking/deposit/index.js +4 -2
- package/lib/components/booking/components/footer/index.js +24 -11
- package/lib/components/booking/info/service/Lists.d.ts +2 -0
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/utils.js +3 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/index.d.ts +4 -0
- package/lib/components/booking/info2/utils.d.ts +4 -0
- package/lib/components/booking/info2/utilsByBooking.js +4 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +5 -5
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +16 -4
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +55 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +8 -5
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
- package/lib/components/eventBooking/components/bookingDetailModal/index.js +4 -3
- package/lib/components/eventBooking/locales.d.ts +24 -0
- package/lib/components/eventBooking/locales.js +27 -3
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +13 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +2 -2
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +8 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +13 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +113 -0
- package/lib/components/pay/toC/locales.d.ts +3 -0
- package/lib/components/pay/toC/locales.js +3 -0
- package/lib/components/pay/toC/utils.d.ts +57 -0
- package/lib/components/schedules/utils.d.ts +1 -1
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +3 -0
- package/lib/components/ticketBooking/components/menuBar/index.js +42 -2
- package/lib/components/ticketBooking/components/menuBar/index.less +8 -0
- package/lib/components/ticketBooking/locales.d.ts +174 -0
- package/lib/components/ticketBooking/locales.js +6 -3
- package/lib/utils/index.d.ts +1 -1
- package/package.json +4 -4
|
@@ -190,6 +190,10 @@ var Layout = () => {
|
|
|
190
190
|
if (isDateSelectedFirst && key === "select-date") return false;
|
|
191
191
|
return key !== "confirm-information";
|
|
192
192
|
}, [isDateSelectedFirst, (_e = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _e.key]);
|
|
193
|
+
const depositProtocolRequest = (id) => {
|
|
194
|
+
var _a2;
|
|
195
|
+
return (_a2 = appointmentBooking == null ? void 0 : appointmentBooking.getProtocol) == null ? void 0 : _a2.call(appointmentBooking, id);
|
|
196
|
+
};
|
|
193
197
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, !isRetailTemplate ? /* @__PURE__ */ import_react.default.createElement(import_Header.default, null) : null, /* @__PURE__ */ import_react.default.createElement(
|
|
194
198
|
"div",
|
|
195
199
|
{
|
|
@@ -214,7 +218,8 @@ var Layout = () => {
|
|
|
214
218
|
onConfirm: () => closePolicy(true),
|
|
215
219
|
item: policyParams == null ? void 0 : policyParams.content,
|
|
216
220
|
onChange: () => setLoading(false),
|
|
217
|
-
isHideCheckout: false
|
|
221
|
+
isHideCheckout: false,
|
|
222
|
+
depositProtocolRequest
|
|
218
223
|
}
|
|
219
224
|
) : null);
|
|
220
225
|
};
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import './index.less';
|
|
2
|
+
export declare const DepositContent: (props: {
|
|
3
|
+
isAgreeDepositPolicy: boolean;
|
|
4
|
+
setIsAgreeDepositPolicy: (value: boolean) => void;
|
|
5
|
+
deposit: any;
|
|
6
|
+
depositProtocolRequest?: any;
|
|
7
|
+
}) => JSX.Element;
|
|
2
8
|
declare const Deposit: () => JSX.Element;
|
|
3
9
|
export default Deposit;
|
|
@@ -29,6 +29,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
29
29
|
// src/components/appointmentBooking/components/Deposit/index.tsx
|
|
30
30
|
var Deposit_exports = {};
|
|
31
31
|
__export(Deposit_exports, {
|
|
32
|
+
DepositContent: () => DepositContent,
|
|
32
33
|
default: () => Deposit_default
|
|
33
34
|
});
|
|
34
35
|
module.exports = __toCommonJS(Deposit_exports);
|
|
@@ -38,9 +39,13 @@ var import_deposit = __toESM(require("../../deposit"));
|
|
|
38
39
|
var import_context = require("../../context");
|
|
39
40
|
var import_utils = require("@pisell/utils");
|
|
40
41
|
var import_index = require("./index.less");
|
|
41
|
-
var
|
|
42
|
-
const {
|
|
43
|
-
|
|
42
|
+
var DepositContent = (props) => {
|
|
43
|
+
const {
|
|
44
|
+
isAgreeDepositPolicy,
|
|
45
|
+
setIsAgreeDepositPolicy,
|
|
46
|
+
deposit,
|
|
47
|
+
depositProtocolRequest
|
|
48
|
+
} = props;
|
|
44
49
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-deposit-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-deposit-top" }, /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.appointment.deposit")), /* @__PURE__ */ import_react.default.createElement(
|
|
45
50
|
import_materials.PisellText.Amount,
|
|
46
51
|
{
|
|
@@ -54,8 +59,35 @@ var Deposit = () => {
|
|
|
54
59
|
total: deposit == null ? void 0 : deposit.total,
|
|
55
60
|
protocols: deposit == null ? void 0 : deposit.protocols,
|
|
56
61
|
isAgreePolicy: isAgreeDepositPolicy,
|
|
57
|
-
onChange: (value) => setIsAgreeDepositPolicy(value)
|
|
62
|
+
onChange: (value) => setIsAgreeDepositPolicy(value),
|
|
63
|
+
depositProtocolRequest
|
|
58
64
|
}
|
|
59
65
|
));
|
|
60
66
|
};
|
|
67
|
+
var Deposit = () => {
|
|
68
|
+
const {
|
|
69
|
+
setIsAgreeDepositPolicy,
|
|
70
|
+
isAgreeDepositPolicy,
|
|
71
|
+
summary,
|
|
72
|
+
appointmentBooking
|
|
73
|
+
} = (0, import_context.useAppointmentBookingContext)();
|
|
74
|
+
const { deposit } = summary;
|
|
75
|
+
const depositProtocolRequest = (id) => {
|
|
76
|
+
var _a;
|
|
77
|
+
return (_a = appointmentBooking == null ? void 0 : appointmentBooking.getProtocol) == null ? void 0 : _a.call(appointmentBooking, id);
|
|
78
|
+
};
|
|
79
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
80
|
+
DepositContent,
|
|
81
|
+
{
|
|
82
|
+
isAgreeDepositPolicy: !!isAgreeDepositPolicy,
|
|
83
|
+
setIsAgreeDepositPolicy,
|
|
84
|
+
deposit,
|
|
85
|
+
depositProtocolRequest
|
|
86
|
+
}
|
|
87
|
+
);
|
|
88
|
+
};
|
|
61
89
|
var Deposit_default = Deposit;
|
|
90
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
91
|
+
0 && (module.exports = {
|
|
92
|
+
DepositContent
|
|
93
|
+
});
|
|
@@ -36,7 +36,6 @@ var import_react = __toESM(require("react"));
|
|
|
36
36
|
var import_antd = require("antd");
|
|
37
37
|
var import_materials = require("@pisell/materials");
|
|
38
38
|
var import_utils = require("@pisell/utils");
|
|
39
|
-
var import_context = require("../../../context");
|
|
40
39
|
var import_index = require("./index.less");
|
|
41
40
|
var DepositModal = (props) => {
|
|
42
41
|
const {
|
|
@@ -45,9 +44,10 @@ var DepositModal = (props) => {
|
|
|
45
44
|
item,
|
|
46
45
|
onChange,
|
|
47
46
|
onConfirm,
|
|
48
|
-
isHideCheckout = true
|
|
47
|
+
isHideCheckout = true,
|
|
48
|
+
depositProtocolRequest
|
|
49
|
+
// 定金协议请求
|
|
49
50
|
} = props;
|
|
50
|
-
const { appointmentBooking } = (0, import_context.useAppointmentBookingContext)();
|
|
51
51
|
const [policy, setPolicy] = (0, import_react.useState)(null);
|
|
52
52
|
const [loading, setLoading] = (0, import_react.useState)(false);
|
|
53
53
|
const [disabled, setDisabled] = (0, import_react.useState)(false);
|
|
@@ -55,9 +55,13 @@ var DepositModal = (props) => {
|
|
|
55
55
|
setDisabled(!isHideCheckout);
|
|
56
56
|
}, [isHideCheckout]);
|
|
57
57
|
const getPolicy = async (id) => {
|
|
58
|
+
if (!depositProtocolRequest) {
|
|
59
|
+
console.error("depositProtocolRequest is not defined");
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
58
62
|
setLoading(true);
|
|
59
63
|
try {
|
|
60
|
-
const { data } = await
|
|
64
|
+
const { data } = await (depositProtocolRequest == null ? void 0 : depositProtocolRequest(id));
|
|
61
65
|
setPolicy(data);
|
|
62
66
|
onChange && onChange(data);
|
|
63
67
|
} catch (error) {
|
|
@@ -48,7 +48,8 @@ var Deposit = (props) => {
|
|
|
48
48
|
title,
|
|
49
49
|
isAgreePolicy = true,
|
|
50
50
|
isShowTitle = true,
|
|
51
|
-
onChange
|
|
51
|
+
onChange,
|
|
52
|
+
depositProtocolRequest
|
|
52
53
|
} = props;
|
|
53
54
|
const context = (0, import_useEngineContext.default)();
|
|
54
55
|
const [visible, setVisible] = (0, import_react.useState)(false);
|
|
@@ -102,7 +103,8 @@ var Deposit = (props) => {
|
|
|
102
103
|
{
|
|
103
104
|
open: visible,
|
|
104
105
|
onCancel: () => setVisible(false),
|
|
105
|
-
item: policyItem
|
|
106
|
+
item: policyItem,
|
|
107
|
+
depositProtocolRequest
|
|
106
108
|
}
|
|
107
109
|
));
|
|
108
110
|
};
|
|
@@ -54,7 +54,7 @@ var import_useIsBooking4Shop = require("../../hooks/useIsBooking4Shop");
|
|
|
54
54
|
var import_utils4 = require("@pisell/utils");
|
|
55
55
|
var import_dayjs = __toESM(require("dayjs"));
|
|
56
56
|
var Footer = (props) => {
|
|
57
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
57
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
58
58
|
const { state, buttons, dispatch, source } = props;
|
|
59
59
|
const [showDetail, setShowDetail] = (0, import_react.useState)(false);
|
|
60
60
|
const [loading, setLoading] = (0, import_react.useState)(false);
|
|
@@ -359,6 +359,12 @@ var Footer = (props) => {
|
|
|
359
359
|
}
|
|
360
360
|
});
|
|
361
361
|
};
|
|
362
|
+
const paymentRefundedStatus = (0, import_react.useMemo)(() => {
|
|
363
|
+
var _a2;
|
|
364
|
+
return ["partially_refunded", "refunded"].includes(
|
|
365
|
+
(_a2 = state == null ? void 0 : state.bookingDetail) == null ? void 0 : _a2.payment_status
|
|
366
|
+
);
|
|
367
|
+
}, [state == null ? void 0 : state.bookingDetail]);
|
|
362
368
|
const checkoutButton = (0, import_react.useMemo)(() => {
|
|
363
369
|
let buttonType = "primary";
|
|
364
370
|
if (transaction_habit_selection.type === "service_now_pay_later") {
|
|
@@ -608,7 +614,7 @@ var Footer = (props) => {
|
|
|
608
614
|
}
|
|
609
615
|
}, [state.bookingDetail, total.notPaidAmount]);
|
|
610
616
|
const _buttons = (0, import_react.useMemo)(() => {
|
|
611
|
-
if (state.appointment_status === "cancelled") {
|
|
617
|
+
if (state.appointment_status === "cancelled" || paymentRefundedStatus) {
|
|
612
618
|
return [buttonMap.rebook];
|
|
613
619
|
}
|
|
614
620
|
if (source === "addons") {
|
|
@@ -674,6 +680,7 @@ var Footer = (props) => {
|
|
|
674
680
|
isShowClearAll
|
|
675
681
|
]);
|
|
676
682
|
const moreButton = (0, import_react.useMemo)(() => {
|
|
683
|
+
var _a2, _b2;
|
|
677
684
|
let arr = [];
|
|
678
685
|
if (!state.bookingId) {
|
|
679
686
|
return [];
|
|
@@ -684,8 +691,11 @@ var Footer = (props) => {
|
|
|
684
691
|
if (state.renderType === "eventBooking") {
|
|
685
692
|
return [];
|
|
686
693
|
}
|
|
694
|
+
if (((_a2 = state == null ? void 0 : state.bookingDetail) == null ? void 0 : _a2.payment_status) === "refunded") {
|
|
695
|
+
return [];
|
|
696
|
+
}
|
|
687
697
|
if (_buttons.length !== 0) {
|
|
688
|
-
if (state.bookingId && isShowPaymentLink) {
|
|
698
|
+
if (state.bookingId && isShowPaymentLink && ((_b2 = state == null ? void 0 : state.bookingDetail) == null ? void 0 : _b2.payment_status) !== "partially_refunded") {
|
|
689
699
|
arr.push(actionMap.paymentLink);
|
|
690
700
|
}
|
|
691
701
|
}
|
|
@@ -708,7 +718,14 @@ var Footer = (props) => {
|
|
|
708
718
|
arr.push(actionMap.rebook);
|
|
709
719
|
}
|
|
710
720
|
return arr;
|
|
711
|
-
}, [
|
|
721
|
+
}, [
|
|
722
|
+
state,
|
|
723
|
+
total,
|
|
724
|
+
isShowPaymentLink,
|
|
725
|
+
source,
|
|
726
|
+
_buttons.length,
|
|
727
|
+
(_j = state == null ? void 0 : state.bookingDetail) == null ? void 0 : _j.payment_status
|
|
728
|
+
]);
|
|
712
729
|
const isOnlyDeposit = (0, import_react.useMemo)(() => {
|
|
713
730
|
var _a2, _b2, _c2, _d2;
|
|
714
731
|
if (((_a2 = state == null ? void 0 : state.bookingDetail) == null ? void 0 : _a2.deposit_payment_time) && ((_d2 = (_c2 = (_b2 = state == null ? void 0 : state.bookingDetail) == null ? void 0 : _b2.payment_types) == null ? void 0 : _c2.every) == null ? void 0 : _d2.call(
|
|
@@ -799,7 +816,7 @@ var Footer = (props) => {
|
|
|
799
816
|
}, [
|
|
800
817
|
state.bookingId,
|
|
801
818
|
state.bookingDetail,
|
|
802
|
-
(
|
|
819
|
+
(_k = state.addons) == null ? void 0 : _k.load,
|
|
803
820
|
state.renderType
|
|
804
821
|
]);
|
|
805
822
|
const menuChange = (e) => {
|
|
@@ -882,7 +899,7 @@ var Footer = (props) => {
|
|
|
882
899
|
label: import_utils.locales.getText("pisell1.text.rounding")
|
|
883
900
|
}
|
|
884
901
|
];
|
|
885
|
-
}, [total, (
|
|
902
|
+
}, [total, (_l = state.bookingDetail) == null ? void 0 : _l.surcharge, state, state.bookingId]);
|
|
886
903
|
const orderTotalList = (0, import_react.useMemo)(() => {
|
|
887
904
|
return [
|
|
888
905
|
// 订单已付金额
|
|
@@ -916,11 +933,7 @@ var Footer = (props) => {
|
|
|
916
933
|
label: import_utils.locales.getText("pisell2.text.refunded-amount")
|
|
917
934
|
}
|
|
918
935
|
];
|
|
919
|
-
}, [total, (
|
|
920
|
-
const paymentRefundedStatus = (0, import_react.useMemo)(() => {
|
|
921
|
-
var _a2;
|
|
922
|
-
return ["partially_refunded", "refunded"].includes((_a2 = state == null ? void 0 : state.bookingDetail) == null ? void 0 : _a2.payment_status);
|
|
923
|
-
}, [state == null ? void 0 : state.bookingDetail]);
|
|
936
|
+
}, [total, (_m = state.bookingDetail) == null ? void 0 : _m.surcharge, state, state.bookingId]);
|
|
924
937
|
return /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { title: false, round: true, loading: showFooter, active: true }, (hasGoodPassApp || hasDiscountCardApp) && ["addons", "info"].includes(source) && !paymentRefundedStatus ? /* @__PURE__ */ import_react.default.createElement(import_voucher.default, { state, dispatch, source }) : null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-footer-total" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left-total" }, totalText), /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left-arrears" }, arrearsText)), /* @__PURE__ */ import_react.default.createElement(
|
|
925
938
|
"span",
|
|
926
939
|
{
|
|
@@ -69,7 +69,10 @@ var getResourceTimeIsUsable = (item, cacheItem, resourceItem) => {
|
|
|
69
69
|
let timeEndDate = (0, import_dayjs.default)(time.end_date + " " + time.end_time).add(1, "second");
|
|
70
70
|
let totalCount = getUseableEventCount(time.event_list, resourceItem.capacity);
|
|
71
71
|
const currentCount = getSumCapacity({ cacheItem });
|
|
72
|
-
|
|
72
|
+
let eventList = time.event_list || [];
|
|
73
|
+
if (cacheItem == null ? void 0 : cacheItem.booking_id) {
|
|
74
|
+
eventList = eventList.filter((event) => event.id !== (cacheItem == null ? void 0 : cacheItem.booking_id));
|
|
75
|
+
}
|
|
73
76
|
let endDate = null;
|
|
74
77
|
let isCalcCount = true;
|
|
75
78
|
if (isFlexible) {
|
|
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
|
|
|
165
165
|
export declare const getDuration: (duration: number | {
|
|
166
166
|
type: string;
|
|
167
167
|
value: number;
|
|
168
|
-
}) => number |
|
|
168
|
+
}) => number | {
|
|
169
169
|
type: string;
|
|
170
170
|
value: number;
|
|
171
|
-
};
|
|
171
|
+
} | "flexible";
|
|
172
172
|
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
|
173
173
|
export declare const getIsEdit: (state: any) => boolean;
|
|
174
174
|
export {};
|
|
@@ -8,7 +8,7 @@ import { PosProps } from './const';
|
|
|
8
8
|
*/
|
|
9
9
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
|
10
10
|
className?: string | undefined;
|
|
11
|
-
onChange?: ((status: "success" | "page" | "
|
|
11
|
+
onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
|
12
12
|
[keys: string]: unknown;
|
|
13
13
|
} | undefined, other?: any) => void) | undefined;
|
|
14
14
|
onClose: () => void;
|
|
@@ -10,7 +10,7 @@ import './device.less';
|
|
|
10
10
|
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
|
|
11
11
|
api: PayProps['api'];
|
|
12
12
|
className?: string | undefined;
|
|
13
|
-
onChange?: ((status: "success" | "page" | "
|
|
13
|
+
onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
|
14
14
|
[keys: string]: unknown;
|
|
15
15
|
} | undefined, other?: any) => void) | undefined;
|
|
16
16
|
onClose: () => void;
|
|
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
|
|
|
15
15
|
readonly numRef: React.MutableRefObject<string | number | undefined>;
|
|
16
16
|
readonly orderIdRef: React.MutableRefObject<string | number>;
|
|
17
17
|
readonly modeRef: React.MutableRefObject<ModeEnum>;
|
|
18
|
-
readonly statusRef: React.MutableRefObject<"success" | "
|
|
18
|
+
readonly statusRef: React.MutableRefObject<"success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question">;
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
|
22
|
-
readonly eftposRef: React.MutableRefObject<"
|
|
22
|
+
readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe">;
|
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
|
25
25
|
};
|
|
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
|
|
|
174
174
|
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
|
175
175
|
type: EActionTypes;
|
|
176
176
|
payload: {
|
|
177
|
-
status: "success" | "
|
|
177
|
+
status: "success" | "warn" | "loading" | "fail" | "question";
|
|
178
178
|
};
|
|
179
179
|
};
|
|
180
180
|
/**
|
|
@@ -295,20 +295,20 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
295
295
|
name?: string | undefined;
|
|
296
296
|
symbol?: string | undefined;
|
|
297
297
|
amount?: string | number | undefined;
|
|
298
|
-
mode?: "
|
|
298
|
+
mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
|
|
299
299
|
order_id?: string | number | undefined;
|
|
300
|
-
eftpos?: "
|
|
300
|
+
eftpos?: "payo" | "tyro" | "windcave" | "stripe" | undefined;
|
|
301
301
|
action?: "amount" | "pay" | "deviceList" | undefined;
|
|
302
302
|
key?: number | undefined;
|
|
303
303
|
step?: number | undefined;
|
|
304
304
|
title?: string | undefined;
|
|
305
305
|
subTitle?: string | undefined;
|
|
306
|
-
type?: "
|
|
306
|
+
type?: "step" | "unset" | undefined;
|
|
307
307
|
render?: boolean | undefined;
|
|
308
308
|
net?: boolean | undefined;
|
|
309
309
|
component?: string | undefined;
|
|
310
310
|
form?: string | undefined;
|
|
311
|
-
status?: "success" | "
|
|
311
|
+
status?: "success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
|
312
312
|
warn?: string | undefined;
|
|
313
313
|
steps?: {
|
|
314
314
|
/** 用于重置当前步骤 */
|
|
@@ -43,6 +43,7 @@ var import_serve = require("../../../../../Sales/Event/serve");
|
|
|
43
43
|
var import_ahooks = require("ahooks");
|
|
44
44
|
var import_useEngineContext = __toESM(require("../../../../../../hooks/useEngineContext"));
|
|
45
45
|
var import_index = require("./index.less");
|
|
46
|
+
var import_utils3 = require("../../../../../appointmentBooking/utils");
|
|
46
47
|
var ContinueButton = () => {
|
|
47
48
|
var _a, _b;
|
|
48
49
|
const { data } = (0, import_Sales.useSales)();
|
|
@@ -53,9 +54,11 @@ var ContinueButton = () => {
|
|
|
53
54
|
onCheckout,
|
|
54
55
|
createBooking,
|
|
55
56
|
onCheckBeforeBooking,
|
|
56
|
-
checkBeforeBooking
|
|
57
|
+
checkBeforeBooking,
|
|
58
|
+
freePay
|
|
57
59
|
} = (0, import_Sales.useCheckout)();
|
|
58
60
|
const { openLoginModal, isLogin } = (0, import_Sales.useCustomer)();
|
|
61
|
+
const { deposit, isAgreeDepositPolicy } = (0, import_Sales.useSummary)();
|
|
59
62
|
const [openCheckout, setOpenCheckout] = (0, import_react.useState)(false);
|
|
60
63
|
const [checkedNumber, setCheckedNumber] = (0, import_react.useState)(0);
|
|
61
64
|
const [openEmptyHolder, setOpenEmptyHolder] = (0, import_react.useState)(false);
|
|
@@ -231,12 +234,16 @@ var ContinueButton = () => {
|
|
|
231
234
|
handleNextStep();
|
|
232
235
|
};
|
|
233
236
|
const handleContinue = async () => {
|
|
234
|
-
var _a2, _b2;
|
|
237
|
+
var _a2, _b2, _c;
|
|
235
238
|
if (isLastStep) {
|
|
236
239
|
const value = (0, import_utils2.formatValues)({
|
|
237
240
|
state: data,
|
|
238
241
|
platform: (_b2 = (_a2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _a2.constants) == null ? void 0 : _b2.platform
|
|
239
242
|
});
|
|
243
|
+
if ((deposit == null ? void 0 : deposit.hasDeposit) && ((_c = deposit == null ? void 0 : deposit.protocols) == null ? void 0 : _c.length) > 0 && !isAgreeDepositPolicy) {
|
|
244
|
+
(0, import_utils3.Toast)(import_utils.locales.getText("pisell2.appointment.deposit.agree.policy"));
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
240
247
|
const checkRes = await onCheckBeforeBooking(value);
|
|
241
248
|
if ((checkRes == null ? void 0 : checkRes.result) === false) {
|
|
242
249
|
setCheckedNumber(checkRes == null ? void 0 : checkRes.num);
|
|
@@ -272,8 +279,13 @@ var ContinueButton = () => {
|
|
|
272
279
|
}, [currentStepData == null ? void 0 : currentStepData.key]);
|
|
273
280
|
const confirmLoading = (0, import_react.useMemo)(() => {
|
|
274
281
|
if (!isLastStep) return false;
|
|
275
|
-
return (createBooking == null ? void 0 : createBooking.loading) || (checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading);
|
|
276
|
-
}, [
|
|
282
|
+
return (createBooking == null ? void 0 : createBooking.loading) || (checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading) || (freePay == null ? void 0 : freePay.loading);
|
|
283
|
+
}, [
|
|
284
|
+
isLastStep,
|
|
285
|
+
createBooking == null ? void 0 : createBooking.loading,
|
|
286
|
+
checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading,
|
|
287
|
+
freePay == null ? void 0 : freePay.loading
|
|
288
|
+
]);
|
|
277
289
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
278
290
|
import_materials.Button,
|
|
279
291
|
{
|
|
@@ -0,0 +1,55 @@
|
|
|
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/eventBooking/components/Provider/Cart/Deposit/index.tsx
|
|
30
|
+
var Deposit_exports = {};
|
|
31
|
+
__export(Deposit_exports, {
|
|
32
|
+
default: () => Deposit_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Deposit_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_Sales = require("../../../../../Sales");
|
|
37
|
+
var import_Deposit = require("../../../../../appointmentBooking/components/Deposit");
|
|
38
|
+
var Deposit = () => {
|
|
39
|
+
const {
|
|
40
|
+
deposit,
|
|
41
|
+
isAgreeDepositPolicy,
|
|
42
|
+
setIsAgreeDepositPolicy,
|
|
43
|
+
getDepositProtocol
|
|
44
|
+
} = (0, import_Sales.useSummary)();
|
|
45
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
46
|
+
import_Deposit.DepositContent,
|
|
47
|
+
{
|
|
48
|
+
isAgreeDepositPolicy: !!isAgreeDepositPolicy,
|
|
49
|
+
setIsAgreeDepositPolicy,
|
|
50
|
+
deposit,
|
|
51
|
+
depositProtocolRequest: getDepositProtocol
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
};
|
|
55
|
+
var Deposit_default = Deposit;
|
|
@@ -40,8 +40,9 @@ var import_useEngineContext = __toESM(require("../../../../../../hooks/useEngine
|
|
|
40
40
|
var import_index = require("./index.less");
|
|
41
41
|
var import_classnames = __toESM(require("classnames"));
|
|
42
42
|
var Total = ({ className, isFooter }) => {
|
|
43
|
-
var _a, _b, _c, _d, _e, _f;
|
|
44
|
-
const {
|
|
43
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
44
|
+
const { cartData } = (0, import_Sales.useCart)();
|
|
45
|
+
const { taxTitle, totalTaxFee, isPriceIncludeTax, total, deposit } = (0, import_Sales.useSummary)();
|
|
45
46
|
const context = (0, import_useEngineContext.default)();
|
|
46
47
|
console.log(
|
|
47
48
|
taxTitle,
|
|
@@ -49,8 +50,10 @@ var Total = ({ className, isFooter }) => {
|
|
|
49
50
|
totalTaxFee,
|
|
50
51
|
total,
|
|
51
52
|
(_c = (_b = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.getSymbolic) == null ? void 0 : _c.call(_b),
|
|
53
|
+
deposit,
|
|
52
54
|
"wh97978"
|
|
53
55
|
);
|
|
56
|
+
const showDeposit = ((_d = cartData == null ? void 0 : cartData.cartItems) == null ? void 0 : _d.length) > 0 && (deposit == null ? void 0 : deposit.hasDeposit);
|
|
54
57
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: `event-total-wrap ${className}` }, !isPriceIncludeTax && Number(totalTaxFee) > 0 ? /* @__PURE__ */ import_react.default.createElement("div", { className: "gst-wrap" }, /* @__PURE__ */ import_react.default.createElement("span", null, taxTitle, isFooter ? ": " : ""), /* @__PURE__ */ import_react.default.createElement(import_materials.PisellText.Amount, { value: totalTaxFee, showCurrencySymbol: true })) : null, /* @__PURE__ */ import_react.default.createElement(
|
|
55
58
|
"div",
|
|
56
59
|
{
|
|
@@ -58,16 +61,16 @@ var Total = ({ className, isFooter }) => {
|
|
|
58
61
|
[["total-gst-wrap"]]: !isPriceIncludeTax && Number(totalTaxFee) > 0
|
|
59
62
|
})
|
|
60
63
|
},
|
|
61
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "left" }, /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.event.total"), isFooter ? ": " : ""), isFooter ? /* @__PURE__ */ import_react.default.createElement(
|
|
64
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "left" }, /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("span", null, isFooter && showDeposit ? import_utils.locales.getText("pisell2.appointment.deposit") : import_utils.locales.getText("pisell2.event.total"), isFooter ? ": " : ""), isFooter ? /* @__PURE__ */ import_react.default.createElement(
|
|
62
65
|
import_materials.PisellText.Amount,
|
|
63
66
|
{
|
|
64
|
-
value: total,
|
|
67
|
+
value: ((_e = cartData == null ? void 0 : cartData.cartItems) == null ? void 0 : _e.length) > 0 && (deposit == null ? void 0 : deposit.hasDeposit) ? deposit == null ? void 0 : deposit.total : total,
|
|
65
68
|
showCurrencySymbol: true,
|
|
66
69
|
className: "event-amount"
|
|
67
70
|
}
|
|
68
71
|
) : null), isPriceIncludeTax && Number(totalTaxFee) > 0 ? /* @__PURE__ */ import_react.default.createElement("span", { className: "gst" }, import_utils.locales.getText("pisell2.event.total.gst")(
|
|
69
72
|
`${isFooter ? `${taxTitle}: ` : taxTitle}`,
|
|
70
|
-
`${(
|
|
73
|
+
`${(_h = (_g = (_f = context == null ? void 0 : context.appHelper) == null ? void 0 : _f.utils) == null ? void 0 : _g.getSymbolic) == null ? void 0 : _h.call(_g)}${totalTaxFee}`
|
|
71
74
|
)) : null),
|
|
72
75
|
!isFooter ? /* @__PURE__ */ import_react.default.createElement(
|
|
73
76
|
import_materials.PisellText.Amount,
|
|
@@ -39,8 +39,10 @@ var import_Sales = require("../../../../../Sales");
|
|
|
39
39
|
var import_SelectHolderModal = __toESM(require("../../SelectHolderModal"));
|
|
40
40
|
var import_ContinueButton = __toESM(require("../ContinueButton"));
|
|
41
41
|
var import_Total = __toESM(require("./Total"));
|
|
42
|
+
var import_Deposit = __toESM(require("../Deposit"));
|
|
42
43
|
var import_index = require("./index.less");
|
|
43
44
|
var CartItem = () => {
|
|
45
|
+
var _a;
|
|
44
46
|
const { open, holderData, selectedHolderIds } = (0, import_Sales.useHolder)();
|
|
45
47
|
const {
|
|
46
48
|
deleteCartItem,
|
|
@@ -48,7 +50,7 @@ var CartItem = () => {
|
|
|
48
50
|
cartData,
|
|
49
51
|
addNoteToCartItem
|
|
50
52
|
} = (0, import_Sales.useCart)();
|
|
51
|
-
const {
|
|
53
|
+
const { deposit } = (0, import_Sales.useSummary)();
|
|
52
54
|
const { isLastStep } = (0, import_Sales.useStep)();
|
|
53
55
|
const handleClickCard = (e, type, key) => {
|
|
54
56
|
if (type === "note") {
|
|
@@ -86,7 +88,7 @@ var CartItem = () => {
|
|
|
86
88
|
onChange: (e, type, key) => handleClickCard(e, type, key)
|
|
87
89
|
}
|
|
88
90
|
)),
|
|
89
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "event-footer" }, /* @__PURE__ */ import_react.default.createElement(import_Total.default, null), /* @__PURE__ */ import_react.default.createElement(import_ContinueButton.default, null))
|
|
91
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "event-footer" }, /* @__PURE__ */ import_react.default.createElement(import_Total.default, null), ((_a = cartData == null ? void 0 : cartData.cartItems) == null ? void 0 : _a.length) > 0 && (deposit == null ? void 0 : deposit.hasDeposit) ? /* @__PURE__ */ import_react.default.createElement(import_Deposit.default, null) : null, /* @__PURE__ */ import_react.default.createElement(import_ContinueButton.default, null))
|
|
90
92
|
), /* @__PURE__ */ import_react.default.createElement(import_SelectHolderModal.default, { open }));
|
|
91
93
|
};
|
|
92
94
|
var Item_default = CartItem;
|
|
@@ -55,7 +55,8 @@ var BookingDetailModal = (props) => {
|
|
|
55
55
|
onCloseEventDetail,
|
|
56
56
|
onSelectEventDetail,
|
|
57
57
|
selectEventDetailProductDetail,
|
|
58
|
-
checkBeforeSelectEventDetail
|
|
58
|
+
checkBeforeSelectEventDetail,
|
|
59
|
+
getProductDetailRequest
|
|
59
60
|
} = (0, import_Sales.useEventDetail)();
|
|
60
61
|
const { addToCart, checkBeforeAddToCart, checkBeforeAddToCartResquest } = (0, import_Sales.useCart)();
|
|
61
62
|
const { initData } = (0, import_Sales.useInit)();
|
|
@@ -239,7 +240,7 @@ var BookingDetailModal = (props) => {
|
|
|
239
240
|
utils == null ? void 0 : utils.action({
|
|
240
241
|
type: "pisell1.productDetail",
|
|
241
242
|
data: {
|
|
242
|
-
detail: { ...(bookingOption == null ? void 0 : bookingOption._originData) || {} },
|
|
243
|
+
detail: { ...(bookingOption == null ? void 0 : bookingOption._originData) || {}, open_deposit: 1 },
|
|
243
244
|
isOS: false
|
|
244
245
|
},
|
|
245
246
|
callback: (data) => {
|
|
@@ -294,7 +295,7 @@ var BookingDetailModal = (props) => {
|
|
|
294
295
|
onOk: handleOk,
|
|
295
296
|
width: (0, import_utils.isMobile)() ? "100%" : 600,
|
|
296
297
|
okButtonProps: {
|
|
297
|
-
loading: checkBeforeAddToCartResquest == null ? void 0 : checkBeforeAddToCartResquest.loading
|
|
298
|
+
loading: (getProductDetailRequest == null ? void 0 : getProductDetailRequest.loading) || (checkBeforeAddToCartResquest == null ? void 0 : checkBeforeAddToCartResquest.loading)
|
|
298
299
|
}
|
|
299
300
|
},
|
|
300
301
|
content()
|