@pisell/private-materials 3.0.96 → 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.
Files changed (267) 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/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +16 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +15 -8
  11. package/es/components/booking/addons/index.d.ts +1 -1
  12. package/es/components/booking/addons/model.d.ts +1 -2
  13. package/es/components/booking/forms/forms.d.ts +1 -1
  14. package/es/components/booking/forms/index.d.ts +1 -1
  15. package/es/components/booking/forms/model.d.ts +1 -2
  16. package/es/components/booking/index.d.ts +1 -1
  17. package/es/components/booking/info/index.d.ts +1 -1
  18. package/es/components/booking/info/model.d.ts +1 -2
  19. package/es/components/booking/model.d.ts +1 -2
  20. package/es/components/booking/notes/index.d.ts +1 -1
  21. package/es/components/booking/notes/model.d.ts +1 -2
  22. package/es/components/booking/payments/index.d.ts +1 -1
  23. package/es/components/booking/payments/model.d.ts +1 -2
  24. package/es/components/eftpos/const.d.ts +38 -0
  25. package/es/components/eftpos/const.js +79 -0
  26. package/es/components/eftpos/device.d.ts +8 -0
  27. package/es/components/eftpos/device.js +30 -0
  28. package/es/components/eftpos/form/index.d.ts +16 -0
  29. package/es/components/eftpos/form/index.js +113 -0
  30. package/es/components/eftpos/index.d.ts +37 -0
  31. package/es/components/eftpos/index.js +274 -0
  32. package/es/components/eftpos/index.less +153 -0
  33. package/es/components/eftpos/locales.d.ts +75 -0
  34. package/es/components/eftpos/locales.js +98 -0
  35. package/es/components/eftpos/pos.d.ts +9 -0
  36. package/es/components/eftpos/pos.js +33 -0
  37. package/es/components/eftpos/surcharge/index.css +17 -0
  38. package/es/components/eftpos/surcharge/index.d.ts +8 -0
  39. package/es/components/eftpos/surcharge/index.js +111 -0
  40. package/es/components/eftpos/table.d.ts +17 -0
  41. package/es/components/eftpos/table.js +236 -0
  42. package/es/components/eftposPay/amount.d.ts +14 -0
  43. package/es/components/eftposPay/amount.js +253 -0
  44. package/es/components/eftposPay/component/alert/index.d.ts +6 -0
  45. package/es/components/eftposPay/component/alert/index.js +11 -0
  46. package/es/components/eftposPay/component/alert/index.less +29 -0
  47. package/es/components/eftposPay/component/alert/warn.d.ts +3 -0
  48. package/es/components/eftposPay/component/alert/warn.js +45 -0
  49. package/es/components/eftposPay/component/fail/failCustom.d.ts +4 -0
  50. package/es/components/eftposPay/component/fail/failCustom.js +95 -0
  51. package/es/components/eftposPay/component/fail/index.d.ts +4 -0
  52. package/es/components/eftposPay/component/fail/index.js +105 -0
  53. package/es/components/eftposPay/component/fail/network.d.ts +4 -0
  54. package/es/components/eftposPay/component/fail/network.js +48 -0
  55. package/es/components/eftposPay/component/fail/unknow.d.ts +4 -0
  56. package/es/components/eftposPay/component/fail/unknow.js +43 -0
  57. package/es/components/eftposPay/component/header/index.d.ts +9 -0
  58. package/es/components/eftposPay/component/header/index.js +66 -0
  59. package/es/components/eftposPay/component/header/index.less +44 -0
  60. package/es/components/eftposPay/component/header/titlebar.d.ts +13 -0
  61. package/es/components/eftposPay/component/header/titlebar.js +39 -0
  62. package/es/components/eftposPay/component/header/titlebar.less +17 -0
  63. package/es/components/eftposPay/component/manual/index.d.ts +5 -0
  64. package/es/components/eftposPay/component/manual/index.js +91 -0
  65. package/es/components/eftposPay/component/manual/index.less +96 -0
  66. package/es/components/eftposPay/component/signature/index.d.ts +4 -0
  67. package/es/components/eftposPay/component/signature/index.js +63 -0
  68. package/es/components/eftposPay/component/step/index.d.ts +12 -0
  69. package/es/components/eftposPay/component/step/index.js +31 -0
  70. package/es/components/eftposPay/component/step/step.d.ts +9 -0
  71. package/es/components/eftposPay/component/step/step.js +23 -0
  72. package/es/components/eftposPay/const.d.ts +131 -0
  73. package/es/components/eftposPay/const.js +48 -0
  74. package/es/components/eftposPay/device.d.ts +14 -0
  75. package/es/components/eftposPay/device.js +124 -0
  76. package/es/components/eftposPay/device.less +61 -0
  77. package/es/components/eftposPay/eftpos/config.d.ts +11 -0
  78. package/es/components/eftposPay/eftpos/config.js +178 -0
  79. package/es/components/eftposPay/eftpos/const.d.ts +10 -0
  80. package/es/components/eftposPay/eftpos/const.js +139 -0
  81. package/es/components/eftposPay/eftpos/index.d.ts +7 -0
  82. package/es/components/eftposPay/eftpos/index.js +35 -0
  83. package/es/components/eftposPay/helper.d.ts +3 -0
  84. package/es/components/eftposPay/helper.js +35 -0
  85. package/es/components/eftposPay/hooks.d.ts +4 -0
  86. package/es/components/eftposPay/hooks.js +153 -0
  87. package/es/components/eftposPay/index.d.ts +7 -0
  88. package/es/components/eftposPay/index.js +188 -0
  89. package/es/components/eftposPay/index.less +273 -0
  90. package/es/components/eftposPay/locales.d.ts +264 -0
  91. package/es/components/eftposPay/locales.js +384 -0
  92. package/es/components/eftposPay/manufacturer.d.ts +6 -0
  93. package/es/components/eftposPay/manufacturer.js +32 -0
  94. package/es/components/eftposPay/pay.d.ts +10 -0
  95. package/es/components/eftposPay/pay.js +108 -0
  96. package/es/components/eftposPay/payo/config.d.ts +11 -0
  97. package/es/components/eftposPay/payo/config.js +357 -0
  98. package/es/components/eftposPay/payo/const.d.ts +6 -0
  99. package/es/components/eftposPay/payo/const.js +93 -0
  100. package/es/components/eftposPay/payo/hooks.d.ts +5 -0
  101. package/es/components/eftposPay/payo/hooks.js +84 -0
  102. package/es/components/eftposPay/payo/index.d.ts +7 -0
  103. package/es/components/eftposPay/payo/index.js +35 -0
  104. package/es/components/eftposPay/store/index.d.ts +239 -0
  105. package/es/components/eftposPay/store/index.js +304 -0
  106. package/es/components/eftposPay/store/useThunkReducer.d.ts +9 -0
  107. package/es/components/eftposPay/store/useThunkReducer.js +31 -0
  108. package/es/components/eftposPay/windcave/action.d.ts +8 -0
  109. package/es/components/eftposPay/windcave/action.js +104 -0
  110. package/es/components/eftposPay/windcave/const.d.ts +104 -0
  111. package/es/components/eftposPay/windcave/const.js +253 -0
  112. package/es/components/eftposPay/windcave/helper.d.ts +9 -0
  113. package/es/components/eftposPay/windcave/helper.js +314 -0
  114. package/es/components/eftposPay/windcave/hook.d.ts +14 -0
  115. package/es/components/eftposPay/windcave/hook.js +144 -0
  116. package/es/components/eftposPay/windcave/index.d.ts +8 -0
  117. package/es/components/eftposPay/windcave/index.js +49 -0
  118. package/es/components/eftposPay/windcave/pos.d.ts +8 -0
  119. package/es/components/eftposPay/windcave/pos.js +180 -0
  120. package/es/components/eftposPay/windcave/pwd.d.ts +8 -0
  121. package/es/components/eftposPay/windcave/pwd.js +124 -0
  122. package/es/components/eftposPay/windcave/receipet.d.ts +6 -0
  123. package/es/components/eftposPay/windcave/receipet.js +67 -0
  124. package/es/components/eftposPay/windcave/receiptAction.d.ts +11 -0
  125. package/es/components/eftposPay/windcave/receiptAction.js +326 -0
  126. package/es/components/eftposPay/windcave/timer.d.ts +17 -0
  127. package/es/components/eftposPay/windcave/timer.js +181 -0
  128. package/es/components/eftposPay/windcave/wait.d.ts +12 -0
  129. package/es/components/eftposPay/windcave/wait.js +139 -0
  130. package/es/components/eftposPay/windcave/windcave.d.ts +6 -0
  131. package/es/components/eftposPay/windcave/windcave.js +283 -0
  132. package/es/components/schedules/index.d.ts +1 -1
  133. package/es/components/schedules/model.d.ts +1 -2
  134. package/es/hooks/usePrefix.d.ts +1 -0
  135. package/es/hooks/usePrefix.js +10 -0
  136. package/es/index.d.ts +2 -0
  137. package/es/index.js +3 -1
  138. package/lib/components/booking/addons/index.d.ts +1 -1
  139. package/lib/components/booking/addons/model.d.ts +1 -2
  140. package/lib/components/booking/forms/forms.d.ts +1 -1
  141. package/lib/components/booking/forms/index.d.ts +1 -1
  142. package/lib/components/booking/forms/model.d.ts +1 -2
  143. package/lib/components/booking/index.d.ts +1 -1
  144. package/lib/components/booking/info/index.d.ts +1 -1
  145. package/lib/components/booking/info/model.d.ts +1 -2
  146. package/lib/components/booking/model.d.ts +1 -2
  147. package/lib/components/booking/notes/index.d.ts +1 -1
  148. package/lib/components/booking/notes/model.d.ts +1 -2
  149. package/lib/components/booking/payments/index.d.ts +1 -1
  150. package/lib/components/booking/payments/model.d.ts +1 -2
  151. package/lib/components/eftpos/const.d.ts +38 -0
  152. package/lib/components/eftpos/const.js +108 -0
  153. package/lib/components/eftpos/device.d.ts +8 -0
  154. package/lib/components/eftpos/device.js +55 -0
  155. package/lib/components/eftpos/form/index.d.ts +16 -0
  156. package/lib/components/eftpos/form/index.js +124 -0
  157. package/lib/components/eftpos/index.d.ts +37 -0
  158. package/lib/components/eftpos/index.js +279 -0
  159. package/lib/components/eftpos/index.less +153 -0
  160. package/lib/components/eftpos/locales.d.ts +75 -0
  161. package/lib/components/eftpos/locales.js +116 -0
  162. package/lib/components/eftpos/pos.d.ts +9 -0
  163. package/lib/components/eftpos/pos.js +55 -0
  164. package/lib/components/eftpos/surcharge/index.css +17 -0
  165. package/lib/components/eftpos/surcharge/index.d.ts +8 -0
  166. package/lib/components/eftpos/surcharge/index.js +125 -0
  167. package/lib/components/eftpos/table.d.ts +17 -0
  168. package/lib/components/eftpos/table.js +235 -0
  169. package/lib/components/eftposPay/amount.d.ts +14 -0
  170. package/lib/components/eftposPay/amount.js +239 -0
  171. package/lib/components/eftposPay/component/alert/index.d.ts +6 -0
  172. package/lib/components/eftposPay/component/alert/index.js +38 -0
  173. package/lib/components/eftposPay/component/alert/index.less +29 -0
  174. package/lib/components/eftposPay/component/alert/warn.d.ts +3 -0
  175. package/lib/components/eftposPay/component/alert/warn.js +80 -0
  176. package/lib/components/eftposPay/component/fail/failCustom.d.ts +4 -0
  177. package/lib/components/eftposPay/component/fail/failCustom.js +117 -0
  178. package/lib/components/eftposPay/component/fail/index.d.ts +4 -0
  179. package/lib/components/eftposPay/component/fail/index.js +121 -0
  180. package/lib/components/eftposPay/component/fail/network.d.ts +4 -0
  181. package/lib/components/eftposPay/component/fail/network.js +65 -0
  182. package/lib/components/eftposPay/component/fail/unknow.d.ts +4 -0
  183. package/lib/components/eftposPay/component/fail/unknow.js +72 -0
  184. package/lib/components/eftposPay/component/header/index.d.ts +9 -0
  185. package/lib/components/eftposPay/component/header/index.js +92 -0
  186. package/lib/components/eftposPay/component/header/index.less +44 -0
  187. package/lib/components/eftposPay/component/header/titlebar.d.ts +13 -0
  188. package/lib/components/eftposPay/component/header/titlebar.js +55 -0
  189. package/lib/components/eftposPay/component/header/titlebar.less +17 -0
  190. package/lib/components/eftposPay/component/manual/index.d.ts +5 -0
  191. package/lib/components/eftposPay/component/manual/index.js +101 -0
  192. package/lib/components/eftposPay/component/manual/index.less +96 -0
  193. package/lib/components/eftposPay/component/signature/index.d.ts +4 -0
  194. package/lib/components/eftposPay/component/signature/index.js +80 -0
  195. package/lib/components/eftposPay/component/step/index.d.ts +12 -0
  196. package/lib/components/eftposPay/component/step/index.js +71 -0
  197. package/lib/components/eftposPay/component/step/step.d.ts +9 -0
  198. package/lib/components/eftposPay/component/step/step.js +59 -0
  199. package/lib/components/eftposPay/const.d.ts +131 -0
  200. package/lib/components/eftposPay/const.js +86 -0
  201. package/lib/components/eftposPay/device.d.ts +14 -0
  202. package/lib/components/eftposPay/device.js +127 -0
  203. package/lib/components/eftposPay/device.less +61 -0
  204. package/lib/components/eftposPay/eftpos/config.d.ts +11 -0
  205. package/lib/components/eftposPay/eftpos/config.js +199 -0
  206. package/lib/components/eftposPay/eftpos/const.d.ts +10 -0
  207. package/lib/components/eftposPay/eftpos/const.js +165 -0
  208. package/lib/components/eftposPay/eftpos/index.d.ts +7 -0
  209. package/lib/components/eftposPay/eftpos/index.js +66 -0
  210. package/lib/components/eftposPay/helper.d.ts +3 -0
  211. package/lib/components/eftposPay/helper.js +62 -0
  212. package/lib/components/eftposPay/hooks.d.ts +4 -0
  213. package/lib/components/eftposPay/hooks.js +237 -0
  214. package/lib/components/eftposPay/index.d.ts +7 -0
  215. package/lib/components/eftposPay/index.js +189 -0
  216. package/lib/components/eftposPay/index.less +273 -0
  217. package/lib/components/eftposPay/locales.d.ts +264 -0
  218. package/lib/components/eftposPay/locales.js +304 -0
  219. package/lib/components/eftposPay/manufacturer.d.ts +6 -0
  220. package/lib/components/eftposPay/manufacturer.js +77 -0
  221. package/lib/components/eftposPay/pay.d.ts +10 -0
  222. package/lib/components/eftposPay/pay.js +120 -0
  223. package/lib/components/eftposPay/payo/config.d.ts +11 -0
  224. package/lib/components/eftposPay/payo/config.js +377 -0
  225. package/lib/components/eftposPay/payo/const.d.ts +6 -0
  226. package/lib/components/eftposPay/payo/const.js +112 -0
  227. package/lib/components/eftposPay/payo/hooks.d.ts +5 -0
  228. package/lib/components/eftposPay/payo/hooks.js +80 -0
  229. package/lib/components/eftposPay/payo/index.d.ts +7 -0
  230. package/lib/components/eftposPay/payo/index.js +63 -0
  231. package/lib/components/eftposPay/store/index.d.ts +239 -0
  232. package/lib/components/eftposPay/store/index.js +371 -0
  233. package/lib/components/eftposPay/store/useThunkReducer.d.ts +9 -0
  234. package/lib/components/eftposPay/store/useThunkReducer.js +53 -0
  235. package/lib/components/eftposPay/windcave/action.d.ts +8 -0
  236. package/lib/components/eftposPay/windcave/action.js +143 -0
  237. package/lib/components/eftposPay/windcave/const.d.ts +104 -0
  238. package/lib/components/eftposPay/windcave/const.js +300 -0
  239. package/lib/components/eftposPay/windcave/helper.d.ts +9 -0
  240. package/lib/components/eftposPay/windcave/helper.js +378 -0
  241. package/lib/components/eftposPay/windcave/hook.d.ts +14 -0
  242. package/lib/components/eftposPay/windcave/hook.js +139 -0
  243. package/lib/components/eftposPay/windcave/index.d.ts +8 -0
  244. package/lib/components/eftposPay/windcave/index.js +78 -0
  245. package/lib/components/eftposPay/windcave/pos.d.ts +8 -0
  246. package/lib/components/eftposPay/windcave/pos.js +197 -0
  247. package/lib/components/eftposPay/windcave/pwd.d.ts +8 -0
  248. package/lib/components/eftposPay/windcave/pwd.js +143 -0
  249. package/lib/components/eftposPay/windcave/receipet.d.ts +6 -0
  250. package/lib/components/eftposPay/windcave/receipet.js +93 -0
  251. package/lib/components/eftposPay/windcave/receiptAction.d.ts +11 -0
  252. package/lib/components/eftposPay/windcave/receiptAction.js +386 -0
  253. package/lib/components/eftposPay/windcave/timer.d.ts +17 -0
  254. package/lib/components/eftposPay/windcave/timer.js +126 -0
  255. package/lib/components/eftposPay/windcave/wait.d.ts +12 -0
  256. package/lib/components/eftposPay/windcave/wait.js +163 -0
  257. package/lib/components/eftposPay/windcave/windcave.d.ts +6 -0
  258. package/lib/components/eftposPay/windcave/windcave.js +283 -0
  259. package/lib/components/schedules/index.d.ts +1 -1
  260. package/lib/components/schedules/model.d.ts +1 -2
  261. package/lib/hooks/usePrefix.d.ts +1 -0
  262. package/lib/hooks/usePrefix.js +44 -0
  263. package/lib/index.d.ts +2 -0
  264. package/lib/index.js +6 -0
  265. package/lowcode/eftpos/meta.ts +187 -0
  266. package/lowcode/eftpos-pay/meta.ts +122 -0
  267. package/package.json +4 -3
