@pisell/private-materials 3.0.96 → 3.0.98

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 (269) 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 +33 -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 +169 -0
  33. package/es/components/eftpos/locales.d.ts +87 -0
  34. package/es/components/eftpos/locales.js +110 -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 +285 -0
  42. package/es/components/eftposPay/amount.d.ts +14 -0
  43. package/es/components/eftposPay/amount.js +252 -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 +99 -0
  51. package/es/components/eftposPay/component/fail/index.d.ts +4 -0
  52. package/es/components/eftposPay/component/fail/index.js +109 -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 +97 -0
  65. package/es/components/eftposPay/component/manual/index.less +109 -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 +132 -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 +187 -0
  89. package/es/components/eftposPay/index.less +263 -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 +11 -0
  95. package/es/components/eftposPay/pay.js +110 -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/var.less +9 -0
  109. package/es/components/eftposPay/windcave/action.d.ts +8 -0
  110. package/es/components/eftposPay/windcave/action.js +104 -0
  111. package/es/components/eftposPay/windcave/const.d.ts +104 -0
  112. package/es/components/eftposPay/windcave/const.js +253 -0
  113. package/es/components/eftposPay/windcave/helper.d.ts +9 -0
  114. package/es/components/eftposPay/windcave/helper.js +314 -0
  115. package/es/components/eftposPay/windcave/hook.d.ts +14 -0
  116. package/es/components/eftposPay/windcave/hook.js +144 -0
  117. package/es/components/eftposPay/windcave/index.d.ts +8 -0
  118. package/es/components/eftposPay/windcave/index.js +49 -0
  119. package/es/components/eftposPay/windcave/pos.d.ts +8 -0
  120. package/es/components/eftposPay/windcave/pos.js +180 -0
  121. package/es/components/eftposPay/windcave/pwd.d.ts +8 -0
  122. package/es/components/eftposPay/windcave/pwd.js +124 -0
  123. package/es/components/eftposPay/windcave/receipet.d.ts +6 -0
  124. package/es/components/eftposPay/windcave/receipet.js +67 -0
  125. package/es/components/eftposPay/windcave/receiptAction.d.ts +11 -0
  126. package/es/components/eftposPay/windcave/receiptAction.js +326 -0
  127. package/es/components/eftposPay/windcave/timer.d.ts +17 -0
  128. package/es/components/eftposPay/windcave/timer.js +181 -0
  129. package/es/components/eftposPay/windcave/wait.d.ts +12 -0
  130. package/es/components/eftposPay/windcave/wait.js +139 -0
  131. package/es/components/eftposPay/windcave/windcave.d.ts +6 -0
  132. package/es/components/eftposPay/windcave/windcave.js +283 -0
  133. package/es/components/schedules/index.d.ts +1 -1
  134. package/es/components/schedules/model.d.ts +1 -2
  135. package/es/hooks/usePrefix.d.ts +1 -0
  136. package/es/hooks/usePrefix.js +10 -0
  137. package/es/index.d.ts +2 -0
  138. package/es/index.js +3 -1
  139. package/lib/components/booking/addons/index.d.ts +1 -1
  140. package/lib/components/booking/addons/model.d.ts +1 -2
  141. package/lib/components/booking/forms/forms.d.ts +1 -1
  142. package/lib/components/booking/forms/index.d.ts +1 -1
  143. package/lib/components/booking/forms/model.d.ts +1 -2
  144. package/lib/components/booking/index.d.ts +1 -1
  145. package/lib/components/booking/info/index.d.ts +1 -1
  146. package/lib/components/booking/info/model.d.ts +1 -2
  147. package/lib/components/booking/model.d.ts +1 -2
  148. package/lib/components/booking/notes/index.d.ts +1 -1
  149. package/lib/components/booking/notes/model.d.ts +1 -2
  150. package/lib/components/booking/payments/index.d.ts +1 -1
  151. package/lib/components/booking/payments/model.d.ts +1 -2
  152. package/lib/components/eftpos/const.d.ts +38 -0
  153. package/lib/components/eftpos/const.js +108 -0
  154. package/lib/components/eftpos/device.d.ts +8 -0
  155. package/lib/components/eftpos/device.js +55 -0
  156. package/lib/components/eftpos/form/index.d.ts +16 -0
  157. package/lib/components/eftpos/form/index.js +124 -0
  158. package/lib/components/eftpos/index.d.ts +37 -0
  159. package/lib/components/eftpos/index.js +279 -0
  160. package/lib/components/eftpos/index.less +169 -0
  161. package/lib/components/eftpos/locales.d.ts +87 -0
  162. package/lib/components/eftpos/locales.js +128 -0
  163. package/lib/components/eftpos/pos.d.ts +9 -0
  164. package/lib/components/eftpos/pos.js +55 -0
  165. package/lib/components/eftpos/surcharge/index.css +17 -0
  166. package/lib/components/eftpos/surcharge/index.d.ts +8 -0
  167. package/lib/components/eftpos/surcharge/index.js +125 -0
  168. package/lib/components/eftpos/table.d.ts +17 -0
  169. package/lib/components/eftpos/table.js +260 -0
  170. package/lib/components/eftposPay/amount.d.ts +14 -0
  171. package/lib/components/eftposPay/amount.js +238 -0
  172. package/lib/components/eftposPay/component/alert/index.d.ts +6 -0
  173. package/lib/components/eftposPay/component/alert/index.js +38 -0
  174. package/lib/components/eftposPay/component/alert/index.less +29 -0
  175. package/lib/components/eftposPay/component/alert/warn.d.ts +3 -0
  176. package/lib/components/eftposPay/component/alert/warn.js +80 -0
  177. package/lib/components/eftposPay/component/fail/failCustom.d.ts +4 -0
  178. package/lib/components/eftposPay/component/fail/failCustom.js +120 -0
  179. package/lib/components/eftposPay/component/fail/index.d.ts +4 -0
  180. package/lib/components/eftposPay/component/fail/index.js +124 -0
  181. package/lib/components/eftposPay/component/fail/network.d.ts +4 -0
  182. package/lib/components/eftposPay/component/fail/network.js +65 -0
  183. package/lib/components/eftposPay/component/fail/unknow.d.ts +4 -0
  184. package/lib/components/eftposPay/component/fail/unknow.js +72 -0
  185. package/lib/components/eftposPay/component/header/index.d.ts +9 -0
  186. package/lib/components/eftposPay/component/header/index.js +92 -0
  187. package/lib/components/eftposPay/component/header/index.less +44 -0
  188. package/lib/components/eftposPay/component/header/titlebar.d.ts +13 -0
  189. package/lib/components/eftposPay/component/header/titlebar.js +55 -0
  190. package/lib/components/eftposPay/component/header/titlebar.less +17 -0
  191. package/lib/components/eftposPay/component/manual/index.d.ts +5 -0
  192. package/lib/components/eftposPay/component/manual/index.js +113 -0
  193. package/lib/components/eftposPay/component/manual/index.less +109 -0
  194. package/lib/components/eftposPay/component/signature/index.d.ts +4 -0
  195. package/lib/components/eftposPay/component/signature/index.js +80 -0
  196. package/lib/components/eftposPay/component/step/index.d.ts +12 -0
  197. package/lib/components/eftposPay/component/step/index.js +71 -0
  198. package/lib/components/eftposPay/component/step/step.d.ts +9 -0
  199. package/lib/components/eftposPay/component/step/step.js +59 -0
  200. package/lib/components/eftposPay/const.d.ts +132 -0
  201. package/lib/components/eftposPay/const.js +86 -0
  202. package/lib/components/eftposPay/device.d.ts +14 -0
  203. package/lib/components/eftposPay/device.js +127 -0
  204. package/lib/components/eftposPay/device.less +61 -0
  205. package/lib/components/eftposPay/eftpos/config.d.ts +11 -0
  206. package/lib/components/eftposPay/eftpos/config.js +199 -0
  207. package/lib/components/eftposPay/eftpos/const.d.ts +10 -0
  208. package/lib/components/eftposPay/eftpos/const.js +165 -0
  209. package/lib/components/eftposPay/eftpos/index.d.ts +7 -0
  210. package/lib/components/eftposPay/eftpos/index.js +66 -0
  211. package/lib/components/eftposPay/helper.d.ts +3 -0
  212. package/lib/components/eftposPay/helper.js +62 -0
  213. package/lib/components/eftposPay/hooks.d.ts +4 -0
  214. package/lib/components/eftposPay/hooks.js +237 -0
  215. package/lib/components/eftposPay/index.d.ts +7 -0
  216. package/lib/components/eftposPay/index.js +193 -0
  217. package/lib/components/eftposPay/index.less +263 -0
  218. package/lib/components/eftposPay/locales.d.ts +264 -0
  219. package/lib/components/eftposPay/locales.js +304 -0
  220. package/lib/components/eftposPay/manufacturer.d.ts +6 -0
  221. package/lib/components/eftposPay/manufacturer.js +77 -0
  222. package/lib/components/eftposPay/pay.d.ts +11 -0
  223. package/lib/components/eftposPay/pay.js +122 -0
  224. package/lib/components/eftposPay/payo/config.d.ts +11 -0
  225. package/lib/components/eftposPay/payo/config.js +377 -0
  226. package/lib/components/eftposPay/payo/const.d.ts +6 -0
  227. package/lib/components/eftposPay/payo/const.js +112 -0
  228. package/lib/components/eftposPay/payo/hooks.d.ts +5 -0
  229. package/lib/components/eftposPay/payo/hooks.js +80 -0
  230. package/lib/components/eftposPay/payo/index.d.ts +7 -0
  231. package/lib/components/eftposPay/payo/index.js +63 -0
  232. package/lib/components/eftposPay/store/index.d.ts +239 -0
  233. package/lib/components/eftposPay/store/index.js +371 -0
  234. package/lib/components/eftposPay/store/useThunkReducer.d.ts +9 -0
  235. package/lib/components/eftposPay/store/useThunkReducer.js +53 -0
  236. package/lib/components/eftposPay/var.less +9 -0
  237. package/lib/components/eftposPay/windcave/action.d.ts +8 -0
  238. package/lib/components/eftposPay/windcave/action.js +143 -0
  239. package/lib/components/eftposPay/windcave/const.d.ts +104 -0
  240. package/lib/components/eftposPay/windcave/const.js +300 -0
  241. package/lib/components/eftposPay/windcave/helper.d.ts +9 -0
  242. package/lib/components/eftposPay/windcave/helper.js +378 -0
  243. package/lib/components/eftposPay/windcave/hook.d.ts +14 -0
  244. package/lib/components/eftposPay/windcave/hook.js +139 -0
  245. package/lib/components/eftposPay/windcave/index.d.ts +8 -0
  246. package/lib/components/eftposPay/windcave/index.js +78 -0
  247. package/lib/components/eftposPay/windcave/pos.d.ts +8 -0
  248. package/lib/components/eftposPay/windcave/pos.js +197 -0
  249. package/lib/components/eftposPay/windcave/pwd.d.ts +8 -0
  250. package/lib/components/eftposPay/windcave/pwd.js +143 -0
  251. package/lib/components/eftposPay/windcave/receipet.d.ts +6 -0
  252. package/lib/components/eftposPay/windcave/receipet.js +93 -0
  253. package/lib/components/eftposPay/windcave/receiptAction.d.ts +11 -0
  254. package/lib/components/eftposPay/windcave/receiptAction.js +386 -0
  255. package/lib/components/eftposPay/windcave/timer.d.ts +17 -0
  256. package/lib/components/eftposPay/windcave/timer.js +126 -0
  257. package/lib/components/eftposPay/windcave/wait.d.ts +12 -0
  258. package/lib/components/eftposPay/windcave/wait.js +163 -0
  259. package/lib/components/eftposPay/windcave/windcave.d.ts +6 -0
  260. package/lib/components/eftposPay/windcave/windcave.js +283 -0
  261. package/lib/components/schedules/index.d.ts +1 -1
  262. package/lib/components/schedules/model.d.ts +1 -2
  263. package/lib/hooks/usePrefix.d.ts +1 -0
  264. package/lib/hooks/usePrefix.js +44 -0
  265. package/lib/index.d.ts +2 -0
  266. package/lib/index.js +6 -0
  267. package/lowcode/eftpos/meta.ts +187 -0
  268. package/lowcode/eftpos-pay/meta.ts +122 -0
  269. package/package.json +4 -3
