@pisell/private-materials 6.4.42 → 6.5.2

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 (422) 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 +13 -13
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +8 -8
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +8 -8
  11. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  13. package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  14. package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  15. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  16. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  17. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  18. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  19. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  20. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  21. package/es/components/booking/components/actionButtons/index.js +8 -4
  22. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  23. package/es/components/booking/components/customiseItemModal/index.js +2 -2
  24. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  25. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  26. package/es/components/booking/components/footer/index.js +42 -48
  27. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  28. package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  29. package/es/components/booking/components/voucher/index.js +4 -18
  30. package/es/components/booking/forms/footer.d.ts +1 -0
  31. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  32. package/es/components/booking/forms/single/index.d.ts +1 -0
  33. package/es/components/booking/forms/table/index.d.ts +1 -0
  34. package/es/components/booking/hooks/useClearCart.d.ts +1 -0
  35. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  36. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  37. package/es/components/booking/info/date/index.d.ts +1 -0
  38. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  39. package/es/components/booking/info/notes/index.d.ts +1 -0
  40. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  41. package/es/components/booking/info/service/like/index.d.ts +1 -0
  42. package/es/components/booking/info2/cartClientCard/index.js +20 -33
  43. package/es/components/booking/info2/cartClientCard/utils.d.ts +2 -2
  44. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  45. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  46. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  47. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  48. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  49. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  50. package/es/components/checkout/PaymentModal.js +443 -723
  51. package/es/components/checkout/components/AdditionalModule/index.d.ts +1 -1
  52. package/es/components/checkout/components/AdditionalModule/index.js +49 -80
  53. package/es/components/checkout/components/AdditionalModule/index.less +34 -33
  54. package/es/components/checkout/components/AdditionalModule/locales.d.ts +0 -3
  55. package/es/components/checkout/components/AdditionalModule/locales.js +4 -7
  56. package/es/components/checkout/components/AmountSummary/index.d.ts +1 -2
  57. package/es/components/checkout/components/AmountSummary/index.js +31 -69
  58. package/es/components/checkout/components/AmountSummary/index.less +9 -27
  59. package/es/components/checkout/components/CashPaymentModule/index.less +2 -0
  60. package/es/components/checkout/components/PaymentDetailModal/index.js +10 -55
  61. package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -2
  62. package/es/components/checkout/components/PaymentOptionsModule/index.js +25 -40
  63. package/es/components/checkout/components/PaymentOptionsModule/index.less +6 -11
  64. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +9 -42
  65. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +82 -512
  66. package/es/components/checkout/components/PaymentResultToast/index.d.ts +1 -2
  67. package/es/components/checkout/components/PaymentResultToast/index.js +35 -90
  68. package/es/components/checkout/components/PaymentResultToast/index.less +77 -445
  69. package/es/components/checkout/components/PaymentResultToast/types.d.ts +3 -3
  70. package/es/components/checkout/components/PaymentResultToast/utils.d.ts +0 -26
  71. package/es/components/checkout/components/PaymentResultToast/utils.js +2 -81
  72. package/es/components/checkout/components/ScrollableList/index.js +1 -0
  73. package/es/components/checkout/components/SearchAndClientModule/index.js +16 -17
  74. package/es/components/checkout/components/SearchAndClientModule/index.less +8 -29
  75. package/es/components/checkout/components/WalletPassModule/components/WalletPassHeader/index.js +1 -3
  76. package/es/components/checkout/components/WalletPassModule/index.less +3 -3
  77. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  78. package/es/components/checkout/hooks/useWalletPass.js +1 -1
  79. package/es/components/checkout/index.d.ts +1 -1
  80. package/es/components/checkout/index.js +1 -1
  81. package/es/components/checkout/index.less +38 -56
  82. package/es/components/checkout/locales.d.ts +0 -6
  83. package/es/components/checkout/locales.js +3 -9
  84. package/es/components/checkout/payment-modal-utils.js +5 -5
  85. package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +3 -3
  86. package/es/components/checkout/utils/PaymentResultToastUtils.js +72 -111
  87. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  88. package/es/components/eftpos/form/index.d.ts +1 -0
  89. package/es/components/eftpos/group/index.d.ts +1 -0
  90. package/es/components/eftpos/hooks.d.ts +1 -0
  91. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  92. package/es/components/eftpos/icon/device.d.ts +1 -0
  93. package/es/components/eftpos/index.d.ts +1 -0
  94. package/es/components/eftpos/pos.d.ts +1 -0
  95. package/es/components/eftpos/receipt/index.d.ts +1 -0
  96. package/es/components/eftposPay/amount.d.ts +1 -0
  97. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  98. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  99. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  100. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  101. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  102. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  103. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  104. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  105. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  106. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  107. package/es/components/eftposPay/pay.d.ts +1 -0
  108. package/es/components/eftposPay/payo/config.d.ts +1 -0
  109. package/es/components/eftposPay/tip.d.ts +1 -0
  110. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  111. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  112. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  113. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  114. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  115. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  116. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  117. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  118. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  119. package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  120. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  121. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  122. package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  123. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  124. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  125. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  126. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  127. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  128. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  129. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  130. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  131. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  132. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  133. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  134. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  135. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  136. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  137. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  138. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  139. package/es/components/login/index.d.ts +1 -0
  140. package/es/components/pay/toB/components/EFTPOS/index.js +58 -91
  141. package/es/components/pay/toB/components/MX51/index.js +44 -14
  142. package/es/components/pay/toB/types/index.d.ts +12 -0
  143. package/es/components/pay/toB/types/index.js +4 -0
  144. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  145. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  146. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  147. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  148. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  149. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  150. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  151. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  152. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  153. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  154. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  155. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  156. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  157. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  158. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  159. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  160. package/es/components/schedules/calendar/index.d.ts +1 -0
  161. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  162. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  163. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  164. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  165. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  166. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  167. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  168. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  169. package/es/components/schedules/products/index.d.ts +1 -0
  170. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  171. package/es/components/schedules/products/list/index.d.ts +1 -0
  172. package/es/components/schedules/resources/index.d.ts +1 -0
  173. package/es/components/schedules/resources/list/index.d.ts +1 -0
  174. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  175. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  176. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  177. package/es/components/schedules/schedules/index.d.ts +1 -0
  178. package/es/components/schedules/utils.d.ts +1 -1
  179. package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
  180. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  181. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  182. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  183. package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  184. package/es/components/shoppingCart/index.d.ts +1 -0
  185. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
  186. package/es/components/ticketBooking/components/addServiceVariant/addService.js +13 -6
  187. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  188. package/es/components/ticketBooking/components/addServiceVariant/index.js +4 -2
  189. package/es/components/ticketBooking/components/bookingDataPanel/index.js +1 -1
  190. package/es/components/ticketBooking/components/menuBar/index.js +1 -1
  191. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +4 -1
  192. package/es/components/ticketBooking/components/ticketBooking/index.js +5 -4
  193. package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +7 -7
  194. package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +1 -1
  195. package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +1 -1
  196. package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +2 -4
  197. package/es/components/ticketBooking/index.d.ts +1 -0
  198. package/es/components/ticketBooking/index.js +5 -2
  199. package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
  200. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  201. package/es/hooks/printer.d.ts +4 -0
  202. package/es/hooks/printer.js +35 -0
  203. package/es/hooks/usePaymentLogger.d.ts +1 -0
  204. package/es/plus/clientCard/index.js +2 -3
  205. package/es/plus/clientCard/index.less +32 -3
  206. package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  207. package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  208. package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  209. package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
  210. package/es/plus/saasRegister/components/Header.d.ts +1 -0
  211. package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
  212. package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  213. package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  214. package/es/pro/comprehensiveSearch/components/searchSection/index.js +12 -9
  215. package/es/pro/comprehensiveSearch/components/searchSection/index.less +19 -22
  216. package/es/utils/index.d.ts +1 -1
  217. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  218. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  219. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  220. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  221. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  222. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  223. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  224. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  225. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  226. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  227. package/lib/components/booking/components/actionButtons/index.js +5 -4
  228. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  229. package/lib/components/booking/components/customiseItemModal/index.js +2 -2
  230. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  231. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  232. package/lib/components/booking/components/footer/index.js +0 -3
  233. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  234. package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  235. package/lib/components/booking/components/voucher/index.js +3 -15
  236. package/lib/components/booking/forms/footer.d.ts +1 -0
  237. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  238. package/lib/components/booking/forms/single/index.d.ts +1 -0
  239. package/lib/components/booking/forms/table/index.d.ts +1 -0
  240. package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
  241. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  242. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  243. package/lib/components/booking/info/date/index.d.ts +1 -0
  244. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  245. package/lib/components/booking/info/notes/index.d.ts +1 -0
  246. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  247. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  248. package/lib/components/booking/info2/cartClientCard/index.js +5 -16
  249. package/lib/components/booking/info2/cartClientCard/utils.d.ts +2 -2
  250. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  251. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  252. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  253. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  254. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  255. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  256. package/lib/components/checkout/PaymentModal.js +120 -247
  257. package/lib/components/checkout/components/AdditionalModule/index.d.ts +1 -1
  258. package/lib/components/checkout/components/AdditionalModule/index.js +34 -98
  259. package/lib/components/checkout/components/AdditionalModule/index.less +34 -33
  260. package/lib/components/checkout/components/AdditionalModule/locales.d.ts +0 -3
  261. package/lib/components/checkout/components/AdditionalModule/locales.js +4 -7
  262. package/lib/components/checkout/components/AmountSummary/index.d.ts +1 -2
  263. package/lib/components/checkout/components/AmountSummary/index.js +47 -103
  264. package/lib/components/checkout/components/AmountSummary/index.less +9 -27
  265. package/lib/components/checkout/components/CashPaymentModule/index.less +2 -0
  266. package/lib/components/checkout/components/PaymentDetailModal/index.js +11 -56
  267. package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -2
  268. package/lib/components/checkout/components/PaymentOptionsModule/index.js +8 -11
  269. package/lib/components/checkout/components/PaymentOptionsModule/index.less +6 -11
  270. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +9 -42
  271. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +73 -279
  272. package/lib/components/checkout/components/PaymentResultToast/index.d.ts +1 -2
  273. package/lib/components/checkout/components/PaymentResultToast/index.js +22 -69
  274. package/lib/components/checkout/components/PaymentResultToast/index.less +77 -445
  275. package/lib/components/checkout/components/PaymentResultToast/types.d.ts +3 -3
  276. package/lib/components/checkout/components/PaymentResultToast/utils.d.ts +0 -26
  277. package/lib/components/checkout/components/PaymentResultToast/utils.js +4 -58
  278. package/lib/components/checkout/components/ScrollableList/index.js +1 -0
  279. package/lib/components/checkout/components/SearchAndClientModule/index.js +15 -17
  280. package/lib/components/checkout/components/SearchAndClientModule/index.less +8 -29
  281. package/lib/components/checkout/components/WalletPassModule/components/WalletPassHeader/index.js +2 -12
  282. package/lib/components/checkout/components/WalletPassModule/index.less +3 -3
  283. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  284. package/lib/components/checkout/hooks/useWalletPass.js +2 -2
  285. package/lib/components/checkout/index.d.ts +1 -1
  286. package/lib/components/checkout/index.js +0 -2
  287. package/lib/components/checkout/index.less +38 -56
  288. package/lib/components/checkout/locales.d.ts +0 -6
  289. package/lib/components/checkout/locales.js +3 -9
  290. package/lib/components/checkout/payment-modal-utils.js +5 -5
  291. package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +3 -3
  292. package/lib/components/checkout/utils/PaymentResultToastUtils.js +18 -26
  293. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  294. package/lib/components/eftpos/form/index.d.ts +1 -0
  295. package/lib/components/eftpos/group/index.d.ts +1 -0
  296. package/lib/components/eftpos/hooks.d.ts +1 -0
  297. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  298. package/lib/components/eftpos/icon/device.d.ts +1 -0
  299. package/lib/components/eftpos/index.d.ts +1 -0
  300. package/lib/components/eftpos/pos.d.ts +1 -0
  301. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  302. package/lib/components/eftposPay/amount.d.ts +1 -0
  303. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  304. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  305. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  306. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  307. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  308. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  309. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  310. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  311. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  312. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  313. package/lib/components/eftposPay/pay.d.ts +1 -0
  314. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  315. package/lib/components/eftposPay/tip.d.ts +1 -0
  316. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  317. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  318. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  319. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  320. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  321. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  322. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  323. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  324. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  325. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  326. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  327. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  328. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  329. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  330. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  331. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  332. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  333. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  334. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  335. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  336. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  337. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  338. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  339. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  340. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  341. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  342. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  343. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  344. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  345. package/lib/components/login/index.d.ts +1 -0
  346. package/lib/components/pay/toB/components/EFTPOS/index.js +10 -25
  347. package/lib/components/pay/toB/components/MX51/index.js +37 -12
  348. package/lib/components/pay/toB/types/index.d.ts +12 -0
  349. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  350. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  351. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  352. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  353. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  354. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  355. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  356. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  357. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  358. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  359. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  360. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  361. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  362. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  363. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  364. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  365. package/lib/components/schedules/calendar/index.d.ts +1 -0
  366. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  367. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  368. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  369. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  370. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  371. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  372. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  373. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  374. package/lib/components/schedules/products/index.d.ts +1 -0
  375. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  376. package/lib/components/schedules/products/list/index.d.ts +1 -0
  377. package/lib/components/schedules/resources/index.d.ts +1 -0
  378. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  379. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  380. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  381. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  382. package/lib/components/schedules/schedules/index.d.ts +1 -0
  383. package/lib/components/schedules/utils.d.ts +1 -1
  384. package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
  385. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  386. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  387. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  388. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  389. package/lib/components/shoppingCart/index.d.ts +1 -0
  390. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
  391. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +15 -9
  392. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  393. package/lib/components/ticketBooking/components/addServiceVariant/index.js +3 -2
  394. package/lib/components/ticketBooking/components/bookingDataPanel/index.js +2 -2
  395. package/lib/components/ticketBooking/components/menuBar/index.js +1 -1
  396. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +4 -1
  397. package/lib/components/ticketBooking/components/ticketBooking/index.js +12 -12
  398. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +7 -7
  399. package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +12 -2
  400. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +12 -2
  401. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +13 -5
  402. package/lib/components/ticketBooking/index.d.ts +1 -0
  403. package/lib/components/ticketBooking/index.js +2 -2
  404. package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
  405. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  406. package/lib/hooks/printer.d.ts +4 -0
  407. package/lib/hooks/printer.js +60 -0
  408. package/lib/hooks/usePaymentLogger.d.ts +1 -0
  409. package/lib/plus/clientCard/index.js +4 -5
  410. package/lib/plus/clientCard/index.less +32 -3
  411. package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  412. package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  413. package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  414. package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
  415. package/lib/plus/saasRegister/components/Header.d.ts +1 -0
  416. package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
  417. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  418. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  419. package/lib/pro/comprehensiveSearch/components/searchSection/index.js +18 -6
  420. package/lib/pro/comprehensiveSearch/components/searchSection/index.less +19 -22
  421. package/lib/utils/index.d.ts +1 -1
  422. package/package.json +12 -12
