@pisell/private-materials 6.3.79 → 6.3.80

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.
Files changed (151) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +9 -9
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +9 -9
  9. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  10. package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  11. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  12. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  13. package/es/components/booking/forms/footer.d.ts +0 -1
  14. package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  15. package/es/components/booking/hooks/useClearCart.d.ts +0 -1
  16. package/es/components/booking/info/date/index.d.ts +1 -0
  17. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  18. package/es/components/eftpos/const.d.ts +3 -1
  19. package/es/components/eftpos/const.js +2 -0
  20. package/es/components/eftpos/device.d.ts +3 -1
  21. package/es/components/eftpos/device.js +5 -3
  22. package/es/components/eftpos/index.d.ts +0 -1
  23. package/es/components/eftpos/index.js +34 -11
  24. package/es/components/eftpos/index.less +26 -1
  25. package/es/components/eftpos/locales.d.ts +3 -0
  26. package/es/components/eftpos/locales.js +3 -0
  27. package/es/components/eftposPay/aggregatePayment/hooks/usePayment.d.ts +6 -0
  28. package/es/components/eftposPay/aggregatePayment/hooks/usePayment.js +125 -0
  29. package/es/components/eftposPay/aggregatePayment/index.d.ts +3 -0
  30. package/es/components/eftposPay/aggregatePayment/index.js +3 -0
  31. package/es/components/eftposPay/aggregatePayment/mock.d.ts +495 -0
  32. package/es/components/eftposPay/aggregatePayment/mock.js +567 -0
  33. package/es/components/eftposPay/aggregatePayment/service.d.ts +24 -0
  34. package/es/components/eftposPay/aggregatePayment/service.js +70 -0
  35. package/es/components/eftposPay/aggregatePayment/types.d.ts +96 -0
  36. package/es/components/eftposPay/aggregatePayment/types.js +61 -0
  37. package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
  38. package/es/components/eftposPay/aggregatePayment/utils/logs.js +385 -0
  39. package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +132 -0
  40. package/es/components/eftposPay/aggregatePayment/utils/payment.js +1127 -0
  41. package/es/components/eftposPay/amount.d.ts +0 -1
  42. package/es/components/eftposPay/const.d.ts +6 -1
  43. package/es/components/eftposPay/const.js +2 -0
  44. package/es/components/eftposPay/hooks.d.ts +2 -1
  45. package/es/components/eftposPay/hooks.js +12 -0
  46. package/es/components/eftposPay/linkly/index.js +1 -0
  47. package/es/components/eftposPay/manufacturer.d.ts +1 -0
  48. package/es/components/eftposPay/manufacturer.js +4 -0
  49. package/es/components/eftposPay/mx51/Action.d.ts +6 -0
  50. package/es/components/eftposPay/mx51/Action.js +91 -0
  51. package/es/components/eftposPay/mx51/const.d.ts +5 -0
  52. package/es/components/eftposPay/mx51/const.js +69 -0
  53. package/es/components/eftposPay/mx51/index.d.ts +6 -0
  54. package/es/components/eftposPay/mx51/index.js +362 -0
  55. package/es/components/eftposPay/mx51/types.d.ts +136 -0
  56. package/es/components/eftposPay/mx51/types.js +29 -0
  57. package/es/components/eftposPay/mx51/utils.d.ts +10 -0
  58. package/es/components/eftposPay/mx51/utils.js +120 -0
  59. package/es/components/eftposPay/pay.js +7 -2
  60. package/es/components/eftposPay/store/index.d.ts +1 -1
  61. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  62. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  63. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  64. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  65. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  66. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  67. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  68. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  69. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  70. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  71. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  72. package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  73. package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  74. package/es/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  75. package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
  76. package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +0 -1
  77. package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
  78. package/es/plus/walletPassGallery/components/passList/index.d.ts +0 -1
  79. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  80. package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  81. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  82. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  83. package/lib/components/booking/forms/footer.d.ts +0 -1
  84. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  85. package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
  86. package/lib/components/booking/info/date/index.d.ts +1 -0
  87. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  88. package/lib/components/eftpos/const.d.ts +3 -1
  89. package/lib/components/eftpos/const.js +2 -0
  90. package/lib/components/eftpos/device.d.ts +3 -1
  91. package/lib/components/eftpos/device.js +3 -3
  92. package/lib/components/eftpos/index.d.ts +0 -1
  93. package/lib/components/eftpos/index.js +20 -5
  94. package/lib/components/eftpos/index.less +26 -1
  95. package/lib/components/eftpos/locales.d.ts +3 -0
  96. package/lib/components/eftpos/locales.js +3 -0
  97. package/lib/components/eftposPay/aggregatePayment/hooks/usePayment.d.ts +6 -0
  98. package/lib/components/eftposPay/aggregatePayment/hooks/usePayment.js +152 -0
  99. package/lib/components/eftposPay/aggregatePayment/index.d.ts +3 -0
  100. package/lib/components/eftposPay/aggregatePayment/index.js +32 -0
  101. package/lib/components/eftposPay/aggregatePayment/mock.d.ts +495 -0
  102. package/lib/components/eftposPay/aggregatePayment/mock.js +679 -0
  103. package/lib/components/eftposPay/aggregatePayment/service.d.ts +24 -0
  104. package/lib/components/eftposPay/aggregatePayment/service.js +81 -0
  105. package/lib/components/eftposPay/aggregatePayment/types.d.ts +96 -0
  106. package/lib/components/eftposPay/aggregatePayment/types.js +74 -0
  107. package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
  108. package/lib/components/eftposPay/aggregatePayment/utils/logs.js +302 -0
  109. package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +132 -0
  110. package/lib/components/eftposPay/aggregatePayment/utils/payment.js +746 -0
  111. package/lib/components/eftposPay/amount.d.ts +0 -1
  112. package/lib/components/eftposPay/const.d.ts +6 -1
  113. package/lib/components/eftposPay/const.js +2 -0
  114. package/lib/components/eftposPay/hooks.d.ts +2 -1
  115. package/lib/components/eftposPay/hooks.js +16 -0
  116. package/lib/components/eftposPay/linkly/index.js +1 -0
  117. package/lib/components/eftposPay/manufacturer.d.ts +1 -0
  118. package/lib/components/eftposPay/manufacturer.js +6 -0
  119. package/lib/components/eftposPay/mx51/Action.d.ts +6 -0
  120. package/lib/components/eftposPay/mx51/Action.js +127 -0
  121. package/lib/components/eftposPay/mx51/const.d.ts +5 -0
  122. package/lib/components/eftposPay/mx51/const.js +85 -0
  123. package/lib/components/eftposPay/mx51/index.d.ts +6 -0
  124. package/lib/components/eftposPay/mx51/index.js +330 -0
  125. package/lib/components/eftposPay/mx51/types.d.ts +136 -0
  126. package/lib/components/eftposPay/mx51/types.js +39 -0
  127. package/lib/components/eftposPay/mx51/utils.d.ts +10 -0
  128. package/lib/components/eftposPay/mx51/utils.js +114 -0
  129. package/lib/components/eftposPay/pay.js +4 -2
  130. package/lib/components/eftposPay/store/index.d.ts +1 -1
  131. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  132. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  133. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  134. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  135. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  136. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  137. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  138. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  139. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  140. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  141. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  142. package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  143. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  144. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  145. package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
  146. package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +0 -1
  147. package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
  148. package/lib/plus/walletPassGallery/components/passList/index.d.ts +0 -1
  149. package/lowcode/eco-cup-list/meta.ts +63 -0
  150. package/lowcode/eco-customer-list/meta.ts +63 -0
  151. package/package.json +1 -1
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PosProps } from './const';
3
2
  /**
4
3
  * @title: 支付金额信息配置页
@@ -6,7 +6,10 @@ export declare enum EftposEnum {
6
6
  /** 后端支付 - 支付 + 退款 */