@@ -0,0 +1,260 @@
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/eftpos/table.tsx
30
+ var table_exports = {};
31
+ __export(table_exports, {
32
+ default: () => table_default
33
+ });
34
+ module.exports = __toCommonJS(table_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_antd = require("antd");
37
+ var import_XClose = __toESM(require("@pisell/icon/es/XClose"));
38
+ var import_utils = require("@pisell/utils");
39
+ var { Column } = import_antd.Table;
40
+ var { Title, Text } = import_antd.Typography;
41
+ var App = ({
42
+ type,
43
+ eftposName,
44
+ tableSize,
45
+ getList,
46
+ onEdit,
47
+ onDel,
48
+ onRepair,
49
+ style
50
+ }, ref) => {
51
+ const size = (0, import_react.useMemo)(() => {
52
+ if (Array.isArray(tableSize)) {
53
+ return [
54
+ tableSize[0] || 200,
55
+ tableSize[1] || 120,
56
+ tableSize[2] || 120,
57
+ tableSize[3] || 240
58
+ ];
59
+ }
60
+ return [200, 120, 120, 240];
61
+ }, [tableSize]);
62
+ const totalSize = (0, import_react.useMemo)(() => {
63
+ return size.reduce(
64
+ (accumulator, currentValue) => accumulator + currentValue,
65
+ 0
66
+ );
67
+ }, [size]);
68
+ const [loading, setLoading] = (0, import_react.useState)(false);
69
+ const deviceRef = (0, import_react.useRef)("");
70
+ const [isModalOpen, setModalOpen] = (0, import_react.useState)(false);
71
+ const [pagination, setPagination] = (0, import_react.useState)({
72
+ pageSize: 10,
73
+ current: 1,
74
+ total: 0
75
+ });
76
+ const [data, setData] = (0, import_react.useState)([]);
77
+ const loadData = async (current) => {
78
+ if (typeof getList !== "function") {
79
+ return Promise.reject(`getList ${getList} is not function`);
80
+ }
81
+ setLoading(true);
82
+ const res = await getList({
83
+ type,
84
+ num: pagination.pageSize,
85
+ skip: typeof current === "number" ? current : pagination.current
86
+ }).catch((res2) => {
87
+ setLoading(false);
88
+ });
89
+ setLoading(false);
90
+ setPagination((p) => ({
91
+ ...p,
92
+ total: res.data.count,
93
+ current: typeof current === "number" ? current : pagination.current
94
+ }));
95
+ setData(res.data.list);
96
+ };
97
+ (0, import_react.useEffect)(() => {
98
+ loadData(1);
99
+ }, []);
100
+ const onAddDevice = () => {
101
+ onEdit();
102
+ };
103
+ const onEditDevice = (device) => {
104
+ const { connection, setting, ...other } = device;
105
+ onEdit({
106
+ ...other,
107
+ ...connection || {},
108
+ ...setting || {}
109
+ });
110
+ };
111
+ const onRepairDevice = (device) => {
112
+ const { connection, setting, ...other } = device;
113
+ onRepair({
114
+ ...other,
115
+ ...connection || {},
116
+ ...setting || {}
117
+ });
118
+ };
119
+ const onDelDevice = (record) => {
120
+ deviceRef.current = record.id;
121
+ setModalOpen(true);
122
+ };
123
+ const onChangeSize = (num) => {
124
+ loadData(num);
125
+ };
126
+ const onOk = () => {
127
+ setModalOpen(false);
128
+ if (deviceRef.current) {
129
+ onDel(deviceRef.current).then(() => {
130
+ return loadData();
131
+ });
132
+ }
133
+ };
134
+ (0, import_react.useImperativeHandle)(ref, () => ({
135
+ loadData
136
+ }));
137
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
138
+ "div",
139
+ {
140
+ className: "pisell-lowcode__pos-table",
141
+ style: {
142
+ ...style || {}
143
+ }
144
+ },
145
+ /* @__PURE__ */ import_react.default.createElement(Title, { level: 4, className: "pisell-lowcode__pos-title" }, eftposName, " ", import_utils.locales.getText("page.eftpos.text.device")),
146
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__pos-table-act" }, /* @__PURE__ */ import_react.default.createElement(Text, null, import_utils.locales.getText("page.eftpos.text.device.list")), /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { type: "primary", onClick: onAddDevice, style: { height: "48px" } }, import_utils.locales.getText("page.eftpos.text.device.add")())),
147
+ /* @__PURE__ */ import_react.default.createElement(
148
+ import_antd.Table,
149
+ {
150
+ dataSource: data,
151
+ rowKey: "id",
152
+ pagination: false,
153
+ loading,
154
+ bordered: true,
155
+ scroll: { y: "600px", x: totalSize + "px" },
156
+ tableLayout: "fixed"
157
+ },
158
+ /* @__PURE__ */ import_react.default.createElement(
159
+ Column,
160
+ {
161
+ title: import_utils.locales.getText("page.eftpos.text.table.name"),
162
+ dataIndex: "name",
163
+ key: "name",
164
+ width: size[0],
165
+ className: "pisell-lowcode__pos-table-col"
166
+ }
167
+ ),
168
+ /* @__PURE__ */ import_react.default.createElement(
169
+ Column,
170
+ {
171
+ title: import_utils.locales.getText("page.eftpos.text.table.status"),
172
+ width: size[1],
173
+ dataIndex: "status",
174
+ key: "status",
175
+ render: (status) => {
176
+ return import_utils.locales.getText(
177
+ `page.eftpos.text.${status.toLocaleLowerCase()}`
178
+ );
179
+ },
180
+ className: "pisell-lowcode__pos-table-col"
181
+ }
182
+ ),
183
+ /* @__PURE__ */ import_react.default.createElement(
184
+ Column,
185
+ {
186
+ title: import_utils.locales.getText("page.eftpos.text.table.surcharge"),
187
+ dataIndex: "setting",
188
+ key: "setting",
189
+ width: size[2],
190
+ render: (setting) => {
191
+ if (!setting) {
192
+ return /* @__PURE__ */ import_react.default.createElement(Text, null, "-");
193
+ }
194
+ const array = [
195
+ setting.constant_rate ? setting.constant_rate + "%" : "",
196
+ setting.constant_money
197
+ ].filter(Boolean);
198
+ if (array.length === 0) {
199
+ return /* @__PURE__ */ import_react.default.createElement(Text, null, "-");
200
+ }
201
+ return /* @__PURE__ */ import_react.default.createElement(Text, null, setting.surcharge ? array.length > 1 ? array.join("+") : array[0] : "-");
202
+ },
203
+ className: "pisell-lowcode__pos-table-col"
204
+ }
205
+ ),
206
+ /* @__PURE__ */ import_react.default.createElement(
207
+ Column,
208
+ {
209
+ title: import_utils.locales.getText("page.eftpos.text.table.opeartion"),
210
+ width: size[3],
211
+ key: "opeartion",
212
+ className: "pisell-lowcode__pos-table-col",
213
+ render: (record) => /* @__PURE__ */ import_react.default.createElement(import_antd.Space, { size: "middle" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { type: "link", onClick: () => onRepairDevice(record) }, import_utils.locales.getText("page.eftpos.text.repair")), /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { type: "link", onClick: () => onEditDevice(record) }, import_utils.locales.getText("page.eftpos.text.edit")), /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { type: "link", onClick: () => onDelDevice(record) }, import_utils.locales.getText("page.eftpos.text.delete")))
214
+ }
215
+ )
216
+ ),
217
+ /* @__PURE__ */ import_react.default.createElement(
218
+ import_antd.Pagination,
219
+ {
220
+ style: { textAlign: "right" },
221
+ pageSize: pagination.pageSize,
222
+ current: pagination.current,
223
+ total: pagination.total,
224
+ onChange: onChangeSize,
225
+ onShowSizeChange: onChangeSize
226
+ }
227
+ )
228
+ ), /* @__PURE__ */ import_react.default.createElement(
229
+ import_antd.Modal,
230
+ {
231
+ open: isModalOpen,
232
+ width: 400,
233
+ centered: true,
234
+ onCancel: () => setModalOpen(false),
235
+ closeIcon: /* @__PURE__ */ import_react.default.createElement(import_XClose.default, { size: 20, style: { fontSize: "24px" } }),
236
+ footer: /* @__PURE__ */ import_react.default.createElement("div", { style: { display: "flex", gap: "12px" } }, /* @__PURE__ */ import_react.default.createElement(
237
+ import_antd.Button,
238
+ {
239
+ block: true,
240
+ onClick: () => setModalOpen(false),
241
+ style: { flex: 1, height: "48px", borderRadius: "8px" }
242
+ },
243
+ import_utils.locales.getText("page.eftpos.text.table.del.cancel")
244
+ ), /* @__PURE__ */ import_react.default.createElement(
245
+ import_antd.Button,
246
+ {
247
+ type: "primary",
248
+ block: true,
249
+ onClick: onOk,
250
+ style: { flex: 1, height: "48px", borderRadius: "8px" }
251
+ },
252
+ import_utils.locales.getText("page.eftpos.text.table.del.delete")
253
+ ))
254
+ },
255
+ /* @__PURE__ */ import_react.default.createElement("div", { style: { height: "34px" } }),
256
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__pos-table-del-title" }, import_utils.locales.getText("page.eftpos.text.table.del.title")),
257
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__pos-table-del-text" }, import_utils.locales.getText("page.eftpos.text.table.del.text"))
258
+ ));
259
+ };
260
+ var table_default = import_react.default.forwardRef(App);
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { PosProps } from './const';
3
+ declare const _default: ({ className, onChange, onClose, formatAmount, isIpad, net, }: {
4
+ className?: string | undefined;
5
+ onChange?: ((status: "page" | "success" | "fail", params?: string | {
6
+ [keys: string]: unknown;
7
+ } | undefined) => void) | undefined;
8
+ onClose: () => void;
9
+ formatAmount(amount: number | string, precision: number, symbol: string): string;
10
+ isIpad: boolean;
11
+ net: boolean;
12
+ }) => React.JSX.Element;
13
+ export default _default;
14
+ export declare const limitDecimals: (value: any) => any;
@@ -0,0 +1,238 @@
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/amount.tsx
30
+ var amount_exports = {};
31
+ __export(amount_exports, {
32
+ default: () => amount_default,
33
+ limitDecimals: () => limitDecimals
34
+ });
35
+ module.exports = __toCommonJS(amount_exports);
36
+ var import_utils = require("@pisell/utils");
37
+ var import_antd = require("antd");
38
+ var import_decimal = require("decimal.js");
39
+ var import_react = __toESM(require("react"));
40
+ var import_alert = __toESM(require("./component/alert"));
41
+ var import_titlebar = __toESM(require("./component/header/titlebar"));
42
+ var import_manufacturer = require("./manufacturer");
43
+ var import_store = require("./store");
44
+ var amount_default = ({
45
+ className = "",
46
+ onChange,
47
+ onClose,
48
+ formatAmount = (number, precision, symbol) => `${symbol}${number}`,
49
+ isIpad,
50
+ net
51
+ }) => {
52
+ const dispatch = (0, import_store.useDispatch)();
53
+ const [status, setStatus] = (0, import_react.useState)(true);
54
+ const store = (0, import_store.useContextData)();
55
+ const {
56
+ name,
57
+ symbol,
58
+ money,
59
+ amount: lastMoney,
60
+ surRate,
61
+ surMoney
62
+ } = (0, import_manufacturer.getDeviceInfo)(store);
63
+ const [curSurRate, setSurRate] = (0, import_react.useState)(surRate);
64
+ const [curSurMoney, setSurMoney] = (0, import_react.useState)(surMoney);
65
+ const [currentMoney, setCurrentMoney] = (0, import_react.useState)(lastMoney);
66
+ const [tempSurRate, setTempSurRate] = (0, import_react.useState)(curSurRate);
67
+ const [tempSurMoney, setTempSurMoney] = (0, import_react.useState)(curSurMoney);
68
+ const surRateMoney = (0, import_react.useMemo)(() => {
69
+ const surRateDeci = new import_decimal.Decimal(curSurRate);
70
+ const moneyDeci = new import_decimal.Decimal(currentMoney);
71
+ return moneyDeci.mul(surRateDeci.div(100)).toFixed(2, import_decimal.Decimal.ROUND_HALF_UP);
72
+ }, [currentMoney, curSurRate]);
73
+ const totalSurMoney = (0, import_react.useMemo)(() => {
74
+ const surRateDeci = new import_decimal.Decimal(curSurRate);
75
+ const moneyDeci = new import_decimal.Decimal(currentMoney);
76
+ const surMoneyDeci = new import_decimal.Decimal(curSurMoney);
77
+ return moneyDeci.mul(surRateDeci.div(100)).add(surMoneyDeci).toFixed(2, import_decimal.Decimal.ROUND_HALF_UP);
78
+ }, [currentMoney, curSurRate, curSurMoney]);
79
+ const total = (0, import_react.useMemo)(() => {
80
+ const totalSurDeci = new import_decimal.Decimal(totalSurMoney);
81
+ const moneyDeci = new import_decimal.Decimal(currentMoney);
82
+ return totalSurDeci.add(moneyDeci).toFixed(2, import_decimal.Decimal.ROUND_HALF_UP);
83
+ }, [currentMoney, totalSurMoney]);
84
+ const subtracted = (0, import_react.useMemo)(() => {
85
+ const moneyDeci = new import_decimal.Decimal(money);
86
+ const currentMoneyDeci = new import_decimal.Decimal(currentMoney);
87
+ return moneyDeci.sub(currentMoneyDeci).toFixed(2, import_decimal.Decimal.ROUND_HALF_UP);
88
+ }, [currentMoney, money]);
89
+ const onBack = () => {
90
+ setStatus(true);
91
+ };
92
+ const onSubmit = () => {
93
+ if (!status) {
94
+ setStatus(true);
95
+ setSurRate(tempSurRate);
96
+ setSurMoney(tempSurMoney);
97
+ return;
98
+ }
99
+ if (!net) {
100
+ import_antd.message.open({
101
+ key: "net-warning",
102
+ type: "warning",
103
+ content: import_utils.locales.getText("page.eftpos-pay.text.not.connected")
104
+ });
105
+ return;
106
+ }
107
+ const rate = new import_decimal.Decimal(curSurRate).div(100).toFixed(4, import_decimal.Decimal.ROUND_HALF_UP);
108
+ const pay = {
109
+ sourceAmount: `${money}`,
110
+ amount: `${currentMoney}`,
111
+ surcharge: `${totalSurMoney}`,
112
+ total: `${total}`,
113
+ surPercentRate: `${rate}`,
114
+ surRate: `${curSurRate}`,
115
+ surMoney: `${curSurMoney}`,
116
+ surRateMoney: `${surRateMoney}`,
117
+ totalUnit: formatAmount(total, 2, symbol)
118
+ };
119
+ console.log("surRateMoney = ", surRateMoney);
120
+ dispatch(
121
+ (0, import_store.updateState)({
122
+ custom: store.custom ? { ...store.custom, pay } : { pay }
123
+ })
124
+ );
125
+ dispatch((0, import_store.updateComponent)(""));
126
+ onChange && onChange("page", "pay");
127
+ };
128
+ const onCancel = () => {
129
+ if (!status) {
130
+ setStatus(true);
131
+ return;
132
+ }
133
+ onClose();
134
+ };
135
+ const onEdit = () => {
136
+ setStatus(false);
137
+ setTempSurRate(curSurRate);
138
+ setTempSurMoney(curSurMoney);
139
+ };
140
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: `pisell-lowcode__eft-pay-amount ${className}` }, isIpad ? null : /* @__PURE__ */ import_react.default.createElement(
141
+ import_titlebar.default,
142
+ {
143
+ type: "left-title-close",
144
+ onClose
145
+ },
146
+ status ? name : import_utils.locales.getText("page.eftpos-pay.text.surcharge.edit.title")
147
+ ), status ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-amount-body" }, /* @__PURE__ */ import_react.default.createElement(
148
+ "div",
149
+ {
150
+ className: "pisell-lowcode__eft-pay-cash",
151
+ "data-money": formatAmount(money, 2, symbol)
152
+ },
153
+ import_utils.locales.getText("page.eftpos-pay.text.amount.to.pay")
154
+ ), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-money" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-money-title" }, import_utils.locales.getText("page.eftpos-pay.text.input.title")(name)), /* @__PURE__ */ import_react.default.createElement(
155
+ import_antd.InputNumber,
156
+ {
157
+ addonBefore: symbol || "$",
158
+ max: money,
159
+ precision: 2,
160
+ min: 0,
161
+ style: { width: "100%" },
162
+ value: currentMoney,
163
+ formatter: limitDecimals,
164
+ parser: limitDecimals,
165
+ onChange: (event) => {
166
+ if (event !== null && event !== void 0) {
167
+ setCurrentMoney(event || 0);
168
+ } else {
169
+ setCurrentMoney(0);
170
+ }
171
+ }
172
+ }
173
+ ), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-money-tip" }, import_utils.locales.getText(
174
+ "page.eftpos-pay.text.amount.cash.left.pay.paid"
175
+ )(formatAmount(`${subtracted}`, 2, symbol)))), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-surcharge" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-details" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-total" }, import_utils.locales.getText(
176
+ "page.eftpos-pay.text.surcharge.edit.actual.pay"
177
+ ), ":", formatAmount(`${total}`, 2, symbol)), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-money" }, import_utils.locales.getText(
178
+ "page.eftpos-pay.text.surcharge.edit.inc.surcharge"
179
+ ), ": ", formatAmount(`${totalSurMoney}`, 2, symbol), " (", import_utils.locales.getText("page.eftpos-pay.text.surcharge.edit.rate"), ":", curSurRate, "% + ", formatAmount(`${curSurMoney}`, 2, symbol), ")")), /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { type: "link", onClick: onEdit }, import_utils.locales.getText("page.eftpos-pay.text.surcharge.edit.surcharge")))) : /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-amount-body" }, /* @__PURE__ */ import_react.default.createElement(import_alert.default, null, import_utils.locales.getText("page.eftpos-pay.text.surcharge.percentage-fixed")), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-amount-form" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-amount-item" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-amount-item-title" }, import_utils.locales.getText("page.eftpos-pay.text.surcharge.percentage")), /* @__PURE__ */ import_react.default.createElement(
180
+ import_antd.InputNumber,
181
+ {
182
+ value: tempSurRate,
183
+ min: 0,
184
+ max: 100,
185
+ precision: 2,
186
+ addonAfter: "%",
187
+ style: { width: "100%" },
188
+ onChange: (e) => {
189
+ setTempSurRate(e || 0);
190
+ }
191
+ }
192
+ )), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-amount-item" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-amount-item-title" }, import_utils.locales.getText("page.eftpos-pay.text.surcharge.fixed")), /* @__PURE__ */ import_react.default.createElement(
193
+ import_antd.InputNumber,
194
+ {
195
+ value: tempSurMoney,
196
+ min: 0,
197
+ max: 1e5,
198
+ precision: 2,
199
+ style: { width: "100%" },
200
+ addonBefore: symbol || "$",
201
+ onChange: (e) => {
202
+ setTempSurMoney(e || 0);
203
+ }
204
+ }
205
+ )))), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-step-item-btns" }, /* @__PURE__ */ import_react.default.createElement(
206
+ import_antd.Button,
207
+ {
208
+ block: true,
209
+ className: "pisell-lowcode__eft-pay-step-item-btn",
210
+ onClick: onCancel
211
+ },
212
+ import_utils.locales.getText("page.eftpos-pay.text.cancel")
213
+ ), /* @__PURE__ */ import_react.default.createElement(
214
+ import_antd.Button,
215
+ {
216
+ block: true,
217
+ className: "pisell-lowcode__eft-pay-step-item-btn",
218
+ type: "primary",
219
+ onClick: onSubmit,
220
+ disabled: currentMoney <= 0 && status
221
+ },
222
+ import_utils.locales.getText("page.eftpos-pay.text.sure")
223
+ )));
224
+ };
225
+ var limitDecimals = (value) => {
226
+ const reg = /^(\-)*(\d+)\.(\d\d).*$/;
227
+ if (typeof value === "string") {
228
+ return !isNaN(Number(value)) ? value.replace(reg, "$1$2.$3") : "";
229
+ }
230
+ if (typeof value === "number") {
231
+ return !isNaN(value) ? String(value).replace(reg, "$1$2.$3") : "";
232
+ }
233
+ return "";
234
+ };
235
+ // Annotate the CommonJS export names for ESM import in node:
236
+ 0 && (module.exports = {
237
+ limitDecimals
238
+ });
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare const _default: ({ children }: {
4
+ children: React.ReactNode;
5
+ }) => React.JSX.Element;
6
+ export default _default;
@@ -0,0 +1,38 @@
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/alert/index.tsx
30
+ var alert_exports = {};
31
+ __export(alert_exports, {
32
+ default: () => alert_default
33
+ });
34
+ module.exports = __toCommonJS(alert_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_warn = __toESM(require("./warn"));
37
+ var import_index = require("./index.less");
38
+ var alert_default = ({ children }) => /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__alert-warn-box" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__alert-warn" }, /* @__PURE__ */ import_react.default.createElement(import_warn.default, null)), children);
@@ -0,0 +1,29 @@
1
+ .pisell-lowcode__alert-warn-box{
2
+ align-items: center;
3
+ display: flex;
4
+ padding: 8px 16px;
5
+ gap: 16px;
6
+ align-self: stretch;
7
+
8
+ border-radius: 12px;
9
+ border: 1px solid var(--Warning-300, #fec84b);
10
+ background: var(--Warning-25, #fffcf5);
11
+
12
+ /* Shadow/xs */
13
+ box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
14
+
15
+ color: var(--Warning-700, #b54708);
16
+ font-size: 14px;
17
+ font-style: normal;
18
+ font-weight: 600;
19
+ line-height: 20px; /* 142.857% */
20
+ }
21
+ .pisell-lowcode__alert-warn{
22
+ position: relative;
23
+ font-size: 36px;
24
+ display: flex;
25
+ align-items: center;
26
+ justify-content: center;
27
+ font-size: 36px;
28
+ flex-wrap: wrap;
29
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
3
+ 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/alert/warn.tsx
30
+ var warn_exports = {};
31
+ __export(warn_exports, {
32
+ default: () => warn_default
33
+ });
34
+ module.exports = __toCommonJS(warn_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var warn_default = () => /* @__PURE__ */ import_react.default.createElement(
37
+ "svg",
38
+ {
39
+ width: "1em",
40
+ height: "1em",
41
+ viewBox: "0 0 36 36",
42
+ xmlns: "http://www.w3.org/2000/svg",
43
+ fill: "none"
44
+ },
45
+ /* @__PURE__ */ import_react.default.createElement("g", { opacity: "0.3" }, /* @__PURE__ */ import_react.default.createElement(
46
+ "rect",
47
+ {
48
+ x: "5.49999",
49
+ y: "5.5013",
50
+ width: "25",
51
+ height: "25",
52
+ rx: "12.5",
53
+ stroke: "#DC6803",
54
+ strokeWidth: "1.66667"
55
+ }
56
+ )),
57
+ /* @__PURE__ */ import_react.default.createElement("g", { opacity: "0.1" }, /* @__PURE__ */ import_react.default.createElement(
58
+ "rect",
59
+ {
60
+ x: "1.33333",
61
+ y: "1.33333",
62
+ width: "33.3333",
63
+ height: "33.3333",
64
+ rx: "16.6667",
65
+ stroke: "#DC6803",
66
+ strokeWidth: "1.66667"
67
+ }
68
+ )),
69
+ /* @__PURE__ */ import_react.default.createElement("g", { clipPath: "url(#clip0_5109_25282)" }, /* @__PURE__ */ import_react.default.createElement(
70
+ "path",
71
+ {
72
+ d: "M18 14.668V18.0013M18 21.3346H18.0083M26.3333 18.0013C26.3333 22.6037 22.6024 26.3346 18 26.3346C13.3976 26.3346 9.66666 22.6037 9.66666 18.0013C9.66666 13.3989 13.3976 9.66797 18 9.66797C22.6024 9.66797 26.3333 13.3989 26.3333 18.0013Z",
73
+ stroke: "#DC6803",
74
+ strokeWidth: "1.66667",
75
+ strokeLinecap: "round",
76
+ strokeLinejoin: "round"
77
+ }
78
+ )),
79
+ /* @__PURE__ */ import_react.default.createElement("defs", null, /* @__PURE__ */ import_react.default.createElement("clipPath", { id: "clip0_5109_25282" }, /* @__PURE__ */ import_react.default.createElement("rect", { width: "20", height: "20", fill: "white", transform: "translate(8 8)" })))
80
+ );
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ActionProps } from '../../const';
3
+ declare const _default: ({ className, isIpad, onChange }: ActionProps) => React.JSX.Element;
4
+ export default _default;