@pisell/private-materials 6.5.2 → 6.5.3

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 (323) 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 +9 -9
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +7 -7
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +7 -7
  11. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  12. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  13. package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  14. package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  15. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  16. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  17. package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
  18. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  19. package/es/components/booking/addons/model.d.ts +1 -10
  20. package/es/components/booking/components/actionButtons/index.js +2 -2
  21. package/es/components/booking/components/customiseItemModal/index.js +2 -2
  22. package/es/components/booking/components/footer/index.js +48 -42
  23. package/es/components/booking/components/voucher/index.js +18 -4
  24. package/es/components/booking/deposit/index.d.ts +1 -0
  25. package/es/components/booking/forms/footer.d.ts +0 -1
  26. package/es/components/booking/forms/model.d.ts +1 -10
  27. package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  28. package/es/components/booking/hooks/useClearCart.d.ts +0 -1
  29. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  30. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  31. package/es/components/booking/info/header/index.d.ts +1 -0
  32. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  33. package/es/components/booking/info/index.d.ts +1 -0
  34. package/es/components/booking/info/model.d.ts +1 -10
  35. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  36. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  37. package/es/components/booking/info2/cartClientCard/index.js +33 -20
  38. package/es/components/booking/info2/cartClientCard/utils.d.ts +2 -2
  39. package/es/components/booking/info2/service/addService/index.d.ts +1 -0
  40. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  41. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  42. package/es/components/booking/model.d.ts +1 -9
  43. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  44. package/es/components/booking/notes/addNote/index.d.ts +1 -0
  45. package/es/components/booking/notes/model.d.ts +1 -10
  46. package/es/components/booking/payments/model.d.ts +1 -10
  47. package/es/components/booking/utils.d.ts +2 -2
  48. package/es/components/checkout/PaymentModal.js +719 -432
  49. package/es/components/checkout/PaymentPlugin.d.ts +1 -0
  50. package/es/components/checkout/components/AdditionalModule/index.d.ts +1 -1
  51. package/es/components/checkout/components/AdditionalModule/index.js +80 -49
  52. package/es/components/checkout/components/AdditionalModule/index.less +33 -34
  53. package/es/components/checkout/components/AdditionalModule/locales.d.ts +3 -0
  54. package/es/components/checkout/components/AdditionalModule/locales.js +7 -4
  55. package/es/components/checkout/components/AmountSummary/index.d.ts +2 -1
  56. package/es/components/checkout/components/AmountSummary/index.js +69 -31
  57. package/es/components/checkout/components/AmountSummary/index.less +27 -9
  58. package/es/components/checkout/components/CashPaymentModule/index.less +0 -2
  59. package/es/components/checkout/components/PaymentDetailModal/index.js +55 -10
  60. package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +2 -1
  61. package/es/components/checkout/components/PaymentOptionsModule/index.js +40 -25
  62. package/es/components/checkout/components/PaymentOptionsModule/index.less +11 -6
  63. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +42 -9
  64. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +512 -82
  65. package/es/components/checkout/components/PaymentResultToast/index.d.ts +2 -1
  66. package/es/components/checkout/components/PaymentResultToast/index.js +90 -35
  67. package/es/components/checkout/components/PaymentResultToast/index.less +445 -77
  68. package/es/components/checkout/components/PaymentResultToast/types.d.ts +3 -3
  69. package/es/components/checkout/components/PaymentResultToast/utils.d.ts +26 -0
  70. package/es/components/checkout/components/PaymentResultToast/utils.js +81 -2
  71. package/es/components/checkout/components/SearchAndClientModule/index.js +17 -16
  72. package/es/components/checkout/components/SearchAndClientModule/index.less +29 -8
  73. package/es/components/checkout/components/WalletPassModule/components/WalletPassHeader/index.js +3 -1
  74. package/es/components/checkout/components/WalletPassModule/index.less +3 -3
  75. package/es/components/checkout/hooks/useWalletPass.js +1 -1
  76. package/es/components/checkout/index.d.ts +1 -1
  77. package/es/components/checkout/index.js +1 -1
  78. package/es/components/checkout/index.less +56 -38
  79. package/es/components/checkout/locales.d.ts +6 -0
  80. package/es/components/checkout/locales.js +9 -3
  81. package/es/components/checkout/payment-modal-utils.js +5 -5
  82. package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +3 -3
  83. package/es/components/checkout/utils/PaymentResultToastUtils.js +111 -72
  84. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  85. package/es/components/eftposPay/app.d.ts +1 -0
  86. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  87. package/es/components/eftposPay/component/fail/index.d.ts +0 -1
  88. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
  89. package/es/components/eftposPay/hooks.d.ts +1 -1
  90. package/es/components/eftposPay/pay.d.ts +0 -1
  91. package/es/components/eftposPay/store/index.d.ts +4 -4
  92. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  93. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  94. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  95. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  96. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  97. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  98. package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  99. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  100. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  101. package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  102. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  103. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  104. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  105. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  106. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  107. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  108. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  109. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  110. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  111. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  112. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  113. package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  114. package/es/components/pay/toB/components/Content/Header.d.ts +1 -0
  115. package/es/components/pay/toB/components/EFTPOS/index.js +91 -58
  116. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  117. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  118. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  119. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  120. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  121. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  122. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  123. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  124. package/es/components/pay/toC/model.d.ts +1 -9
  125. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  126. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  127. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  128. package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  129. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  130. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  131. package/es/components/schedules/model.d.ts +1 -9
  132. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  133. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  134. package/es/components/shoppingCart/components/Cart/index.d.ts +0 -1
  135. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  136. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  137. package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  138. package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  139. package/es/components/shoppingCart/index.d.ts +0 -1
  140. package/es/components/taxSelect/index.d.ts +1 -0
  141. package/es/components/ticketBooking/components/addServiceVariant/addService.js +4 -3
  142. package/es/components/ticketBooking/components/bookingDataPanel/index.js +1 -1
  143. package/es/components/ticketBooking/components/menuBar/index.js +1 -1
  144. package/es/components/ticketBooking/components/ticketBooking/index.js +2 -2
  145. package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +1 -1
  146. package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +1 -1
  147. package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +4 -2
  148. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  149. package/es/components/wallet/Detail/model.d.ts +1 -13
  150. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  151. package/es/components/wallet/PointCard/model.d.ts +1 -13
  152. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  153. package/es/components/wallet/Voucher/model.d.ts +1 -13
  154. package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
  155. package/es/components/wallet/model.d.ts +1 -9
  156. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  157. package/es/plus/clientCard/index.js +3 -2
  158. package/es/plus/clientCard/index.less +3 -32
  159. package/es/plus/clientName/index.d.ts +1 -0
  160. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  161. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  162. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  163. package/es/plus/saasCreateOrganization/index.d.ts +1 -0
  164. package/es/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  165. package/es/pro/comprehensiveSearch/components/searchSection/index.js +9 -12
  166. package/es/pro/comprehensiveSearch/components/searchSection/index.less +22 -19
  167. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  168. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  169. package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  170. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  171. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  172. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  173. package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
  174. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  175. package/lib/components/booking/addons/model.d.ts +1 -10
  176. package/lib/components/booking/components/actionButtons/index.js +2 -1
  177. package/lib/components/booking/components/customiseItemModal/index.js +2 -2
  178. package/lib/components/booking/components/footer/index.js +3 -0
  179. package/lib/components/booking/components/voucher/index.js +15 -3
  180. package/lib/components/booking/deposit/index.d.ts +1 -0
  181. package/lib/components/booking/forms/footer.d.ts +0 -1
  182. package/lib/components/booking/forms/model.d.ts +1 -10
  183. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  184. package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
  185. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  186. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  187. package/lib/components/booking/info/header/index.d.ts +1 -0
  188. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  189. package/lib/components/booking/info/index.d.ts +1 -0
  190. package/lib/components/booking/info/model.d.ts +1 -10
  191. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  192. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  193. package/lib/components/booking/info2/cartClientCard/index.js +16 -5
  194. package/lib/components/booking/info2/cartClientCard/utils.d.ts +2 -2
  195. package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
  196. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  197. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  198. package/lib/components/booking/model.d.ts +1 -9
  199. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  200. package/lib/components/booking/notes/addNote/index.d.ts +1 -0
  201. package/lib/components/booking/notes/model.d.ts +1 -10
  202. package/lib/components/booking/payments/model.d.ts +1 -10
  203. package/lib/components/booking/utils.d.ts +2 -2
  204. package/lib/components/checkout/PaymentModal.js +241 -109
  205. package/lib/components/checkout/PaymentPlugin.d.ts +1 -0
  206. package/lib/components/checkout/components/AdditionalModule/index.d.ts +1 -1
  207. package/lib/components/checkout/components/AdditionalModule/index.js +98 -34
  208. package/lib/components/checkout/components/AdditionalModule/index.less +33 -34
  209. package/lib/components/checkout/components/AdditionalModule/locales.d.ts +3 -0
  210. package/lib/components/checkout/components/AdditionalModule/locales.js +7 -4
  211. package/lib/components/checkout/components/AmountSummary/index.d.ts +2 -1
  212. package/lib/components/checkout/components/AmountSummary/index.js +103 -47
  213. package/lib/components/checkout/components/AmountSummary/index.less +27 -9
  214. package/lib/components/checkout/components/CashPaymentModule/index.less +0 -2
  215. package/lib/components/checkout/components/PaymentDetailModal/index.js +56 -11
  216. package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +2 -1
  217. package/lib/components/checkout/components/PaymentOptionsModule/index.js +11 -8
  218. package/lib/components/checkout/components/PaymentOptionsModule/index.less +11 -6
  219. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +42 -9
  220. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +279 -73
  221. package/lib/components/checkout/components/PaymentResultToast/index.d.ts +2 -1
  222. package/lib/components/checkout/components/PaymentResultToast/index.js +69 -22
  223. package/lib/components/checkout/components/PaymentResultToast/index.less +445 -77
  224. package/lib/components/checkout/components/PaymentResultToast/types.d.ts +3 -3
  225. package/lib/components/checkout/components/PaymentResultToast/utils.d.ts +26 -0
  226. package/lib/components/checkout/components/PaymentResultToast/utils.js +58 -4
  227. package/lib/components/checkout/components/SearchAndClientModule/index.js +17 -15
  228. package/lib/components/checkout/components/SearchAndClientModule/index.less +29 -8
  229. package/lib/components/checkout/components/WalletPassModule/components/WalletPassHeader/index.js +12 -2
  230. package/lib/components/checkout/components/WalletPassModule/index.less +3 -3
  231. package/lib/components/checkout/hooks/useWalletPass.js +2 -2
  232. package/lib/components/checkout/index.d.ts +1 -1
  233. package/lib/components/checkout/index.js +2 -0
  234. package/lib/components/checkout/index.less +56 -38
  235. package/lib/components/checkout/locales.d.ts +6 -0
  236. package/lib/components/checkout/locales.js +9 -3
  237. package/lib/components/checkout/payment-modal-utils.js +5 -5
  238. package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +3 -3
  239. package/lib/components/checkout/utils/PaymentResultToastUtils.js +26 -18
  240. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  241. package/lib/components/eftposPay/app.d.ts +1 -0
  242. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  243. package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
  244. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  245. package/lib/components/eftposPay/hooks.d.ts +1 -1
  246. package/lib/components/eftposPay/pay.d.ts +0 -1
  247. package/lib/components/eftposPay/store/index.d.ts +4 -4
  248. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  249. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  250. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  251. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  252. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  253. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  254. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  255. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  256. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  257. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  258. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  259. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  260. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  261. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  262. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  263. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  264. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  265. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  266. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  267. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  268. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  269. package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  270. package/lib/components/pay/toB/components/Content/Header.d.ts +1 -0
  271. package/lib/components/pay/toB/components/EFTPOS/index.js +25 -10
  272. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  273. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  274. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  275. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  276. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  277. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  278. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  279. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  280. package/lib/components/pay/toC/model.d.ts +1 -9
  281. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  282. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  283. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  284. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  285. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  286. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  287. package/lib/components/schedules/model.d.ts +1 -9
  288. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  289. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  290. package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -1
  291. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  292. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  293. package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  294. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  295. package/lib/components/shoppingCart/index.d.ts +0 -1
  296. package/lib/components/taxSelect/index.d.ts +1 -0
  297. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +7 -6
  298. package/lib/components/ticketBooking/components/bookingDataPanel/index.js +2 -2
  299. package/lib/components/ticketBooking/components/menuBar/index.js +1 -1
  300. package/lib/components/ticketBooking/components/ticketBooking/index.js +1 -1
  301. package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +2 -12
  302. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +2 -12
  303. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +5 -13
  304. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  305. package/lib/components/wallet/Detail/model.d.ts +1 -13
  306. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  307. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  308. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  309. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  310. package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
  311. package/lib/components/wallet/model.d.ts +1 -9
  312. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  313. package/lib/plus/clientCard/index.js +5 -4
  314. package/lib/plus/clientCard/index.less +3 -32
  315. package/lib/plus/clientName/index.d.ts +1 -0
  316. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  317. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  318. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  319. package/lib/plus/saasCreateOrganization/index.d.ts +1 -0
  320. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  321. package/lib/pro/comprehensiveSearch/components/searchSection/index.js +6 -18
  322. package/lib/pro/comprehensiveSearch/components/searchSection/index.less +22 -19
  323. package/package.json +1 -1
