@pisell/private-materials 6.4.32 → 6.4.34

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 (354) 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 +5 -5
  7. package/build/lowcode/render/default/view.js +6 -6
  8. package/build/lowcode/view.js +6 -6
  9. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  10. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  11. package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
  13. package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  14. package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
  15. package/es/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  16. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  17. package/es/components/appointmentBooking/deposit/index.d.ts +1 -0
  18. package/es/components/appointmentBooking/index.d.ts +1 -0
  19. package/es/components/booking/addons/model.d.ts +10 -1
  20. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  21. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  22. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  23. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  24. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  25. package/es/components/booking/components/footer/index.d.ts +1 -0
  26. package/es/components/booking/components/footer/index.js +23 -7
  27. package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  28. package/es/components/booking/components/voucher/index.d.ts +1 -0
  29. package/es/components/booking/deposit/index.d.ts +1 -0
  30. package/es/components/booking/forms/footer.d.ts +1 -0
  31. package/es/components/booking/forms/model.d.ts +10 -1
  32. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  33. package/es/components/booking/forms/single/index.d.ts +1 -0
  34. package/es/components/booking/hooks/useClearCart.d.ts +1 -0
  35. package/es/components/booking/hooks/useQuotation.d.ts +1 -0
  36. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  37. package/es/components/booking/info/date/index.d.ts +1 -0
  38. package/es/components/booking/info/header/index.d.ts +1 -0
  39. package/es/components/booking/info/model.d.ts +10 -1
  40. package/es/components/booking/info/notes/index.d.ts +1 -0
  41. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  42. package/es/components/booking/info/service/addService/index.d.ts +1 -0
  43. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  44. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  45. package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
  46. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  47. package/es/components/booking/info/service2/utils.d.ts +1 -1
  48. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  49. package/es/components/booking/info2/service/addService/index.d.ts +1 -0
  50. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  51. package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  52. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  53. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  54. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  55. package/es/components/booking/model.d.ts +9 -1
  56. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  57. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  58. package/es/components/booking/notes/addNote/index.d.ts +1 -0
  59. package/es/components/booking/notes/model.d.ts +10 -1
  60. package/es/components/booking/payments/model.d.ts +10 -1
  61. package/es/components/checkout/PaymentModal.js +27 -34
  62. package/es/components/checkout/PaymentPlugin.d.ts +1 -0
  63. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +1 -1
  64. package/es/components/checkout/components/PaymentResultToast/index.js +1 -1
  65. package/es/components/checkout/components/ScrollableList/index.js +0 -1
  66. package/es/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
  67. package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -0
  68. package/es/components/eftpos/index.d.ts +1 -0
  69. package/es/components/eftpos/pos.d.ts +1 -0
  70. package/es/components/eftposPay/amount.d.ts +2 -1
  71. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  72. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  73. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  74. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  75. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  76. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  77. package/es/components/eftposPay/device.d.ts +1 -1
  78. package/es/components/eftposPay/hooks.d.ts +1 -1
  79. package/es/components/eftposPay/index.d.ts +1 -0
  80. package/es/components/eftposPay/linkly/index.d.ts +1 -0
  81. package/es/components/eftposPay/pay.d.ts +1 -0
  82. package/es/components/eftposPay/payo/config.d.ts +1 -0
  83. package/es/components/eftposPay/store/index.d.ts +3 -3
  84. package/es/components/eftposPay/tip.d.ts +1 -0
  85. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  86. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  87. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  88. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  89. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  90. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  91. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  92. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  93. package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  94. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  95. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  96. package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  97. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  98. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  99. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  100. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  101. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  102. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  103. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  104. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  105. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  106. package/es/components/eventBooking/index.d.ts +1 -0
  107. package/es/components/login/index.d.ts +1 -0
  108. package/es/components/pay/toB/components/Cache/index.d.ts +1 -0
  109. package/es/components/pay/toB/components/Card/index.d.ts +1 -0
  110. package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -0
  111. package/es/components/pay/toB/components/Content/Footer.d.ts +1 -0
  112. package/es/components/pay/toB/components/Content/Header.d.ts +1 -0
  113. package/es/components/pay/toB/components/EFTPOS/index.js +91 -58
  114. package/es/components/pay/toB/components/MX51/index.js +14 -44
  115. package/es/components/pay/toB/types/index.d.ts +0 -12
  116. package/es/components/pay/toB/types/index.js +0 -4
  117. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  118. package/es/components/pay/toC/model.d.ts +9 -1
  119. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  120. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  121. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  122. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  123. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  124. package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
  125. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  126. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  127. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  128. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  129. package/es/components/productExtension/index.d.ts +1 -0
  130. package/es/components/productSelect/components/TabProduct/index.d.ts +1 -0
  131. package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
  132. package/es/components/ruleSetting/index.d.ts +1 -0
  133. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  134. package/es/components/schedules/calendar/index.d.ts +1 -0
  135. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  136. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  137. package/es/components/schedules/model.d.ts +9 -1
  138. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  139. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  140. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  141. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  142. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  143. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  144. package/es/components/schedules/products/list/index.d.ts +1 -0
  145. package/es/components/schedules/resources/index.d.ts +1 -0
  146. package/es/components/schedules/resources/list/index.d.ts +1 -0
  147. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  148. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  149. package/es/components/schedules/schedules/index.d.ts +1 -0
  150. package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
  151. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  152. package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  153. package/es/components/shoppingCart/index.d.ts +1 -0
  154. package/es/components/taxSelect/index.d.ts +1 -0
  155. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  156. package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  157. package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  158. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  159. package/es/components/wallet/Detail/model.d.ts +13 -1
  160. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  161. package/es/components/wallet/PointCard/model.d.ts +13 -1
  162. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  163. package/es/components/wallet/Voucher/model.d.ts +13 -1
  164. package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
  165. package/es/components/wallet/model.d.ts +9 -1
  166. package/es/hooks/usePaymentLogger.d.ts +1 -0
  167. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  168. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  169. package/es/plus/noteModal/AddTempModal.d.ts +1 -0
  170. package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  171. package/es/plus/saasCreateOrganization/index.d.ts +1 -0
  172. package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  173. package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  174. package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
  175. package/es/plus/saasRegister/components/Header.d.ts +1 -0
  176. package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
  177. package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  178. package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  179. package/es/pro/pisellPhoneKeyboard/index.d.ts +1 -0
  180. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  181. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  182. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  183. package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
  184. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  185. package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
  186. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  187. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  188. package/lib/components/appointmentBooking/deposit/index.d.ts +1 -0
  189. package/lib/components/appointmentBooking/index.d.ts +1 -0
  190. package/lib/components/booking/addons/model.d.ts +10 -1
  191. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  192. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  193. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  194. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  195. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  196. package/lib/components/booking/components/footer/index.d.ts +1 -0
  197. package/lib/components/booking/components/footer/index.js +8 -7
  198. package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  199. package/lib/components/booking/components/voucher/index.d.ts +1 -0
  200. package/lib/components/booking/deposit/index.d.ts +1 -0
  201. package/lib/components/booking/forms/footer.d.ts +1 -0
  202. package/lib/components/booking/forms/model.d.ts +10 -1
  203. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  204. package/lib/components/booking/forms/single/index.d.ts +1 -0
  205. package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
  206. package/lib/components/booking/hooks/useQuotation.d.ts +1 -0
  207. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  208. package/lib/components/booking/info/date/index.d.ts +1 -0
  209. package/lib/components/booking/info/header/index.d.ts +1 -0
  210. package/lib/components/booking/info/model.d.ts +10 -1
  211. package/lib/components/booking/info/notes/index.d.ts +1 -0
  212. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  213. package/lib/components/booking/info/service/addService/index.d.ts +1 -0
  214. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  215. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  216. package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
  217. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  218. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  219. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  220. package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
  221. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  222. package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  223. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  224. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  225. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  226. package/lib/components/booking/model.d.ts +9 -1
  227. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  228. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  229. package/lib/components/booking/notes/addNote/index.d.ts +1 -0
  230. package/lib/components/booking/notes/model.d.ts +10 -1
  231. package/lib/components/booking/payments/model.d.ts +10 -1
  232. package/lib/components/checkout/PaymentModal.js +11 -14
  233. package/lib/components/checkout/PaymentPlugin.d.ts +1 -0
  234. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +1 -1
  235. package/lib/components/checkout/components/PaymentResultToast/index.js +1 -1
  236. package/lib/components/checkout/components/ScrollableList/index.js +0 -1
  237. package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
  238. package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -0
  239. package/lib/components/eftpos/index.d.ts +1 -0
  240. package/lib/components/eftpos/pos.d.ts +1 -0
  241. package/lib/components/eftposPay/amount.d.ts +2 -1
  242. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  243. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  244. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  245. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  246. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  247. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  248. package/lib/components/eftposPay/device.d.ts +1 -1
  249. package/lib/components/eftposPay/hooks.d.ts +1 -1
  250. package/lib/components/eftposPay/index.d.ts +1 -0
  251. package/lib/components/eftposPay/linkly/index.d.ts +1 -0
  252. package/lib/components/eftposPay/pay.d.ts +1 -0
  253. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  254. package/lib/components/eftposPay/store/index.d.ts +3 -3
  255. package/lib/components/eftposPay/tip.d.ts +1 -0
  256. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  257. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  258. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  259. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  260. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  261. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  262. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  263. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  264. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  265. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  266. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  267. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  268. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  269. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  270. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  271. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  272. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  273. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  274. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  275. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  276. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  277. package/lib/components/eventBooking/index.d.ts +1 -0
  278. package/lib/components/login/index.d.ts +1 -0
  279. package/lib/components/pay/toB/components/Cache/index.d.ts +1 -0
  280. package/lib/components/pay/toB/components/Card/index.d.ts +1 -0
  281. package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -0
  282. package/lib/components/pay/toB/components/Content/Footer.d.ts +1 -0
  283. package/lib/components/pay/toB/components/Content/Header.d.ts +1 -0
  284. package/lib/components/pay/toB/components/EFTPOS/index.js +25 -10
  285. package/lib/components/pay/toB/components/MX51/index.js +12 -37
  286. package/lib/components/pay/toB/types/index.d.ts +0 -12
  287. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  288. package/lib/components/pay/toC/model.d.ts +9 -1
  289. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  290. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  291. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  292. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  293. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  294. package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
  295. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  296. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  297. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  298. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  299. package/lib/components/productExtension/index.d.ts +1 -0
  300. package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -0
  301. package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
  302. package/lib/components/ruleSetting/index.d.ts +1 -0
  303. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  304. package/lib/components/schedules/calendar/index.d.ts +1 -0
  305. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  306. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  307. package/lib/components/schedules/model.d.ts +9 -1
  308. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  309. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  310. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  311. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  312. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  313. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  314. package/lib/components/schedules/products/list/index.d.ts +1 -0
  315. package/lib/components/schedules/resources/index.d.ts +1 -0
  316. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  317. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  318. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  319. package/lib/components/schedules/schedules/index.d.ts +1 -0
  320. package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
  321. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  322. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  323. package/lib/components/shoppingCart/index.d.ts +1 -0
  324. package/lib/components/taxSelect/index.d.ts +1 -0
  325. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  326. package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  327. package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  328. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  329. package/lib/components/wallet/Detail/model.d.ts +13 -1
  330. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  331. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  332. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  333. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  334. package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
  335. package/lib/components/wallet/model.d.ts +9 -1
  336. package/lib/hooks/usePaymentLogger.d.ts +1 -0
  337. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  338. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  339. package/lib/plus/noteModal/AddTempModal.d.ts +1 -0
  340. package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  341. package/lib/plus/saasCreateOrganization/index.d.ts +1 -0
  342. package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  343. package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  344. package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
  345. package/lib/plus/saasRegister/components/Header.d.ts +1 -0
  346. package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
  347. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  348. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  349. package/lib/pro/pisellPhoneKeyboard/index.d.ts +1 -0
  350. package/package.json +1 -1
  351. package/es/hooks/printer.d.ts +0 -4
  352. package/es/hooks/printer.js +0 -35
  353. package/lib/hooks/printer.d.ts +0 -4
  354. package/lib/hooks/printer.js +0 -60
