@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
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PayGroup } from '../../../model';
|
|
3
|
+
import './index.less';
|
|
4
|
+
export interface WalletAvailableProps {
|
|
5
|
+
onOk: () => void;
|
|
6
|
+
payGroup?: PayGroup;
|
|
7
|
+
walletSetting: {
|
|
8
|
+
name: string;
|
|
9
|
+
popup_status: 0 | 1;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export interface WalletAvailableRef {
|
|
13
|
+
open: () => void;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: React.ForwardRefExoticComponent<WalletAvailableProps & React.RefAttributes<WalletAvailableRef>>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,87 @@
|
|
|
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/pay/toC/WalletPassBlock/components/WalletAvailable/index.tsx
|
|
30
|
+
var WalletAvailable_exports = {};
|
|
31
|
+
__export(WalletAvailable_exports, {
|
|
32
|
+
default: () => WalletAvailable_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(WalletAvailable_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_materials = require("@pisell/materials");
|
|
37
|
+
var import_utils = require("@pisell/utils");
|
|
38
|
+
var import_index = require("./index.less");
|
|
39
|
+
var WalletAvailable = (props, ref) => {
|
|
40
|
+
const { walletSetting, onOk } = props;
|
|
41
|
+
const [open, setOpen] = (0, import_react.useState)(false);
|
|
42
|
+
(0, import_react.useImperativeHandle)(ref, () => {
|
|
43
|
+
return {
|
|
44
|
+
open: () => {
|
|
45
|
+
setOpen(true);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
});
|
|
49
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
50
|
+
import_materials.PisellModal,
|
|
51
|
+
{
|
|
52
|
+
title: import_utils.locales.getText("tocPay.text.walletPassAvailable")(
|
|
53
|
+
walletSetting.name
|
|
54
|
+
),
|
|
55
|
+
open,
|
|
56
|
+
okText: import_utils.locales.getText("tocPay.text.useWalletPassAdd")(
|
|
57
|
+
walletSetting.name
|
|
58
|
+
),
|
|
59
|
+
cancelText: import_utils.locales.getText("tocPay.text.skipAndContinueToPayment"),
|
|
60
|
+
wrapClassName: "toc-pay-wallet-available-modal",
|
|
61
|
+
footerDivider: false,
|
|
62
|
+
headerDivider: false,
|
|
63
|
+
onCancel: () => {
|
|
64
|
+
setOpen(false);
|
|
65
|
+
},
|
|
66
|
+
onOk: () => {
|
|
67
|
+
setOpen(false);
|
|
68
|
+
onOk();
|
|
69
|
+
},
|
|
70
|
+
mobileModalHeight: "auto",
|
|
71
|
+
cancelButtonProps: {
|
|
72
|
+
style: {
|
|
73
|
+
border: "none",
|
|
74
|
+
color: "#40484F",
|
|
75
|
+
textAlign: "center",
|
|
76
|
+
fontSize: "14px",
|
|
77
|
+
fontWeight: "400",
|
|
78
|
+
lineHeight: "20px",
|
|
79
|
+
boxShadow: "none"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "toc-pay-wallet-available-modal-icon" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: "pisell2-a-wallet-021" })),
|
|
84
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "toc-pay-wallet-available-modal-describe" }, import_utils.locales.getText("tocPay.text.addPointsCard"))
|
|
85
|
+
);
|
|
86
|
+
};
|
|
87
|
+
var WalletAvailable_default = (0, import_react.forwardRef)(WalletAvailable);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
.toc-pay-wallet-available-modal {
|
|
2
|
+
.pisell-lowcode-modal-title {
|
|
3
|
+
margin-right: 44px;
|
|
4
|
+
}
|
|
5
|
+
.toc-pay-wallet-available-modal-icon {
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
margin-bottom: 20px;
|
|
9
|
+
font-size: 36px;
|
|
10
|
+
}
|
|
11
|
+
.toc-pay-wallet-available-modal-title {
|
|
12
|
+
color: var(--Gray-900, #101828);
|
|
13
|
+
font-size: 16px;
|
|
14
|
+
font-weight: 600;
|
|
15
|
+
line-height: 28px; /* 175% */
|
|
16
|
+
text-align: center;
|
|
17
|
+
margin-bottom: 10px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.toc-pay-wallet-available-modal-describe {
|
|
21
|
+
color: var(--Gray-900, #101828);
|
|
22
|
+
font-size: 14px;
|
|
23
|
+
font-weight: 400;
|
|
24
|
+
line-height: 20px; /* 142.857% */
|
|
25
|
+
text-align: center;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.pisell-lowcode-modal-footer {
|
|
29
|
+
flex-direction: column-reverse;
|
|
30
|
+
button {
|
|
31
|
+
span {
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
text-overflow: ellipsis;
|
|
34
|
+
display: block;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PayGroup } from '../../../model';
|
|
3
|
+
import './index.less';
|
|
4
|
+
interface WalletBestValueFoundProps {
|
|
5
|
+
onEdit: () => void;
|
|
6
|
+
payGroup?: PayGroup;
|
|
7
|
+
walletSetting: {
|
|
8
|
+
name: string;
|
|
9
|
+
popup_status: 0 | 1;
|
|
10
|
+
};
|
|
11
|
+
onUnused: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare type WalletBestValueFoundRef = {
|
|
14
|
+
open: () => void;
|
|
15
|
+
};
|
|
16
|
+
declare const _default: React.ForwardRefExoticComponent<WalletBestValueFoundProps & React.RefAttributes<WalletBestValueFoundRef>>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,103 @@
|
|
|
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/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.tsx
|
|
30
|
+
var WalletBestValueFound_exports = {};
|
|
31
|
+
__export(WalletBestValueFound_exports, {
|
|
32
|
+
default: () => WalletBestValueFound_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(WalletBestValueFound_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_materials = require("@pisell/materials");
|
|
37
|
+
var import_antd = require("antd");
|
|
38
|
+
var import_utils = require("@pisell/utils");
|
|
39
|
+
var import_WalletUseList = __toESM(require("../WalletUseList"));
|
|
40
|
+
var import_index = require("./index.less");
|
|
41
|
+
var WalletBestValueFound = (props, ref) => {
|
|
42
|
+
var _a, _b;
|
|
43
|
+
const { onEdit, walletSetting, payGroup, onUnused } = props;
|
|
44
|
+
const [open, setOpen] = (0, import_react.useState)(false);
|
|
45
|
+
(0, import_react.useImperativeHandle)(ref, () => ({
|
|
46
|
+
open: () => {
|
|
47
|
+
setOpen(true);
|
|
48
|
+
}
|
|
49
|
+
}));
|
|
50
|
+
const handleEdit = () => {
|
|
51
|
+
setOpen(false);
|
|
52
|
+
onEdit();
|
|
53
|
+
};
|
|
54
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
55
|
+
import_materials.PisellModal,
|
|
56
|
+
{
|
|
57
|
+
title: import_utils.locales.getText("tocPay.text.bestValueFound"),
|
|
58
|
+
open,
|
|
59
|
+
footer: null,
|
|
60
|
+
headerDivider: false,
|
|
61
|
+
closable: true,
|
|
62
|
+
onCancel: () => setOpen(false),
|
|
63
|
+
onOk: () => setOpen(false),
|
|
64
|
+
wrapClassName: "toc-pay-wallet-best-value-found-modal",
|
|
65
|
+
mobileModalHeight: "auto"
|
|
66
|
+
},
|
|
67
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "toc-pay-wallet-best-value-found-container" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "toc-pay-wallet-best-value-found-header" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "toc-pay-wallet-best-value-found-wallet-icon" }, /* @__PURE__ */ import_react.default.createElement(
|
|
68
|
+
import_materials.Icon,
|
|
69
|
+
{
|
|
70
|
+
type: "pisell2-a-wallet-021",
|
|
71
|
+
className: "toc-pay-wallet-best-value-found-icon"
|
|
72
|
+
}
|
|
73
|
+
)), /* @__PURE__ */ import_react.default.createElement("h3", { className: "toc-pay-wallet-best-value-found-subtitle" }, import_utils.locales.getText("tocPay.text.welcomeToUseWalletPass")(
|
|
74
|
+
walletSetting.name
|
|
75
|
+
))), /* @__PURE__ */ import_react.default.createElement("div", { className: "toc-pay-wallet-best-value-found-savings-card" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "toc-pay-wallet-best-value-found-savings-row" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "toc-pay-wallet-best-value-found-label" }, import_utils.locales.getText("tocPay.text.totalSavings")), /* @__PURE__ */ import_react.default.createElement("span", { className: "toc-pay-wallet-best-value-found-amount" }, /* @__PURE__ */ import_react.default.createElement(import_materials.PisellText.Amount, { value: (_a = payGroup == null ? void 0 : payGroup.walletPass) == null ? void 0 : _a.amount }))), /* @__PURE__ */ import_react.default.createElement("div", { className: "toc-pay-wallet-best-value-found-description" }, import_utils.locales.getText("tocPay.text.bestCombination")(walletSetting.name))), /* @__PURE__ */ import_react.default.createElement("div", { className: "toc-pay-wallet-best-value-found-recommended-section" }, /* @__PURE__ */ import_react.default.createElement("h4", { className: "toc-pay-wallet-best-value-found-section-title" }, import_utils.locales.getText("tocPay.text.recommended")), /* @__PURE__ */ import_react.default.createElement("div", { className: "toc-pay-wallet-best-value-found-option-list" }, /* @__PURE__ */ import_react.default.createElement(import_WalletUseList.default, { walletPass: ((_b = payGroup == null ? void 0 : payGroup.walletPass) == null ? void 0 : _b.cards) || [] }))), /* @__PURE__ */ import_react.default.createElement("div", { className: "toc-pay-wallet-best-value-found-actions" }, /* @__PURE__ */ import_react.default.createElement(
|
|
76
|
+
import_antd.Button,
|
|
77
|
+
{
|
|
78
|
+
className: "toc-pay-wallet-best-value-found-edit-button",
|
|
79
|
+
onClick: handleEdit
|
|
80
|
+
},
|
|
81
|
+
import_utils.locales.getText("tocPay.text.edit")
|
|
82
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
83
|
+
import_antd.Button,
|
|
84
|
+
{
|
|
85
|
+
type: "primary",
|
|
86
|
+
className: "toc-pay-wallet-best-value-found-confirm-button",
|
|
87
|
+
onClick: () => setOpen(false)
|
|
88
|
+
},
|
|
89
|
+
import_utils.locales.getText("tocPay.text.confirm")
|
|
90
|
+
)), /* @__PURE__ */ import_react.default.createElement(
|
|
91
|
+
"div",
|
|
92
|
+
{
|
|
93
|
+
className: "toc-pay-wallet-best-value-found-footer",
|
|
94
|
+
onClick: () => {
|
|
95
|
+
setOpen(false);
|
|
96
|
+
onUnused();
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
import_utils.locales.getText("tocPay.text.unusedAndContinueToPayment")
|
|
100
|
+
))
|
|
101
|
+
);
|
|
102
|
+
};
|
|
103
|
+
var WalletBestValueFound_default = (0, import_react.forwardRef)(WalletBestValueFound);
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
|
|
2
|
+
.toc-pay-wallet-best-value-found-modal {
|
|
3
|
+
.pisell-lowcode-modal-body{
|
|
4
|
+
padding: 0 !important;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.toc-pay-wallet-best-value-found-container {
|
|
9
|
+
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.toc-pay-wallet-best-value-found-header {
|
|
13
|
+
text-align: center;
|
|
14
|
+
margin: 0 24px 12px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.toc-pay-wallet-best-value-found-wallet-icon {
|
|
18
|
+
margin: 0 auto 12px;
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
border-radius: 50%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.toc-pay-wallet-best-value-found-icon {
|
|
26
|
+
font-size: 32px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.toc-pay-wallet-best-value-found-subtitle {
|
|
30
|
+
color: var(--Gray-900, #101828);
|
|
31
|
+
font-size: 16px;
|
|
32
|
+
font-weight: 600;
|
|
33
|
+
line-height: 28px; /* 175% */
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.toc-pay-wallet-best-value-found-savings-card {
|
|
37
|
+
display: flex;
|
|
38
|
+
padding: 16px;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
align-items: flex-start;
|
|
42
|
+
gap: 4px;
|
|
43
|
+
border-radius: 12px;
|
|
44
|
+
border: 1px solid var(--Gray-300, #D0D5DD);
|
|
45
|
+
margin: 0 24px 12px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.toc-pay-wallet-best-value-found-savings-row {
|
|
49
|
+
display: flex;
|
|
50
|
+
justify-content: space-between;
|
|
51
|
+
align-items: center;
|
|
52
|
+
width: 100%;
|
|
53
|
+
color: #009951;
|
|
54
|
+
|
|
55
|
+
font-size: 16px;
|
|
56
|
+
font-weight: 600;
|
|
57
|
+
line-height: 28px; /* 175% */
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.toc-pay-wallet-best-value-found-description {
|
|
61
|
+
color: #757575;
|
|
62
|
+
font-size: 14px;
|
|
63
|
+
font-style: normal;
|
|
64
|
+
font-weight: 500;
|
|
65
|
+
line-height: 20px; /* 142.857% */
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.toc-pay-wallet-best-value-found-recommended-section {
|
|
69
|
+
margin: 0 24px 16px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.toc-pay-wallet-best-value-found-section-title {
|
|
73
|
+
color: var(--Gray-900, #101828);
|
|
74
|
+
font-size: 16px;
|
|
75
|
+
font-weight: 600;
|
|
76
|
+
line-height: 28px; /* 175% */
|
|
77
|
+
margin-bottom: 6px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.toc-pay-wallet-best-value-found-option-list {
|
|
81
|
+
.toc-pay-wallet-best-value-found-option-item {
|
|
82
|
+
color: #757575;
|
|
83
|
+
font-size: 12px;
|
|
84
|
+
font-weight: 400;
|
|
85
|
+
line-height: 20px; /* 166.667% */
|
|
86
|
+
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
margin-bottom: 6px;
|
|
90
|
+
|
|
91
|
+
&:last-child {
|
|
92
|
+
border-bottom: none;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.toc-pay-wallet-best-value-found-option-icon {
|
|
98
|
+
font-size: 20px;
|
|
99
|
+
margin-right: 12px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.toc-pay-wallet-best-value-found-option-name {
|
|
103
|
+
flex: 1;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.toc-pay-wallet-best-value-found-option-amount {
|
|
107
|
+
font-weight: 500;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.toc-pay-wallet-best-value-found-actions {
|
|
111
|
+
display: flex;
|
|
112
|
+
gap: 16px;
|
|
113
|
+
border-top: 1px solid var(--Gray-200, #EAECF0);
|
|
114
|
+
padding: 24px 24px 6px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.toc-pay-wallet-best-value-found-edit-button {
|
|
118
|
+
flex: 1;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.toc-pay-wallet-best-value-found-confirm-button {
|
|
122
|
+
flex: 1;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.toc-pay-wallet-best-value-found-footer {
|
|
126
|
+
color: #444444;
|
|
127
|
+
font-size: 14px;
|
|
128
|
+
font-weight: 400;
|
|
129
|
+
line-height: 24px; /* 171.429% */
|
|
130
|
+
text-align: center;
|
|
131
|
+
margin-bottom: 12px;
|
|
132
|
+
padding: 12px 0;
|
|
133
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface WalletUseListProps {
|
|
4
|
+
walletPass: WalletPassDataType[];
|
|
5
|
+
}
|
|
6
|
+
declare const WalletUseList: (props: WalletUseListProps) => JSX.Element;
|
|
7
|
+
export default WalletUseList;
|
|
@@ -0,0 +1,52 @@
|
|
|
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/pay/toC/WalletPassBlock/components/WalletUseList/index.tsx
|
|
30
|
+
var WalletUseList_exports = {};
|
|
31
|
+
__export(WalletUseList_exports, {
|
|
32
|
+
default: () => WalletUseList_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(WalletUseList_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_materials = require("@pisell/materials");
|
|
37
|
+
var import_index = require("./index.less");
|
|
38
|
+
var import_utils = require("../../../utils");
|
|
39
|
+
var iconMaps = {
|
|
40
|
+
// 代金券
|
|
41
|
+
product_voucher: "pisell2-daijinquan",
|
|
42
|
+
// 积分卡
|
|
43
|
+
point_card: "pisell2-jifenka",
|
|
44
|
+
// 充值卡
|
|
45
|
+
gift_card: "pisell2-chongzhika",
|
|
46
|
+
customer_wallet: "pisell2-qianbao"
|
|
47
|
+
};
|
|
48
|
+
var WalletUseList = (props) => {
|
|
49
|
+
const { walletPass = [] } = props;
|
|
50
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "toc-pay-wallet-use-list" }, walletPass.map((item) => /* @__PURE__ */ import_react.default.createElement("div", { className: "toc-pay-wallet-use-list-item" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "toc-pay-wallet-use-list-item-name" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: iconMaps[item.tag] || "pisell2-daijinquan", className: "toc-pay-wallet-use-list-item-icon" }), item.product_name), /* @__PURE__ */ import_react.default.createElement("span", { className: "toc-pay-wallet-use-list-item-amount" }, "-", /* @__PURE__ */ import_react.default.createElement(import_materials.PisellText.Amount, { value: (0, import_utils.getAvailableMaxAmount)(item) })))));
|
|
51
|
+
};
|
|
52
|
+
var WalletUseList_default = WalletUseList;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.toc-pay-wallet-use-list {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 6px;
|
|
5
|
+
.toc-pay-wallet-use-list-item {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
color: var(--sds-color-border-default-secondary);
|
|
10
|
+
font-size: 12px;
|
|
11
|
+
font-weight: 400;
|
|
12
|
+
line-height: 20px;
|
|
13
|
+
.toc-pay-wallet-use-list-item-icon {
|
|
14
|
+
font-size: 20px;
|
|
15
|
+
color: #667085;
|
|
16
|
+
}
|
|
17
|
+
.toc-pay-wallet-use-list-item-name {
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
gap: 8px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -9,6 +9,13 @@ export interface WalletPassBlockProps extends React.HTMLAttributes<HTMLDivElemen
|
|
|
9
9
|
amount: number;
|
|
10
10
|
}) => void;
|
|
11
11
|
customer_id?: number;
|
|
12
|
+
walletSetting: {
|
|
13
|
+
name: string;
|
|
14
|
+
popup_status: 0 | 1;
|
|
15
|
+
};
|
|
12
16
|
}
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
export interface WalletPassBlockRef {
|
|
18
|
+
open: () => void;
|
|
19
|
+
}
|
|
20
|
+
declare const _default: React.ForwardRefExoticComponent<WalletPassBlockProps & React.RefAttributes<WalletPassBlockRef>>;
|
|
21
|
+
export default _default;
|