@@ -14,6 +14,7 @@ import { useNetwork } from 'ahooks';
14
14
  import EFTPos from "../../../../eftposPay/EFTPos";
15
15
  import { request } from "../../../../../utils";
16
16
  import useLogger from "../../../../../hooks/useLogger";
17
+ import { useEngineContext } from "../../../../../hooks";
17
18
  import "./index.less";
18
19
  var updateTransactionReceiveStatus = /*#__PURE__*/function () {
19
20
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
@@ -32,6 +33,10 @@ var updateTransactionReceiveStatus = /*#__PURE__*/function () {
32
33
  };
33
34
  }();
34
35
  var EFTPOS = function EFTPOS(props, ref) {
36
+ var _context$appHelper;
37
+ var context = useEngineContext();
38
+ var _ref2 = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {},
39
+ interaction = _ref2.interaction;
35
40
  var logger = useLogger();
36
41
  var network = useNetwork();
37
42
  var _useState = useState(false),
@@ -71,63 +76,91 @@ var EFTPOS = function EFTPOS(props, ref) {
71
76
  * @param {function} callback 支付结果回调
72
77
  * @param {string} source 支付来源(正常支付、恢复支付)
73
78
  */
74
- var onOpen = function onOpen(_ref2) {
75
- var source = _ref2.source,
76
- data = _ref2.data,
77
- payCallback = _ref2.payCallback;
78
- // 防止重复打开支付弹窗
79
- if (eftposHandlingRef.current || visible) {
80
- logger === null || logger === void 0 || logger.addLog({
81
- type: 'info',
82
- title: 'ToB_EFTPOS_onOpen 重复触发被拦截',
83
- metadata: {
84
- data: data
79
+ var onOpen = /*#__PURE__*/function () {
80
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
81
+ var source, data, payCallback, device_number, _interaction$utils, _interaction$utils$as, type, payMethod, params, mode, newData, _newData$code;
82
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
83
+ while (1) switch (_context2.prev = _context2.next) {
84
+ case 0:
85
+ source = _ref3.source, data = _ref3.data, payCallback = _ref3.payCallback;
86
+ if (!(eftposHandlingRef.current || visible)) {
87
+ _context2.next = 4;
88
+ break;
89
+ }
90
+ logger === null || logger === void 0 || logger.addLog({
91
+ type: 'info',
92
+ title: 'ToB_EFTPOS_onOpen 重复触发被拦截',
93
+ metadata: {
94
+ data: data
95
+ }
96
+ });
97
+ return _context2.abrupt("return");
98
+ case 4:
99
+ // 设置支付状态为处理中
100
+ eftposHandlingRef.current = true;
101
+ // 获取设备编号
102
+ device_number = '';
103
+ _context2.prev = 6;
104
+ _context2.next = 9;
105
+ return interaction === null || interaction === void 0 || (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 || (_interaction$utils$as = _interaction$utils.asyncDataManager) === null || _interaction$utils$as === void 0 ? void 0 : _interaction$utils$as.call(_interaction$utils, {
106
+ module: 'get',
107
+ key: 'device_number'
108
+ });
109
+ case 9:
110
+ device_number = _context2.sent;
111
+ _context2.next = 15;
112
+ break;
113
+ case 12:
114
+ _context2.prev = 12;
115
+ _context2.t0 = _context2["catch"](6);
116
+ console.error('获取设备编号失败', _context2.t0);
117
+ case 15:
118
+ type = data.type, payMethod = data.payMethod, params = data.params, mode = data.mode;
119
+ newData = {
120
+ type: type,
121
+ code: payMethod.code,
122
+ terminal: {
123
+ network: network.online
124
+ },
125
+ apiParams: {
126
+ order_id: params.orderId,
127
+ name: payMethod.name,
128
+ symbol: params.symbol,
129
+ amount: params.amount,
130
+ device_number: device_number
131
+ },
132
+ mode: mode
133
+ };
134
+ console.log('newData>>>>>>>>>>>>>>', newData);
135
+ if (!(newData !== null && newData !== void 0 && newData.type) && newData !== null && newData !== void 0 && newData.code) {
136
+ newData.type = (_newData$code = newData.code) === null || _newData$code === void 0 || (_newData$code = _newData$code.split('_')) === null || _newData$code === void 0 || (_newData$code = _newData$code[1]) === null || _newData$code === void 0 ? void 0 : _newData$code.toLocaleLowerCase();
137
+ }
138
+ logger === null || logger === void 0 || logger.addLog({
139
+ type: 'info',
140
+ title: 'ToB_EFTPOS_onOpen 开始调用',
141
+ metadata: {
142
+ params: data,
143
+ initData: newData
144
+ }
145
+ });
146
+ eftposOpenParamsRef.current = data;
147
+ payCallbackRef.current = payCallback;
148
+ eftposInitDataRef.current = {
149
+ data: newData,
150
+ source: source
151
+ };
152
+ setVisible(true);
153
+ setIsEftposLoading(true);
154
+ case 25:
155
+ case "end":
156
+ return _context2.stop();
85
157
  }
86
- });
87
- return;
88
- }
89
-
90
- // 设置支付状态为处理中
91
- eftposHandlingRef.current = true;
92
- var type = data.type,
93
- payMethod = data.payMethod,
94
- params = data.params,
95
- mode = data.mode;
96
- var newData = {
97
- type: type,
98
- code: payMethod.code,
99
- terminal: {
100
- network: network.online
101
- },
102
- apiParams: {
103
- order_id: params.orderId,
104
- name: payMethod.name,
105
- symbol: params.symbol,
106
- amount: params.amount
107
- },
108
- mode: mode
158
+ }, _callee2, null, [[6, 12]]);
159
+ }));
160
+ return function onOpen(_x2) {
161
+ return _ref4.apply(this, arguments);
109
162
  };
110
- if (!(newData !== null && newData !== void 0 && newData.type) && newData !== null && newData !== void 0 && newData.code) {
111
- var _newData$code;
112
- newData.type = (_newData$code = newData.code) === null || _newData$code === void 0 || (_newData$code = _newData$code.split('_')) === null || _newData$code === void 0 || (_newData$code = _newData$code[1]) === null || _newData$code === void 0 ? void 0 : _newData$code.toLocaleLowerCase();
113
- }
114
- logger === null || logger === void 0 || logger.addLog({
115
- type: 'info',
116
- title: 'ToB_EFTPOS_onOpen 开始调用',
117
- metadata: {
118
- params: data,
119
- initData: newData
120
- }
121
- });
122
- eftposOpenParamsRef.current = data;
123
- payCallbackRef.current = payCallback;
124
- eftposInitDataRef.current = {
125
- data: newData,
126
- source: source
127
- };
128
- setVisible(true);
129
- setIsEftposLoading(true);
130
- };
163
+ }();
131
164
  var onEftposLoad = function onEftposLoad(status) {
132
165
  logger === null || logger === void 0 || logger.addLog({
133
166
  type: 'info',
@@ -190,9 +223,9 @@ var EFTPOS = function EFTPOS(props, ref) {
190
223
  * @param {string} status 支付状态
191
224
  * @param {any} params 支付参数
192
225
  */
193
- var onPayResult = function onPayResult(_ref3) {
194
- var status = _ref3.status,
195
- params = _ref3.params;
226
+ var onPayResult = function onPayResult(_ref5) {
227
+ var status = _ref5.status,
228
+ params = _ref5.params;
196
229
  logger === null || logger === void 0 || logger.addLog({
197
230
  type: 'info',
198
231
  title: 'ToB_EFTPOS_onPayResult',
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ThreedsLoading: ({ title, showSuccessBackButton, onSuccessBack }: any) => JSX.Element;
3
4
  export default ThreedsLoading;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const StripePayment: () => JSX.Element;
3
4
  export default StripePayment;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
2
3
  public_key: string;
3
4
  client_secret?: string | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const PageLoading: () => JSX.Element;
3
4
  export default PageLoading;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const PaymentRequestForm: () => JSX.Element | null;
3
4
  export default PaymentRequestForm;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SetupForm: ({ onReady, amount, order_id, payment_method, scene, }: any) => JSX.Element;
4
3
  export default SetupForm;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.module.less';
3
2
  declare const StripePayment: () => JSX.Element;
4
3
  export default StripePayment;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
3
2
  import './index.less';
4
3
  interface WalletUseListProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  platform: 'pc' | 'h5' | '' | undefined;
4
3
  order: any;
@@ -29,11 +28,4 @@ export interface PayGroup {
29
28
  pay_number?: string;
30
29
  _order: any;
31
30
  }
32
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
33
- state: FormState;
34
- } & {
35
- dispatch: (params: {
36
- type: string;
37
- payload: any;
38
- }) => void;
39
- }>;
31
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface AddClientProps {
4
3
  onChange: (value: any) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface CustomerListProps {
4
3
  value: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const Actor: ({ name }: {
3
2
  name: string;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface valueType {
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SelectResourcesTable: ({ value, onChange }: any) => JSX.Element;
4
3
  export default SelectResourcesTable;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { ScheduleItem } from '../../../type';
3
4
  declare type Item = any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem, ScheduleItem } from "./type";
3
2
  import dayjs from "dayjs";
4
3
  export interface FormState {
@@ -69,11 +68,4 @@ export interface FormState {
69
68
  };
70
69
  setGlobalState: Function | null;
71
70
  }
72
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
73
- state: FormState;
74
- } & {
75
- dispatch: (params: {
76
- type: string;
77
- payload: any;
78
- }) => void;
79
- }>;
71
+ export declare const Provider: any, Context: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const AddSchedules: ({ value, onChange, drawerContainer, isSelf }: any) => JSX.Element;
3
4
  export default AddSchedules;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type Value = number[];
3
4
  declare const SchedulesModule: ({ value, onChange, drawerContainer, ruleFn, tabKey, previewItemChange, isSelf, isTitle, }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Cart: () => JSX.Element;
4
3
  export default Cart;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Empty: (props: any) => JSX.Element;
4
3
  export default Empty;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Content: () => JSX.Element;
4
3
  export default Content;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useAddService: (id?: number, type?: string) => JSX.Element | null;
3
2
  export default useAddService;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useClearCart: (key?: number | undefined) => JSX.Element | null;
3
2
  export default useClearCart;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { shoppingCartProps } from './type';
3
2
  declare const shoppingCart: ({ onCard, onAction, onChange, onAddProduct, onActiveKey, ...props }: shoppingCartProps) => JSX.Element;
4
3
  export default shoppingCart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from "antd";
2
3
  import "./index.less";
3
4
  interface TaxSelectProps {
@@ -33,6 +33,7 @@ import NotAvailable from "../notAvailable";
33
33
  import dayjs from 'dayjs';
34
34
  import { useProducts } from "../../hooks/pisellos";
35
35
  import { createCacheItem, genValues, isBundle, isOption, setHandleSetService } from "./utils";
36
+ import { useToast } from '@pisell/materials';
36
37
  var productListLayout = {
37
38
  grid: true,
38
39
  config: '12:12'
@@ -46,7 +47,7 @@ var productListSetting = {
46
47
  isStock: 0
47
48
  };
48
49
  var AddSerivce = function AddSerivce(props) {
49
- var _context$appHelper, _context$appHelper2, _context$appHelper2$g, _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3, _state$bookingConfig2, _state$client2;
50
+ var _context$appHelper, _context$appHelper$ge, _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3, _state$bookingConfig2, _state$client2;
50
51
  var onEdit = props.onEdit,
51
52
  state = props.state,
52
53
  dispatch = props.dispatch,
@@ -57,7 +58,7 @@ var AddSerivce = function AddSerivce(props) {
57
58
  var notAvailableRef = useRef(null);
58
59
  var isLoadedServiceRef = useRef(false);
59
60
  request.setRequest(context.appHelper.utils.request);
60
- var Toast = (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.Toast;
61
+ var Toast = useToast();
61
62
  var _useService = useService({
62
63
  renderMode: renderMode,
63
64
  onEdit: onEdit,
@@ -66,7 +67,7 @@ var AddSerivce = function AddSerivce(props) {
66
67
  }),
67
68
  createBookingData = _useService.createBookingData,
68
69
  createBooking = _useService.createBooking;
69
- var isBooking4 = isBooking4Shop(((_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 || (_context$appHelper2 = _context$appHelper2.utils) === null || _context$appHelper2 === void 0 || (_context$appHelper2$g = _context$appHelper2.getData) === null || _context$appHelper2$g === void 0 ? void 0 : _context$appHelper2$g.call(_context$appHelper2, 'shop_id')) || ((_context$appHelper$ut = context.appHelper.utils.store) === null || _context$appHelper$ut === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut.getState) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.call(_context$appHelper$ut)) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.global) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.globalConfig) === null || _context$appHelper$ut2 === void 0 ? void 0 : _context$appHelper$ut2.id), state === null || state === void 0 ? void 0 : state.renderType, (_context$appHelper$ut3 = context.appHelper.utils) === null || _context$appHelper$ut3 === void 0 ? void 0 : _context$appHelper$ut3.businessUtils);
70
+ var isBooking4 = isBooking4Shop(((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 || (_context$appHelper$ge = _context$appHelper.getData) === null || _context$appHelper$ge === void 0 ? void 0 : _context$appHelper$ge.call(_context$appHelper, 'shop_id')) || ((_context$appHelper$ut = context.appHelper.utils.store) === null || _context$appHelper$ut === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut.getState) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.call(_context$appHelper$ut)) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.global) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.globalConfig) === null || _context$appHelper$ut2 === void 0 ? void 0 : _context$appHelper$ut2.id), state === null || state === void 0 ? void 0 : state.renderType, (_context$appHelper$ut3 = context.appHelper.utils) === null || _context$appHelper$ut3 === void 0 ? void 0 : _context$appHelper$ut3.businessUtils);
70
71
  var _useState = useState(null),
71
72
  _useState2 = _slicedToArray(_useState, 2),
72
73
  currentProduct = _useState2[0],
@@ -4,7 +4,7 @@ import { locales } from '@pisell/utils';
4
4
  import { SyncOutlined } from '@ant-design/icons';
5
5
  import BookingDashboard from "./bookingDashboard";
6
6
  import BookingList from "./bookingList";
7
- import useToast from "../../../../hooks/useToast";
7
+ import { useToast } from '@pisell/materials';
8
8
  import "./index.less";
9
9
  var BookingDataPanel = /*#__PURE__*/forwardRef(function (props, ref) {
10
10
  var currentDate = props.currentDate,
@@ -15,7 +15,7 @@ var index = function index() {
15
15
  label: locales.getText('pisell2.ticket-booking.reload')
16
16
  }, {
17
17
  key: 'version',
18
- label: '6.4.13'
18
+ label: '6.4.38'
19
19
  }
20
20
  /*
21
21
  {
@@ -25,7 +25,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
25
25
  import React, { useEffect, useMemo, useRef, useState } from 'react';
26
26
  import { locales } from '@pisell/utils';
27
27
  import { message } from 'antd';
28
- import { Iconfont, PisellModal } from '@pisell/materials';
28
+ import { Iconfont, PisellModal, useToast } from '@pisell/materials';
29
29
  import { getOrderInfoByCode, getBookingDetail, getEventBookingDetail, getBookingConfig, getServices } from "../../serve";
30
30
  import * as apis from "../../serve";
31
31
  import dayjs from 'dayjs';
@@ -233,12 +233,12 @@ var TicketBooking = function TicketBooking(props) {
233
233
  interaction = _engineContext$appHel.interaction,
234
234
  store = _engineContext$appHel.store,
235
235
  storage = _engineContext$appHel.storage,
236
- Toast = _engineContext$appHel.Toast,
237
236
  getSymbolic = _engineContext$appHel.getSymbolic,
238
237
  translation = _engineContext$appHel.translation,
239
238
  pisellosAllModule = _engineContext$appHel.pisellosAllModule,
240
239
  getData = _engineContext$appHel.getData;
241
240
  var ScheduleModule = pisellosAllModule.ScheduleModule;
241
+ var Toast = useToast();
242
242
  var _persistentRef = useRef(false);
243
243
  var _initStateRef = useRef({});
244
244
  var _listTimerRef = useRef();
@@ -2,7 +2,7 @@ import { useRef } from 'react';
2
2
  import { locales } from "@pisell/utils";
3
3
  import { useBookingTicket } from "./bookingTicket";
4
4
  import { formatScanCustomer } from "../../utils";
5
- import useToast from "../../../../hooks/useToast";
5
+ import { useToast } from '@pisell/materials';
6
6
  var useScanCustomer = function useScanCustomer() {
7
7
  var bookingTicket = useBookingTicket();
8
8
  var scanRef = useRef(null);
@@ -1,7 +1,7 @@
1
1
  import { useRef } from 'react';
2
2
  import { useBookingTicket } from "./bookingTicket";
3
3
  import { formatScanGlobal } from "../../utils";
4
- import useToast from "../../../../hooks/useToast";
4
+ import { useToast } from '@pisell/materials';
5
5
  import { locales } from '@pisell/utils';
6
6
  var useScanGlobal = function useScanGlobal() {
7
7
  var bookingTicket = useBookingTicket();
@@ -1,7 +1,7 @@
1
1
  import { locales } from "@pisell/utils";
2
2
  import { getHandleSetClient } from "../../../booking/info2/cartClientCard/utils";
3
3
  import { getHandleSetService } from "../../components/addServiceVariant/utils";
4
- import useToast from "../../../../hooks/useToast";
4
+ import { useToast } from '@pisell/materials';
5
5
  var useScanGlobalHandle = function useScanGlobalHandle() {
6
6
  var Toast = useToast();
7
7
  var walletHandle = function walletHandle(data) {
@@ -21,7 +21,9 @@ var useScanGlobalHandle = function useScanGlobalHandle() {
21
21
  return;
22
22
  }
23
23
  if (handleSetClient && data.data) {
24
- handleSetClient(data.data);
24
+ handleSetClient(data.data, {
25
+ fullData: data
26
+ });
25
27
  }
26
28
  };
27
29
  var productHandle = function productHandle(data) {
@@ -41,7 +41,7 @@ declare type ScanData = {
41
41
  };
42
42
  };
43
43
  export declare const formatScanCustomer: (data: ScanData) => {
44
- searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
44
+ searchType: "product" | "customer" | "wallet" | "walletPass" | "local_product";
45
45
  data: any;
46
46
  scanCode: string;
47
47
  } | null;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- addWalletCard: any;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- walletDetailState: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,14 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: number;
4
- setup?: 'menu' | 'list' | 'detail' | string;
5
- }
6
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
7
- state: RechargeState;
8
- } & {
9
- dispatch: (params: {
10
- type: string;
11
- payload: any;
12
- }) => void;
13
- }>;
14
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: number;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- state: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,29 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- selectedGiftOptionId: string | null;
4
- cardList: Array<{
5
- id: string;
6
- name: string;
7
- price: number;
8
- }>;
9
- selectedItem: {
10
- id?: string;
11
- gift_price?: number;
12
- price?: number;
13
- name?: string;
14
- variant_id?: string;
15
- };
16
- productId?: string;
17
- detailId?: string;
18
- total: string | number;
19
- rechargeModalOpen: boolean;
20
- }
21
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
22
- state: RechargeState;
23
- } & {
24
- dispatch: (params: {
25
- type: string;
26
- payload: any;
27
- }) => void;
28
- }>;
29
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: 0;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- state: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IWalletListItemProps } from '../serve';
3
2
  /**
4
3
  * 钱包卡片Hook的参数
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IWalletListItemProps } from './serve';
3
2
  export interface WalletCardItemProps {
4
3
  id: string;
@@ -27,11 +26,4 @@ export interface WalletListProps {
27
26
  currentSearchListItemCode?: string;
28
27
  [key: string]: any;
29
28
  }
30
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
31
- global_wallet: WalletListProps;
32
- } & {
33
- dispatch: (params: {
34
- type: string;
35
- payload: any;
36
- }) => void;
37
- }>;
29
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Modal as AntModal, ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from 'antd';
3
2
  import './index.less';
4
3
  interface ModalProps extends AntModalProps {
@@ -7,7 +7,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
7
7
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
8
  import React, { useMemo } from 'react';
9
9
  import { Tag, Dropdown, Button } from 'antd';
10
- import { PisellAvatar, Iconfont } from '@pisell/materials';
10
+ import { PisellAvatar, Icon } from '@pisell/materials';
11
11
  import { PlusCircle, User01 } from '@pisell/icon';
12
12
  import classNames from 'classnames';
13
13
  import LineCard from "./line";
@@ -442,7 +442,8 @@ var ClientCard = function ClientCard(_ref) {
442
442
  }, _dropdownProps), /*#__PURE__*/React.createElement(Button, _extends({
443
443
  type: "text",
444
444
  className: "".concat(PREFIX, "__menu-button"),
445
- icon: /*#__PURE__*/React.createElement(Iconfont, {
445
+ size: "large",
446
+ icon: /*#__PURE__*/React.createElement(Icon, {
446
447
  type: 'pisell2-dots-vertical',
447
448
  className: "".concat(PREFIX, "__menu-button-icon")
448
449
  })