@@ -70,7 +70,7 @@ var calculateSubtitle = (status, amount, gapAmount, getData) => {
70
70
  case "paid":
71
71
  if (gapAmount) {
72
72
  text = `${import_utils.locales.getText("payment.result.changeDue") || "Change Due"} ${formatCurrency(Math.abs(gapAmount), amountSymbol)}`;
73
- colorClass = "paid";
73
+ colorClass = "partially-paid";
74
74
  } else {
75
75
  text = `${import_utils.locales.getText("payment.result.paid") || "Paid"} ${formatCurrency(amount, amountSymbol)}`;
76
76
  colorClass = "paid";
@@ -93,7 +93,7 @@ var calculateSubtitle = (status, amount, gapAmount, getData) => {
93
93
  default:
94
94
  return null;
95
95
  }
96
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "payment-result-toast-subtitle" }, /* @__PURE__ */ import_react.default.createElement("div", { className: getSubtitleClassName(colorClass) }, text));
96
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "payment-result-toast-subtitle" }, /* @__PURE__ */ import_react.default.createElement("h1", { className: getSubtitleClassName(colorClass) }, text));
97
97
  };
98
98
  var calculateStatusClassName = (status) => {
99
99
  switch (status) {
@@ -109,36 +109,36 @@ var calculateStatusClassName = (status) => {
109
109
  }
110
110
  };
111
111
  var calculateAutoCloseConfig = (status, hasChangeDue) => {
112
- const autoCloseDelay = 30;
113
112
  switch (status) {
114
113
  case "paid":
115
114
  return {
116
115
  autoClose: true,
117
- autoCloseDelay,
118
- maskClosable: false
116
+ autoCloseDelay: hasChangeDue ? 30 : 5,
117
+ // 有找零30秒,无找零5秒
118
+ maskClosable: true
119
119
  };
120
120
  case "partially_paid":
121
121
  return {
122
122
  autoClose: true,
123
- autoCloseDelay,
124
- maskClosable: false
123
+ autoCloseDelay: 5,
124
+ maskClosable: true
125
125
  };
126
126
  case "failed":
127
127
  case "wallet-pass-redemption-failed":
128
128
  return {
129
129
  autoClose: false,
130
- autoCloseDelay,
130
+ autoCloseDelay: 0,
131
131
  maskClosable: false
132
132
  };
133
133
  default:
134
134
  return {
135
135
  autoClose: false,
136
- autoCloseDelay,
136
+ autoCloseDelay: 5,
137
137
  maskClosable: false
138
138
  };
139
139
  }
140
140
  };
141
- var displayPaymentResultToast = async (params, config) => {
141
+ var displayPaymentResultToast = (params, config) => {
142
142
  const {
143
143
  paymentStatus,
144
144
  orderTotalAmount,
@@ -149,7 +149,7 @@ var displayPaymentResultToast = async (params, config) => {
149
149
  } = params;
150
150
  const { getData, onToastClose } = config;
151
151
  if (paymentStatus === "paid") {
152
- await (0, import_PaymentResultToast.showPaymentResultToastSuccess)({
152
+ (0, import_PaymentResultToast.showPaymentResultToastSuccess)({
153
153
  title: calculateTitle(paymentStatus),
154
154
  subtitle: calculateSubtitle(
155
155
  paymentStatus,
@@ -161,14 +161,10 @@ var displayPaymentResultToast = async (params, config) => {
161
161
  autoCloseDelay: (autoCloseConfig == null ? void 0 : autoCloseConfig.autoCloseDelay) || 3e3,
162
162
  showCountdownProgress: true,
163
163
  actionButtons: actionButtons || [],
164
- onClose: onToastClose || (() => {
165
- }),
166
- // 提供默认空函数
167
- closable: false
168
- // 控制关闭按钮显示
164
+ onClose: onToastClose
169
165
  });
170
166
  } else if (paymentStatus === "partially_paid") {
171
- await (0, import_PaymentResultToast.showPaymentResultToastSuccess)({
167
+ (0, import_PaymentResultToast.showPaymentResultToastSuccess)({
172
168
  title: calculateTitle(paymentStatus),
173
169
  subtitle: calculateSubtitle(
174
170
  paymentStatus,
@@ -178,12 +174,10 @@ var displayPaymentResultToast = async (params, config) => {
178
174
  ),
179
175
  autoClose: (autoCloseConfig == null ? void 0 : autoCloseConfig.autoClose) || false,
180
176
  actionButtons: actionButtons || [],
181
- onClose: onToastClose || (() => {
182
- })
183
- // 提供默认空函数
177
+ onClose: onToastClose
184
178
  });
185
179
  } else if (paymentStatus === "failed" || paymentStatus === "error") {
186
- await (0, import_PaymentResultToast.showPaymentResultToastFailed)({
180
+ (0, import_PaymentResultToast.showPaymentResultToastFailed)({
187
181
  title: calculateTitle(paymentStatus, failureReason),
188
182
  subtitle: calculateSubtitle(
189
183
  paymentStatus,
@@ -193,14 +187,12 @@ var displayPaymentResultToast = async (params, config) => {
193
187
  ),
194
188
  autoClose: (autoCloseConfig == null ? void 0 : autoCloseConfig.autoClose) || false,
195
189
  actionButtons: actionButtons || [],
196
- onClose: onToastClose || (() => {
197
- })
198
- // 提供默认空函数
190
+ onClose: onToastClose
199
191
  });
200
192
  }
201
193
  };
202
194
  var createShowSuccessToast = (config, getActionButtons) => {
203
- return async (result) => {
195
+ return (result) => {
204
196
  var _a;
205
197
  const responseData = (_a = result.response) == null ? void 0 : _a.data;
206
198
  const paymentStatus = responseData == null ? void 0 : responseData.payment_status;
@@ -211,7 +203,7 @@ var createShowSuccessToast = (config, getActionButtons) => {
211
203
  !!gapAmount
212
204
  );
213
205
  const actionButtons = getActionButtons ? getActionButtons(paymentStatus) : [];
214
- await displayPaymentResultToast({
206
+ displayPaymentResultToast({
215
207
  paymentStatus,
216
208
  orderTotalAmount,
217
209
  gapAmount,
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ input, ...formItemProps }: any) => JSX.Element;
2
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 递归循环表单数据
3
4
  * @Author: hongbing.wang
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { RadioGroupProps } from 'antd';
2
3
  export declare const CheckboxGroup: ({ direction, options, ...props }: any) => JSX.Element;
3
4
  export declare const RadioGroup: ({ direction, options, ...props }: RadioGroupProps & {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Eftpos } from './const';
2
3
  /**
3
4
  * @title: tyro 设备连接
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ color }: {
2
3
  color?: string | undefined;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ color }: {
2
3
  color?: string | undefined;
3
4
  }) => JSX.Element;
@@ -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
  /**
2
3
  * @title: 自定义组件设置
3
4
  * @description: 自定义组件设置
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PosProps } from './const';
2
3
  /**
3
4
  * @title: 支付金额信息配置页
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
@@ -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 './titlebar.less';
2
3
  declare enum EPopupTitleBarVariantType {
3
4
  BackTitleClose = "back-title-cancel",
@@ -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: 取消签名确认页
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StatusType } from '../../const';
2
3
  declare const _default: (props: {
3
4
  status: StatusType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: (props: {
2
3
  status: string;
3
4
  pedding?: string;
@@ -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: {
@@ -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: 获取 Tyro 资源
3
4
  * @description:
@@ -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 ErrorTip: ({ text }: any) => JSX.Element;
3
4
  export default ErrorTip;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Deposit: () => JSX.Element;
2
3
  export default Deposit;
@@ -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 InformationOptionsModal: (props: any) => JSX.Element;
3
4
  export default InformationOptionsModal;
@@ -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
  import './index.less';
2
3
  declare const Status: (props: any) => JSX.Element;
3
4
  export default Status;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const WeekItem: (props: any) => JSX.Element;
3
4
  export default WeekItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare type CalenDateWeekProps = {
3
4
  currentDate: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const DayItem: (props: any) => JSX.Element;
3
4
  export default DayItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { CalendarItemProps } from '../../../../../type';
3
4
  declare const Item: (props: CalendarItemProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Status: (props: any) => JSX.Element;
3
4
  export default Status;
@@ -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
  export interface LoginProps {
3
4
  title: string;
@@ -38,13 +38,9 @@ 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");
42
41
  var import_index = require("./index.less");
43
42
  var updateTransactionReceiveStatus = async (params) => import_utils.request.getRequest().post("/shop/pay/card-reader/transaction/receive/status", params);
44
43
  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) || {};
48
44
  const logger = (0, import_useLogger.default)();
49
45
  const network = (0, import_ahooks.useNetwork)();
50
46
  const [visible, setVisible] = (0, import_react.useState)(false);
@@ -55,9 +51,9 @@ var EFTPOS = (props, ref) => {
55
51
  const eftposInitDataRef = (0, import_react.useRef)(null);
56
52
  const [isEftposLoading, setIsEftposLoading] = (0, import_react.useState)(false);
57
53
  (0, import_react.useEffect)(() => {
58
- var _a2, _b;
54
+ var _a, _b;
59
55
  if (eftposRef.current) {
60
- (_b = (_a2 = eftposRef.current) == null ? void 0 : _a2.updateNetwork) == null ? void 0 : _b.call(_a2, { network: network.online });
56
+ (_b = (_a = eftposRef.current) == null ? void 0 : _a.updateNetwork) == null ? void 0 : _b.call(_a, { network: network.online });
61
57
  }
62
58
  }, [network.online]);
63
59
  const closeModal = () => {
@@ -65,8 +61,8 @@ var EFTPOS = (props, ref) => {
65
61
  eftposHandlingRef.current = false;
66
62
  setVisible(false);
67
63
  };
68
- const onOpen = async ({ source, data, payCallback }) => {
69
- var _a2, _b, _c, _d, _e;
64
+ const onOpen = ({ source, data, payCallback }) => {
65
+ var _a, _b, _c;
70
66
  if (eftposHandlingRef.current || visible) {
71
67
  logger == null ? void 0 : logger.addLog({
72
68
  type: "info",
@@ -76,15 +72,6 @@ var EFTPOS = (props, ref) => {
76
72
  return;
77
73
  }
78
74
  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
- }
88
75
  const { type, payMethod, params, mode } = data;
89
76
  const newData = {
90
77
  type,
@@ -96,14 +83,12 @@ var EFTPOS = (props, ref) => {
96
83
  order_id: params.orderId,
97
84
  name: payMethod.name,
98
85
  symbol: params.symbol,
99
- amount: params.amount,
100
- device_number
86
+ amount: params.amount
101
87
  },
102
88
  mode
103
89
  };
104
- console.log("newData>>>>>>>>>>>>>>", newData);
105
90
  if (!(newData == null ? void 0 : newData.type) && (newData == null ? void 0 : newData.code)) {
106
- newData.type = (_e = (_d = (_c = newData.code) == null ? void 0 : _c.split("_")) == null ? void 0 : _d[1]) == null ? void 0 : _e.toLocaleLowerCase();
91
+ newData.type = (_c = (_b = (_a = newData.code) == null ? void 0 : _a.split("_")) == null ? void 0 : _b[1]) == null ? void 0 : _c.toLocaleLowerCase();
107
92
  }
108
93
  logger == null ? void 0 : logger.addLog({
109
94
  type: "info",
@@ -128,7 +113,7 @@ var EFTPOS = (props, ref) => {
128
113
  }
129
114
  };
130
115
  const onAfterOpenChange = (v) => {
131
- var _a2, _b;
116
+ var _a, _b;
132
117
  logger == null ? void 0 : logger.addLog({
133
118
  type: "info",
134
119
  title: "ToB_EFTPOS_modal_onAfterOpenChange",
@@ -136,7 +121,7 @@ var EFTPOS = (props, ref) => {
136
121
  });
137
122
  if (v) {
138
123
  const { data, source } = eftposInitDataRef.current;
139
- (_b = (_a2 = eftposRef.current) == null ? void 0 : _a2.update) == null ? void 0 : _b.call(_a2, data, source);
124
+ (_b = (_a = eftposRef.current) == null ? void 0 : _a.update) == null ? void 0 : _b.call(_a, data, source);
140
125
  eftposInitDataRef.current = null;
141
126
  }
142
127
  };
@@ -163,7 +148,7 @@ var EFTPOS = (props, ref) => {
163
148
  eftposHandlingRef.current = false;
164
149
  };
165
150
  const onPayResult = ({ status, params }) => {
166
- var _a2;
151
+ var _a;
167
152
  logger == null ? void 0 : logger.addLog({
168
153
  type: "info",
169
154
  title: "ToB_EFTPOS_onPayResult",
@@ -171,7 +156,7 @@ var EFTPOS = (props, ref) => {
171
156
  });
172
157
  handleResult(status, params);
173
158
  if (status === "success" || status === "fail") {
174
- (_a2 = payCallbackRef.current) == null ? void 0 : _a2.call(payCallbackRef, { status, params });
159
+ (_a = payCallbackRef.current) == null ? void 0 : _a.call(payCallbackRef, { status, params });
175
160
  closeModal();
176
161
  }
177
162
  };
@@ -33,8 +33,8 @@ __export(MX51_exports, {
33
33
  });
34
34
  module.exports = __toCommonJS(MX51_exports);
35
35
  var import_react = require("react");
36
- var import_utils = require("@pisell/utils");
37
36
  var import_useLogger = __toESM(require("../../../../../hooks/useLogger"));
37
+ var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
38
38
  var getUuid = () => {
39
39
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxx".replace(/[xy]/g, (c) => {
40
40
  const r = Math.random() * 16 | 0;
@@ -43,7 +43,10 @@ var getUuid = () => {
43
43
  });
44
44
  };
45
45
  var MX51 = (props, ref) => {
46
+ var _a, _b;
46
47
  const logger = (0, import_useLogger.default)();
48
+ const context = (0, import_useEngineContext.default)();
49
+ const action = (_b = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.action;
47
50
  const onOpen = ({ data, payCallback }) => {
48
51
  const { params, mode } = data;
49
52
  const uniquePaymentNumber = getUuid();
@@ -62,18 +65,40 @@ var MX51 = (props, ref) => {
62
65
  title: "ToB_MX51_onOpen 开始调用",
63
66
  metadata: { params: newData }
64
67
  });
65
- (0, import_utils.webPayment)(newData, (res) => {
66
- const isSame = (res == null ? void 0 : res.uniquePaymentNumber) === uniquePaymentNumber;
67
- logger == null ? void 0 : logger.addLog({
68
- type: "info",
69
- title: "ToB_MX51_onOpen_callback",
70
- metadata: {
71
- msg: isSame ? "uniquePaymentNumber一致" : "uniquePaymentNumber不一致",
72
- res
68
+ action({
69
+ type: "webpos.handleMX51Pay",
70
+ data: newData,
71
+ callback: (res) => {
72
+ var _a2, _b2;
73
+ let isSame = false;
74
+ if (res == null ? void 0 : res.uniquePaymentNumber) {
75
+ const _res = res;
76
+ isSame = (_res == null ? void 0 : _res.uniquePaymentNumber) === uniquePaymentNumber;
77
+ if (isSame) {
78
+ payCallback == null ? void 0 : payCallback(_res);
79
+ }
80
+ } else {
81
+ const _res = res;
82
+ const newRes = {
83
+ result: (_res == null ? void 0 : _res.code) == "200" ? true : false,
84
+ msg: _res == null ? void 0 : _res.msg,
85
+ amount: (_a2 = _res == null ? void 0 : _res.data) == null ? void 0 : _a2.amount,
86
+ surcharge: (_b2 = _res == null ? void 0 : _res.data) == null ? void 0 : _b2.surcharge,
87
+ uniquePaymentNumber: _res == null ? void 0 : _res.uuid
88
+ };
89
+ isSame = (_res == null ? void 0 : _res.uuid) === uniquePaymentNumber;
90
+ if (isSame) {
91
+ payCallback == null ? void 0 : payCallback(newRes);
92
+ }
73
93
  }
74
- });
75
- if (isSame) {
76
- payCallback == null ? void 0 : payCallback(res);
94
+ logger == null ? void 0 : logger.addLog({
95
+ type: "info",
96
+ title: "ToB_MX51_onOpen_callback",
97
+ metadata: {
98
+ msg: isSame ? "交易流水号一致" : "交易流水号不一致",
99
+ res
100
+ }
101
+ });
77
102
  }
78
103
  });
79
104
  };