7
7
  Windcave = "windcave",
8
8
  Stripe = "stripe",
9
- Linkly = "linkly"
9
+ /** 后端支付 - 支付 + 退款 */
10
+ Linkly = "linkly",
11
+ /** mx51支付 - 支付 + 退款 */
12
+ MX51 = "mx51"
10
13
  }
11
14
  export declare enum StatusEnum {
12
15
  Loading = "loading",
@@ -154,6 +157,8 @@ export declare enum PayStatus {
154
157
  'Unknown' = "701000",
155
158
  /** 交易请求超时 */
156
159
  'Timeout' = "701001",
160
+ /** 支付失败 */
161
+ 'PaymentFailed' = "701002",
157
162
  /** 繁忙 EFTPOS终端暂时不可用,因为EFTPOS正在处理另一个请求。 */
158
163
  'PayOtherEftposFailed' = "701003",
159
164
  /** 购物者没有出示卡片/卡片金额不足/在线拒绝/卡已过期/卡被锁定 */
@@ -36,6 +36,7 @@ var EftposEnum = /* @__PURE__ */ ((EftposEnum2) => {
36
36
  EftposEnum2["Windcave"] = "windcave";
37
37
  EftposEnum2["Stripe"] = "stripe";
38
38
  EftposEnum2["Linkly"] = "linkly";
39
+ EftposEnum2["MX51"] = "mx51";
39
40
  return EftposEnum2;
40
41
  })(EftposEnum || {});
41
42
  var StatusEnum = /* @__PURE__ */ ((StatusEnum2) => {
@@ -92,6 +93,7 @@ var PayStatus = /* @__PURE__ */ ((PayStatus2) => {
92
93
  PayStatus2["PairingFailure"] = "606020";
93
94
  PayStatus2["Unknown"] = "701000";
94
95
  PayStatus2["Timeout"] = "701001";
96
+ PayStatus2["PaymentFailed"] = "701002";
95
97
  PayStatus2["PayOtherEftposFailed"] = "701003";
96
98
  PayStatus2["PayCardErrorFailed"] = "701004";
97
99
  PayStatus2["NoNetWork"] = "701005";
@@ -19,7 +19,7 @@ export declare const useStoreRef: <T extends {
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
22
- readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly" | "mx51">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -32,4 +32,5 @@ export declare const useStoreRef: <T extends {
32
32
  */
33
33
  export declare const useFail: (index: number) => (res: {
34
34
  code?: `${PayStatus}`;
35
+ message?: string;
35
36
  }, isMark?: boolean) => void;
@@ -384,6 +384,22 @@ ${import_utils.locales.getText(
384
384
  );
385
385
  return;
386
386
  }
387
+ if (code === import_const.PayStatus.PaymentFailed) {
388
+ steps[index].title = import_utils.locales.getText(
389
+ "page.eftpos-pay.text.transaction.fail"
390
+ );
391
+ steps[index].fail = (res == null ? void 0 : res.message) || import_utils.locales.getText("page.eftpos-pay.text.failed")(modeRef.current);
392
+ steps[index].status = "fail";
393
+ dispatch((0, import_store.updateSteps)(steps));
394
+ dispatch((0, import_store.updateComponent)("Fail"));
395
+ dispatch(
396
+ (0, import_store.updateCustom)({
397
+ errorStatus: "know"
398
+ // unknow know
399
+ })
400
+ );
401
+ return;
402
+ }
387
403
  steps[index].title = import_utils.locales.getText("page.eftpos-pay.text.failed")(
388
404
  modeRef.current
389
405
  );
@@ -126,6 +126,7 @@ var Linkly = ({ api, onChange }) => {
126
126
  }, [fail]);
127
127
  (0, import_react.useEffect)(() => {
128
128
  var _a, _b, _c;
129
+ console.log("statusRef.current11111", statusRef.current);
129
130
  if (statusRef.current === import_const.StatusEnum.Success || statusRef.current === import_const.StatusEnum.Fail) {
130
131
  return;
131
132
  }
@@ -4,4 +4,5 @@ export { default as Payo } from './payo';
4
4
  export { default as Windcave } from './windcave/windcave';
5
5
  export { default as Tyro } from './tyro';
6
6
  export { default as Linkly } from './linkly';
7
+ export { default as Mx51 } from './mx51';
7
8
  export declare const getInitState: (type: string, params?: any) => State;
@@ -30,6 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  var manufacturer_exports = {};
31
31
  __export(manufacturer_exports, {
32
32
  Linkly: () => import_linkly.default,
33
+ Mx51: () => import_mx51.default,
33
34
  Payo: () => import_payo.default,
34
35
  Tyro: () => import_tyro.default,
35
36
  Windcave: () => import_windcave.default,
@@ -42,11 +43,13 @@ var import_const2 = __toESM(require("./payo/const"));
42
43
  var import_const3 = __toESM(require("./tyro/const"));
43
44
  var import_const4 = __toESM(require("./windcave/const"));
44
45
  var import_const5 = __toESM(require("./linkly/const"));
46
+ var import_const6 = __toESM(require("./mx51/const"));
45
47
  var import_helper = require("./helper");
46
48
  var import_payo = __toESM(require("./payo"));
47
49
  var import_windcave = __toESM(require("./windcave/windcave"));
48
50
  var import_tyro = __toESM(require("./tyro"));
49
51
  var import_linkly = __toESM(require("./linkly"));
52
+ var import_mx51 = __toESM(require("./mx51"));
50
53
  var getInitState = (type, params) => {
51
54
  switch (type) {
52
55
  case import_const.EftposEnum.Payo:
@@ -57,6 +60,8 @@ var getInitState = (type, params) => {
57
60
  return (0, import_const3.default)(params);
58
61
  case import_const.EftposEnum.Linkly:
59
62
  return (0, import_const5.default)(params);
63
+ case import_const.EftposEnum.MX51:
64
+ return (0, import_const6.default)(params);
60
65
  default:
61
66
  throw new Error("未知的厂商类型");
62
67
  }
@@ -64,6 +69,7 @@ var getInitState = (type, params) => {
64
69
  // Annotate the CommonJS export names for ESM import in node:
65
70
  0 && (module.exports = {
66
71
  Linkly,
72
+ Mx51,
67
73
  Payo,
68
74
  Tyro,
69
75
  Windcave,
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @title 渲染动态内容
3
+ * @description 用于渲染从接口解析出来的元素
4
+ */
5
+ declare const Action: (props: any) => JSX.Element;
6
+ export default Action;
@@ -0,0 +1,127 @@
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/mx51/Action.tsx
30
+ var Action_exports = {};
31
+ __export(Action_exports, {
32
+ default: () => Action_default
33
+ });
34
+ module.exports = __toCommonJS(Action_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_antd = require("antd");
37
+ var Action = (props) => {
38
+ var _a, _b;
39
+ const { data, showMessage = true } = props;
40
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, showMessage && (data == null ? void 0 : data.message) && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-tip" }, data == null ? void 0 : data.message), ((_a = data == null ? void 0 : data.layouts) == null ? void 0 : _a.length) > 0 && ((_b = data == null ? void 0 : data.layouts) == null ? void 0 : _b.map((item, index) => {
41
+ var _a2;
42
+ return /* @__PURE__ */ import_react.default.createElement(
43
+ "div",
44
+ {
45
+ key: index,
46
+ className: "pisell-lowcode__eft-pay-step-item-btns",
47
+ style: {
48
+ marginTop: "20px",
49
+ width: "100%",
50
+ display: "flex",
51
+ justifyContent: "center"
52
+ }
53
+ },
54
+ (_a2 = item == null ? void 0 : item.elements) == null ? void 0 : _a2.map((element) => {
55
+ const { key, label, type, text } = element;
56
+ if (type === "button") {
57
+ return /* @__PURE__ */ import_react.default.createElement(
58
+ import_antd.Button,
59
+ {
60
+ key: key + label,
61
+ block: true,
62
+ className: "pisell-lowcode__eft-pay-step-item-btn",
63
+ onClick: () => {
64
+ var _a3;
65
+ return (_a3 = props == null ? void 0 : props.onClick) == null ? void 0 : _a3.call(props, element);
66
+ }
67
+ },
68
+ element.label
69
+ );
70
+ } else if (type === "text") {
71
+ return /* @__PURE__ */ import_react.default.createElement(
72
+ "div",
73
+ {
74
+ key: key + label,
75
+ className: "pisell-lowcode__eft-pay-step-item-tip"
76
+ },
77
+ label ? `${label}: ` : "",
78
+ text || ""
79
+ );
80
+ } else if (type === "image") {
81
+ const { name, data: data2, encoding } = (element == null ? void 0 : element.image) || {};
82
+ const imageUrl = data2 ? `data:${name || "image/png"};${encoding || "base64"},${data2}` : "";
83
+ return /* @__PURE__ */ import_react.default.createElement(
84
+ "div",
85
+ {
86
+ style: {
87
+ width: "100%",
88
+ display: "flex",
89
+ justifyContent: "center"
90
+ }
91
+ },
92
+ /* @__PURE__ */ import_react.default.createElement("img", { key: key + label, src: imageUrl, alt: label })
93
+ );
94
+ } else if (type === "input") {
95
+ return /* @__PURE__ */ import_react.default.createElement(
96
+ "div",
97
+ {
98
+ style: {
99
+ width: "100%",
100
+ display: "flex",
101
+ alignItems: "center"
102
+ }
103
+ },
104
+ /* @__PURE__ */ import_react.default.createElement("span", { style: { marginRight: "10px" } }, `${label ? `${label} ` : ""}`),
105
+ /* @__PURE__ */ import_react.default.createElement(
106
+ import_antd.Input,
107
+ {
108
+ key: key + label,
109
+ alt: label,
110
+ style: { flex: 1 }
111
+ }
112
+ )
113
+ );
114
+ }
115
+ return null;
116
+ })
117
+ );
118
+ })), (data == null ? void 0 : data.detailsText) && /* @__PURE__ */ import_react.default.createElement(
119
+ "div",
120
+ {
121
+ className: "pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-tip",
122
+ style: { marginTop: "24px" }
123
+ },
124
+ data == null ? void 0 : data.detailsText
125
+ ));
126
+ };
127
+ var Action_default = Action;
@@ -0,0 +1,5 @@
1
+ import { State } from '../store';
2
+ import { ModeEnum } from '../const';
3
+ export declare const getStep: (mode?: ModeEnum) => State['steps'];
4
+ declare const _default: (params: any) => State;
5
+ export default _default;
@@ -0,0 +1,85 @@
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/mx51/const.ts
20
+ var const_exports = {};
21
+ __export(const_exports, {
22
+ default: () => const_default,
23
+ getStep: () => getStep
24
+ });
25
+ module.exports = __toCommonJS(const_exports);
26
+ var import_utils = require("@pisell/utils");
27
+ var import_const = require("../const");
28
+ var getStep = (mode = import_const.ModeEnum.Pay) => [
29
+ {
30
+ key: Date.now(),
31
+ title: import_utils.locales.getText("page.eftpos-pay.text.loading")(mode),
32
+ // 'Payment in process...',
33
+ text: import_utils.locales.getText("page.eftpos-pay.text.waiting.processing"),
34
+ // 'Waiting for the processing...',
35
+ warn: "",
36
+ tip: import_utils.locales.getText("page.eftpos-pay.text.processing"),
37
+ // 'processing...',
38
+ status: import_const.StatusEnum.Loading
39
+ }
40
+ ];
41
+ var const_default = (params) => {
42
+ const {
43
+ order_id,
44
+ name,
45
+ symbol,
46
+ amount,
47
+ mode,
48
+ number,
49
+ pay,
50
+ device,
51
+ net,
52
+ client,
53
+ ...other
54
+ } = params || {
55
+ mode: import_const.ModeEnum.Pay
56
+ };
57
+ console.log("params =>>>>>> ", params);
58
+ return {
59
+ order_id,
60
+ name,
61
+ symbol,
62
+ amount,
63
+ mode,
64
+ eftpos: import_const.EftposEnum.MX51,
65
+ key: Date.now(),
66
+ step: 0,
67
+ type: import_const.PayRouteEnum.Step,
68
+ title: import_utils.locales.getText("page.eftpos-pay.text.loading")(mode),
69
+ component: "",
70
+ status: import_const.StatusEnum.Loading,
71
+ steps: getStep(mode),
72
+ render: true,
73
+ client: client !== "undefined" ? client : import_const.ClientEnum.Merchant,
74
+ warn: "",
75
+ custom: other || {},
76
+ ...typeof net !== "undefined" ? { net } : {},
77
+ ...typeof number !== "undefined" ? { number } : {},
78
+ ...typeof pay !== "undefined" ? { pay } : {},
79
+ ...typeof device !== "undefined" ? { device } : {}
80
+ };
81
+ };
82
+ // Annotate the CommonJS export names for ESM import in node:
83
+ 0 && (module.exports = {
84
+ getStep
85
+ });
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface AggregatePaymentProps {
3
+ onChange: (status: string, params: any) => void;
4
+ }
5
+ declare const AggregatePayment: React.FC<AggregatePaymentProps>;
6
+ export default AggregatePayment;