@@ -64,7 +64,6 @@ var import_lodash = require("lodash");
64
64
  var import_utils2 = require("./utils");
65
65
  var import_usePaymentLogger = __toESM(require("./hooks/usePaymentLogger"));
66
66
  var import_antd = require("antd");
67
- var import_printer = __toESM(require("../../hooks/printer"));
68
67
  var CheckoutHooks = {
69
68
  OnStateAmountChanged: "checkout:onStateAmountChanged",
70
69
  OnBalanceDueAmountChanged: "checkout:onBalanceDueAmountChanged",
@@ -118,7 +117,6 @@ var PaymentContent = (0, import_react.forwardRef)(
118
117
  const walletPassRef = (0, import_react.useRef)(null);
119
118
  const [paymentItems, setPaymentItems] = (0, import_react.useState)([]);
120
119
  const [walletPassData, setWalletPassData] = (0, import_react.useState)({});
121
- const { nativePrint } = (0, import_printer.default)();
122
120
  const isOrderFree = (0, import_react.useMemo)(() => {
123
121
  if (!customAmount) return false;
124
122
  const amount = parseFloat(customAmount);
@@ -441,7 +439,11 @@ var PaymentContent = (0, import_react.forwardRef)(
441
439
  });
442
440
  (_b2 = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.postMessageToApp) == null ? void 0 : _b2.call(_a2, {
443
441
  module: "till",
444
- key: "open_till"
442
+ key: "open_till",
443
+ data: {
444
+ type: "cash"
445
+ // cash 不需要验证钱箱权限
446
+ }
445
447
  });
446
448
  }
447
449
  }
@@ -517,12 +519,11 @@ var PaymentContent = (0, import_react.forwardRef)(
517
519
  data: {
518
520
  order_id: responseData.order_id,
519
521
  machine_code_print_info: responseData == null ? void 0 : responseData.machine_code_print_info,
520
- small_ticket_data: (_b2 = responseData == null ? void 0 : responseData.payment_info) == null ? void 0 : _b2.small_ticket_data,
521
- machine_code_print_info_v2: responseData == null ? void 0 : responseData.machine_code_print_info_v2
522
+ small_ticket_data: (_b2 = responseData == null ? void 0 : responseData.payment_info) == null ? void 0 : _b2.small_ticket_data
522
523
  }
523
524
  };
524
525
  console.log("print_order_onOrderSynced_params>>>>", params);
525
- nativePrint(params, (res) => {
526
+ (0, import_utils.webPrint)(params, (res) => {
526
527
  console.log("print_order_onOrderSynced_res>>>>", res);
527
528
  });
528
529
  } catch (error) {
@@ -691,7 +692,7 @@ var PaymentContent = (0, import_react.forwardRef)(
691
692
  data: { order_id: data.orderId }
692
693
  };
693
694
  try {
694
- nativePrint(params, (res) => {
695
+ (0, import_utils.webPrint)(params, (res) => {
695
696
  console.log("handleButtonClick_print-receipt_res>>>>", res);
696
697
  if (!(res == null ? void 0 : res.result)) {
697
698
  Toast == null ? void 0 : Toast.error((res == null ? void 0 : res.msg) || "");
@@ -994,7 +995,6 @@ var PaymentModal = ({
994
995
  const [windowHeight, setWindowHeight] = (0, import_react.useState)(0);
995
996
  const [showRetryModal, setShowRetryModal] = (0, import_react.useState)(false);
996
997
  const Toast = (0, import_useToast.default)();
997
- const { nativePrint } = (0, import_printer.default)();
998
998
  const handleRetry = async () => {
999
999
  const checkoutModule = pisellos == null ? void 0 : pisellos.getModule("checkout");
1000
1000
  const res = await (checkoutModule == null ? void 0 : checkoutModule.manualSyncOrderAsync());
@@ -1223,7 +1223,6 @@ var PaymentModal = ({
1223
1223
  order_rounding_setting: getData("order_rounding_setting"),
1224
1224
  shop_wallet_pass_id
1225
1225
  });
1226
- console.time("initCheckoutData");
1227
1226
  const newData = (0, import_lodash.cloneDeep)(data);
1228
1227
  await checkout.createLocalOrderAsync({
1229
1228
  orderData: newData.order_info,
@@ -1231,7 +1230,6 @@ var PaymentModal = ({
1231
1230
  autoPayment: true,
1232
1231
  totalInfo: newData.subtotal_info
1233
1232
  });
1234
- console.timeEnd("initCheckoutData");
1235
1233
  const orderInfo2 = checkout.getCurrentOrderInfo();
1236
1234
  if (orderInfo2 && orderInfo2.totalAmount) {
1237
1235
  setTotalAmount(orderInfo2.totalAmount);
@@ -1279,8 +1277,7 @@ var PaymentModal = ({
1279
1277
  data: {
1280
1278
  order_id: responseData.order_id,
1281
1279
  machine_code_print_info: responseData == null ? void 0 : responseData.machine_code_print_info,
1282
- small_ticket_data: (_c2 = responseData == null ? void 0 : responseData.payment_info) == null ? void 0 : _c2.small_ticket_data,
1283
- machine_code_print_info_v2: responseData == null ? void 0 : responseData.machine_code_print_info_v2
1280
+ small_ticket_data: (_c2 = responseData == null ? void 0 : responseData.payment_info) == null ? void 0 : _c2.small_ticket_data
1284
1281
  }
1285
1282
  };
1286
1283
  console.log("print_order_onOrderSynced_params>>>>", params);
@@ -1291,7 +1288,7 @@ var PaymentModal = ({
1291
1288
  params
1292
1289
  }
1293
1290
  });
1294
- nativePrint(params, (res) => {
1291
+ (0, import_utils.webPrint)(params, (res) => {
1295
1292
  console.log("print_order_onOrderSynced_res>>>>", res);
1296
1293
  logger == null ? void 0 : logger.addLog({
1297
1294
  type: "info",
@@ -1435,7 +1432,7 @@ var PaymentModal = ({
1435
1432
  data: { order_id: data2.orderId }
1436
1433
  };
1437
1434
  try {
1438
- nativePrint(params, (res) => {
1435
+ (0, import_utils.webPrint)(params, (res) => {
1439
1436
  console.log("handleButtonClick_print-receipt_res>>>>", res);
1440
1437
  if (!(res == null ? void 0 : res.result)) {
1441
1438
  Toast == null ? void 0 : Toast.error((res == null ? void 0 : res.msg) || "");
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const PaymentPlugin: () => JSX.Element;
2
3
  export default PaymentPlugin;
@@ -46,7 +46,7 @@ var globalPaymentResultToastContext = null;
46
46
  var DEFAULT_TOAST_CONFIG = {
47
47
  width: 680,
48
48
  mask: true,
49
- maskClosable: false,
49
+ maskClosable: true,
50
50
  closable: true,
51
51
  zIndex: 2e3
52
52
  };
@@ -78,7 +78,7 @@ var PaymentResultToast = (0, import_react.memo)((props) => {
78
78
  width,
79
79
  height,
80
80
  mask = true,
81
- maskClosable = false,
81
+ maskClosable = true,
82
82
  closable = true,
83
83
  zIndex
84
84
  } = props;
@@ -216,7 +216,6 @@ var ScrollableList = ({
216
216
  {
217
217
  style: {
218
218
  ...bottomGradientStyle,
219
- width: "100%",
220
219
  border: "none",
221
220
  background: "linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #A78BE1 100%)",
222
221
  ...gradientStyle
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export interface IScanResult {
3
4
  status: 'success' | 'failed';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface DiscountWalletProps {
3
4
  isCardMode: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Eftpos, DeviceStatus } from './const';
2
3
  import './index.less';
3
4
  interface PosProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DeviceProp } from "./const";
2
3
  interface PosProps {
3
4
  eftposName: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PosProps } from './const';
2
3
  /**
3
4
  * @title: 支付金额信息配置页
@@ -8,7 +9,7 @@ import { PosProps } from './const';
8
9
  */
9
10
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
10
11
  className?: string | undefined;
11
- onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
12
+ onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
12
13
  [keys: string]: unknown;
13
14
  } | undefined, other?: any) => void) | undefined;
14
15
  onClose: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  declare const _default: ({ className, isMobile, onChange }: ActionProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  declare const _default: ({ onChange, className, isMobile }: ActionProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  /**
3
4
  * @title: 断网(客户端)提示页
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  /**
3
4
  * @title: 支付状态未知页面
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  import './index.less';
3
4
  /**
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  /**
3
4
  * @title: 取消签名确认页
@@ -11,7 +11,7 @@ import './device.less';
11
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, containerStyle, }: {
12
12
  api: PayProps['api'];
13
13
  className?: string | undefined;
14
- onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
15
15
  [keys: string]: unknown;
16
16
  } | undefined, other?: any) => void) | undefined;
17
17
  onClose: () => void;
@@ -15,7 +15,7 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "success" | "fail" | "warn" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PosProps } from './const';
2
3
  import './index.less';
3
4
  declare const _default: (props: PosProps) => JSX.Element | null;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Linkly: ({ api, onChange }: any) => JSX.Element;
2
3
  export default Linkly;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PayProps } from './const';
2
3
  import './index.less';
3
4
  /**
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StatusEnum } from '../const';
2
3
  export declare const POS: ({ api, onChange, }: {
3
4
  api: {
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "success" | "warn" | "loading" | "fail" | "question";
177
+ status: "loading" | "success" | "fail" | "warn" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -295,7 +295,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
295
295
  name?: string | undefined;
296
296
  symbol?: string | undefined;
297
297
  amount?: string | number | undefined;
298
- mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
298
+ mode?: "pay" | "refund" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
300
  eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
301
301
  action?: "pay" | "amount" | "deviceList" | undefined;
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "loading" | "success" | "fail" | "warn" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './tip.less';
2
3
  /**
3
4
  * @title: 支付状态未知页面
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 按钮操作区
3
4
  * @description: 仅包含签名
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ api, onChange, formatAmount, }: {
2
3
  api: any;
3
4
  onChange: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ContinueButton: () => JSX.Element;
3
4
  export default ContinueButton;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Total: ({ className, isFooter }: any) => JSX.Element;
3
4
  export default Total;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const CartItem: () => JSX.Element;
3
4
  export default CartItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Cart: ({ open, onCancel }: any) => JSX.Element;
3
4
  export default Cart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Layout: () => JSX.Element;
3
4
  export default Layout;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const EmptyHolderModal: (props: any) => JSX.Element;
3
4
  export default EmptyHolderModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Event: () => JSX.Element;
3
4
  export default Event;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Footer: () => JSX.Element;
3
4
  export default Footer;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Header: () => JSX.Element;
3
4
  export default Header;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Information: () => JSX.Element;
3
4
  export default Information;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const OrderProductModal: (props: any) => JSX.Element;
3
4
  export default OrderProductModal;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const RemoveOptionConfirmModal: (props: any) => JSX.Element;
2
3
  export default RemoveOptionConfirmModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Resource: () => JSX.Element;
3
4
  export default Resource;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectHolderModal: (props: any) => JSX.Element;
2
3
  export default SelectHolderModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const BookingOptions: (props: {
2
3
  onChangeBookingOption?: ((bookingOption: any) => void) | undefined;
3
4
  }) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Resource: (props: any) => JSX.Element;
2
3
  export default Resource;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Schedule: () => JSX.Element;
2
3
  export default Schedule;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare type Item = any;
3
4
  interface ProductItemProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ScheduleTimeItem: ({ timeList }: any) => JSX.Element;
3
4
  export default ScheduleTimeItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const EventBooking: () => JSX.Element;
3
4
  export default EventBooking;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  export interface LoginProps {
3
4
  title: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ToBPayCache: (props: {
3
4
  open: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PayMethod } from '../../types';
2
3
  import './index.less';
3
4
  declare const ToBPayCard: ({ data, onChange, }: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Payment } from '../../types';
2
3
  import './index.less';
3
4
  declare const ConfirmedPayment: (props: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const ToBPayFooter: (props: {
2
3
  loading: boolean;
3
4
  submitDisabled: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const ToBPayTitle: (props: {
2
3
  amount: number | string;
3
4
  }) => JSX.Element;
@@ -38,9 +38,13 @@ var import_ahooks = require("ahooks");
38
38
  var import_EFTPos = __toESM(require("../../../../eftposPay/EFTPos"));
39
39
  var import_utils = require("../../../../../utils");
40
40
  var import_useLogger = __toESM(require("../../../../../hooks/useLogger"));
41
+ var import_hooks = require("../../../../../hooks");
41
42
  var import_index = require("./index.less");
42
43
  var updateTransactionReceiveStatus = async (params) => import_utils.request.getRequest().post("/shop/pay/card-reader/transaction/receive/status", params);
43
44
  var EFTPOS = (props, ref) => {
45
+ var _a;
46
+ const context = (0, import_hooks.useEngineContext)();
47
+ const { interaction } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
44
48
  const logger = (0, import_useLogger.default)();
45
49
  const network = (0, import_ahooks.useNetwork)();
46
50
  const [visible, setVisible] = (0, import_react.useState)(false);
@@ -51,9 +55,9 @@ var EFTPOS = (props, ref) => {
51
55
  const eftposInitDataRef = (0, import_react.useRef)(null);
52
56
  const [isEftposLoading, setIsEftposLoading] = (0, import_react.useState)(false);
53
57
  (0, import_react.useEffect)(() => {
54
- var _a, _b;
58
+ var _a2, _b;
55
59
  if (eftposRef.current) {
56
- (_b = (_a = eftposRef.current) == null ? void 0 : _a.updateNetwork) == null ? void 0 : _b.call(_a, { network: network.online });
60
+ (_b = (_a2 = eftposRef.current) == null ? void 0 : _a2.updateNetwork) == null ? void 0 : _b.call(_a2, { network: network.online });
57
61
  }
58
62
  }, [network.online]);
59
63
  const closeModal = () => {
@@ -61,8 +65,8 @@ var EFTPOS = (props, ref) => {
61
65
  eftposHandlingRef.current = false;
62
66
  setVisible(false);
63
67
  };
64
- const onOpen = ({ source, data, payCallback }) => {
65
- var _a, _b, _c;
68
+ const onOpen = async ({ source, data, payCallback }) => {
69
+ var _a2, _b, _c, _d, _e;
66
70
  if (eftposHandlingRef.current || visible) {
67
71
  logger == null ? void 0 : logger.addLog({
68
72
  type: "info",
@@ -72,6 +76,15 @@ var EFTPOS = (props, ref) => {
72
76
  return;
73
77
  }
74
78
  eftposHandlingRef.current = true;
79
+ let device_number = "";
80
+ try {
81
+ device_number = await ((_b = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.asyncDataManager) == null ? void 0 : _b.call(_a2, {
82
+ module: "get",
83
+ key: "device_number"
84
+ }));
85
+ } catch (error) {
86
+ console.error("获取设备编号失败", error);
87
+ }
75
88
  const { type, payMethod, params, mode } = data;
76
89
  const newData = {
77
90
  type,
@@ -83,12 +96,14 @@ var EFTPOS = (props, ref) => {
83
96
  order_id: params.orderId,
84
97
  name: payMethod.name,
85
98
  symbol: params.symbol,
86
- amount: params.amount
99
+ amount: params.amount,
100
+ device_number
87
101
  },
88
102
  mode
89
103
  };
104
+ console.log("newData>>>>>>>>>>>>>>", newData);
90
105
  if (!(newData == null ? void 0 : newData.type) && (newData == null ? void 0 : newData.code)) {
91
- newData.type = (_c = (_b = (_a = newData.code) == null ? void 0 : _a.split("_")) == null ? void 0 : _b[1]) == null ? void 0 : _c.toLocaleLowerCase();
106
+ newData.type = (_e = (_d = (_c = newData.code) == null ? void 0 : _c.split("_")) == null ? void 0 : _d[1]) == null ? void 0 : _e.toLocaleLowerCase();
92
107
  }
93
108
  logger == null ? void 0 : logger.addLog({
94
109
  type: "info",
@@ -113,7 +128,7 @@ var EFTPOS = (props, ref) => {
113
128
  }
114
129
  };
115
130
  const onAfterOpenChange = (v) => {
116
- var _a, _b;
131
+ var _a2, _b;
117
132
  logger == null ? void 0 : logger.addLog({
118
133
  type: "info",
119
134
  title: "ToB_EFTPOS_modal_onAfterOpenChange",
@@ -121,7 +136,7 @@ var EFTPOS = (props, ref) => {
121
136
  });
122
137
  if (v) {
123
138
  const { data, source } = eftposInitDataRef.current;
124
- (_b = (_a = eftposRef.current) == null ? void 0 : _a.update) == null ? void 0 : _b.call(_a, data, source);
139
+ (_b = (_a2 = eftposRef.current) == null ? void 0 : _a2.update) == null ? void 0 : _b.call(_a2, data, source);
125
140
  eftposInitDataRef.current = null;
126
141
  }
127
142
  };
@@ -148,7 +163,7 @@ var EFTPOS = (props, ref) => {
148
163
  eftposHandlingRef.current = false;
149
164
  };
150
165
  const onPayResult = ({ status, params }) => {
151
- var _a;
166
+ var _a2;
152
167
  logger == null ? void 0 : logger.addLog({
153
168
  type: "info",
154
169
  title: "ToB_EFTPOS_onPayResult",
@@ -156,7 +171,7 @@ var EFTPOS = (props, ref) => {
156
171
  });
157
172
  handleResult(status, params);
158
173
  if (status === "success" || status === "fail") {
159
- (_a = payCallbackRef.current) == null ? void 0 : _a.call(payCallbackRef, { status, params });
174
+ (_a2 = payCallbackRef.current) == null ? void 0 : _a2.call(payCallbackRef, { status, params });
160
175
  closeModal();
161
176
  }
162
177
  };