@pisell/private-materials 6.4.77 → 6.4.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/appointmentBooking/components/Header/index.d.ts +0 -1
- package/es/components/appointmentBooking/index.d.ts +0 -1
- package/es/components/booking/addons/index.js +8 -3
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/es/components/booking/components/footer/amount.d.ts +1 -0
- package/es/components/booking/components/footer/amount.js +521 -79
- package/es/components/booking/components/footer/utils.d.ts +13 -0
- package/es/components/booking/components/footer/utils.js +88 -40
- package/es/components/booking/deposit/index.d.ts +0 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/forms/single/index.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/notes/index.d.ts +0 -1
- package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/index.d.ts +0 -1
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
- package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
- package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
- package/es/components/booking/notes/addNote/index.d.ts +0 -1
- package/es/components/checkout/PaymentPlugin.d.ts +0 -1
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- 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 +1 -1
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +2 -1
- package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +2 -0
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
- package/es/components/pay/toC/index.js +2 -1
- package/es/components/pay/toC/locales.d.ts +3 -0
- package/es/components/pay/toC/locales.js +6 -3
- package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/es/components/productSelect/components/productGroup/index.d.ts +0 -1
- package/es/components/subTotal/index.js +1 -1
- package/es/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
- package/es/components/systemSettings/registry/components/GroupModal.js +160 -0
- package/es/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
- package/es/components/systemSettings/registry/components/ItemModal.js +547 -0
- package/es/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
- package/es/components/systemSettings/registry/components/ModuleList.js +54 -0
- package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
- package/es/components/systemSettings/registry/components/SectionList.js +174 -0
- package/es/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
- package/es/components/systemSettings/registry/components/SettingsTable.js +765 -0
- package/es/components/systemSettings/registry/components/index.d.ts +4 -0
- package/es/components/systemSettings/registry/components/index.js +4 -0
- package/es/components/systemSettings/registry/index.d.ts +5 -0
- package/es/components/systemSettings/registry/index.js +1059 -0
- package/es/components/systemSettings/registry/index.less +410 -0
- package/es/components/systemSettings/registry/locales.d.ts +272 -0
- package/es/components/systemSettings/registry/locales.js +300 -0
- package/es/components/systemSettings/registry/services.d.ts +77 -0
- package/es/components/systemSettings/registry/services.js +472 -0
- package/es/components/systemSettings/registry/types.d.ts +126 -0
- package/es/components/systemSettings/registry/types.js +1 -0
- package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
- package/es/components/systemSettings/registry/utils/typeValidation.js +284 -0
- package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
- package/es/components/systemSettings/registry/utils/validators.js +44 -0
- package/es/index.d.ts +2 -0
- package/es/index.js +3 -1
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
- package/es/plus/saasLogin/utils.d.ts +5 -5
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -1
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -1
- package/lib/components/appointmentBooking/index.d.ts +0 -1
- package/lib/components/booking/addons/index.js +6 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/lib/components/booking/components/footer/amount.d.ts +1 -0
- package/lib/components/booking/components/footer/amount.js +271 -38
- package/lib/components/booking/components/footer/utils.d.ts +13 -0
- package/lib/components/booking/components/footer/utils.js +45 -7
- package/lib/components/booking/deposit/index.d.ts +0 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/forms/single/index.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/notes/index.d.ts +0 -1
- package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
- package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
- package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
- package/lib/components/booking/notes/addNote/index.d.ts +0 -1
- package/lib/components/checkout/PaymentPlugin.d.ts +0 -1
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- 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 +1 -1
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.js +3 -0
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
- package/lib/components/pay/toC/index.js +1 -0
- package/lib/components/pay/toC/locales.d.ts +3 -0
- package/lib/components/pay/toC/locales.js +6 -3
- package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/lib/components/productSelect/components/productGroup/index.d.ts +0 -1
- package/lib/components/subTotal/index.js +1 -1
- package/lib/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/GroupModal.js +177 -0
- package/lib/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/ItemModal.js +508 -0
- package/lib/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/ModuleList.js +71 -0
- package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/SectionList.js +181 -0
- package/lib/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/SettingsTable.js +575 -0
- package/lib/components/systemSettings/registry/components/index.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/index.js +48 -0
- package/lib/components/systemSettings/registry/index.d.ts +5 -0
- package/lib/components/systemSettings/registry/index.js +529 -0
- package/lib/components/systemSettings/registry/index.less +410 -0
- package/lib/components/systemSettings/registry/locales.d.ts +272 -0
- package/lib/components/systemSettings/registry/locales.js +324 -0
- package/lib/components/systemSettings/registry/services.d.ts +77 -0
- package/lib/components/systemSettings/registry/services.js +290 -0
- package/lib/components/systemSettings/registry/types.d.ts +126 -0
- package/lib/components/systemSettings/registry/types.js +17 -0
- package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
- package/lib/components/systemSettings/registry/utils/typeValidation.js +228 -0
- package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
- package/lib/components/systemSettings/registry/utils/validators.js +54 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +6 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
- package/lib/plus/saasLogin/utils.d.ts +5 -5
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -1
- package/lowcode/settings-registry/meta.ts +29 -0
- package/package.json +3 -3
|
@@ -17,7 +17,7 @@ export declare const useWalletPass: (props: {
|
|
|
17
17
|
cardData: any;
|
|
18
18
|
handleSelectWallet: (value: number[]) => void;
|
|
19
19
|
selectedWalletIds: any[];
|
|
20
|
-
expiredWalletIds: any
|
|
20
|
+
expiredWalletIds: any;
|
|
21
21
|
expiredWalletData: any;
|
|
22
22
|
disabledWalletData: any[];
|
|
23
23
|
clearAllSelectedWallet: () => void;
|
|
@@ -9,7 +9,7 @@ import { PosProps } from './const';
|
|
|
9
9
|
*/
|
|
10
10
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
|
11
11
|
className?: string | undefined;
|
|
12
|
-
onChange?: ((status: "
|
|
12
|
+
onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
|
13
13
|
[keys: string]: unknown;
|
|
14
14
|
} | undefined, other?: any) => void) | undefined;
|
|
15
15
|
onClose: () => void;
|
|
@@ -11,7 +11,7 @@ import './device.less';
|
|
|
11
11
|
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, containerStyle, }: {
|
|
12
12
|
api: PayProps['api'];
|
|
13
13
|
className?: string | undefined;
|
|
14
|
-
onChange?: ((status: "
|
|
14
|
+
onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
|
15
15
|
[keys: string]: unknown;
|
|
16
16
|
} | undefined, other?: any) => void) | undefined;
|
|
17
17
|
onClose: () => void;
|
|
@@ -15,7 +15,7 @@ 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<"
|
|
18
|
+
readonly statusRef: React.MutableRefObject<"loading" | "warn" | "success" | "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>;
|
|
@@ -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: "
|
|
177
|
+
status: "loading" | "warn" | "success" | "fail" | "question";
|
|
178
178
|
};
|
|
179
179
|
};
|
|
180
180
|
/**
|
|
@@ -295,7 +295,7 @@ 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?: "refund" | "fullPay" | "pay" | "query" | undefined;
|
|
299
299
|
order_id?: string | number | undefined;
|
|
300
300
|
eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
|
|
301
301
|
action?: "amount" | "pay" | "deviceList" | undefined;
|
|
@@ -303,12 +303,12 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
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?: "
|
|
311
|
+
status?: "loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
|
312
312
|
warn?: string | undefined;
|
|
313
313
|
steps?: {
|
|
314
314
|
/** 用于重置当前步骤 */
|
|
@@ -20,4 +20,5 @@ import StepController from './stepController';
|
|
|
20
20
|
import PinModal from './pinModal';
|
|
21
21
|
import PinVerifyModal from './pinVerifyModal';
|
|
22
22
|
import { OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth } from './authentication/admin';
|
|
23
|
-
|
|
23
|
+
import Registry from './systemSettings/registry';
|
|
24
|
+
export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, Wallet, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, EditBookingModal, StepController, PinModal, PinVerifyModal, OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth, Registry, };
|
package/lib/components/index.js
CHANGED
|
@@ -47,6 +47,7 @@ __export(components_exports, {
|
|
|
47
47
|
PinVerifyModal: () => import_pinVerifyModal.default,
|
|
48
48
|
PisellSelectCustomerModal: () => import_pisellSelectCustomerModal.default,
|
|
49
49
|
ProductExtension: () => import_productExtension.default,
|
|
50
|
+
Registry: () => import_registry.default,
|
|
50
51
|
RuleSetting: () => import_ruleSetting.default,
|
|
51
52
|
SaaSAdminAuth: () => import_admin.SaaSAdminAuth,
|
|
52
53
|
SaaSManagermentAuth: () => import_admin.SaaSManagermentAuth,
|
|
@@ -83,6 +84,7 @@ var import_stepController = __toESM(require("./stepController"));
|
|
|
83
84
|
var import_pinModal = __toESM(require("./pinModal"));
|
|
84
85
|
var import_pinVerifyModal = __toESM(require("./pinVerifyModal"));
|
|
85
86
|
var import_admin = require("./authentication/admin");
|
|
87
|
+
var import_registry = __toESM(require("./systemSettings/registry"));
|
|
86
88
|
// Annotate the CommonJS export names for ESM import in node:
|
|
87
89
|
0 && (module.exports = {
|
|
88
90
|
Booking,
|
|
@@ -103,6 +105,7 @@ var import_admin = require("./authentication/admin");
|
|
|
103
105
|
PinVerifyModal,
|
|
104
106
|
PisellSelectCustomerModal,
|
|
105
107
|
ProductExtension,
|
|
108
|
+
Registry,
|
|
106
109
|
RuleSetting,
|
|
107
110
|
SaaSAdminAuth,
|
|
108
111
|
SaaSManagermentAuth,
|
|
@@ -311,26 +311,28 @@ var createChallengeIframe = (challengeData, callback) => {
|
|
|
311
311
|
};
|
|
312
312
|
return new Promise((res, rej) => {
|
|
313
313
|
let timer = null;
|
|
314
|
+
const handleMessage = (event) => {
|
|
315
|
+
if (event.origin.indexOf(postmessageUrl) !== -1 || event.origin.indexOf("securesuite") !== -1) {
|
|
316
|
+
if (typeof event.data.cres == "string") {
|
|
317
|
+
if (timer) {
|
|
318
|
+
clearTimeout(timer);
|
|
319
|
+
}
|
|
320
|
+
res(event.data.cres);
|
|
321
|
+
closeIframe();
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
};
|
|
314
325
|
timer = setTimeout(() => {
|
|
315
326
|
log({
|
|
316
327
|
msg: "第五步: 60秒超时则走N逻辑",
|
|
317
328
|
data: challengeData
|
|
318
329
|
});
|
|
330
|
+
window.removeEventListener("message", handleMessage);
|
|
319
331
|
rej("time out");
|
|
320
332
|
}, 2 * 60 * 1e3);
|
|
321
333
|
window.addEventListener(
|
|
322
334
|
"message",
|
|
323
|
-
|
|
324
|
-
if (event.origin.indexOf(postmessageUrl) !== -1 || event.origin.indexOf("securesuite") !== -1) {
|
|
325
|
-
if (typeof event.data.cres == "string") {
|
|
326
|
-
if (timer) {
|
|
327
|
-
clearTimeout(timer);
|
|
328
|
-
}
|
|
329
|
-
res(event.data.cres);
|
|
330
|
-
closeIframe();
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
},
|
|
335
|
+
handleMessage,
|
|
334
336
|
false
|
|
335
337
|
);
|
|
336
338
|
});
|
|
@@ -83,6 +83,6 @@ var PaymentReturnContent = ({
|
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "payment-return-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "payment-return-content-img" }, /* @__PURE__ */ import_react.default.createElement("img", { src: `${prefix}/payment-content.png`, alt: "success" })), /* @__PURE__ */ import_react.default.createElement("div", { className: "payment-return-content-buttons" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { block: true, className: "payment-return-content-order-button", onClick: handleViewOrder }, import_utils.locales.getText("tocPay.text.paymentCompletedAndViewOrder")), /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { block: true, onClick: handleGoBack }, import_utils.locales.getText("tocPay.text.returnAndSelectOtherPaymentMethod"))));
|
|
86
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "payment-return-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "payment-return-content-img" }, /* @__PURE__ */ import_react.default.createElement("img", { src: `${prefix}/payment-content.png`, alt: "success" })), /* @__PURE__ */ import_react.default.createElement("div", { className: "payment-return-content-text" }, import_utils.locales.getText("tocPay.text.weAreVerifyingYourPaymentPleaseCheckYourOrderStatusLater")), /* @__PURE__ */ import_react.default.createElement("div", { className: "payment-return-content-buttons" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { block: true, className: "payment-return-content-order-button", onClick: handleViewOrder }, import_utils.locales.getText("tocPay.text.paymentCompletedAndViewOrder")), /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { block: true, onClick: handleGoBack }, import_utils.locales.getText("tocPay.text.returnAndSelectOtherPaymentMethod"))));
|
|
87
87
|
};
|
|
88
88
|
var PaymentReturnContent_default = PaymentReturnContent;
|
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
.payment-return-content {
|
|
2
2
|
padding: 100px 46px 0;
|
|
3
|
+
max-height: 100vh;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: 24px;
|
|
3
7
|
|
|
4
8
|
.payment-return-content-img {
|
|
5
9
|
width: 100%;
|
|
6
|
-
margin-bottom: 60px;
|
|
7
10
|
min-height: 270px;
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
align-items: center;
|
|
8
14
|
img {
|
|
9
|
-
width: 100%;
|
|
15
|
+
max-width: 100%;
|
|
10
16
|
height: 100%;
|
|
17
|
+
max-height: 480px;
|
|
11
18
|
}
|
|
12
19
|
}
|
|
13
|
-
|
|
20
|
+
.payment-return-content-text {
|
|
21
|
+
color: var(--Gray-600, #475467);
|
|
22
|
+
text-align: center;
|
|
23
|
+
}
|
|
14
24
|
.payment-return-content-buttons {
|
|
15
25
|
display: flex;
|
|
16
26
|
flex-direction: column;
|
|
@@ -97,6 +97,7 @@ declare const _default: {
|
|
|
97
97
|
'tocPay.text.returnAndSelectOtherPaymentMethod': string;
|
|
98
98
|
'tocPay.text.paymentCompletedAndViewOrder': string;
|
|
99
99
|
'tocPay.text.paymentFailed': string;
|
|
100
|
+
'tocPay.text.weAreVerifyingYourPaymentPleaseCheckYourOrderStatusLater': string;
|
|
100
101
|
};
|
|
101
102
|
'zh-CN': {
|
|
102
103
|
'tocPay.text.checkout': string;
|
|
@@ -195,6 +196,7 @@ declare const _default: {
|
|
|
195
196
|
'tocPay.text.returnAndSelectOtherPaymentMethod': string;
|
|
196
197
|
'tocPay.text.paymentCompletedAndViewOrder': string;
|
|
197
198
|
'tocPay.text.paymentFailed': string;
|
|
199
|
+
'tocPay.text.weAreVerifyingYourPaymentPleaseCheckYourOrderStatusLater': string;
|
|
198
200
|
};
|
|
199
201
|
'zh-HK': {
|
|
200
202
|
'tocPay.text.checkout': string;
|
|
@@ -293,6 +295,7 @@ declare const _default: {
|
|
|
293
295
|
'tocPay.text.returnAndSelectOtherPaymentMethod': string;
|
|
294
296
|
'tocPay.text.paymentCompletedAndViewOrder': string;
|
|
295
297
|
'tocPay.text.paymentFailed': string;
|
|
298
|
+
'tocPay.text.weAreVerifyingYourPaymentPleaseCheckYourOrderStatusLater': string;
|
|
296
299
|
};
|
|
297
300
|
};
|
|
298
301
|
export default _default;
|
|
@@ -120,7 +120,8 @@ var locales_default = {
|
|
|
120
120
|
"tocPay.text.viewDetail": "View detail",
|
|
121
121
|
"tocPay.text.returnAndSelectOtherPaymentMethod": "Go Back / Choose Another Payment",
|
|
122
122
|
"tocPay.text.paymentCompletedAndViewOrder": "Payment Completed / View Order",
|
|
123
|
-
"tocPay.text.paymentFailed": "Not paid yet, please check if the payment is successful"
|
|
123
|
+
"tocPay.text.paymentFailed": "Not paid yet, please check if the payment is successful",
|
|
124
|
+
"tocPay.text.weAreVerifyingYourPaymentPleaseCheckYourOrderStatusLater": "We are verifying your payment. Please check your order status later."
|
|
124
125
|
},
|
|
125
126
|
"zh-CN": {
|
|
126
127
|
"tocPay.text.checkout": "结账",
|
|
@@ -218,7 +219,8 @@ var locales_default = {
|
|
|
218
219
|
"tocPay.text.viewDetail": "查看详情",
|
|
219
220
|
"tocPay.text.returnAndSelectOtherPaymentMethod": "返回 / 选择其他支付方式",
|
|
220
221
|
"tocPay.text.paymentCompletedAndViewOrder": "支付完成 / 查看订单",
|
|
221
|
-
"tocPay.text.paymentFailed": "未支付完成,请检查是否支付成功"
|
|
222
|
+
"tocPay.text.paymentFailed": "未支付完成,请检查是否支付成功",
|
|
223
|
+
"tocPay.text.weAreVerifyingYourPaymentPleaseCheckYourOrderStatusLater": "我们正在确认您的支付状态,请稍后查看订单状态。"
|
|
222
224
|
},
|
|
223
225
|
"zh-HK": {
|
|
224
226
|
"tocPay.text.checkout": "結帳",
|
|
@@ -316,6 +318,7 @@ var locales_default = {
|
|
|
316
318
|
"tocPay.text.viewDetail": "查看詳情",
|
|
317
319
|
"tocPay.text.returnAndSelectOtherPaymentMethod": "返回 / 選擇其他支付方式",
|
|
318
320
|
"tocPay.text.paymentCompletedAndViewOrder": "支付完成 / 查看訂單",
|
|
319
|
-
"tocPay.text.paymentFailed": "未支付完成,请检查是否支付成功"
|
|
321
|
+
"tocPay.text.paymentFailed": "未支付完成,请检查是否支付成功",
|
|
322
|
+
"tocPay.text.weAreVerifyingYourPaymentPleaseCheckYourOrderStatusLater": "我們正在確認您的支付狀態,請稍後查看訂單狀態。"
|
|
320
323
|
}
|
|
321
324
|
};
|
|
@@ -74,7 +74,7 @@ var Item = (props) => {
|
|
|
74
74
|
}
|
|
75
75
|
let str = "";
|
|
76
76
|
str = str + (tax == null ? void 0 : tax.title);
|
|
77
|
-
str = str + " " + Number(tax.rate) * 100 + "%";
|
|
77
|
+
str = str + " " + (Number(tax.rate) * 100).toFixed(2) + "%";
|
|
78
78
|
if (tax == null ? void 0 : tax.is_price_include_tax) {
|
|
79
79
|
str = str + " " + import_utils.locales.getText("pisell2.subtotal.included");
|
|
80
80
|
} else {
|
|
@@ -0,0 +1,177 @@
|
|
|
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/systemSettings/registry/components/GroupModal.tsx
|
|
30
|
+
var GroupModal_exports = {};
|
|
31
|
+
__export(GroupModal_exports, {
|
|
32
|
+
default: () => GroupModal_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(GroupModal_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_materials = require("@pisell/materials");
|
|
38
|
+
var import_utils = require("@pisell/utils");
|
|
39
|
+
var import_locales = __toESM(require("../locales"));
|
|
40
|
+
var getText = (key) => {
|
|
41
|
+
const globalText = import_utils.locales.getText(key);
|
|
42
|
+
if (globalText !== key) {
|
|
43
|
+
return globalText;
|
|
44
|
+
}
|
|
45
|
+
const currentLocale = import_utils.locales.locale || "zh-CN";
|
|
46
|
+
const localeData = import_locales.default[currentLocale] || import_locales.default["en"] || {};
|
|
47
|
+
return localeData[key] || key;
|
|
48
|
+
};
|
|
49
|
+
var GroupModal = ({
|
|
50
|
+
open,
|
|
51
|
+
type,
|
|
52
|
+
data,
|
|
53
|
+
onOk,
|
|
54
|
+
onCancel
|
|
55
|
+
}) => {
|
|
56
|
+
const [form] = import_antd.Form.useForm();
|
|
57
|
+
(0, import_react.useEffect)(() => {
|
|
58
|
+
if (open) {
|
|
59
|
+
if (type === "edit" && data) {
|
|
60
|
+
form.setFieldsValue({
|
|
61
|
+
title: data.title,
|
|
62
|
+
code: data.code
|
|
63
|
+
});
|
|
64
|
+
} else {
|
|
65
|
+
form.resetFields();
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}, [open, type, data, form]);
|
|
69
|
+
const handleOk = async () => {
|
|
70
|
+
try {
|
|
71
|
+
const values = await form.validateFields();
|
|
72
|
+
await onOk(values);
|
|
73
|
+
form.resetFields();
|
|
74
|
+
} catch (error) {
|
|
75
|
+
console.error("Validation failed:", error);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
const handleCancel = () => {
|
|
79
|
+
form.resetFields();
|
|
80
|
+
onCancel();
|
|
81
|
+
};
|
|
82
|
+
const title = import_utils.locales.getText(
|
|
83
|
+
type === "add" ? "registry.modal.add.group" : "registry.modal.edit.group"
|
|
84
|
+
);
|
|
85
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
86
|
+
import_antd.Drawer,
|
|
87
|
+
{
|
|
88
|
+
title,
|
|
89
|
+
open,
|
|
90
|
+
onClose: handleCancel,
|
|
91
|
+
width: 400,
|
|
92
|
+
destroyOnClose: true,
|
|
93
|
+
footer: /* @__PURE__ */ import_react.default.createElement("div", { style: { textAlign: "right" } }, /* @__PURE__ */ import_react.default.createElement(import_antd.Space, { size: "small" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { onClick: handleCancel }, import_utils.locales.getText("registry.button.cancel")), /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { type: "primary", onClick: handleOk }, import_utils.locales.getText("registry.button.save"))))
|
|
94
|
+
},
|
|
95
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
96
|
+
import_antd.Form,
|
|
97
|
+
{
|
|
98
|
+
form,
|
|
99
|
+
layout: "vertical",
|
|
100
|
+
requiredMark: true
|
|
101
|
+
},
|
|
102
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
103
|
+
import_antd.Form.Item,
|
|
104
|
+
{
|
|
105
|
+
name: "title",
|
|
106
|
+
label: import_utils.locales.getText("registry.form.title"),
|
|
107
|
+
rules: [
|
|
108
|
+
{
|
|
109
|
+
required: true,
|
|
110
|
+
message: import_utils.locales.getText("registry.message.required")
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
115
|
+
import_materials.BaseTranslation,
|
|
116
|
+
{
|
|
117
|
+
placeholder: import_utils.locales.getText("registry.form.name.placeholder")
|
|
118
|
+
}
|
|
119
|
+
)
|
|
120
|
+
),
|
|
121
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
122
|
+
import_antd.Form.Item,
|
|
123
|
+
{
|
|
124
|
+
name: "code",
|
|
125
|
+
label: import_utils.locales.getText("registry.form.code"),
|
|
126
|
+
rules: [
|
|
127
|
+
{
|
|
128
|
+
required: true,
|
|
129
|
+
message: import_utils.locales.getText("registry.message.required")
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
validator: (_, value) => {
|
|
133
|
+
if (!value) return Promise.resolve();
|
|
134
|
+
if (!/^[a-z0-9\._]+$/.test(value)) {
|
|
135
|
+
return Promise.reject(
|
|
136
|
+
new Error(
|
|
137
|
+
getText("registry.message.code.format")
|
|
138
|
+
)
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
if (!/^[a-z]/.test(value)) {
|
|
142
|
+
return Promise.reject(
|
|
143
|
+
new Error(
|
|
144
|
+
getText("registry.message.code.start")
|
|
145
|
+
)
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
if (/[\._]$/.test(value)) {
|
|
149
|
+
return Promise.reject(
|
|
150
|
+
new Error(
|
|
151
|
+
getText("registry.message.code.end")
|
|
152
|
+
)
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
if (/[\.]{2,}|[\_]{2,}/.test(value)) {
|
|
156
|
+
return Promise.reject(
|
|
157
|
+
new Error(
|
|
158
|
+
getText("registry.message.code.consecutive")
|
|
159
|
+
)
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
return Promise.resolve();
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
168
|
+
import_antd.Input,
|
|
169
|
+
{
|
|
170
|
+
placeholder: import_utils.locales.getText("registry.form.code.placeholder")
|
|
171
|
+
}
|
|
172
|
+
)
|
|
173
|
+
)
|
|
174
|
+
)
|
|
175
|
+
);
|
|
176
|
+
};
|
|
177
|
+
var GroupModal_default = GroupModal;
|