@pisell/private-materials 3.0.95 → 3.0.97
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 +16 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +15 -8
- package/es/components/booking/addons/index.d.ts +1 -1
- package/es/components/booking/addons/model.d.ts +1 -2
- package/es/components/booking/forms/forms.d.ts +1 -1
- package/es/components/booking/forms/index.d.ts +1 -1
- package/es/components/booking/forms/model.d.ts +1 -2
- package/es/components/booking/index.d.ts +1 -1
- package/es/components/booking/info/index.d.ts +1 -1
- package/es/components/booking/info/model.d.ts +1 -2
- package/es/components/booking/model.d.ts +1 -2
- package/es/components/booking/notes/index.d.ts +1 -1
- package/es/components/booking/notes/model.d.ts +1 -2
- package/es/components/booking/payments/index.d.ts +1 -1
- package/es/components/booking/payments/model.d.ts +1 -2
- package/es/components/eftpos/const.d.ts +38 -0
- package/es/components/eftpos/const.js +79 -0
- package/es/components/eftpos/device.d.ts +8 -0
- package/es/components/eftpos/device.js +30 -0
- package/es/components/eftpos/form/index.d.ts +16 -0
- package/es/components/eftpos/form/index.js +113 -0
- package/es/components/eftpos/index.d.ts +37 -0
- package/es/components/eftpos/index.js +274 -0
- package/es/components/eftpos/index.less +153 -0
- package/es/components/eftpos/locales.d.ts +75 -0
- package/es/components/eftpos/locales.js +98 -0
- package/es/components/eftpos/pos.d.ts +9 -0
- package/es/components/eftpos/pos.js +33 -0
- package/es/components/eftpos/surcharge/index.css +17 -0
- package/es/components/eftpos/surcharge/index.d.ts +8 -0
- package/es/components/eftpos/surcharge/index.js +111 -0
- package/es/components/eftpos/table.d.ts +17 -0
- package/es/components/eftpos/table.js +236 -0
- package/es/components/eftposPay/amount.d.ts +14 -0
- package/es/components/eftposPay/amount.js +253 -0
- package/es/components/eftposPay/component/alert/index.d.ts +6 -0
- package/es/components/eftposPay/component/alert/index.js +11 -0
- package/es/components/eftposPay/component/alert/index.less +29 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +3 -0
- package/es/components/eftposPay/component/alert/warn.js +45 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +4 -0
- package/es/components/eftposPay/component/fail/failCustom.js +95 -0
- package/es/components/eftposPay/component/fail/index.d.ts +4 -0
- package/es/components/eftposPay/component/fail/index.js +105 -0
- package/es/components/eftposPay/component/fail/network.d.ts +4 -0
- package/es/components/eftposPay/component/fail/network.js +48 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +4 -0
- package/es/components/eftposPay/component/fail/unknow.js +43 -0
- package/es/components/eftposPay/component/header/index.d.ts +9 -0
- package/es/components/eftposPay/component/header/index.js +66 -0
- package/es/components/eftposPay/component/header/index.less +44 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +13 -0
- package/es/components/eftposPay/component/header/titlebar.js +39 -0
- package/es/components/eftposPay/component/header/titlebar.less +17 -0
- package/es/components/eftposPay/component/manual/index.d.ts +5 -0
- package/es/components/eftposPay/component/manual/index.js +91 -0
- package/es/components/eftposPay/component/manual/index.less +96 -0
- package/es/components/eftposPay/component/signature/index.d.ts +4 -0
- package/es/components/eftposPay/component/signature/index.js +63 -0
- package/es/components/eftposPay/component/step/index.d.ts +12 -0
- package/es/components/eftposPay/component/step/index.js +31 -0
- package/es/components/eftposPay/component/step/step.d.ts +9 -0
- package/es/components/eftposPay/component/step/step.js +23 -0
- package/es/components/eftposPay/const.d.ts +131 -0
- package/es/components/eftposPay/const.js +48 -0
- package/es/components/eftposPay/device.d.ts +14 -0
- package/es/components/eftposPay/device.js +124 -0
- package/es/components/eftposPay/device.less +61 -0
- package/es/components/eftposPay/eftpos/config.d.ts +11 -0
- package/es/components/eftposPay/eftpos/config.js +178 -0
- package/es/components/eftposPay/eftpos/const.d.ts +10 -0
- package/es/components/eftposPay/eftpos/const.js +139 -0
- package/es/components/eftposPay/eftpos/index.d.ts +7 -0
- package/es/components/eftposPay/eftpos/index.js +35 -0
- package/es/components/eftposPay/helper.d.ts +3 -0
- package/es/components/eftposPay/helper.js +35 -0
- package/es/components/eftposPay/hooks.d.ts +4 -0
- package/es/components/eftposPay/hooks.js +153 -0
- package/es/components/eftposPay/index.d.ts +7 -0
- package/es/components/eftposPay/index.js +188 -0
- package/es/components/eftposPay/index.less +273 -0
- package/es/components/eftposPay/locales.d.ts +264 -0
- package/es/components/eftposPay/locales.js +384 -0
- package/es/components/eftposPay/manufacturer.d.ts +6 -0
- package/es/components/eftposPay/manufacturer.js +32 -0
- package/es/components/eftposPay/pay.d.ts +10 -0
- package/es/components/eftposPay/pay.js +108 -0
- package/es/components/eftposPay/payo/config.d.ts +11 -0
- package/es/components/eftposPay/payo/config.js +357 -0
- package/es/components/eftposPay/payo/const.d.ts +6 -0
- package/es/components/eftposPay/payo/const.js +93 -0
- package/es/components/eftposPay/payo/hooks.d.ts +5 -0
- package/es/components/eftposPay/payo/hooks.js +84 -0
- package/es/components/eftposPay/payo/index.d.ts +7 -0
- package/es/components/eftposPay/payo/index.js +35 -0
- package/es/components/eftposPay/store/index.d.ts +239 -0
- package/es/components/eftposPay/store/index.js +304 -0
- package/es/components/eftposPay/store/useThunkReducer.d.ts +9 -0
- package/es/components/eftposPay/store/useThunkReducer.js +31 -0
- package/es/components/eftposPay/windcave/action.d.ts +8 -0
- package/es/components/eftposPay/windcave/action.js +104 -0
- package/es/components/eftposPay/windcave/const.d.ts +104 -0
- package/es/components/eftposPay/windcave/const.js +253 -0
- package/es/components/eftposPay/windcave/helper.d.ts +9 -0
- package/es/components/eftposPay/windcave/helper.js +314 -0
- package/es/components/eftposPay/windcave/hook.d.ts +14 -0
- package/es/components/eftposPay/windcave/hook.js +144 -0
- package/es/components/eftposPay/windcave/index.d.ts +8 -0
- package/es/components/eftposPay/windcave/index.js +49 -0
- package/es/components/eftposPay/windcave/pos.d.ts +8 -0
- package/es/components/eftposPay/windcave/pos.js +180 -0
- package/es/components/eftposPay/windcave/pwd.d.ts +8 -0
- package/es/components/eftposPay/windcave/pwd.js +124 -0
- package/es/components/eftposPay/windcave/receipet.d.ts +6 -0
- package/es/components/eftposPay/windcave/receipet.js +67 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +11 -0
- package/es/components/eftposPay/windcave/receiptAction.js +326 -0
- package/es/components/eftposPay/windcave/timer.d.ts +17 -0
- package/es/components/eftposPay/windcave/timer.js +181 -0
- package/es/components/eftposPay/windcave/wait.d.ts +12 -0
- package/es/components/eftposPay/windcave/wait.js +139 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +6 -0
- package/es/components/eftposPay/windcave/windcave.js +283 -0
- package/es/components/schedules/index.d.ts +1 -1
- package/es/components/schedules/model.d.ts +1 -2
- package/es/hooks/usePrefix.d.ts +1 -0
- package/es/hooks/usePrefix.js +10 -0
- package/es/index.d.ts +2 -0
- package/es/index.js +3 -1
- package/lib/components/booking/addons/index.d.ts +1 -1
- package/lib/components/booking/addons/model.d.ts +1 -2
- package/lib/components/booking/forms/forms.d.ts +1 -1
- package/lib/components/booking/forms/index.d.ts +1 -1
- package/lib/components/booking/forms/model.d.ts +1 -2
- package/lib/components/booking/index.d.ts +1 -1
- package/lib/components/booking/info/index.d.ts +1 -1
- package/lib/components/booking/info/model.d.ts +1 -2
- package/lib/components/booking/model.d.ts +1 -2
- package/lib/components/booking/notes/index.d.ts +1 -1
- package/lib/components/booking/notes/model.d.ts +1 -2
- package/lib/components/booking/payments/index.d.ts +1 -1
- package/lib/components/booking/payments/model.d.ts +1 -2
- package/lib/components/eftpos/const.d.ts +38 -0
- package/lib/components/eftpos/const.js +108 -0
- package/lib/components/eftpos/device.d.ts +8 -0
- package/lib/components/eftpos/device.js +55 -0
- package/lib/components/eftpos/form/index.d.ts +16 -0
- package/lib/components/eftpos/form/index.js +124 -0
- package/lib/components/eftpos/index.d.ts +37 -0
- package/lib/components/eftpos/index.js +279 -0
- package/lib/components/eftpos/index.less +153 -0
- package/lib/components/eftpos/locales.d.ts +75 -0
- package/lib/components/eftpos/locales.js +116 -0
- package/lib/components/eftpos/pos.d.ts +9 -0
- package/lib/components/eftpos/pos.js +55 -0
- package/lib/components/eftpos/surcharge/index.css +17 -0
- package/lib/components/eftpos/surcharge/index.d.ts +8 -0
- package/lib/components/eftpos/surcharge/index.js +125 -0
- package/lib/components/eftpos/table.d.ts +17 -0
- package/lib/components/eftpos/table.js +235 -0
- package/lib/components/eftposPay/amount.d.ts +14 -0
- package/lib/components/eftposPay/amount.js +239 -0
- package/lib/components/eftposPay/component/alert/index.d.ts +6 -0
- package/lib/components/eftposPay/component/alert/index.js +38 -0
- package/lib/components/eftposPay/component/alert/index.less +29 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +3 -0
- package/lib/components/eftposPay/component/alert/warn.js +80 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +4 -0
- package/lib/components/eftposPay/component/fail/failCustom.js +117 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +4 -0
- package/lib/components/eftposPay/component/fail/index.js +121 -0
- package/lib/components/eftposPay/component/fail/network.d.ts +4 -0
- package/lib/components/eftposPay/component/fail/network.js +65 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +4 -0
- package/lib/components/eftposPay/component/fail/unknow.js +72 -0
- package/lib/components/eftposPay/component/header/index.d.ts +9 -0
- package/lib/components/eftposPay/component/header/index.js +92 -0
- package/lib/components/eftposPay/component/header/index.less +44 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +13 -0
- package/lib/components/eftposPay/component/header/titlebar.js +55 -0
- package/lib/components/eftposPay/component/header/titlebar.less +17 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +5 -0
- package/lib/components/eftposPay/component/manual/index.js +101 -0
- package/lib/components/eftposPay/component/manual/index.less +96 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +4 -0
- package/lib/components/eftposPay/component/signature/index.js +80 -0
- package/lib/components/eftposPay/component/step/index.d.ts +12 -0
- package/lib/components/eftposPay/component/step/index.js +71 -0
- package/lib/components/eftposPay/component/step/step.d.ts +9 -0
- package/lib/components/eftposPay/component/step/step.js +59 -0
- package/lib/components/eftposPay/const.d.ts +131 -0
- package/lib/components/eftposPay/const.js +86 -0
- package/lib/components/eftposPay/device.d.ts +14 -0
- package/lib/components/eftposPay/device.js +127 -0
- package/lib/components/eftposPay/device.less +61 -0
- package/lib/components/eftposPay/eftpos/config.d.ts +11 -0
- package/lib/components/eftposPay/eftpos/config.js +199 -0
- package/lib/components/eftposPay/eftpos/const.d.ts +10 -0
- package/lib/components/eftposPay/eftpos/const.js +165 -0
- package/lib/components/eftposPay/eftpos/index.d.ts +7 -0
- package/lib/components/eftposPay/eftpos/index.js +66 -0
- package/lib/components/eftposPay/helper.d.ts +3 -0
- package/lib/components/eftposPay/helper.js +62 -0
- package/lib/components/eftposPay/hooks.d.ts +4 -0
- package/lib/components/eftposPay/hooks.js +237 -0
- package/lib/components/eftposPay/index.d.ts +7 -0
- package/lib/components/eftposPay/index.js +189 -0
- package/lib/components/eftposPay/index.less +273 -0
- package/lib/components/eftposPay/locales.d.ts +264 -0
- package/lib/components/eftposPay/locales.js +304 -0
- package/lib/components/eftposPay/manufacturer.d.ts +6 -0
- package/lib/components/eftposPay/manufacturer.js +77 -0
- package/lib/components/eftposPay/pay.d.ts +10 -0
- package/lib/components/eftposPay/pay.js +120 -0
- package/lib/components/eftposPay/payo/config.d.ts +11 -0
- package/lib/components/eftposPay/payo/config.js +377 -0
- package/lib/components/eftposPay/payo/const.d.ts +6 -0
- package/lib/components/eftposPay/payo/const.js +112 -0
- package/lib/components/eftposPay/payo/hooks.d.ts +5 -0
- package/lib/components/eftposPay/payo/hooks.js +80 -0
- package/lib/components/eftposPay/payo/index.d.ts +7 -0
- package/lib/components/eftposPay/payo/index.js +63 -0
- package/lib/components/eftposPay/store/index.d.ts +239 -0
- package/lib/components/eftposPay/store/index.js +371 -0
- package/lib/components/eftposPay/store/useThunkReducer.d.ts +9 -0
- package/lib/components/eftposPay/store/useThunkReducer.js +53 -0
- package/lib/components/eftposPay/windcave/action.d.ts +8 -0
- package/lib/components/eftposPay/windcave/action.js +143 -0
- package/lib/components/eftposPay/windcave/const.d.ts +104 -0
- package/lib/components/eftposPay/windcave/const.js +300 -0
- package/lib/components/eftposPay/windcave/helper.d.ts +9 -0
- package/lib/components/eftposPay/windcave/helper.js +378 -0
- package/lib/components/eftposPay/windcave/hook.d.ts +14 -0
- package/lib/components/eftposPay/windcave/hook.js +139 -0
- package/lib/components/eftposPay/windcave/index.d.ts +8 -0
- package/lib/components/eftposPay/windcave/index.js +78 -0
- package/lib/components/eftposPay/windcave/pos.d.ts +8 -0
- package/lib/components/eftposPay/windcave/pos.js +197 -0
- package/lib/components/eftposPay/windcave/pwd.d.ts +8 -0
- package/lib/components/eftposPay/windcave/pwd.js +143 -0
- package/lib/components/eftposPay/windcave/receipet.d.ts +6 -0
- package/lib/components/eftposPay/windcave/receipet.js +93 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +11 -0
- package/lib/components/eftposPay/windcave/receiptAction.js +386 -0
- package/lib/components/eftposPay/windcave/timer.d.ts +17 -0
- package/lib/components/eftposPay/windcave/timer.js +126 -0
- package/lib/components/eftposPay/windcave/wait.d.ts +12 -0
- package/lib/components/eftposPay/windcave/wait.js +163 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +6 -0
- package/lib/components/eftposPay/windcave/windcave.js +283 -0
- package/lib/components/schedules/index.d.ts +1 -1
- package/lib/components/schedules/model.d.ts +1 -2
- package/lib/hooks/usePrefix.d.ts +1 -0
- package/lib/hooks/usePrefix.js +44 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +6 -0
- package/lowcode/eftpos/meta.ts +187 -0
- package/lowcode/eftpos-pay/meta.ts +122 -0
- package/package.json +4 -3
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/eftposPay/locales.ts
|
|
20
|
+
var locales_exports = {};
|
|
21
|
+
__export(locales_exports, {
|
|
22
|
+
default: () => locales_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(locales_exports);
|
|
25
|
+
var locales_default = {
|
|
26
|
+
en: {
|
|
27
|
+
"page.eftpos-pay.text.loading": (mode) => `${mode === "pay" ? "Payment" : "Refund"} in progress...`,
|
|
28
|
+
"page.eftpos-pay.text.wait": (val, mode) => mode === "pay" ? `Asked EFTPOS to accept payment for Purchase ${val}` : `Requested EFTPOS to accept the refund for ${val}.`,
|
|
29
|
+
"page.eftpos-pay.text.surcharge": "Waiting for customer to accept surcharge",
|
|
30
|
+
"page.eftpos-pay.text.card": "Waiting for customer to present card",
|
|
31
|
+
"page.eftpos-pay.text.account": "Waiting for customer to select account",
|
|
32
|
+
"page.eftpos-pay.text.pin": "Waiting for customer to enter PIN or sign the receipt",
|
|
33
|
+
"page.eftpos-pay.text.receipt": "Ask customer to sign the receipt",
|
|
34
|
+
"page.eftpos-pay.text.receipt.again.title": "Check signature",
|
|
35
|
+
"page.eftpos-pay.text.receipt.again.text": 'If the signature is correct, click "Accept". If the signature is incorrect, click "Decline".',
|
|
36
|
+
"page.eftpos-pay.text.signature.title": "Confirm decline signature?",
|
|
37
|
+
"page.eftpos-pay.text.signature.text": (mode) => mode === "pay" ? `Decline will cause payment failure, need to pay again.` : `Decline will cause refund failure; a refund needs to be processed again.`,
|
|
38
|
+
"page.eftpos-pay.text.timedout.title": "Sorry, the request has timed out. ",
|
|
39
|
+
"page.eftpos-pay.text.timedout.text": (mode) => mode === "pay" ? "Please manually mark the payment result based on the payment status displayed on the card reader, to ensure the accuracy of the transaction." : `Please manually verify the refund result based on the refund status displayed on the card reader to ensure the transaction's accuracy.`,
|
|
40
|
+
"page.eftpos-pay.text.request.title": (mode) => `${mode === "pay" ? "Payment" : "Refund"} request in progress... `,
|
|
41
|
+
"page.eftpos-pay.text.request.text": (mode) => mode === "pay" ? "Please manually mark the payment result based on the payment status displayed on the card reader, to ensure the accuracy of the transaction." : `Please manually verify the refund result based on the refund status displayed on the card reader to ensure the transaction's accuracy.`,
|
|
42
|
+
"page.eftpos-pay.text.request.unknown.title": (mode) => `Sorry, an unknown error occurred during the ${mode === "pay" ? "payment" : "refund"} process. `,
|
|
43
|
+
"page.eftpos-pay.text.request.unknown.text": (mode) => mode === "pay" ? "Please manually mark the payment result based on the payment status displayed on the card reader, to ensure the accuracy of the transaction." : `Please manually mark the refund result based on the refund status displayed on the card reader, to ensure the accuracy of the transaction.`,
|
|
44
|
+
"page.eftpos-pay.text.interrupted": "EFTPOS device connection interrupted",
|
|
45
|
+
"page.eftpos-pay.text.reconnect": "Attempting to reconnect the EFTPOS ...",
|
|
46
|
+
"page.eftpos-pay.text.waiting.pay": (mode) => mode === "pay" ? "If you have confirmed the payment status from the EFTPOS, you can press Manual marking buttonto skip." : "If you have confirmed the refund status on the EFTPOS, you can press the Manual Marking button to skip.",
|
|
47
|
+
"page.eftpos-pay.text.restored": "Network connection restored",
|
|
48
|
+
"page.eftpos-pay.text.disconnected": "This iPad network disconnected",
|
|
49
|
+
"page.eftpos-pay.text.waiting.network": "Waiting for network recovery ...",
|
|
50
|
+
"page.eftpos-pay.text.waiting.wifi.title": "Please check your device's network.",
|
|
51
|
+
"page.eftpos-pay.text.waiting.wifi.connection": "1. Check Wi-Fi connection.",
|
|
52
|
+
"page.eftpos-pay.text.waiting.wifi.router": " 2. Restart the router.",
|
|
53
|
+
"page.eftpos-pay.text.waiting.wifi.forget.reconnect": "3. Forget network and reconnect",
|
|
54
|
+
"page.eftpos-pay.text.accept": "Accept",
|
|
55
|
+
"page.eftpos-pay.text.decline": "Decline",
|
|
56
|
+
"page.eftpos-pay.text.manual.marking": "Manual marking",
|
|
57
|
+
"page.eftpos-pay.text.modify.payment.info": (mode) => mode === "pay" ? "Modify payment info" : "Modify refund information",
|
|
58
|
+
"page.eftpos-pay.text.successful": (mode) => `${mode === "pay" ? "Payment" : "Refund"} successful`,
|
|
59
|
+
"page.eftpos-pay.text.failed": (mode) => `${mode === "pay" ? "Payment" : "Refund"} failed`,
|
|
60
|
+
"page.eftpos-pay.text.confirm": "Confirm",
|
|
61
|
+
"page.eftpos-pay.text.confirm.decline": "Confirm decline",
|
|
62
|
+
"page.eftpos-pay.text.back": "Back",
|
|
63
|
+
"page.eftpos-pay.text.cancel": "Cancel",
|
|
64
|
+
"page.eftpos-pay.text.waiting.processing": "Waiting for the processing",
|
|
65
|
+
"page.eftpos-pay.text.waiting.signature": "Waiting for you to check signature",
|
|
66
|
+
"page.eftpos-pay.text.waiting.decline": "Waiting for decline",
|
|
67
|
+
"page.eftpos-pay.text.processing": "Processing",
|
|
68
|
+
"page.eftpos-pay.text.transaction.processing": "Transaction in progress",
|
|
69
|
+
"page.eftpos-pay.text.retry": "Retry",
|
|
70
|
+
"page.eftpos-pay.text.sure": "Sure",
|
|
71
|
+
"page.eftpos-pay.text.device": "Please select device",
|
|
72
|
+
"page.eftpos-pay.text.leave": "Please do not leave this page",
|
|
73
|
+
"page.eftpos-pay.text.amount.to.pay": "Amount to pay",
|
|
74
|
+
"page.eftpos-pay.text.surcharge.percentage": "Percentage",
|
|
75
|
+
"page.eftpos-pay.text.surcharge.fixed": "Fixed",
|
|
76
|
+
"page.eftpos-pay.text.surcharge.percentage-fixed": "Surcharge = Percentage + Fixed",
|
|
77
|
+
"page.eftpos-pay.text.surcharge.edit.title": "Edit Payment Surcharge",
|
|
78
|
+
// 自定义
|
|
79
|
+
"page.eftpos-pay.text.input.title": (name) => `Amount to pay on ${name}`,
|
|
80
|
+
"page.eftpos-pay.text.amount.cash.left.pay.paid": (money) => `${money} left to be paid`,
|
|
81
|
+
"page.eftpos-pay.text.surcharge.edit.actual.pay": "Actual Pay",
|
|
82
|
+
"page.eftpos-pay.text.surcharge.edit.inc.surcharge": "Inc. Surcharge",
|
|
83
|
+
"page.eftpos-pay.text.surcharge.edit.rate": "Rate",
|
|
84
|
+
"page.eftpos-pay.text.surcharge.edit.surcharge": "Edit Surcharge",
|
|
85
|
+
"page.eftpos-pay.text.transaction.end": "Transaction end",
|
|
86
|
+
"page.eftpos-pay.text.transaction.fail": "Transaction failed.",
|
|
87
|
+
"page.eftpos-pay.text.transaction.fail.timeout": "Transaction timeout.",
|
|
88
|
+
"page.eftpos-pay.text.transaction.pay.fail.timeout": "Transaction timeout.",
|
|
89
|
+
"page.eftpos-pay.text.transaction.fail.terminal.title": "EFTPOS busy",
|
|
90
|
+
"page.eftpos-pay.text.transaction.fail.terminal": "The EFTPOS terminal is temporarily unavailable due to processing another transaction.",
|
|
91
|
+
"page.eftpos-pay.text.transaction.fail.cancel.title": "Cancels transaction",
|
|
92
|
+
"page.eftpos-pay.text.transaction.fail.cancel": "EFTPOS cancels transaction..",
|
|
93
|
+
"page.eftpos-pay.text.transaction.fail.socket": "EFTPOS device connection failed.",
|
|
94
|
+
"page.eftpos-pay.text.transaction.eftpos.fail": "EFTPOS device connection interrupted",
|
|
95
|
+
"page.eftpos-pay.text.transaction.eftpos.fail.title": "Please check your device",
|
|
96
|
+
"page.eftpos-pay.text.transaction.eftpos.fail.power": "1. Check the device power.",
|
|
97
|
+
"page.eftpos-pay.text.transaction.eftpos.fail.device": "2. Check if the device is turned on.",
|
|
98
|
+
"page.eftpos-pay.text.transaction.eftpos.fail.network": "3. Check the device network.",
|
|
99
|
+
"page.eftpos-pay.text.transaction.eftpos.fail.if": (mode) => mode === "pay" ? "If you have confirmed the payment status of this order, please click on Manual marking." : "If you have confirmed the refund status of this order, please click on Manual Marking.",
|
|
100
|
+
"page.eftpos-pay.text.application": "Waiting for customer to select application",
|
|
101
|
+
"page.eftpos-pay.text.approved": "Approved",
|
|
102
|
+
"page.eftpos-pay.text.device.no.title": "No devices added yet. Please add devices to proceed.",
|
|
103
|
+
"page.eftpos-pay.text.device.no.add": "To add devices:",
|
|
104
|
+
"page.eftpos-pay.text.device.no.web": `Admin Panel: Settings > Payment > EFTPOS > Click 'Manage' next to the vendor > Add Device`,
|
|
105
|
+
"page.eftpos-pay.text.device.no.terminal": `Terminal: Settings > EFTPOS > Click 'Manage' next to the vendor > Add Device`,
|
|
106
|
+
"page.eftpos-pay.text.waiting.decline.signature": " Waiting for the decline signature",
|
|
107
|
+
"page.eftpos-pay.text.unknown.title": (mode) => `Mark ${mode === "pay" ? "payment" : "refund"} status`,
|
|
108
|
+
"page.eftpos-pay.text.unknown.text": (mode) => `Sorry, an unknown error occurred during the ${mode === "pay" ? "payment" : "refund"} process. Please manually mark the status of this ${mode === "pay" ? "payment" : "refund"}`,
|
|
109
|
+
"page.eftpos-pay.text.reconnecting": "Reconnecting",
|
|
110
|
+
"page.eftpos-pay.text.reconnect.network": "Reconnect network",
|
|
111
|
+
"page.eftpos-pay.text.network.disconnected": "Network disconnected",
|
|
112
|
+
"page.eftpos-pay.text.not.connected": "The network is not connected"
|
|
113
|
+
},
|
|
114
|
+
"zh-CN": {
|
|
115
|
+
"page.eftpos-pay.text.loading": (mode) => `${mode === "pay" ? "支付" : "退款"}进行中...`,
|
|
116
|
+
"page.eftpos-pay.text.wait": (val, mode) => mode === "pay" ? `等待EFTPOS接受${val}的付款` : `请求EFTPOS接受${val}的退款。`,
|
|
117
|
+
"page.eftpos-pay.text.surcharge": "等待客户确认支付手续费",
|
|
118
|
+
"page.eftpos-pay.text.card": "等待客户出示卡片",
|
|
119
|
+
"page.eftpos-pay.text.account": "等待客户选择账户",
|
|
120
|
+
"page.eftpos-pay.text.pin": "等待客户输入密码或签名",
|
|
121
|
+
"page.eftpos-pay.text.receipt": "请客户在收据上签名",
|
|
122
|
+
"page.eftpos-pay.text.receipt.again.title": "确认客户签名",
|
|
123
|
+
"page.eftpos-pay.text.receipt.again.text": "如果签名正确,请点击“接受”。如果签名错误,请点击“拒绝”。",
|
|
124
|
+
"page.eftpos-pay.text.signature.title": "确认拒绝签名?",
|
|
125
|
+
"page.eftpos-pay.text.signature.text": (mode) => mode === "pay" ? "拒绝将导致支付失败,需重新支付。" : "拒绝将导致退款失败;需要重新退款",
|
|
126
|
+
"page.eftpos-pay.text.timedout.title": "抱歉,请求超时了。",
|
|
127
|
+
"page.eftpos-pay.text.timedout.text": (mode) => mode === "pay" ? "请您根据刷卡机上的支付状态,手动标记支付结果,以确保交易的准确性。" : "请根据显示在刷卡机上的退款状态,手动标记退款结果,以确保交易准确性。",
|
|
128
|
+
"page.eftpos-pay.text.request.title": (mode) => `${mode === "pay" ? "支付" : "退款"}请求仍在进行中... `,
|
|
129
|
+
"page.eftpos-pay.text.request.text": (mode) => mode === "pay" ? "请您根据刷卡机上的支付状态,手动标记支付结果,以确保交易的准确性。" : "请根据显示在刷卡机上的退款状态,手动标记退款结果,以确保交易准确性。",
|
|
130
|
+
"page.eftpos-pay.text.request.unknown.title": (mode) => `抱歉, ${mode === "pay" ? "支付" : "退款"} 过程中出现了未知错误`,
|
|
131
|
+
"page.eftpos-pay.text.request.unknown.text": (mode) => mode === "pay" ? "请您根据刷卡机上的支付状态,手动标记支付结果,以确保交易的准确性。" : `请您根据刷卡机上的退款状态,手动标记退款结果,以确保交易的准确性。`,
|
|
132
|
+
"page.eftpos-pay.text.interrupted": "EFTPOS设备连接中断",
|
|
133
|
+
"page.eftpos-pay.text.reconnect": "正在尝试重新连接EFTPOS。。。",
|
|
134
|
+
"page.eftpos-pay.text.waiting.pay": (mode) => mode === "pay" ? "如果您已经从EFTPOS确认了付款状态,您可以按手动标记按钮跳过。" : "如果您已确认了EFTPOS上的退款状态,您可以按下手动标记按钮跳过。",
|
|
135
|
+
"page.eftpos-pay.text.restored": "网络连接已恢复",
|
|
136
|
+
"page.eftpos-pay.text.disconnected": "此iPad网络已断开连接",
|
|
137
|
+
"page.eftpos-pay.text.waiting.network": "正在等待网络恢复...",
|
|
138
|
+
"page.eftpos-pay.text.waiting.wifi.title": "请检查设备网络。",
|
|
139
|
+
"page.eftpos-pay.text.waiting.wifi.connection": "1. 检查Wi-Fi连接。",
|
|
140
|
+
"page.eftpos-pay.text.waiting.wifi.router": "2. 重启路由器。",
|
|
141
|
+
"page.eftpos-pay.text.waiting.wifi.forget.reconnect": "3. 忘记网络并重新连接",
|
|
142
|
+
"page.eftpos-pay.text.accept": "接受",
|
|
143
|
+
"page.eftpos-pay.text.decline": "拒绝",
|
|
144
|
+
"page.eftpos-pay.text.manual.marking": "手动标记",
|
|
145
|
+
"page.eftpos-pay.text.modify.payment.info": (mode) => mode === "pay" ? "修改支付信息" : "修改退款信息",
|
|
146
|
+
"page.eftpos-pay.text.successful": (mode) => `${mode === "pay" ? "支付" : "退款"}成功`,
|
|
147
|
+
"page.eftpos-pay.text.failed": (mode) => `${mode === "pay" ? "支付" : "退款"}失败`,
|
|
148
|
+
"page.eftpos-pay.text.confirm": "确认",
|
|
149
|
+
"page.eftpos-pay.text.confirm.decline": "确认拒绝",
|
|
150
|
+
"page.eftpos-pay.text.back": "返回",
|
|
151
|
+
"page.eftpos-pay.text.cancel": "取消",
|
|
152
|
+
"page.eftpos-pay.text.waiting.processing": "等待处理中",
|
|
153
|
+
"page.eftpos-pay.text.waiting.signature": "等待您检查签名",
|
|
154
|
+
"page.eftpos-pay.text.waiting.decline": "等待拒绝",
|
|
155
|
+
"page.eftpos-pay.text.processing": "处理中",
|
|
156
|
+
"page.eftpos-pay.text.transaction.processing": "交易进行中",
|
|
157
|
+
"page.eftpos-pay.text.retry": "重试",
|
|
158
|
+
"page.eftpos-pay.text.sure": "确定",
|
|
159
|
+
"page.eftpos-pay.text.device": "请选择设备",
|
|
160
|
+
"page.eftpos-pay.text.leave": "请不要离开此页面",
|
|
161
|
+
"page.eftpos-pay.text.amount.to.pay": "剩余待支付金额",
|
|
162
|
+
"page.eftpos-pay.text.surcharge.percentage": "百分比",
|
|
163
|
+
// Percentage
|
|
164
|
+
"page.eftpos-pay.text.surcharge.fixed": "固定金额",
|
|
165
|
+
// Fixed
|
|
166
|
+
"page.eftpos-pay.text.surcharge.percentage-fixed": "支付手续费=百分比+固定金额",
|
|
167
|
+
// Surcharge = Percentage + Fixed
|
|
168
|
+
"page.eftpos-pay.text.surcharge.edit.title": "编辑支付手续费",
|
|
169
|
+
// Edit Payment Surcharge
|
|
170
|
+
"page.eftpos-pay.text.input.title": (name) => `使用${name || ""}支付的金额`,
|
|
171
|
+
"page.eftpos-pay.text.amount.cash.left.pay.paid": (money) => `还需支付 ${money}`,
|
|
172
|
+
"page.eftpos-pay.text.surcharge.edit.actual.pay": "实际支付",
|
|
173
|
+
// Actual Pay
|
|
174
|
+
"page.eftpos-pay.text.surcharge.edit.inc.surcharge": "包含手续费",
|
|
175
|
+
// Inc. Surcharge
|
|
176
|
+
"page.eftpos-pay.text.surcharge.edit.rate": "费率",
|
|
177
|
+
// Rate
|
|
178
|
+
"page.eftpos-pay.text.surcharge.edit.surcharge": "编辑手续费",
|
|
179
|
+
// Edit Surcharge
|
|
180
|
+
"page.eftpos-pay.text.transaction.end": "交易结束",
|
|
181
|
+
"page.eftpos-pay.text.transaction.fail": "交易失败",
|
|
182
|
+
"page.eftpos-pay.text.transaction.fail.timeout": "交易等待超时",
|
|
183
|
+
"page.eftpos-pay.text.transaction.pay.fail.timeout": "交易请求超时",
|
|
184
|
+
"page.eftpos-pay.text.transaction.fail.terminal.title": "刷卡机繁忙",
|
|
185
|
+
"page.eftpos-pay.text.transaction.fail.terminal": "由于正在处理另一笔交易,EFTPOS终端暂时不可用。",
|
|
186
|
+
"page.eftpos-pay.text.transaction.fail.cancel.title": "取消交易",
|
|
187
|
+
"page.eftpos-pay.text.transaction.fail.cancel": "EFTPOS终端取消交易。",
|
|
188
|
+
"page.eftpos-pay.text.transaction.fail.socket": "刷卡机设备连接失败",
|
|
189
|
+
"page.eftpos-pay.text.transaction.eftpos.fail": "EFTPOS 设备连接中断",
|
|
190
|
+
"page.eftpos-pay.text.transaction.eftpos.fail.title": "请检查您的刷卡机设备。",
|
|
191
|
+
"page.eftpos-pay.text.transaction.eftpos.fail.power": "1. 检查设备电源",
|
|
192
|
+
"page.eftpos-pay.text.transaction.eftpos.fail.device": "2. 检查设备是否开机",
|
|
193
|
+
"page.eftpos-pay.text.transaction.eftpos.fail.network": "3. 检查设备网络",
|
|
194
|
+
"page.eftpos-pay.text.transaction.eftpos.fail.if": (mode) => mode === "pay" ? "如果您已确认此交易的付款状态,请点击手动标记" : "如果您已确认此订单的退款状态,请点击手动标记。",
|
|
195
|
+
"page.eftpos-pay.text.application": "等待客户选择应用",
|
|
196
|
+
"page.eftpos-pay.text.approved": "已接受",
|
|
197
|
+
"page.eftpos-pay.text.device.no.title": "您还没有添加任何设备。请添加设备后使用",
|
|
198
|
+
"page.eftpos-pay.text.device.no.add": "添加设备方式:",
|
|
199
|
+
"page.eftpos-pay.text.device.no.web": `管理后台:设置 > 收款 > EFTPOS > 确认厂商点击“管理” > 添加设备`,
|
|
200
|
+
"page.eftpos-pay.text.device.no.terminal": `Terminal:设置 > EFTPOS > 确认厂商点击“管理” > 添加设备`,
|
|
201
|
+
"page.eftpos-pay.text.waiting.decline.signature": " 等待拒绝签名",
|
|
202
|
+
"page.eftpos-pay.text.unknown.title": (mode) => `标记${mode === "pay" ? "支付" : "退款"}状态`,
|
|
203
|
+
"page.eftpos-pay.text.unknown.text": (mode) => `抱歉,${mode === "pay" ? "支付" : "退款"}过程中出现了未知错误。请您手动标记此${mode === "pay" ? "支付" : "退款"}的状态。`,
|
|
204
|
+
"page.eftpos-pay.text.reconnecting": "连接中",
|
|
205
|
+
"page.eftpos-pay.text.reconnect.network": "重连网络",
|
|
206
|
+
"page.eftpos-pay.text.network.disconnected": "网络断开连接",
|
|
207
|
+
"page.eftpos-pay.text.not.connected": "当前网络未连接"
|
|
208
|
+
},
|
|
209
|
+
"zh-HK": {
|
|
210
|
+
"page.eftpos-pay.text.loading": (mode) => `${mode === "pay" ? "支付" : "退款"}進行中...`,
|
|
211
|
+
"page.eftpos-pay.text.wait": (val, mode) => mode === "pay" ? `等待EFTPOS接受${val}的付款` : `請求EFTPOS接受${val}的退款。`,
|
|
212
|
+
"page.eftpos-pay.text.surcharge": "等待客户確認支付手續費",
|
|
213
|
+
"page.eftpos-pay.text.card": "等待客户出示卡片",
|
|
214
|
+
"page.eftpos-pay.text.account": "等待客户選擇賬户",
|
|
215
|
+
"page.eftpos-pay.text.pin": "等待客户輸入密碼或簽名",
|
|
216
|
+
"page.eftpos-pay.text.receipt": "請客户在收據上簽名",
|
|
217
|
+
"page.eftpos-pay.text.receipt.again.title": "確認客户簽名",
|
|
218
|
+
"page.eftpos-pay.text.receipt.again.text": "如果簽名正確,請點擊“接受”。如果簽名錯誤,請點擊“拒絕”。",
|
|
219
|
+
"page.eftpos-pay.text.signature.title": "確認拒絕簽名?",
|
|
220
|
+
"page.eftpos-pay.text.signature.text": (mode) => mode === "pay" ? "拒絕將導致支付失敗,需重新支付。" : "拒絕將導致退款失敗;需要重新退款",
|
|
221
|
+
"page.eftpos-pay.text.timedout.title": "抱歉,請求超時了。",
|
|
222
|
+
"page.eftpos-pay.text.timedout.text": (mode) => mode === "pay" ? "請您根據刷卡機上的支付狀態,手動標記支付結果,以確保交易的準確性。" : "請根據顯示在刷卡機上的退款狀態,手動標記退款結果,以確保交易準確性。",
|
|
223
|
+
"page.eftpos-pay.text.request.title": (mode) => `${mode === "pay" ? "支付" : "退款"}請求仍在進行中... `,
|
|
224
|
+
"page.eftpos-pay.text.request.text": (mode) => mode === "pay" ? "請您根據刷卡機上的支付狀態,手動標記支付結果,以確保交易的準確性。" : "請根據顯示在刷卡機上的退款狀態,手動標記退款結果,以確保交易準確性。",
|
|
225
|
+
"page.eftpos-pay.text.request.unknown.title": (mode) => `抱歉, ${mode === "pay" ? "支付" : "退款"} 过程中出现了未知错误`,
|
|
226
|
+
"page.eftpos-pay.text.request.unknown.text": (mode) => mode === "pay" ? "請您根據刷卡機上的支付狀態,手動標記支付結果,以確保交易的準確性。" : `請您根據刷卡機上的退款狀態,手動標記退款結果,以確保交易的準確性。`,
|
|
227
|
+
"page.eftpos-pay.text.interrupted": "EFTPOS設備連接中斷",
|
|
228
|
+
"page.eftpos-pay.text.reconnect": "正在嘗試重新連接EFTPOS。。。",
|
|
229
|
+
"page.eftpos-pay.text.waiting.pay": (mode) => mode === "pay" ? "如果您已經從EFTPOS確認了付款狀態,您可以按手動標記按鈕跳過。" : "如果您已確認了EFTPOS上的退款狀態,您可以按下手動標記按鈕跳過。",
|
|
230
|
+
"page.eftpos-pay.text.restored": "網絡連接已恢復",
|
|
231
|
+
"page.eftpos-pay.text.disconnected": "此iPad網絡已斷開連接",
|
|
232
|
+
"page.eftpos-pay.text.waiting.network": "正在等待網絡恢復...",
|
|
233
|
+
"page.eftpos-pay.text.waiting.wifi.title": "請檢查設備網絡。",
|
|
234
|
+
"page.eftpos-pay.text.waiting.wifi.connection": "1. 檢查Wi-Fi連接。",
|
|
235
|
+
"page.eftpos-pay.text.waiting.wifi.router": "2. 重啓路由器。",
|
|
236
|
+
"page.eftpos-pay.text.waiting.wifi.forget.reconnect": "3. 忘記網絡並重新連接",
|
|
237
|
+
"page.eftpos-pay.text.accept": "接受",
|
|
238
|
+
"page.eftpos-pay.text.decline": "拒絕",
|
|
239
|
+
"page.eftpos-pay.text.manual.marking": "手動標記",
|
|
240
|
+
"page.eftpos-pay.text.modify.payment.info": (mode) => mode === "pay" ? "修改支付信息" : "修改退款信息",
|
|
241
|
+
"page.eftpos-pay.text.successful": (mode) => `${mode === "pay" ? "支付" : "退款"}成功`,
|
|
242
|
+
"page.eftpos-pay.text.failed": (mode) => `${mode === "pay" ? "支付" : "退款"}失敗`,
|
|
243
|
+
"page.eftpos-pay.text.confirm": "確認",
|
|
244
|
+
"page.eftpos-pay.text.confirm.decline": "確認拒絕",
|
|
245
|
+
"page.eftpos-pay.text.back": "返回",
|
|
246
|
+
"page.eftpos-pay.text.cancel": "取消",
|
|
247
|
+
"page.eftpos-pay.text.waiting.processing": "等待處理中",
|
|
248
|
+
"page.eftpos-pay.text.waiting.signature": "等待您檢查簽名",
|
|
249
|
+
"page.eftpos-pay.text.waiting.decline": "等待拒絕",
|
|
250
|
+
"page.eftpos-pay.text.processing": "處理中",
|
|
251
|
+
"page.eftpos-pay.text.transaction.processing": "交易進行中",
|
|
252
|
+
"page.eftpos-pay.text.retry": "重試",
|
|
253
|
+
"page.eftpos-pay.text.sure": "確定",
|
|
254
|
+
"page.eftpos-pay.text.device": "請選擇設備",
|
|
255
|
+
"page.eftpos-pay.text.leave": "請不要離開此頁面",
|
|
256
|
+
"page.eftpos-pay.text.amount.to.pay": "剩餘待支付金額",
|
|
257
|
+
"page.eftpos-pay.text.surcharge.percentage": "百分比",
|
|
258
|
+
// Percentage
|
|
259
|
+
"page.eftpos-pay.text.surcharge.fixed": "固定金額",
|
|
260
|
+
// Fixed
|
|
261
|
+
"page.eftpos-pay.text.surcharge.percentage-fixed": "支付手續費=百分比+固定金額",
|
|
262
|
+
// Surcharge = Percentage + Fixed
|
|
263
|
+
"page.eftpos-pay.text.surcharge.edit.title": "編輯支付手續費",
|
|
264
|
+
// Edit Payment Surcharge
|
|
265
|
+
"page.eftpos-pay.text.input.title": (name) => `使用${name || ""} 支付的金額`,
|
|
266
|
+
"page.eftpos-pay.text.amount.cash.left.pay.paid": (money) => `還需支付 ${money} `,
|
|
267
|
+
"page.eftpos-pay.text.surcharge.edit.actual.pay": "實際支付",
|
|
268
|
+
// Actual Pay
|
|
269
|
+
"page.eftpos-pay.text.surcharge.edit.inc.surcharge": "包含手續費",
|
|
270
|
+
// Inc. Surcharge
|
|
271
|
+
"page.eftpos-pay.text.surcharge.edit.rate": "費率",
|
|
272
|
+
// Rate
|
|
273
|
+
"page.eftpos-pay.text.surcharge.edit.surcharge": "編輯手續費",
|
|
274
|
+
// Edit Surcharge
|
|
275
|
+
"page.eftpos-pay.text.transaction.end": "交易結束",
|
|
276
|
+
"page.eftpos-pay.text.transaction.fail": "交易失敗",
|
|
277
|
+
"page.eftpos-pay.text.transaction.fail.timeout": "交易等待超時",
|
|
278
|
+
"page.eftpos-pay.text.transaction.pay.fail.timeout": "交易請求超時",
|
|
279
|
+
"page.eftpos-pay.text.transaction.fail.terminal.title": "刷卡機繁忙",
|
|
280
|
+
"page.eftpos-pay.text.transaction.fail.terminal": "由於正在處理另一筆交易,EFTPOS終端暫時不可用。",
|
|
281
|
+
"page.eftpos-pay.text.transaction.fail.cancel.title": "取消交易",
|
|
282
|
+
"page.eftpos-pay.text.transaction.fail.cancel": "EFTPOS終端取消交易。",
|
|
283
|
+
"page.eftpos-pay.text.transaction.fail.socket": "刷卡機設備連接失敗",
|
|
284
|
+
"page.eftpos-pay.text.transaction.eftpos.fail": "EFTPOS 設備連接中斷",
|
|
285
|
+
"page.eftpos-pay.text.transaction.eftpos.fail.title": "請檢查您的刷卡機設備。",
|
|
286
|
+
"page.eftpos-pay.text.transaction.eftpos.fail.power": "1. 檢查設備電源",
|
|
287
|
+
"page.eftpos-pay.text.transaction.eftpos.fail.device": "2. 檢查設備是否開機",
|
|
288
|
+
"page.eftpos-pay.text.transaction.eftpos.fail.network": "3. 檢查設備網絡",
|
|
289
|
+
"page.eftpos-pay.text.transaction.eftpos.fail.if": (mode) => mode === "pay" ? "如果您已確認此交易的付款狀態,請點擊手動標記" : "如果您已確認此訂單的退款狀態,請點擊手動標記。",
|
|
290
|
+
"page.eftpos-pay.text.application": "等待客户選擇應用",
|
|
291
|
+
"page.eftpos-pay.text.approved": "已接受",
|
|
292
|
+
"page.eftpos-pay.text.device.no.title": "您還沒有添加任何設備。請添加設備後使用",
|
|
293
|
+
"page.eftpos-pay.text.device.no.add": "添加設備方式:",
|
|
294
|
+
"page.eftpos-pay.text.device.no.web": `管理後台:設置 > 收款 > EFTPOS > 確認廠商點擊“管理” > 添加設備`,
|
|
295
|
+
"page.eftpos-pay.text.device.no.terminal": `Terminal:設置 > EFTPOS > 確認廠商點擊“管理” > 添加設備`,
|
|
296
|
+
"page.eftpos-pay.text.waiting.decline.signature": " 等待拒絕簽名",
|
|
297
|
+
"page.eftpos-pay.text.unknown.title": (mode) => `標記${mode === "pay" ? "支付" : "退款"}狀態`,
|
|
298
|
+
"page.eftpos-pay.text.unknown.text": (mode) => `抱歉,${mode === "pay" ? "支付" : "退款"}過程中出現了未知錯誤。請您手動標記此${mode === "pay" ? "支付" : "退款"}的狀態。`,
|
|
299
|
+
"page.eftpos-pay.text.reconnecting": "連接中",
|
|
300
|
+
"page.eftpos-pay.text.reconnect.network": "重連網絡",
|
|
301
|
+
"page.eftpos-pay.text.network.disconnected": "網絡斷開連接",
|
|
302
|
+
"page.eftpos-pay.text.not.connected": "當前網絡未連接"
|
|
303
|
+
}
|
|
304
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { State } from './store';
|
|
2
|
+
export { default as Payo } from './payo';
|
|
3
|
+
export { default as Windcave } from './windcave/windcave';
|
|
4
|
+
export { default as Eftpos } from './eftpos';
|
|
5
|
+
export declare const getInitState: (type: string, params?: any) => State;
|
|
6
|
+
export declare const getDeviceInfo: (store: State) => import("./const").Amount;
|
|
@@ -0,0 +1,77 @@
|
|
|
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/eftposPay/manufacturer.tsx
|
|
30
|
+
var manufacturer_exports = {};
|
|
31
|
+
__export(manufacturer_exports, {
|
|
32
|
+
Eftpos: () => import_eftpos.default,
|
|
33
|
+
Payo: () => import_payo.default,
|
|
34
|
+
Windcave: () => import_windcave.default,
|
|
35
|
+
getDeviceInfo: () => getDeviceInfo,
|
|
36
|
+
getInitState: () => getInitState
|
|
37
|
+
});
|
|
38
|
+
module.exports = __toCommonJS(manufacturer_exports);
|
|
39
|
+
var import_const = require("./const");
|
|
40
|
+
var import_const2 = __toESM(require("./eftpos/const"));
|
|
41
|
+
var import_const3 = __toESM(require("./payo/const"));
|
|
42
|
+
var import_const4 = __toESM(require("./windcave/const"));
|
|
43
|
+
var import_payo = __toESM(require("./payo"));
|
|
44
|
+
var import_windcave = __toESM(require("./windcave/windcave"));
|
|
45
|
+
var import_eftpos = __toESM(require("./eftpos"));
|
|
46
|
+
var getInitState = (type, params) => {
|
|
47
|
+
switch (type) {
|
|
48
|
+
case import_const.EftposEnum.Payo:
|
|
49
|
+
return (0, import_const3.default)(params);
|
|
50
|
+
case import_const.EftposEnum.Eftpos:
|
|
51
|
+
return (0, import_const2.default)(params);
|
|
52
|
+
case import_const.EftposEnum.Windcave:
|
|
53
|
+
return (0, import_const4.default)(params);
|
|
54
|
+
default:
|
|
55
|
+
throw new Error("未知的厂商类型");
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
var getDeviceInfo = (store) => {
|
|
59
|
+
if (store.eftpos === import_const.EftposEnum.Eftpos) {
|
|
60
|
+
return (0, import_const3.getAmonunt)(store);
|
|
61
|
+
}
|
|
62
|
+
if (store.eftpos === import_const.EftposEnum.Payo) {
|
|
63
|
+
return (0, import_const2.getAmonunt)(store);
|
|
64
|
+
}
|
|
65
|
+
if (store.eftpos === import_const.EftposEnum.Windcave) {
|
|
66
|
+
return (0, import_const4.getAmonunt)(store);
|
|
67
|
+
}
|
|
68
|
+
throw new Error("未知的厂商类型");
|
|
69
|
+
};
|
|
70
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
71
|
+
0 && (module.exports = {
|
|
72
|
+
Eftpos,
|
|
73
|
+
Payo,
|
|
74
|
+
Windcave,
|
|
75
|
+
getDeviceInfo,
|
|
76
|
+
getInitState
|
|
77
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PayProps } from './const';
|
|
3
|
+
import './index.less';
|
|
4
|
+
declare const Pay: ({ api, onChange: onChangeStatus, className, terminal, net, }: PayProps & {
|
|
5
|
+
terminal: {
|
|
6
|
+
network: boolean;
|
|
7
|
+
};
|
|
8
|
+
net: boolean;
|
|
9
|
+
}) => React.JSX.Element;
|
|
10
|
+
export default Pay;
|
|
@@ -0,0 +1,120 @@
|
|
|
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/eftposPay/pay.tsx
|
|
30
|
+
var pay_exports = {};
|
|
31
|
+
__export(pay_exports, {
|
|
32
|
+
default: () => pay_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(pay_exports);
|
|
35
|
+
var import_utils = require("@pisell/utils");
|
|
36
|
+
var import_react = __toESM(require("react"));
|
|
37
|
+
var import_fail = __toESM(require("./component/fail"));
|
|
38
|
+
var import_failCustom = __toESM(require("./component/fail/failCustom"));
|
|
39
|
+
var import_network = __toESM(require("./component/fail/network"));
|
|
40
|
+
var import_unknow = __toESM(require("./component/fail/unknow"));
|
|
41
|
+
var import_header = __toESM(require("./component/header"));
|
|
42
|
+
var import_manual = __toESM(require("./component/manual"));
|
|
43
|
+
var import_signature = __toESM(require("./component/signature"));
|
|
44
|
+
var import_const = require("./const");
|
|
45
|
+
var import_manufacturer = require("./manufacturer");
|
|
46
|
+
var import_store = require("./store");
|
|
47
|
+
var import_index = require("./index.less");
|
|
48
|
+
var Mapping = {
|
|
49
|
+
Fail: import_fail.default,
|
|
50
|
+
Network: import_network.default,
|
|
51
|
+
Manual: import_manual.default,
|
|
52
|
+
Signature: import_signature.default,
|
|
53
|
+
FailCustom: import_failCustom.default,
|
|
54
|
+
UnknowFail: import_unknow.default
|
|
55
|
+
};
|
|
56
|
+
var Pay = ({
|
|
57
|
+
api,
|
|
58
|
+
onChange: onChangeStatus,
|
|
59
|
+
className,
|
|
60
|
+
terminal,
|
|
61
|
+
net
|
|
62
|
+
}) => {
|
|
63
|
+
const data = (0, import_store.useContextData)();
|
|
64
|
+
const dispatch = (0, import_store.useDispatch)();
|
|
65
|
+
const ref = (0, import_react.useRef)(false);
|
|
66
|
+
const statusRef = (0, import_react.useRef)(data.status);
|
|
67
|
+
const comonentRef = (0, import_react.useRef)(data.component);
|
|
68
|
+
(0, import_react.useEffect)(() => {
|
|
69
|
+
comonentRef.current = data.component;
|
|
70
|
+
}, [data.component]);
|
|
71
|
+
const Comm = Mapping[data.component];
|
|
72
|
+
const onChange = (status, params) => {
|
|
73
|
+
if (status !== "page") {
|
|
74
|
+
dispatch((0, import_store.updateStatus)(status));
|
|
75
|
+
}
|
|
76
|
+
onChangeStatus(status, params);
|
|
77
|
+
};
|
|
78
|
+
(0, import_react.useEffect)(() => {
|
|
79
|
+
ref.current = true;
|
|
80
|
+
}, []);
|
|
81
|
+
(0, import_react.useEffect)(() => {
|
|
82
|
+
console.log("net = ", net);
|
|
83
|
+
dispatch((0, import_store.updateCustom)({ net }));
|
|
84
|
+
if (!ref.current) {
|
|
85
|
+
ref.current = true;
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
if (statusRef.current === import_const.StatusEnum.Success) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
if (net) {
|
|
92
|
+
dispatch((0, import_store.backUpFree)({ key: Date.now() }));
|
|
93
|
+
dispatch((0, import_store.updateCustom)({ net }));
|
|
94
|
+
} else {
|
|
95
|
+
dispatch((0, import_store.updateState)({ lastComponent: "Network" }));
|
|
96
|
+
dispatch((0, import_store.backUpProduction)({}));
|
|
97
|
+
dispatch((0, import_store.updateCustom)({ net }));
|
|
98
|
+
dispatch((0, import_store.updateComponent)("Network"));
|
|
99
|
+
}
|
|
100
|
+
}, [dispatch, net]);
|
|
101
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, data.render ? /* @__PURE__ */ import_react.default.createElement(
|
|
102
|
+
"div",
|
|
103
|
+
{
|
|
104
|
+
className: `pisell-lowcode__eft-pay-box ${className}`,
|
|
105
|
+
style: data.type === "step" ? {} : { display: "none" }
|
|
106
|
+
},
|
|
107
|
+
/* @__PURE__ */ import_react.default.createElement(import_header.default, { status: data.status, title: data.title }),
|
|
108
|
+
data.eftpos === "payo" ? /* @__PURE__ */ import_react.default.createElement(import_manufacturer.Payo, { api, onChange }, data.warn && data.status !== import_const.StatusEnum.Success ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-warn" }, data.warn) : null, data.status === import_const.StatusEnum.Success ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-tip" }, import_utils.locales.getText("page.eftpos-pay.text.transaction.end")) : null) : null,
|
|
109
|
+
data.eftpos === "eftpos" ? /* @__PURE__ */ import_react.default.createElement(import_manufacturer.Eftpos, { api, onChange }, data.warn && data.status !== import_const.StatusEnum.Success ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-warn" }, data.warn) : null, data.status === import_const.StatusEnum.Success ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-tip" }, import_utils.locales.getText("page.eftpos-pay.text.transaction.end")) : null) : null,
|
|
110
|
+
data.eftpos === "windcave" ? /* @__PURE__ */ import_react.default.createElement(import_manufacturer.Windcave, { api, onChange, key: data.key }) : null
|
|
111
|
+
) : null, data.type === import_const.PayRouteEnum.Unset && Comm ? /* @__PURE__ */ import_react.default.createElement(
|
|
112
|
+
Comm,
|
|
113
|
+
{
|
|
114
|
+
onChange,
|
|
115
|
+
api,
|
|
116
|
+
className
|
|
117
|
+
}
|
|
118
|
+
) : null);
|
|
119
|
+
};
|
|
120
|
+
var pay_default = Pay;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StatusEnum } from '../const';
|
|
3
|
+
export declare const POS: ({ api, onChange, }: {
|
|
4
|
+
api: {
|
|
5
|
+
[key: string]: (...agrn: unknown[]) => Promise<unknown>;
|
|
6
|
+
};
|
|
7
|
+
onChange: (status: `${StatusEnum.Success}` | `${StatusEnum.Fail}`, params?: {
|
|
8
|
+
[keys: string]: unknown;
|
|
9
|
+
} | undefined) => void;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
|
+
export declare const Action: () => React.JSX.Element;
|