@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,384 @@
1
+ export default {
2
+ en: {
3
+ 'page.eftpos-pay.text.loading': function pageEftposPayTextLoading(mode) {
4
+ return "".concat(mode === 'pay' ? 'Payment' : 'Refund', " in progress...");
5
+ },
6
+ 'page.eftpos-pay.text.wait': function pageEftposPayTextWait(val, mode) {
7
+ return mode === 'pay' ? "Asked EFTPOS to accept payment for Purchase ".concat(val) : "Requested EFTPOS to accept the refund for ".concat(val, ".");
8
+ },
9
+ 'page.eftpos-pay.text.surcharge': 'Waiting for customer to accept surcharge',
10
+ 'page.eftpos-pay.text.card': 'Waiting for customer to present card',
11
+ 'page.eftpos-pay.text.account': 'Waiting for customer to select account',
12
+ 'page.eftpos-pay.text.pin': 'Waiting for customer to enter PIN or sign the receipt',
13
+ 'page.eftpos-pay.text.receipt': 'Ask customer to sign the receipt',
14
+ 'page.eftpos-pay.text.receipt.again.title': 'Check signature',
15
+ 'page.eftpos-pay.text.receipt.again.text': 'If the signature is correct, click "Accept". If the signature is incorrect, click "Decline".',
16
+ 'page.eftpos-pay.text.signature.title': 'Confirm decline signature?',
17
+ 'page.eftpos-pay.text.signature.text': function pageEftposPayTextSignatureText(mode) {
18
+ return mode === 'pay' ? "Decline will cause payment failure, need to pay again." : "Decline will cause refund failure; a refund needs to be processed again.";
19
+ },
20
+ 'page.eftpos-pay.text.timedout.title': 'Sorry, the request has timed out. ',
21
+ 'page.eftpos-pay.text.timedout.text': function pageEftposPayTextTimedoutText(mode) {
22
+ return 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.";
23
+ },
24
+ 'page.eftpos-pay.text.request.title': function pageEftposPayTextRequestTitle(mode) {
25
+ return "".concat(mode === 'pay' ? 'Payment' : 'Refund', " request in progress... ");
26
+ },
27
+ 'page.eftpos-pay.text.request.text': function pageEftposPayTextRequestText(mode) {
28
+ return 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.";
29
+ },
30
+ 'page.eftpos-pay.text.request.unknown.title': function pageEftposPayTextRequestUnknownTitle(mode) {
31
+ return "Sorry, an unknown error occurred during the ".concat(mode === 'pay' ? 'payment' : 'refund', " process. ");
32
+ },
33
+ 'page.eftpos-pay.text.request.unknown.text': function pageEftposPayTextRequestUnknownText(mode) {
34
+ return 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.";
35
+ },
36
+ 'page.eftpos-pay.text.interrupted': 'EFTPOS device connection interrupted',
37
+ 'page.eftpos-pay.text.reconnect': 'Attempting to reconnect the EFTPOS ...',
38
+ 'page.eftpos-pay.text.waiting.pay': function pageEftposPayTextWaitingPay(mode) {
39
+ return 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.';
40
+ },
41
+ 'page.eftpos-pay.text.restored': 'Network connection restored',
42
+ 'page.eftpos-pay.text.disconnected': 'This iPad network disconnected',
43
+ 'page.eftpos-pay.text.waiting.network': 'Waiting for network recovery ...',
44
+ 'page.eftpos-pay.text.waiting.wifi.title': "Please check your device's network.",
45
+ 'page.eftpos-pay.text.waiting.wifi.connection': '1. Check Wi-Fi connection.',
46
+ 'page.eftpos-pay.text.waiting.wifi.router': ' 2. Restart the router.',
47
+ 'page.eftpos-pay.text.waiting.wifi.forget.reconnect': '3. Forget network and reconnect',
48
+ 'page.eftpos-pay.text.accept': 'Accept',
49
+ 'page.eftpos-pay.text.decline': 'Decline',
50
+ 'page.eftpos-pay.text.manual.marking': 'Manual marking',
51
+ 'page.eftpos-pay.text.modify.payment.info': function pageEftposPayTextModifyPaymentInfo(mode) {
52
+ return mode === 'pay' ? 'Modify payment info' : 'Modify refund information';
53
+ },
54
+ 'page.eftpos-pay.text.successful': function pageEftposPayTextSuccessful(mode) {
55
+ return "".concat(mode === 'pay' ? 'Payment' : 'Refund', " successful");
56
+ },
57
+ 'page.eftpos-pay.text.failed': function pageEftposPayTextFailed(mode) {
58
+ return "".concat(mode === 'pay' ? 'Payment' : 'Refund', " failed");
59
+ },
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': function pageEftposPayTextInputTitle(name) {
80
+ return "Amount to pay on ".concat(name);
81
+ },
82
+ 'page.eftpos-pay.text.amount.cash.left.pay.paid': function pageEftposPayTextAmountCashLeftPayPaid(money) {
83
+ return "".concat(money, " left to be paid");
84
+ },
85
+ 'page.eftpos-pay.text.surcharge.edit.actual.pay': 'Actual Pay',
86
+ 'page.eftpos-pay.text.surcharge.edit.inc.surcharge': 'Inc. Surcharge',
87
+ 'page.eftpos-pay.text.surcharge.edit.rate': 'Rate',
88
+ 'page.eftpos-pay.text.surcharge.edit.surcharge': 'Edit Surcharge',
89
+ 'page.eftpos-pay.text.transaction.end': 'Transaction end',
90
+ 'page.eftpos-pay.text.transaction.fail': 'Transaction failed.',
91
+ 'page.eftpos-pay.text.transaction.fail.timeout': 'Transaction timeout.',
92
+ 'page.eftpos-pay.text.transaction.pay.fail.timeout': 'Transaction timeout.',
93
+ 'page.eftpos-pay.text.transaction.fail.terminal.title': 'EFTPOS busy',
94
+ 'page.eftpos-pay.text.transaction.fail.terminal': 'The EFTPOS terminal is temporarily unavailable due to processing another transaction.',
95
+ 'page.eftpos-pay.text.transaction.fail.cancel.title': 'Cancels transaction',
96
+ 'page.eftpos-pay.text.transaction.fail.cancel': 'EFTPOS cancels transaction..',
97
+ 'page.eftpos-pay.text.transaction.fail.socket': 'EFTPOS device connection failed.',
98
+ 'page.eftpos-pay.text.transaction.eftpos.fail': 'EFTPOS device connection interrupted',
99
+ 'page.eftpos-pay.text.transaction.eftpos.fail.title': 'Please check your device',
100
+ 'page.eftpos-pay.text.transaction.eftpos.fail.power': '1. Check the device power.',
101
+ 'page.eftpos-pay.text.transaction.eftpos.fail.device': '2. Check if the device is turned on.',
102
+ 'page.eftpos-pay.text.transaction.eftpos.fail.network': '3. Check the device network.',
103
+ 'page.eftpos-pay.text.transaction.eftpos.fail.if': function pageEftposPayTextTransactionEftposFailIf(mode) {
104
+ return 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.';
105
+ },
106
+ 'page.eftpos-pay.text.application': 'Waiting for customer to select application',
107
+ 'page.eftpos-pay.text.approved': 'Approved',
108
+ 'page.eftpos-pay.text.device.no.title': 'No devices added yet. Please add devices to proceed.',
109
+ 'page.eftpos-pay.text.device.no.add': 'To add devices:',
110
+ 'page.eftpos-pay.text.device.no.web': "Admin Panel: Settings > Payment > EFTPOS > Click 'Manage' next to the vendor > Add Device",
111
+ 'page.eftpos-pay.text.device.no.terminal': "Terminal: Settings > EFTPOS > Click 'Manage' next to the vendor > Add Device",
112
+ 'page.eftpos-pay.text.waiting.decline.signature': ' Waiting for the decline signature',
113
+ 'page.eftpos-pay.text.unknown.title': function pageEftposPayTextUnknownTitle(mode) {
114
+ return "Mark ".concat(mode === 'pay' ? 'payment' : 'refund', " status");
115
+ },
116
+ 'page.eftpos-pay.text.unknown.text': function pageEftposPayTextUnknownText(mode) {
117
+ return "Sorry, an unknown error occurred during the ".concat(mode === 'pay' ? 'payment' : 'refund', " process. Please manually mark the status of this ").concat(mode === 'pay' ? 'payment' : 'refund');
118
+ },
119
+ 'page.eftpos-pay.text.reconnecting': 'Reconnecting',
120
+ 'page.eftpos-pay.text.reconnect.network': 'Reconnect network',
121
+ 'page.eftpos-pay.text.network.disconnected': 'Network disconnected',
122
+ 'page.eftpos-pay.text.not.connected': 'The network is not connected'
123
+ },
124
+ 'zh-CN': {
125
+ 'page.eftpos-pay.text.loading': function pageEftposPayTextLoading(mode) {
126
+ return "".concat(mode === 'pay' ? '支付' : '退款', "\u8FDB\u884C\u4E2D...");
127
+ },
128
+ 'page.eftpos-pay.text.wait': function pageEftposPayTextWait(val, mode) {
129
+ return mode === 'pay' ? "\u7B49\u5F85EFTPOS\u63A5\u53D7".concat(val, "\u7684\u4ED8\u6B3E") : "\u8BF7\u6C42EFTPOS\u63A5\u53D7".concat(val, "\u7684\u9000\u6B3E\u3002");
130
+ },
131
+ 'page.eftpos-pay.text.surcharge': '等待客户确认支付手续费',
132
+ 'page.eftpos-pay.text.card': '等待客户出示卡片',
133
+ 'page.eftpos-pay.text.account': '等待客户选择账户',
134
+ 'page.eftpos-pay.text.pin': '等待客户输入密码或签名',
135
+ 'page.eftpos-pay.text.receipt': '请客户在收据上签名',
136
+ 'page.eftpos-pay.text.receipt.again.title': '确认客户签名',
137
+ 'page.eftpos-pay.text.receipt.again.text': '如果签名正确,请点击“接受”。如果签名错误,请点击“拒绝”。',
138
+ 'page.eftpos-pay.text.signature.title': '确认拒绝签名?',
139
+ 'page.eftpos-pay.text.signature.text': function pageEftposPayTextSignatureText(mode) {
140
+ return mode === 'pay' ? '拒绝将导致支付失败,需重新支付。' : '拒绝将导致退款失败;需要重新退款';
141
+ },
142
+ 'page.eftpos-pay.text.timedout.title': '抱歉,请求超时了。',
143
+ 'page.eftpos-pay.text.timedout.text': function pageEftposPayTextTimedoutText(mode) {
144
+ return mode === 'pay' ? '请您根据刷卡机上的支付状态,手动标记支付结果,以确保交易的准确性。' : '请根据显示在刷卡机上的退款状态,手动标记退款结果,以确保交易准确性。';
145
+ },
146
+ 'page.eftpos-pay.text.request.title': function pageEftposPayTextRequestTitle(mode) {
147
+ return "".concat(mode === 'pay' ? '支付' : '退款', "\u8BF7\u6C42\u4ECD\u5728\u8FDB\u884C\u4E2D... ");
148
+ },
149
+ 'page.eftpos-pay.text.request.text': function pageEftposPayTextRequestText(mode) {
150
+ return mode === 'pay' ? '请您根据刷卡机上的支付状态,手动标记支付结果,以确保交易的准确性。' : '请根据显示在刷卡机上的退款状态,手动标记退款结果,以确保交易准确性。';
151
+ },
152
+ 'page.eftpos-pay.text.request.unknown.title': function pageEftposPayTextRequestUnknownTitle(mode) {
153
+ return "\u62B1\u6B49\uFF0C ".concat(mode === 'pay' ? '支付' : '退款', " \u8FC7\u7A0B\u4E2D\u51FA\u73B0\u4E86\u672A\u77E5\u9519\u8BEF");
154
+ },
155
+ 'page.eftpos-pay.text.request.unknown.text': function pageEftposPayTextRequestUnknownText(mode) {
156
+ return mode === 'pay' ? '请您根据刷卡机上的支付状态,手动标记支付结果,以确保交易的准确性。' : "\u8BF7\u60A8\u6839\u636E\u5237\u5361\u673A\u4E0A\u7684\u9000\u6B3E\u72B6\u6001\uFF0C\u624B\u52A8\u6807\u8BB0\u9000\u6B3E\u7ED3\u679C\uFF0C\u4EE5\u786E\u4FDD\u4EA4\u6613\u7684\u51C6\u786E\u6027\u3002";
157
+ },
158
+ 'page.eftpos-pay.text.interrupted': 'EFTPOS设备连接中断',
159
+ 'page.eftpos-pay.text.reconnect': '正在尝试重新连接EFTPOS。。。',
160
+ 'page.eftpos-pay.text.waiting.pay': function pageEftposPayTextWaitingPay(mode) {
161
+ return mode === 'pay' ? '如果您已经从EFTPOS确认了付款状态,您可以按手动标记按钮跳过。' : '如果您已确认了EFTPOS上的退款状态,您可以按下手动标记按钮跳过。';
162
+ },
163
+ 'page.eftpos-pay.text.restored': '网络连接已恢复',
164
+ 'page.eftpos-pay.text.disconnected': '此iPad网络已断开连接',
165
+ 'page.eftpos-pay.text.waiting.network': '正在等待网络恢复...',
166
+ 'page.eftpos-pay.text.waiting.wifi.title': '请检查设备网络。',
167
+ 'page.eftpos-pay.text.waiting.wifi.connection': '1. 检查Wi-Fi连接。',
168
+ 'page.eftpos-pay.text.waiting.wifi.router': '2. 重启路由器。',
169
+ 'page.eftpos-pay.text.waiting.wifi.forget.reconnect': '3. 忘记网络并重新连接',
170
+ 'page.eftpos-pay.text.accept': '接受',
171
+ 'page.eftpos-pay.text.decline': '拒绝',
172
+ 'page.eftpos-pay.text.manual.marking': '手动标记',
173
+ 'page.eftpos-pay.text.modify.payment.info': function pageEftposPayTextModifyPaymentInfo(mode) {
174
+ return mode === 'pay' ? '修改支付信息' : '修改退款信息';
175
+ },
176
+ 'page.eftpos-pay.text.successful': function pageEftposPayTextSuccessful(mode) {
177
+ return "".concat(mode === 'pay' ? '支付' : '退款', "\u6210\u529F");
178
+ },
179
+ 'page.eftpos-pay.text.failed': function pageEftposPayTextFailed(mode) {
180
+ return "".concat(mode === 'pay' ? '支付' : '退款', "\u5931\u8D25");
181
+ },
182
+ 'page.eftpos-pay.text.confirm': '确认',
183
+ 'page.eftpos-pay.text.confirm.decline': '确认拒绝',
184
+ 'page.eftpos-pay.text.back': '返回',
185
+ 'page.eftpos-pay.text.cancel': '取消',
186
+ 'page.eftpos-pay.text.waiting.processing': '等待处理中',
187
+ 'page.eftpos-pay.text.waiting.signature': '等待您检查签名',
188
+ 'page.eftpos-pay.text.waiting.decline': '等待拒绝',
189
+ 'page.eftpos-pay.text.processing': '处理中',
190
+ 'page.eftpos-pay.text.transaction.processing': '交易进行中',
191
+ 'page.eftpos-pay.text.retry': '重试',
192
+ 'page.eftpos-pay.text.sure': '确定',
193
+ 'page.eftpos-pay.text.device': '请选择设备',
194
+ 'page.eftpos-pay.text.leave': '请不要离开此页面',
195
+ 'page.eftpos-pay.text.amount.to.pay': '剩余待支付金额',
196
+ 'page.eftpos-pay.text.surcharge.percentage': '百分比',
197
+ // Percentage
198
+ 'page.eftpos-pay.text.surcharge.fixed': '固定金额',
199
+ // Fixed
200
+ 'page.eftpos-pay.text.surcharge.percentage-fixed': '支付手续费=百分比+固定金额',
201
+ // Surcharge = Percentage + Fixed
202
+ 'page.eftpos-pay.text.surcharge.edit.title': '编辑支付手续费',
203
+ // Edit Payment Surcharge
204
+ 'page.eftpos-pay.text.input.title': function pageEftposPayTextInputTitle(name) {
205
+ return "\u4F7F\u7528".concat(name || '', "\u652F\u4ED8\u7684\u91D1\u989D");
206
+ },
207
+ 'page.eftpos-pay.text.amount.cash.left.pay.paid': function pageEftposPayTextAmountCashLeftPayPaid(money) {
208
+ return "\u8FD8\u9700\u652F\u4ED8 ".concat(money);
209
+ },
210
+ 'page.eftpos-pay.text.surcharge.edit.actual.pay': '实际支付',
211
+ // Actual Pay
212
+ 'page.eftpos-pay.text.surcharge.edit.inc.surcharge': '包含手续费',
213
+ // Inc. Surcharge
214
+ 'page.eftpos-pay.text.surcharge.edit.rate': '费率',
215
+ // Rate
216
+ 'page.eftpos-pay.text.surcharge.edit.surcharge': '编辑手续费',
217
+ // Edit Surcharge
218
+
219
+ 'page.eftpos-pay.text.transaction.end': '交易结束',
220
+ 'page.eftpos-pay.text.transaction.fail': '交易失败',
221
+ 'page.eftpos-pay.text.transaction.fail.timeout': '交易等待超时',
222
+ 'page.eftpos-pay.text.transaction.pay.fail.timeout': '交易请求超时',
223
+ 'page.eftpos-pay.text.transaction.fail.terminal.title': '刷卡机繁忙',
224
+ 'page.eftpos-pay.text.transaction.fail.terminal': '由于正在处理另一笔交易,EFTPOS终端暂时不可用。',
225
+ 'page.eftpos-pay.text.transaction.fail.cancel.title': '取消交易',
226
+ 'page.eftpos-pay.text.transaction.fail.cancel': 'EFTPOS终端取消交易。',
227
+ 'page.eftpos-pay.text.transaction.fail.socket': '刷卡机设备连接失败',
228
+ 'page.eftpos-pay.text.transaction.eftpos.fail': 'EFTPOS 设备连接中断',
229
+ 'page.eftpos-pay.text.transaction.eftpos.fail.title': '请检查您的刷卡机设备。',
230
+ 'page.eftpos-pay.text.transaction.eftpos.fail.power': '1. 检查设备电源',
231
+ 'page.eftpos-pay.text.transaction.eftpos.fail.device': '2. 检查设备是否开机',
232
+ 'page.eftpos-pay.text.transaction.eftpos.fail.network': '3. 检查设备网络',
233
+ 'page.eftpos-pay.text.transaction.eftpos.fail.if': function pageEftposPayTextTransactionEftposFailIf(mode) {
234
+ return mode === 'pay' ? '如果您已确认此交易的付款状态,请点击手动标记' : '如果您已确认此订单的退款状态,请点击手动标记。';
235
+ },
236
+ 'page.eftpos-pay.text.application': '等待客户选择应用',
237
+ 'page.eftpos-pay.text.approved': '已接受',
238
+ 'page.eftpos-pay.text.device.no.title': '您还没有添加任何设备。请添加设备后使用',
239
+ 'page.eftpos-pay.text.device.no.add': '添加设备方式:',
240
+ 'page.eftpos-pay.text.device.no.web': "\u7BA1\u7406\u540E\u53F0\uFF1A\u8BBE\u7F6E > \u6536\u6B3E > EFTPOS > \u786E\u8BA4\u5382\u5546\u70B9\u51FB\u201C\u7BA1\u7406\u201D > \u6DFB\u52A0\u8BBE\u5907",
241
+ 'page.eftpos-pay.text.device.no.terminal': "Terminal\uFF1A\u8BBE\u7F6E > EFTPOS > \u786E\u8BA4\u5382\u5546\u70B9\u51FB\u201C\u7BA1\u7406\u201D > \u6DFB\u52A0\u8BBE\u5907",
242
+ 'page.eftpos-pay.text.waiting.decline.signature': ' 等待拒绝签名',
243
+ 'page.eftpos-pay.text.unknown.title': function pageEftposPayTextUnknownTitle(mode) {
244
+ return "\u6807\u8BB0".concat(mode === 'pay' ? '支付' : '退款', "\u72B6\u6001");
245
+ },
246
+ 'page.eftpos-pay.text.unknown.text': function pageEftposPayTextUnknownText(mode) {
247
+ return "\u62B1\u6B49\uFF0C".concat(mode === 'pay' ? '支付' : '退款', "\u8FC7\u7A0B\u4E2D\u51FA\u73B0\u4E86\u672A\u77E5\u9519\u8BEF\u3002\u8BF7\u60A8\u624B\u52A8\u6807\u8BB0\u6B64").concat(mode === 'pay' ? '支付' : '退款', "\u7684\u72B6\u6001\u3002");
248
+ },
249
+ 'page.eftpos-pay.text.reconnecting': '连接中',
250
+ 'page.eftpos-pay.text.reconnect.network': '重连网络',
251
+ 'page.eftpos-pay.text.network.disconnected': '网络断开连接',
252
+ 'page.eftpos-pay.text.not.connected': '当前网络未连接'
253
+ },
254
+ 'zh-HK': {
255
+ 'page.eftpos-pay.text.loading': function pageEftposPayTextLoading(mode) {
256
+ return "".concat(mode === 'pay' ? '支付' : '退款', "\u9032\u884C\u4E2D...");
257
+ },
258
+ 'page.eftpos-pay.text.wait': function pageEftposPayTextWait(val, mode) {
259
+ return mode === 'pay' ? "\u7B49\u5F85EFTPOS\u63A5\u53D7".concat(val, "\u7684\u4ED8\u6B3E") : "\u8ACB\u6C42EFTPOS\u63A5\u53D7".concat(val, "\u7684\u9000\u6B3E\u3002");
260
+ },
261
+ 'page.eftpos-pay.text.surcharge': '等待客户確認支付手續費',
262
+ 'page.eftpos-pay.text.card': '等待客户出示卡片',
263
+ 'page.eftpos-pay.text.account': '等待客户選擇賬户',
264
+ 'page.eftpos-pay.text.pin': '等待客户輸入密碼或簽名',
265
+ 'page.eftpos-pay.text.receipt': '請客户在收據上簽名',
266
+ 'page.eftpos-pay.text.receipt.again.title': '確認客户簽名',
267
+ 'page.eftpos-pay.text.receipt.again.text': '如果簽名正確,請點擊“接受”。如果簽名錯誤,請點擊“拒絕”。',
268
+ 'page.eftpos-pay.text.signature.title': '確認拒絕簽名?',
269
+ 'page.eftpos-pay.text.signature.text': function pageEftposPayTextSignatureText(mode) {
270
+ return mode === 'pay' ? '拒絕將導致支付失敗,需重新支付。' : '拒絕將導致退款失敗;需要重新退款';
271
+ },
272
+ 'page.eftpos-pay.text.timedout.title': '抱歉,請求超時了。',
273
+ 'page.eftpos-pay.text.timedout.text': function pageEftposPayTextTimedoutText(mode) {
274
+ return mode === 'pay' ? '請您根據刷卡機上的支付狀態,手動標記支付結果,以確保交易的準確性。' : '請根據顯示在刷卡機上的退款狀態,手動標記退款結果,以確保交易準確性。';
275
+ },
276
+ 'page.eftpos-pay.text.request.title': function pageEftposPayTextRequestTitle(mode) {
277
+ return "".concat(mode === 'pay' ? '支付' : '退款', "\u8ACB\u6C42\u4ECD\u5728\u9032\u884C\u4E2D... ");
278
+ },
279
+ 'page.eftpos-pay.text.request.text': function pageEftposPayTextRequestText(mode) {
280
+ return mode === 'pay' ? '請您根據刷卡機上的支付狀態,手動標記支付結果,以確保交易的準確性。' : '請根據顯示在刷卡機上的退款狀態,手動標記退款結果,以確保交易準確性。';
281
+ },
282
+ 'page.eftpos-pay.text.request.unknown.title': function pageEftposPayTextRequestUnknownTitle(mode) {
283
+ return "\u62B1\u6B49\uFF0C ".concat(mode === 'pay' ? '支付' : '退款', " \u8FC7\u7A0B\u4E2D\u51FA\u73B0\u4E86\u672A\u77E5\u9519\u8BEF");
284
+ },
285
+ 'page.eftpos-pay.text.request.unknown.text': function pageEftposPayTextRequestUnknownText(mode) {
286
+ return mode === 'pay' ? '請您根據刷卡機上的支付狀態,手動標記支付結果,以確保交易的準確性。' : "\u8ACB\u60A8\u6839\u64DA\u5237\u5361\u6A5F\u4E0A\u7684\u9000\u6B3E\u72C0\u614B\uFF0C\u624B\u52D5\u6A19\u8A18\u9000\u6B3E\u7D50\u679C\uFF0C\u4EE5\u78BA\u4FDD\u4EA4\u6613\u7684\u6E96\u78BA\u6027\u3002";
287
+ },
288
+ 'page.eftpos-pay.text.interrupted': 'EFTPOS設備連接中斷',
289
+ 'page.eftpos-pay.text.reconnect': '正在嘗試重新連接EFTPOS。。。',
290
+ 'page.eftpos-pay.text.waiting.pay': function pageEftposPayTextWaitingPay(mode) {
291
+ return mode === 'pay' ? '如果您已經從EFTPOS確認了付款狀態,您可以按手動標記按鈕跳過。' : '如果您已確認了EFTPOS上的退款狀態,您可以按下手動標記按鈕跳過。';
292
+ },
293
+ 'page.eftpos-pay.text.restored': '網絡連接已恢復',
294
+ 'page.eftpos-pay.text.disconnected': '此iPad網絡已斷開連接',
295
+ 'page.eftpos-pay.text.waiting.network': '正在等待網絡恢復...',
296
+ 'page.eftpos-pay.text.waiting.wifi.title': '請檢查設備網絡。',
297
+ 'page.eftpos-pay.text.waiting.wifi.connection': '1. 檢查Wi-Fi連接。',
298
+ 'page.eftpos-pay.text.waiting.wifi.router': '2. 重啓路由器。',
299
+ 'page.eftpos-pay.text.waiting.wifi.forget.reconnect': '3. 忘記網絡並重新連接',
300
+ 'page.eftpos-pay.text.accept': '接受',
301
+ 'page.eftpos-pay.text.decline': '拒絕',
302
+ 'page.eftpos-pay.text.manual.marking': '手動標記',
303
+ 'page.eftpos-pay.text.modify.payment.info': function pageEftposPayTextModifyPaymentInfo(mode) {
304
+ return mode === 'pay' ? '修改支付信息' : '修改退款信息';
305
+ },
306
+ 'page.eftpos-pay.text.successful': function pageEftposPayTextSuccessful(mode) {
307
+ return "".concat(mode === 'pay' ? '支付' : '退款', "\u6210\u529F");
308
+ },
309
+ 'page.eftpos-pay.text.failed': function pageEftposPayTextFailed(mode) {
310
+ return "".concat(mode === 'pay' ? '支付' : '退款', "\u5931\u6557");
311
+ },
312
+ 'page.eftpos-pay.text.confirm': '確認',
313
+ 'page.eftpos-pay.text.confirm.decline': '確認拒絕',
314
+ 'page.eftpos-pay.text.back': '返回',
315
+ 'page.eftpos-pay.text.cancel': '取消',
316
+ 'page.eftpos-pay.text.waiting.processing': '等待處理中',
317
+ 'page.eftpos-pay.text.waiting.signature': '等待您檢查簽名',
318
+ 'page.eftpos-pay.text.waiting.decline': '等待拒絕',
319
+ 'page.eftpos-pay.text.processing': '處理中',
320
+ 'page.eftpos-pay.text.transaction.processing': '交易進行中',
321
+ 'page.eftpos-pay.text.retry': '重試',
322
+ 'page.eftpos-pay.text.sure': '確定',
323
+ 'page.eftpos-pay.text.device': '請選擇設備',
324
+ 'page.eftpos-pay.text.leave': '請不要離開此頁面',
325
+ 'page.eftpos-pay.text.amount.to.pay': '剩餘待支付金額',
326
+ 'page.eftpos-pay.text.surcharge.percentage': '百分比',
327
+ // Percentage
328
+ 'page.eftpos-pay.text.surcharge.fixed': '固定金額',
329
+ // Fixed
330
+ 'page.eftpos-pay.text.surcharge.percentage-fixed': '支付手續費=百分比+固定金額',
331
+ // Surcharge = Percentage + Fixed
332
+ 'page.eftpos-pay.text.surcharge.edit.title': '編輯支付手續費',
333
+ // Edit Payment Surcharge
334
+ 'page.eftpos-pay.text.input.title': function pageEftposPayTextInputTitle(name) {
335
+ return "\u4F7F\u7528".concat(name || '', " \u652F\u4ED8\u7684\u91D1\u984D");
336
+ },
337
+ 'page.eftpos-pay.text.amount.cash.left.pay.paid': function pageEftposPayTextAmountCashLeftPayPaid(money) {
338
+ return "\u9084\u9700\u652F\u4ED8 ".concat(money, " ");
339
+ },
340
+ 'page.eftpos-pay.text.surcharge.edit.actual.pay': '實際支付',
341
+ // Actual Pay
342
+ 'page.eftpos-pay.text.surcharge.edit.inc.surcharge': '包含手續費',
343
+ // Inc. Surcharge
344
+ 'page.eftpos-pay.text.surcharge.edit.rate': '費率',
345
+ // Rate
346
+ 'page.eftpos-pay.text.surcharge.edit.surcharge': '編輯手續費',
347
+ // Edit Surcharge
348
+
349
+ 'page.eftpos-pay.text.transaction.end': '交易結束',
350
+ 'page.eftpos-pay.text.transaction.fail': '交易失敗',
351
+ 'page.eftpos-pay.text.transaction.fail.timeout': '交易等待超時',
352
+ 'page.eftpos-pay.text.transaction.pay.fail.timeout': '交易請求超時',
353
+ 'page.eftpos-pay.text.transaction.fail.terminal.title': '刷卡機繁忙',
354
+ 'page.eftpos-pay.text.transaction.fail.terminal': '由於正在處理另一筆交易,EFTPOS終端暫時不可用。',
355
+ 'page.eftpos-pay.text.transaction.fail.cancel.title': '取消交易',
356
+ 'page.eftpos-pay.text.transaction.fail.cancel': 'EFTPOS終端取消交易。',
357
+ 'page.eftpos-pay.text.transaction.fail.socket': '刷卡機設備連接失敗',
358
+ 'page.eftpos-pay.text.transaction.eftpos.fail': 'EFTPOS 設備連接中斷',
359
+ 'page.eftpos-pay.text.transaction.eftpos.fail.title': '請檢查您的刷卡機設備。',
360
+ 'page.eftpos-pay.text.transaction.eftpos.fail.power': '1. 檢查設備電源',
361
+ 'page.eftpos-pay.text.transaction.eftpos.fail.device': '2. 檢查設備是否開機',
362
+ 'page.eftpos-pay.text.transaction.eftpos.fail.network': '3. 檢查設備網絡',
363
+ 'page.eftpos-pay.text.transaction.eftpos.fail.if': function pageEftposPayTextTransactionEftposFailIf(mode) {
364
+ return mode === 'pay' ? '如果您已確認此交易的付款狀態,請點擊手動標記' : '如果您已確認此訂單的退款狀態,請點擊手動標記。';
365
+ },
366
+ 'page.eftpos-pay.text.application': '等待客户選擇應用',
367
+ 'page.eftpos-pay.text.approved': '已接受',
368
+ 'page.eftpos-pay.text.device.no.title': '您還沒有添加任何設備。請添加設備後使用',
369
+ 'page.eftpos-pay.text.device.no.add': '添加設備方式:',
370
+ 'page.eftpos-pay.text.device.no.web': "\u7BA1\u7406\u5F8C\u53F0\uFF1A\u8A2D\u7F6E > \u6536\u6B3E > EFTPOS > \u78BA\u8A8D\u5EE0\u5546\u9EDE\u64CA\u201C\u7BA1\u7406\u201D > \u6DFB\u52A0\u8A2D\u5099",
371
+ 'page.eftpos-pay.text.device.no.terminal': "Terminal\uFF1A\u8A2D\u7F6E > EFTPOS > \u78BA\u8A8D\u5EE0\u5546\u9EDE\u64CA\u201C\u7BA1\u7406\u201D > \u6DFB\u52A0\u8A2D\u5099",
372
+ 'page.eftpos-pay.text.waiting.decline.signature': ' 等待拒絕簽名',
373
+ 'page.eftpos-pay.text.unknown.title': function pageEftposPayTextUnknownTitle(mode) {
374
+ return "\u6A19\u8A18".concat(mode === 'pay' ? '支付' : '退款', "\u72C0\u614B");
375
+ },
376
+ 'page.eftpos-pay.text.unknown.text': function pageEftposPayTextUnknownText(mode) {
377
+ return "\u62B1\u6B49\uFF0C".concat(mode === 'pay' ? '支付' : '退款', "\u904E\u7A0B\u4E2D\u51FA\u73FE\u4E86\u672A\u77E5\u932F\u8AA4\u3002\u8ACB\u60A8\u624B\u52D5\u6A19\u8A18\u6B64").concat(mode === 'pay' ? '支付' : '退款', "\u7684\u72C0\u614B\u3002");
378
+ },
379
+ 'page.eftpos-pay.text.reconnecting': '連接中',
380
+ 'page.eftpos-pay.text.reconnect.network': '重連網絡',
381
+ 'page.eftpos-pay.text.network.disconnected': '網絡斷開連接',
382
+ 'page.eftpos-pay.text.not.connected': '當前網絡未連接'
383
+ }
384
+ };
@@ -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,32 @@
1
+ import { EftposEnum } from "./const";
2
+ import getEftposInitState, { getAmonunt as getEftposAmonunt } from "./eftpos/const";
3
+ import getPayoInitState, { getAmonunt as getPayoAmonunt } from "./payo/const";
4
+ import getWindcaveInitState, { getAmonunt as getWindcaveAmonunt } from "./windcave/const";
5
+ export { default as Payo } from "./payo";
6
+ // export { default as Windcave } from './windcave';
7
+ export { default as Windcave } from "./windcave/windcave";
8
+ export { default as Eftpos } from "./eftpos";
9
+ export var getInitState = function getInitState(type, params) {
10
+ switch (type) {
11
+ case EftposEnum.Payo:
12
+ return getPayoInitState(params);
13
+ case EftposEnum.Eftpos:
14
+ return getEftposInitState(params);
15
+ case EftposEnum.Windcave:
16
+ return getWindcaveInitState(params);
17
+ default:
18
+ throw new Error('未知的厂商类型');
19
+ }
20
+ };
21
+ export var getDeviceInfo = function getDeviceInfo(store) {
22
+ if (store.eftpos === EftposEnum.Eftpos) {
23
+ return getPayoAmonunt(store);
24
+ }
25
+ if (store.eftpos === EftposEnum.Payo) {
26
+ return getEftposAmonunt(store);
27
+ }
28
+ if (store.eftpos === EftposEnum.Windcave) {
29
+ return getWindcaveAmonunt(store);
30
+ }
31
+ throw new Error('未知的厂商类型');
32
+ };
@@ -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,108 @@
1
+ import { locales } from '@pisell/utils';
2
+ import React, { useEffect, useRef } from 'react';
3
+ import Fail from "./component/fail";
4
+ import FailCustom from "./component/fail/failCustom";
5
+ import Network from "./component/fail/network";
6
+ import UnknowFail from "./component/fail/unknow";
7
+ import Header from "./component/header";
8
+ import Manual from "./component/manual";
9
+ import Signature from "./component/signature";
10
+ import { StatusEnum, PayRouteEnum } from "./const";
11
+ import { Payo, Windcave, Eftpos } from "./manufacturer";
12
+ import { useContextData, useDispatch, updateStatus, backUpProduction, updateComponent, updateCustom, backUpFree, updateState } from "./store";
13
+ import "./index.less";
14
+ var Mapping = {
15
+ Fail: Fail,
16
+ Network: Network,
17
+ Manual: Manual,
18
+ Signature: Signature,
19
+ FailCustom: FailCustom,
20
+ UnknowFail: UnknowFail
21
+ };
22
+ var Pay = function Pay(_ref) {
23
+ var api = _ref.api,
24
+ onChangeStatus = _ref.onChange,
25
+ className = _ref.className,
26
+ terminal = _ref.terminal,
27
+ net = _ref.net;
28
+ var data = useContextData();
29
+ var dispatch = useDispatch();
30
+ var ref = useRef(false);
31
+ var statusRef = useRef(data.status);
32
+ var comonentRef = useRef(data.component);
33
+ useEffect(function () {
34
+ comonentRef.current = data.component;
35
+ }, [data.component]);
36
+ var Comm = Mapping[data.component];
37
+ var onChange = function onChange(status, params) {
38
+ if (status !== 'page') {
39
+ dispatch(updateStatus(status));
40
+ }
41
+ onChangeStatus(status, params);
42
+ };
43
+ useEffect(function () {
44
+ ref.current = true;
45
+ }, []);
46
+ useEffect(function () {
47
+ console.log('net = ', net);
48
+ dispatch(updateCustom({
49
+ net: net
50
+ }));
51
+ if (!ref.current) {
52
+ ref.current = true;
53
+ return;
54
+ }
55
+ if (statusRef.current === StatusEnum.Success) {
56
+ return;
57
+ }
58
+ if (net) {
59
+ dispatch(backUpFree({
60
+ key: Date.now()
61
+ }));
62
+ dispatch(updateCustom({
63
+ net: net
64
+ }));
65
+ } else {
66
+ dispatch(updateState({
67
+ lastComponent: 'Network'
68
+ }));
69
+ dispatch(backUpProduction({}));
70
+ dispatch(updateCustom({
71
+ net: net
72
+ }));
73
+ dispatch(updateComponent('Network'));
74
+ }
75
+ }, [dispatch, net]);
76
+ return /*#__PURE__*/React.createElement(React.Fragment, null, data.render ? /*#__PURE__*/React.createElement("div", {
77
+ className: "pisell-lowcode__eft-pay-box ".concat(className),
78
+ style: data.type === 'step' ? {} : {
79
+ display: 'none'
80
+ }
81
+ }, /*#__PURE__*/React.createElement(Header, {
82
+ status: data.status,
83
+ title: data.title
84
+ }), data.eftpos === 'payo' ? /*#__PURE__*/React.createElement(Payo, {
85
+ api: api,
86
+ onChange: onChange
87
+ }, data.warn && data.status !== StatusEnum.Success ? /*#__PURE__*/React.createElement("div", {
88
+ className: "pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-warn"
89
+ }, data.warn) : null, data.status === StatusEnum.Success ? /*#__PURE__*/React.createElement("div", {
90
+ className: "pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-tip"
91
+ }, locales.getText('page.eftpos-pay.text.transaction.end')) : null) : null, data.eftpos === 'eftpos' ? /*#__PURE__*/React.createElement(Eftpos, {
92
+ api: api,
93
+ onChange: onChange
94
+ }, data.warn && data.status !== StatusEnum.Success ? /*#__PURE__*/React.createElement("div", {
95
+ className: "pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-warn"
96
+ }, data.warn) : null, data.status === StatusEnum.Success ? /*#__PURE__*/React.createElement("div", {
97
+ className: "pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-tip"
98
+ }, locales.getText('page.eftpos-pay.text.transaction.end')) : null) : null, data.eftpos === 'windcave' ? /*#__PURE__*/React.createElement(Windcave, {
99
+ api: api,
100
+ onChange: onChange,
101
+ key: data.key
102
+ }) : null) : null, data.type === PayRouteEnum.Unset && Comm ? /*#__PURE__*/React.createElement(Comm, {
103
+ onChange: onChange,
104
+ api: api,
105
+ className: className
106
+ }) : null);
107
+ };
108
+ export 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;