@@ -0,0 +1,101 @@
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/component/manual/index.tsx
30
+ var manual_exports = {};
31
+ __export(manual_exports, {
32
+ default: () => manual_default
33
+ });
34
+ module.exports = __toCommonJS(manual_exports);
35
+ var import_utils = require("@pisell/utils");
36
+ var import_antd = require("antd");
37
+ var import_react = __toESM(require("react"));
38
+ var import_usePrefix = __toESM(require("../../../../hooks/usePrefix"));
39
+ var import_const = require("../../const");
40
+ var import_store = require("../../store");
41
+ var import_index = require("./index.less");
42
+ var manual_default = ({ onChange, className = "" }) => {
43
+ const { manual, custom, mode, device } = (0, import_store.useContextData)();
44
+ const [disabled, setDisabled] = (0, import_react.useState)(false);
45
+ const prefix = (0, import_usePrefix.default)();
46
+ const onSuccess = () => {
47
+ setDisabled(true);
48
+ if (mode === import_const.ModeEnum.Pay) {
49
+ const obj = (custom == null ? void 0 : custom.pay) || {};
50
+ onChange("success", {
51
+ ...obj,
52
+ number: custom == null ? void 0 : custom.number,
53
+ device
54
+ });
55
+ return;
56
+ }
57
+ if (mode === import_const.ModeEnum.Refund) {
58
+ const obj = (custom == null ? void 0 : custom.refund) || {};
59
+ onChange("success", {
60
+ ...obj,
61
+ number: custom == null ? void 0 : custom.number,
62
+ device
63
+ });
64
+ return;
65
+ }
66
+ onChange("success", { number: custom == null ? void 0 : custom.number });
67
+ };
68
+ const onFail = () => {
69
+ setDisabled(true);
70
+ onChange("fail");
71
+ };
72
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: `pisell-lowcode__eft-pay-manual ${className}` }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-manual-title" }, manual == null ? void 0 : manual.title), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-manual-txt" }, manual == null ? void 0 : manual.text), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-manual-card-box" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-manual-card" }, /* @__PURE__ */ import_react.default.createElement(
73
+ "div",
74
+ {
75
+ className: "pisell-lowcode__eft-pay-manual-img",
76
+ style: { backgroundImage: `url(${prefix}/pay_success.png)` }
77
+ }
78
+ ), /* @__PURE__ */ import_react.default.createElement(
79
+ import_antd.Button,
80
+ {
81
+ onClick: onSuccess,
82
+ className: "pisell-lowcode__eft-pay-manual-btn",
83
+ disabled
84
+ },
85
+ import_utils.locales.getText("page.eftpos-pay.text.successful")(mode)
86
+ )), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-manual-card" }, /* @__PURE__ */ import_react.default.createElement(
87
+ "div",
88
+ {
89
+ className: "pisell-lowcode__eft-pay-manual-img",
90
+ style: { backgroundImage: `url(${prefix}/pay_error.png)` }
91
+ }
92
+ ), /* @__PURE__ */ import_react.default.createElement(
93
+ import_antd.Button,
94
+ {
95
+ onClick: onFail,
96
+ className: "pisell-lowcode__eft-pay-manual-btn",
97
+ disabled
98
+ },
99
+ import_utils.locales.getText("page.eftpos-pay.text.failed")(mode)
100
+ ))));
101
+ };
@@ -0,0 +1,96 @@
1
+ .pisell-lowcode__eft-pay-manual{
2
+ padding: var(--pisel-lc-pos-manual-padding, 24px);
3
+ width: var(--pisel-lc-pos-manual-width, fit-content);
4
+ }
5
+
6
+ .pisell-lowcode__eft-pay-manual-title {
7
+ color: var(--text-text_1, #1b1b1b);
8
+
9
+ /* H6/Semi Bold */
10
+
11
+ font-size: 16px;
12
+ font-style: normal;
13
+ font-weight: 600;
14
+ line-height: 22px; /* 137.5% */
15
+ }
16
+ .pisell-lowcode__eft-pay-manual-txt {
17
+ color: var(--text-text_1, #1b1b1b);
18
+ /* Paragraph/Regular */
19
+
20
+ font-size: 14px;
21
+ font-style: normal;
22
+ font-weight: 400;
23
+ line-height: 20px; /* 142.857% */
24
+ }
25
+
26
+ .pisell-lowcode__eft-pay-manual-card-box {
27
+ display: flex;
28
+ flex-direction: row;
29
+ align-items: center;
30
+ gap: 10px;
31
+ margin-top: 20px;
32
+ flex-wrap: nowrap;
33
+ }
34
+ .pisell-lowcode__eft-pay-manual-card {
35
+ display: flex;
36
+ padding: 20px 10px;
37
+ flex-direction: column;
38
+ justify-content: center;
39
+ align-items: center;
40
+ gap: 30px;
41
+ align-self: stretch;
42
+ border-radius: 20px;
43
+ border: 1px solid var(--surface-surface_3, #c6c6c6);
44
+ position: relative;
45
+ z-index: 1;
46
+ }
47
+ .pisell-lowcode__eft-pay-manual-img {
48
+ width: 160px;
49
+ height: 160px;
50
+ background-repeat: no-repeat;
51
+ background-position: center;
52
+ background-size: cover;
53
+ }
54
+ .pisell-lowcode__eft-pay-manual-card-box{
55
+ flex: 1;
56
+ overflow: auto;
57
+ }
58
+
59
+ @media only screen and (max-width: 400px) {
60
+ .pisell-lowcode__eft-pay-manual-card-box {
61
+ gap:10px;
62
+ }
63
+ .pisell-lowcode__eft-pay-manual-card {
64
+ flex: 1;
65
+ padding: 8px;
66
+ }
67
+ .pisell-lowcode__eft-pay-manual-img {
68
+ width: 110px;
69
+ height: 150px;
70
+ }
71
+ .pisell-lowcode__eft-pay-manual-card .pisell-lowcode__eft-pay-manual-btn{
72
+ font-size: 12px !important;
73
+ }
74
+ }
75
+
76
+
77
+ @media only screen and (min-width: 401px) and (max-width: 820px) {
78
+ .pisell-lowcode__eft-pay-manual-card-box {
79
+ flex-direction: column;
80
+ }
81
+ .pisell-lowcode__eft-pay-manual-card {
82
+ width: 100%;
83
+ }
84
+
85
+ }
86
+
87
+ @media only screen and (min-width: 821px) {
88
+ .pisell-lowcode__eft-pay-manual-card-box {
89
+ margin: 24px auto 0;
90
+ gap: 20px;
91
+ width: 100%;
92
+ }
93
+ .pisell-lowcode__eft-pay-manual-card {
94
+ flex: 1;
95
+ }
96
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ActionProps } from '../../const';
3
+ declare const _default: ({ api, className }: ActionProps) => React.JSX.Element;
4
+ export default _default;
@@ -0,0 +1,80 @@
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/component/signature/index.tsx
30
+ var signature_exports = {};
31
+ __export(signature_exports, {
32
+ default: () => signature_default
33
+ });
34
+ module.exports = __toCommonJS(signature_exports);
35
+ var import_utils = require("@pisell/utils");
36
+ var import_antd = require("antd");
37
+ var import_react = __toESM(require("react"));
38
+ var import_store = require("../../store");
39
+ var import_header = __toESM(require("../header"));
40
+ var signature_default = ({ api, className = "" }) => {
41
+ const dispatch = (0, import_store.useDispatch)();
42
+ const { custom, mode } = (0, import_store.useContextData)();
43
+ const [disabled, setDisabled] = (0, import_react.useState)(false);
44
+ const onBack = () => {
45
+ dispatch((0, import_store.updateComponent)(""));
46
+ };
47
+ const onConfirm = () => {
48
+ setDisabled(true);
49
+ api.update({
50
+ type: "NO",
51
+ number: custom == null ? void 0 : custom.number
52
+ }).then(() => {
53
+ setDisabled(false);
54
+ dispatch((0, import_store.updateComponent)(""));
55
+ dispatch((0, import_store.updateNextStep)());
56
+ }).catch((res) => {
57
+ setDisabled(false);
58
+ console.log(res);
59
+ });
60
+ };
61
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: `pisell-lowcode__eft-pay-box ${className}` }, /* @__PURE__ */ import_react.default.createElement(import_header.default, { status: "warn" }), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-fail-title" }, import_utils.locales.getText("page.eftpos-pay.text.signature.title")), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-warn-text pisell-lowcode__eft-pay-body" }, import_utils.locales.getText("page.eftpos-pay.text.signature.text")(mode)), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-step-item-btns" }, /* @__PURE__ */ import_react.default.createElement(
62
+ import_antd.Button,
63
+ {
64
+ block: true,
65
+ className: "pisell-lowcode__eft-pay-step-item-btn",
66
+ onClick: onBack
67
+ },
68
+ import_utils.locales.getText("page.eftpos-pay.text.back")
69
+ ), /* @__PURE__ */ import_react.default.createElement(
70
+ import_antd.Button,
71
+ {
72
+ block: true,
73
+ className: "pisell-lowcode__eft-pay-step-item-btn",
74
+ type: "primary",
75
+ onClick: onConfirm,
76
+ disabled
77
+ },
78
+ import_utils.locales.getText("page.eftpos-pay.text.confirm.decline")
79
+ )));
80
+ };
@@ -0,0 +1,12 @@
1
+ import React, { ReactNode } from 'react';
2
+ import { StatusType } from '../../const';
3
+ declare const _default: (props: {
4
+ status: StatusType;
5
+ warn?: ReactNode;
6
+ text?: ReactNode;
7
+ tip?: ReactNode;
8
+ loading?: ReactNode;
9
+ success?: ReactNode;
10
+ fail?: ReactNode;
11
+ }) => React.JSX.Element;
12
+ export default _default;
@@ -0,0 +1,71 @@
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/component/step/index.tsx
30
+ var step_exports = {};
31
+ __export(step_exports, {
32
+ default: () => step_default
33
+ });
34
+ module.exports = __toCommonJS(step_exports);
35
+ var import_icons = require("@ant-design/icons");
36
+ var import_react = __toESM(require("react"));
37
+ var import_const = require("../../const");
38
+ var step_default = (props) => {
39
+ const { status, warn, text, tip } = props;
40
+ let txt = "";
41
+ if ((status === import_const.StatusEnum.Loading || status === import_const.StatusEnum.Success || status === import_const.StatusEnum.Fail) && props[status]) {
42
+ txt = props[status];
43
+ } else {
44
+ txt = text;
45
+ }
46
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
47
+ "div",
48
+ {
49
+ className: `pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-${status}`
50
+ },
51
+ txt,
52
+ status === import_const.StatusEnum.Success ? /* @__PURE__ */ import_react.default.createElement(
53
+ import_icons.CheckCircleFilled,
54
+ {
55
+ color: "#1B945C",
56
+ style: {
57
+ color: "#1B945C",
58
+ fontSize: "24px",
59
+ verticalAlign: "middle",
60
+ margin: "0 0 0 4px"
61
+ }
62
+ }
63
+ ) : null
64
+ ), status === import_const.StatusEnum.Loading && tip ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-tip" }, tip) : null, status === import_const.StatusEnum.Warn && warn ? /* @__PURE__ */ import_react.default.createElement(
65
+ "div",
66
+ {
67
+ className: `pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-${status}`
68
+ },
69
+ warn
70
+ ) : null);
71
+ };
@@ -0,0 +1,9 @@
1
+ import React, { ReactNode } from 'react';
2
+ declare const _default: (props: {
3
+ status: string;
4
+ pedding?: ReactNode;
5
+ resolve?: ReactNode;
6
+ reject?: ReactNode;
7
+ className?: string | undefined;
8
+ }) => React.JSX.Element;
9
+ export default _default;
@@ -0,0 +1,59 @@
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/component/step/step.tsx
30
+ var step_exports = {};
31
+ __export(step_exports, {
32
+ default: () => step_default
33
+ });
34
+ module.exports = __toCommonJS(step_exports);
35
+ var import_icons = require("@ant-design/icons");
36
+ var import_react = __toESM(require("react"));
37
+ var step_default = (props) => {
38
+ const { className, status, pedding, resolve, reject } = props;
39
+ const txt = status === "pedding" ? pedding : status === "resolve" ? resolve : reject;
40
+ return /* @__PURE__ */ import_react.default.createElement(
41
+ "div",
42
+ {
43
+ className: `pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-${status} ${className || ""}`
44
+ },
45
+ txt || pedding,
46
+ status === "resolve" ? /* @__PURE__ */ import_react.default.createElement(
47
+ import_icons.CheckCircleFilled,
48
+ {
49
+ color: "#1B945C",
50
+ style: {
51
+ color: "#1B945C",
52
+ fontSize: "24px",
53
+ verticalAlign: "middle",
54
+ margin: "0 0 0 4px"
55
+ }
56
+ }
57
+ ) : null
58
+ );
59
+ };
@@ -0,0 +1,131 @@
1
+ export declare enum EftposEnum {
2
+ Payo = "payo",
3
+ Tyro = "tyro",
4
+ Windcave = "windcave",
5
+ Stripe = "stripe",
6
+ Eftpos = "eftpos"
7
+ }
8
+ export declare enum StatusEnum {
9
+ Loading = "loading",
10
+ Warn = "warn",
11
+ Fail = "fail",
12
+ Success = "success",
13
+ Pedding = "pedding",
14
+ Resove = "resove",
15
+ Reject = "reject",
16
+ Question = "question"
17
+ }
18
+ export declare enum ModeEnum {
19
+ /** 支付 */
20
+ Pay = "pay",
21
+ /** 退款 */
22
+ Refund = "refund",
23
+ /** 查询 */
24
+ Query = "query"
25
+ }
26
+ export declare enum RouteEnum {
27
+ /** 改价页 */
28
+ Amount = "amount",
29
+ /** 门店列表页 */
30
+ DeviceList = "deviceList",
31
+ /**支付页 */
32
+ Pay = "pay"
33
+ }
34
+ export declare enum PayRouteEnum {
35
+ Step = "step",
36
+ Unset = "unset"
37
+ }
38
+ export declare type RouteType = `${RouteEnum}`;
39
+ export declare type PayRouteType = `${PayRouteEnum}`;
40
+ export declare type DeviceStatusType = `${EftposEnum}`;
41
+ export declare type StatusType = `${StatusEnum}`;
42
+ export declare type ModeType = `${ModeEnum}`;
43
+ export interface PosProps {
44
+ /** 厂商类型 */
45
+ type: DeviceStatusType;
46
+ getApi: () => {
47
+ [key: string]: (...agrn: unknown[]) => Promise<unknown>;
48
+ };
49
+ params: {
50
+ [key: string]: unknown;
51
+ };
52
+ /** 回调 */
53
+ onChangeStatus: (status: `${StatusEnum.Success}` | `${StatusEnum.Fail}` | 'page', params?: {
54
+ [keys: string]: unknown;
55
+ } | string) => void;
56
+ terminal: {
57
+ network: boolean;
58
+ };
59
+ device?: {
60
+ [key: string]: unknown;
61
+ };
62
+ action: RouteType;
63
+ }
64
+ export interface PayProps {
65
+ api: ReturnType<PosProps['getApi']>;
66
+ onChange: PosProps['onChangeStatus'];
67
+ className?: string;
68
+ }
69
+ export declare type Amount = {
70
+ name: string;
71
+ /** 订单金额 */
72
+ money: number;
73
+ /** 上一轮操作订单金额 */
74
+ amount: number;
75
+ /** 金额单位 */
76
+ symbol: string;
77
+ /** 手续费-百分率 */
78
+ surRate: number;
79
+ /** 手续费-是否开启 */
80
+ surMoney: number;
81
+ /** 手续费-是否存在 */
82
+ surcharge: boolean;
83
+ };
84
+ export declare type PayAmount = {
85
+ /** 手续费-百分比-带百分号 例: 1% =》 数据为 0.01 */
86
+ surPercentRate: string;
87
+ /** 手续费-百分比-不带百分号 例:1% =》 数据为 1 */
88
+ surRate: string;
89
+ /** 手续费-比例金额 amount * surPercentRate */
90
+ surRateMoney: string;
91
+ /** 手续费-固定金额 */
92
+ surMoney: string;
93
+ /** 手续费 = surPercentRate + surMoney */
94
+ surcharge: string;
95
+ /** 支付金额 (不包含手续费) */
96
+ amount: string;
97
+ /** 支付总金额 = amount + surcharge */
98
+ total: string;
99
+ /** 订单金额 */
100
+ sourceAmount: string;
101
+ /** 支付总金额带单位 + 单位 */
102
+ totalUnit: string;
103
+ };
104
+ export declare enum PayStatus {
105
+ 'Success' = "200",
106
+ /** 未生成交易记录 */
107
+ 'NoPay' = "4004",
108
+ /** 支付失败 */
109
+ 'Unknown' = "701000",
110
+ /** 交易请求超时 */
111
+ 'Timeout' = "701001",
112
+ /** 繁忙 EFTPOS终端暂时不可用,因为EFTPOS正在处理另一个请求。 */
113
+ 'PayOtherEftposFailed' = "701003",
114
+ /** 购物者没有出示卡片/卡片金额不足/在线拒绝/卡已过期/卡被锁定 */
115
+ 'PayCardErrorFailed' = "701004",
116
+ /** 断网 向EFTPOS发送消息失败。可能有网络问题,也可能没有连接websocket。 */
117
+ 'NoNetWork' = "701005",
118
+ /** 交易等待超时 */
119
+ 'PayTimeout' = "701006",
120
+ /** 连接失败 */
121
+ 'SocketError' = "701007"
122
+ }
123
+ export interface ActionProps {
124
+ onChange: (status: `${StatusEnum.Success}` | `${StatusEnum.Fail}` | 'page', params?: {
125
+ [key: string]: unknown;
126
+ } | string) => void;
127
+ api: {
128
+ [key: string]: (...agrn: unknown[]) => Promise<unknown>;
129
+ };
130
+ className?: string;
131
+ }
@@ -0,0 +1,86 @@
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/const.ts
20
+ var const_exports = {};
21
+ __export(const_exports, {
22
+ EftposEnum: () => EftposEnum,
23
+ ModeEnum: () => ModeEnum,
24
+ PayRouteEnum: () => PayRouteEnum,
25
+ PayStatus: () => PayStatus,
26
+ RouteEnum: () => RouteEnum,
27
+ StatusEnum: () => StatusEnum
28
+ });
29
+ module.exports = __toCommonJS(const_exports);
30
+ var EftposEnum = /* @__PURE__ */ ((EftposEnum2) => {
31
+ EftposEnum2["Payo"] = "payo";
32
+ EftposEnum2["Tyro"] = "tyro";
33
+ EftposEnum2["Windcave"] = "windcave";
34
+ EftposEnum2["Stripe"] = "stripe";
35
+ EftposEnum2["Eftpos"] = "eftpos";
36
+ return EftposEnum2;
37
+ })(EftposEnum || {});
38
+ var StatusEnum = /* @__PURE__ */ ((StatusEnum2) => {
39
+ StatusEnum2["Loading"] = "loading";
40
+ StatusEnum2["Warn"] = "warn";
41
+ StatusEnum2["Fail"] = "fail";
42
+ StatusEnum2["Success"] = "success";
43
+ StatusEnum2["Pedding"] = "pedding";
44
+ StatusEnum2["Resove"] = "resove";
45
+ StatusEnum2["Reject"] = "reject";
46
+ StatusEnum2["Question"] = "question";
47
+ return StatusEnum2;
48
+ })(StatusEnum || {});
49
+ var ModeEnum = /* @__PURE__ */ ((ModeEnum2) => {
50
+ ModeEnum2["Pay"] = "pay";
51
+ ModeEnum2["Refund"] = "refund";
52
+ ModeEnum2["Query"] = "query";
53
+ return ModeEnum2;
54
+ })(ModeEnum || {});
55
+ var RouteEnum = /* @__PURE__ */ ((RouteEnum2) => {
56
+ RouteEnum2["Amount"] = "amount";
57
+ RouteEnum2["DeviceList"] = "deviceList";
58
+ RouteEnum2["Pay"] = "pay";
59
+ return RouteEnum2;
60
+ })(RouteEnum || {});
61
+ var PayRouteEnum = /* @__PURE__ */ ((PayRouteEnum2) => {
62
+ PayRouteEnum2["Step"] = "step";
63
+ PayRouteEnum2["Unset"] = "unset";
64
+ return PayRouteEnum2;
65
+ })(PayRouteEnum || {});
66
+ var PayStatus = /* @__PURE__ */ ((PayStatus2) => {
67
+ PayStatus2["Success"] = "200";
68
+ PayStatus2["NoPay"] = "4004";
69
+ PayStatus2["Unknown"] = "701000";
70
+ PayStatus2["Timeout"] = "701001";
71
+ PayStatus2["PayOtherEftposFailed"] = "701003";
72
+ PayStatus2["PayCardErrorFailed"] = "701004";
73
+ PayStatus2["NoNetWork"] = "701005";
74
+ PayStatus2["PayTimeout"] = "701006";
75
+ PayStatus2["SocketError"] = "701007";
76
+ return PayStatus2;
77
+ })(PayStatus || {});
78
+ // Annotate the CommonJS export names for ESM import in node:
79
+ 0 && (module.exports = {
80
+ EftposEnum,
81
+ ModeEnum,
82
+ PayRouteEnum,
83
+ PayStatus,
84
+ RouteEnum,
85
+ StatusEnum
86
+ });
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { PayProps, PosProps } from './const';
3
+ import './device.less';
4
+ declare const _default: ({ api, onChange, onClose, className, isIpad, net, }: {
5
+ api: PayProps['api'];
6
+ className?: string | undefined;
7
+ onChange?: ((status: "page" | "success" | "fail", params?: string | {
8
+ [keys: string]: unknown;
9
+ } | undefined) => void) | undefined;
10
+ onClose: () => void;
11
+ isIpad: boolean;
12
+ net: boolean;
13
+ }) => React.JSX.Element;
14
+ export default _default;