@pisell/private-materials 6.5.4 → 6.5.5

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 (611) 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 +24 -10
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +9 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/businessModel/SalesModel/index.d.ts +0 -1
  12. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  13. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  14. package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  15. package/es/components/appointmentBooking/components/Content/index.d.ts +0 -1
  16. package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  17. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  18. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  19. package/es/components/appointmentBooking/components/Header/index.d.ts +0 -1
  20. package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
  21. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  22. package/es/components/appointmentBooking/deposit/index.d.ts +0 -1
  23. package/es/components/appointmentBooking/index.d.ts +0 -1
  24. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  25. package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  26. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  27. package/es/components/booking/components/actionButtons/index.js +37 -42
  28. package/es/components/booking/components/actionButtons/index.less +0 -28
  29. package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
  30. package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
  31. package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  32. package/es/components/booking/components/footer/amount.d.ts +3 -3
  33. package/es/components/booking/components/footer/amount.js +52 -31
  34. package/es/components/booking/components/footer/index.d.ts +0 -1
  35. package/es/components/booking/components/footer/index.js +168 -68
  36. package/es/components/booking/components/footer/utils.js +62 -33
  37. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  38. package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  39. package/es/components/booking/components/voucher/index.d.ts +0 -1
  40. package/es/components/booking/deposit/index.d.ts +0 -1
  41. package/es/components/booking/forms/footer.d.ts +0 -1
  42. package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  43. package/es/components/booking/forms/single/index.d.ts +0 -1
  44. package/es/components/booking/forms/table/index.d.ts +0 -1
  45. package/es/components/booking/hooks/useClearCart.d.ts +0 -1
  46. package/es/components/booking/hooks/useQuotation.d.ts +0 -1
  47. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  48. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  49. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  50. package/es/components/booking/info/date/index.d.ts +0 -1
  51. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  52. package/es/components/booking/info/header/index.d.ts +0 -1
  53. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  54. package/es/components/booking/info/index.d.ts +0 -1
  55. package/es/components/booking/info/model.js +5 -0
  56. package/es/components/booking/info/notes/index.d.ts +0 -1
  57. package/es/components/booking/info/service/Lists.d.ts +0 -1
  58. package/es/components/booking/info/service/actions/index.d.ts +0 -1
  59. package/es/components/booking/info/service/addService/index.d.ts +0 -1
  60. package/es/components/booking/info/service/addService/index.js +2 -1
  61. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  62. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  63. package/es/components/booking/info/service/like/index.d.ts +0 -1
  64. package/es/components/booking/info/service/serviceItem/index.d.ts +0 -1
  65. package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
  66. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  67. package/es/components/booking/info2/index.js +42 -2
  68. package/es/components/booking/info2/service/actions/index.d.ts +0 -1
  69. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  70. package/es/components/booking/info2/service/addService/index.js +2 -1
  71. package/es/components/booking/info2/service/editService/index.js +12 -4
  72. package/es/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  73. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
  74. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  75. package/es/components/booking/materiels/duration/index.d.ts +0 -1
  76. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  77. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  78. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  79. package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
  80. package/es/components/booking/notes/addNote/index.d.ts +0 -1
  81. package/es/components/booking/utils.js +10 -5
  82. package/es/components/checkout/PaymentModal.d.ts +2 -0
  83. package/es/components/checkout/PaymentModal.js +402 -241
  84. package/es/components/checkout/PaymentPlugin.d.ts +0 -1
  85. package/es/components/checkout/components/AdditionalModule/index.less +1 -1
  86. package/es/components/checkout/components/AmountSummary/index.js +161 -54
  87. package/es/components/checkout/components/CashPaymentModule/index.d.ts +5 -3
  88. package/es/components/checkout/components/CashPaymentModule/index.js +106 -130
  89. package/es/components/checkout/components/CashPaymentModule/index.less +200 -176
  90. package/es/components/checkout/components/PaymentDetailModal/index.js +2 -2
  91. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +29 -0
  92. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +210 -0
  93. package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +2 -4
  94. package/es/components/checkout/components/PaymentOptionsModule/index.js +12 -114
  95. package/es/components/checkout/components/PaymentOptionsModule/index.less +29 -0
  96. package/es/components/checkout/components/SavePayLaterHandler/index.js +1 -1
  97. package/es/components/checkout/components/SearchAndClientModule/index.d.ts +0 -1
  98. package/es/components/checkout/components/SearchAndClientModule/index.js +40 -39
  99. package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
  100. package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +0 -1
  101. package/es/components/checkout/components/WalletPassModule/index.js +4 -3
  102. package/es/components/checkout/components/WalletPassModule/utils.js +6 -1
  103. package/es/components/checkout/hooks/useWalletPass.js +2 -0
  104. package/es/components/checkout/index.less +1 -1
  105. package/es/components/checkout/locales.d.ts +33 -0
  106. package/es/components/checkout/locales.js +39 -3
  107. package/es/components/checkout/types.d.ts +1 -0
  108. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  109. package/es/components/eftpos/form/index.d.ts +0 -1
  110. package/es/components/eftpos/group/index.d.ts +0 -1
  111. package/es/components/eftpos/hooks.d.ts +0 -1
  112. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  113. package/es/components/eftpos/icon/device.d.ts +0 -1
  114. package/es/components/eftpos/index.d.ts +0 -1
  115. package/es/components/eftpos/pos.d.ts +0 -1
  116. package/es/components/eftpos/receipt/index.d.ts +0 -1
  117. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  118. package/es/components/eftposPay/amount.d.ts +0 -1
  119. package/es/components/eftposPay/app.d.ts +0 -1
  120. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  121. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  122. package/es/components/eftposPay/component/fail/index.d.ts +0 -1
  123. package/es/components/eftposPay/component/fail/network.d.ts +0 -1
  124. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
  125. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  126. package/es/components/eftposPay/component/manual/index.d.ts +0 -1
  127. package/es/components/eftposPay/component/signature/index.d.ts +0 -1
  128. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  129. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  130. package/es/components/eftposPay/index.d.ts +0 -1
  131. package/es/components/eftposPay/linkly/index.d.ts +0 -1
  132. package/es/components/eftposPay/pay.d.ts +0 -1
  133. package/es/components/eftposPay/payo/config.d.ts +0 -1
  134. package/es/components/eftposPay/tip.d.ts +0 -1
  135. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  136. package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  137. package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
  138. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  139. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
  140. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  141. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
  142. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  143. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  144. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  145. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  146. package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  147. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  148. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  149. package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  150. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  151. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  152. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  153. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  154. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  155. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  156. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  157. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  158. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  159. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  160. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  161. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  162. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  163. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  164. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  165. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  166. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  167. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  168. package/es/components/eventBooking/index.d.ts +0 -1
  169. package/es/components/login/index.d.ts +0 -1
  170. package/es/components/pay/toB/components/Cache/index.d.ts +0 -1
  171. package/es/components/pay/toB/components/Card/index.d.ts +0 -1
  172. package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -1
  173. package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -1
  174. package/es/components/pay/toB/components/Content/Footer.d.ts +0 -1
  175. package/es/components/pay/toB/components/Content/Header.d.ts +0 -1
  176. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  177. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  178. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  179. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  180. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  181. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  182. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  183. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  184. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  185. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  186. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  187. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  188. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  189. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  190. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  191. package/es/components/pisellSelectCustomerModal/index.d.ts +0 -1
  192. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  193. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  194. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  195. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  196. package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  197. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  198. package/es/components/productExtension/index.d.ts +0 -1
  199. package/es/components/productSelect/components/TabProduct/index.d.ts +0 -1
  200. package/es/components/productSelect/components/productGroup/index.d.ts +0 -1
  201. package/es/components/ruleSetting/index.d.ts +0 -1
  202. package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  203. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  204. package/es/components/schedules/calendar/index.d.ts +0 -1
  205. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  206. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  207. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  208. package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
  209. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  210. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  211. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  212. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  213. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  214. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  215. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  216. package/es/components/schedules/products/index.d.ts +0 -1
  217. package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  218. package/es/components/schedules/products/list/index.d.ts +0 -1
  219. package/es/components/schedules/resources/index.d.ts +0 -1
  220. package/es/components/schedules/resources/list/index.d.ts +0 -1
  221. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  222. package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  223. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  224. package/es/components/schedules/schedules/index.d.ts +0 -1
  225. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  226. package/es/components/shoppingCart/components/Cart/Product.js +143 -71
  227. package/es/components/shoppingCart/components/Cart/index.d.ts +0 -1
  228. package/es/components/shoppingCart/components/Cart/index.js +1 -1
  229. package/es/components/shoppingCart/components/Cart/index.less +31 -0
  230. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  231. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  232. package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  233. package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  234. package/es/components/shoppingCart/index.d.ts +0 -1
  235. package/es/components/shoppingCart/locales.d.ts +3 -0
  236. package/es/components/shoppingCart/locales.js +12 -3
  237. package/es/components/taxSelect/index.d.ts +0 -1
  238. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
  239. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  240. package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -1
  241. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  242. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  243. package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +7 -7
  244. package/es/components/ticketBooking/index.d.ts +0 -1
  245. package/es/components/ticketBooking/utils/index.js +2 -1
  246. package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
  247. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  248. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  249. package/es/hooks/usePaymentLogger.d.ts +0 -1
  250. package/es/plus/clientName/index.d.ts +0 -1
  251. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
  252. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
  253. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
  254. package/es/plus/noteModal/AddTempModal.d.ts +0 -1
  255. package/es/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  256. package/es/plus/saasCreateOrganization/index.d.ts +0 -1
  257. package/es/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  258. package/es/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  259. package/es/plus/saasRegister/components/GoLogin.d.ts +0 -1
  260. package/es/plus/saasRegister/components/Header.d.ts +0 -1
  261. package/es/plus/saasRegister/components/VerifyError.d.ts +0 -1
  262. package/es/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  263. package/es/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  264. package/es/pro/pisellPhoneKeyboard/index.d.ts +0 -1
  265. package/es/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.js +1 -1
  266. package/es/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
  267. package/es/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.js +148 -0
  268. package/es/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.less +23 -0
  269. package/es/pro/pisellSimplePriceKeyboardPopover/index.d.ts +2 -0
  270. package/es/pro/pisellSimplePriceKeyboardPopover/index.js +1 -0
  271. package/es/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
  272. package/es/pro/pisellSimplePriceKeyboardPopover/types.js +1 -0
  273. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +4 -0
  274. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +310 -0
  275. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.d.ts +13 -0
  276. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +349 -0
  277. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +11 -0
  278. package/es/pro/priceKeyboard/components/cashKeyboard/index.js +49 -0
  279. package/es/pro/priceKeyboard/components/cashKeyboard/index.less +103 -0
  280. package/es/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +39 -0
  281. package/es/pro/priceKeyboard/components/cashKeyboard/locales.js +41 -0
  282. package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +97 -0
  283. package/es/pro/priceKeyboard/components/cashKeyboard/types.js +1 -0
  284. package/es/pro/priceKeyboard/components/discountKeyboard/index.d.ts +22 -0
  285. package/es/pro/priceKeyboard/components/discountKeyboard/index.js +442 -0
  286. package/es/pro/priceKeyboard/components/discountKeyboard/index.less +47 -0
  287. package/es/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +42 -0
  288. package/es/pro/priceKeyboard/components/discountKeyboard/locales.js +44 -0
  289. package/es/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
  290. package/es/pro/priceKeyboard/components/discountKeyboard/types.js +1 -0
  291. package/es/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +11 -0
  292. package/es/pro/priceKeyboard/components/paymentKeyboard/index.js +444 -0
  293. package/es/pro/priceKeyboard/components/paymentKeyboard/index.less +64 -0
  294. package/es/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +45 -0
  295. package/es/pro/priceKeyboard/components/paymentKeyboard/locales.js +47 -0
  296. package/es/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
  297. package/es/pro/priceKeyboard/components/paymentKeyboard/types.js +1 -0
  298. package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +17 -0
  299. package/es/pro/priceKeyboard/components/shortcuts/index.js +47 -0
  300. package/es/pro/priceKeyboard/components/shortcuts/index.less +39 -0
  301. package/es/pro/priceKeyboard/hooks/keyActions.d.ts +28 -0
  302. package/es/pro/priceKeyboard/hooks/keyActions.js +252 -0
  303. package/es/pro/priceKeyboard/hooks/rightItems.d.ts +27 -0
  304. package/es/pro/priceKeyboard/hooks/rightItems.js +50 -0
  305. package/es/pro/priceKeyboard/index.d.ts +3 -0
  306. package/es/pro/priceKeyboard/index.js +3 -0
  307. package/es/pro/priceKeyboard/index.less +215 -0
  308. package/es/pro/priceKeyboard/utils.d.ts +31 -0
  309. package/es/pro/priceKeyboard/utils.js +51 -0
  310. package/es/pro/skuDetailModal/index.js +19 -16
  311. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  312. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  313. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  314. package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  315. package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -1
  316. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  317. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  318. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  319. package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -1
  320. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
  321. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  322. package/lib/components/appointmentBooking/deposit/index.d.ts +0 -1
  323. package/lib/components/appointmentBooking/index.d.ts +0 -1
  324. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  325. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  326. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  327. package/lib/components/booking/components/actionButtons/index.js +31 -28
  328. package/lib/components/booking/components/actionButtons/index.less +0 -28
  329. package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
  330. package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
  331. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  332. package/lib/components/booking/components/footer/amount.d.ts +3 -3
  333. package/lib/components/booking/components/footer/amount.js +50 -34
  334. package/lib/components/booking/components/footer/index.d.ts +0 -1
  335. package/lib/components/booking/components/footer/index.js +107 -40
  336. package/lib/components/booking/components/footer/utils.js +35 -7
  337. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  338. package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  339. package/lib/components/booking/components/voucher/index.d.ts +0 -1
  340. package/lib/components/booking/deposit/index.d.ts +0 -1
  341. package/lib/components/booking/forms/footer.d.ts +0 -1
  342. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  343. package/lib/components/booking/forms/single/index.d.ts +0 -1
  344. package/lib/components/booking/forms/table/index.d.ts +0 -1
  345. package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
  346. package/lib/components/booking/hooks/useQuotation.d.ts +0 -1
  347. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  348. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  349. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  350. package/lib/components/booking/info/date/index.d.ts +0 -1
  351. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  352. package/lib/components/booking/info/header/index.d.ts +0 -1
  353. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  354. package/lib/components/booking/info/index.d.ts +0 -1
  355. package/lib/components/booking/info/model.js +3 -0
  356. package/lib/components/booking/info/notes/index.d.ts +0 -1
  357. package/lib/components/booking/info/service/Lists.d.ts +0 -1
  358. package/lib/components/booking/info/service/actions/index.d.ts +0 -1
  359. package/lib/components/booking/info/service/addService/index.d.ts +0 -1
  360. package/lib/components/booking/info/service/addService/index.js +2 -1
  361. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  362. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  363. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  364. package/lib/components/booking/info/service/serviceItem/index.d.ts +0 -1
  365. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
  366. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  367. package/lib/components/booking/info2/index.js +18 -1
  368. package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
  369. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  370. package/lib/components/booking/info2/service/addService/index.js +2 -1
  371. package/lib/components/booking/info2/service/editService/index.js +12 -4
  372. package/lib/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  373. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
  374. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  375. package/lib/components/booking/materiels/duration/index.d.ts +0 -1
  376. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  377. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  378. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  379. package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
  380. package/lib/components/booking/notes/addNote/index.d.ts +0 -1
  381. package/lib/components/booking/utils.js +10 -5
  382. package/lib/components/checkout/PaymentModal.d.ts +2 -0
  383. package/lib/components/checkout/PaymentModal.js +160 -73
  384. package/lib/components/checkout/PaymentPlugin.d.ts +0 -1
  385. package/lib/components/checkout/components/AdditionalModule/index.less +1 -1
  386. package/lib/components/checkout/components/AmountSummary/index.js +114 -40
  387. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +5 -3
  388. package/lib/components/checkout/components/CashPaymentModule/index.js +98 -133
  389. package/lib/components/checkout/components/CashPaymentModule/index.less +200 -176
  390. package/lib/components/checkout/components/PaymentDetailModal/index.js +2 -2
  391. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +29 -0
  392. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +172 -0
  393. package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +2 -4
  394. package/lib/components/checkout/components/PaymentOptionsModule/index.js +11 -123
  395. package/lib/components/checkout/components/PaymentOptionsModule/index.less +29 -0
  396. package/lib/components/checkout/components/SavePayLaterHandler/index.js +1 -1
  397. package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +0 -1
  398. package/lib/components/checkout/components/SearchAndClientModule/index.js +3 -29
  399. package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
  400. package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +0 -1
  401. package/lib/components/checkout/components/WalletPassModule/index.js +4 -3
  402. package/lib/components/checkout/components/WalletPassModule/utils.js +4 -1
  403. package/lib/components/checkout/hooks/useWalletPass.js +2 -0
  404. package/lib/components/checkout/index.less +1 -1
  405. package/lib/components/checkout/locales.d.ts +33 -0
  406. package/lib/components/checkout/locales.js +39 -3
  407. package/lib/components/checkout/types.d.ts +1 -0
  408. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  409. package/lib/components/eftpos/form/index.d.ts +0 -1
  410. package/lib/components/eftpos/group/index.d.ts +0 -1
  411. package/lib/components/eftpos/hooks.d.ts +0 -1
  412. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  413. package/lib/components/eftpos/icon/device.d.ts +0 -1
  414. package/lib/components/eftpos/index.d.ts +0 -1
  415. package/lib/components/eftpos/pos.d.ts +0 -1
  416. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  417. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  418. package/lib/components/eftposPay/amount.d.ts +0 -1
  419. package/lib/components/eftposPay/app.d.ts +0 -1
  420. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  421. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  422. package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
  423. package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
  424. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  425. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  426. package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
  427. package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
  428. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  429. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  430. package/lib/components/eftposPay/index.d.ts +0 -1
  431. package/lib/components/eftposPay/linkly/index.d.ts +0 -1
  432. package/lib/components/eftposPay/pay.d.ts +0 -1
  433. package/lib/components/eftposPay/payo/config.d.ts +0 -1
  434. package/lib/components/eftposPay/tip.d.ts +0 -1
  435. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  436. package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  437. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
  438. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  439. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
  440. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  441. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
  442. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  443. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  444. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  445. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  446. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  447. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  448. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  449. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  450. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  451. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  452. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  453. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  454. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  455. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  456. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  457. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  458. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  459. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  460. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  461. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  462. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  463. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  464. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  465. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  466. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  467. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  468. package/lib/components/eventBooking/index.d.ts +0 -1
  469. package/lib/components/login/index.d.ts +0 -1
  470. package/lib/components/pay/toB/components/Cache/index.d.ts +0 -1
  471. package/lib/components/pay/toB/components/Card/index.d.ts +0 -1
  472. package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -1
  473. package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -1
  474. package/lib/components/pay/toB/components/Content/Footer.d.ts +0 -1
  475. package/lib/components/pay/toB/components/Content/Header.d.ts +0 -1
  476. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  477. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  478. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  479. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  480. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  481. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  482. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  483. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  484. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  485. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  486. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  487. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  488. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  489. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  490. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  491. package/lib/components/pisellSelectCustomerModal/index.d.ts +0 -1
  492. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  493. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  494. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  495. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  496. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  497. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  498. package/lib/components/productExtension/index.d.ts +0 -1
  499. package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -1
  500. package/lib/components/productSelect/components/productGroup/index.d.ts +0 -1
  501. package/lib/components/ruleSetting/index.d.ts +0 -1
  502. package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  503. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  504. package/lib/components/schedules/calendar/index.d.ts +0 -1
  505. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  506. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  507. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  508. package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
  509. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  510. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  511. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  512. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  513. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  514. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  515. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  516. package/lib/components/schedules/products/index.d.ts +0 -1
  517. package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  518. package/lib/components/schedules/products/list/index.d.ts +0 -1
  519. package/lib/components/schedules/resources/index.d.ts +0 -1
  520. package/lib/components/schedules/resources/list/index.d.ts +0 -1
  521. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  522. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  523. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  524. package/lib/components/schedules/schedules/index.d.ts +0 -1
  525. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  526. package/lib/components/shoppingCart/components/Cart/Product.js +111 -51
  527. package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -1
  528. package/lib/components/shoppingCart/components/Cart/index.js +1 -1
  529. package/lib/components/shoppingCart/components/Cart/index.less +31 -0
  530. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  531. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  532. package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  533. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  534. package/lib/components/shoppingCart/index.d.ts +0 -1
  535. package/lib/components/shoppingCart/locales.d.ts +3 -0
  536. package/lib/components/shoppingCart/locales.js +6 -3
  537. package/lib/components/taxSelect/index.d.ts +0 -1
  538. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
  539. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  540. package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -1
  541. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  542. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  543. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +7 -7
  544. package/lib/components/ticketBooking/index.d.ts +0 -1
  545. package/lib/components/ticketBooking/utils/index.js +2 -1
  546. package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
  547. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  548. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  549. package/lib/hooks/usePaymentLogger.d.ts +0 -1
  550. package/lib/plus/clientName/index.d.ts +0 -1
  551. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
  552. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
  553. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
  554. package/lib/plus/noteModal/AddTempModal.d.ts +0 -1
  555. package/lib/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  556. package/lib/plus/saasCreateOrganization/index.d.ts +0 -1
  557. package/lib/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  558. package/lib/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  559. package/lib/plus/saasRegister/components/GoLogin.d.ts +0 -1
  560. package/lib/plus/saasRegister/components/Header.d.ts +0 -1
  561. package/lib/plus/saasRegister/components/VerifyError.d.ts +0 -1
  562. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  563. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  564. package/lib/pro/pisellPhoneKeyboard/index.d.ts +0 -1
  565. package/lib/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.js +2 -2
  566. package/lib/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
  567. package/lib/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.js +144 -0
  568. package/lib/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.less +23 -0
  569. package/lib/pro/pisellSimplePriceKeyboardPopover/index.d.ts +2 -0
  570. package/lib/pro/pisellSimplePriceKeyboardPopover/index.js +35 -0
  571. package/lib/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
  572. package/lib/pro/pisellSimplePriceKeyboardPopover/types.js +17 -0
  573. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +4 -0
  574. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +332 -0
  575. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.d.ts +13 -0
  576. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +399 -0
  577. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +11 -0
  578. package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +76 -0
  579. package/lib/pro/priceKeyboard/components/cashKeyboard/index.less +103 -0
  580. package/lib/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +39 -0
  581. package/lib/pro/priceKeyboard/components/cashKeyboard/locales.js +65 -0
  582. package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +97 -0
  583. package/lib/pro/priceKeyboard/components/cashKeyboard/types.js +17 -0
  584. package/lib/pro/priceKeyboard/components/discountKeyboard/index.d.ts +22 -0
  585. package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +485 -0
  586. package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +47 -0
  587. package/lib/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +42 -0
  588. package/lib/pro/priceKeyboard/components/discountKeyboard/locales.js +68 -0
  589. package/lib/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
  590. package/lib/pro/priceKeyboard/components/discountKeyboard/types.js +17 -0
  591. package/lib/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +11 -0
  592. package/lib/pro/priceKeyboard/components/paymentKeyboard/index.js +488 -0
  593. package/lib/pro/priceKeyboard/components/paymentKeyboard/index.less +64 -0
  594. package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +45 -0
  595. package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.js +71 -0
  596. package/lib/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
  597. package/lib/pro/priceKeyboard/components/paymentKeyboard/types.js +17 -0
  598. package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +17 -0
  599. package/lib/pro/priceKeyboard/components/shortcuts/index.js +79 -0
  600. package/lib/pro/priceKeyboard/components/shortcuts/index.less +39 -0
  601. package/lib/pro/priceKeyboard/hooks/keyActions.d.ts +28 -0
  602. package/lib/pro/priceKeyboard/hooks/keyActions.js +176 -0
  603. package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +27 -0
  604. package/lib/pro/priceKeyboard/hooks/rightItems.js +81 -0
  605. package/lib/pro/priceKeyboard/index.d.ts +3 -0
  606. package/lib/pro/priceKeyboard/index.js +45 -0
  607. package/lib/pro/priceKeyboard/index.less +215 -0
  608. package/lib/pro/priceKeyboard/utils.d.ts +31 -0
  609. package/lib/pro/priceKeyboard/utils.js +75 -0
  610. package/lib/pro/skuDetailModal/index.js +18 -22
  611. package/package.json +4 -4
@@ -1,4 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
2
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
4
3
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
@@ -10,17 +9,14 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
10
9
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
11
10
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12
11
  import React, { useState, useEffect } from 'react';
13
- import "./index.less";
14
- import classNames from 'classnames';
15
- import { Edit05 } from '@pisell/icon';
16
- import PisellPriceKeyboardPopover from "../../../../pro/pisellPriceKeyboardPopover";
17
- // import pisellos from "@/utils/pisellos"; // 暂时注释,使用 context 中的 pisellos
18
-
19
12
  import useEngineContext from "../../../../hooks/useEngineContext";
13
+ // @ts-ignore
20
14
  import { locales, formatAmount } from '@pisell/utils';
21
15
  import checkoutLocales from "../../locales";
22
16
  import useToast from "../../../../hooks/useToast";
23
17
  import { useDebounceFn } from 'ahooks';
18
+ import { CashKeyboard } from "../../../../pro/priceKeyboard";
19
+ import "./index.less";
24
20
  export function CashPaymentModule(_ref) {
25
21
  var amountSymbol = _ref.amountSymbol,
26
22
  orderInfo = _ref.orderInfo,
@@ -32,7 +28,9 @@ export function CashPaymentModule(_ref) {
32
28
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
33
29
  roundingFunction = _ref.roundingFunction,
34
30
  _ref$balanceDueAmount = _ref.balanceDueAmount,
35
- balanceDueAmount = _ref$balanceDueAmount === void 0 ? '0' : _ref$balanceDueAmount;
31
+ balanceDueAmount = _ref$balanceDueAmount === void 0 ? '0' : _ref$balanceDueAmount,
32
+ _ref$syncingLock = _ref.syncingLock,
33
+ syncingLock = _ref$syncingLock === void 0 ? false : _ref$syncingLock;
36
34
  var _useState = useState(customAmount || ''),
37
35
  _useState2 = _slicedToArray(_useState, 2),
38
36
  amount = _useState2[0],
@@ -41,21 +39,13 @@ export function CashPaymentModule(_ref) {
41
39
  _useState4 = _slicedToArray(_useState3, 2),
42
40
  roundingAmount = _useState4[0],
43
41
  setRoundingAmount = _useState4[1];
44
- var _useState5 = useState(amountButtons.length ? amountButtons : new Array(6).fill(0)),
45
- _useState6 = _slicedToArray(_useState5, 2),
46
- amountList = _useState6[0],
47
- setAmountList = _useState6[1];
48
- useEffect(function () {
49
- setAmountList(amountButtons.length ? amountButtons : new Array(6).fill(0));
50
- }, [amountButtons]);
51
42
  var context = useEngineContext();
52
- // const { pisellos, action, token, store, getApp } = context.appHelper?.utils;
53
43
  var Toast = useToast();
54
44
 
55
45
  // 创建本地翻译函数,优先使用 checkout 语言包
56
46
  var getText = function getText(key, fallback) {
57
- var _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3, _context$appHelper$ut4, _checkoutLocales;
58
- var currentLang = ((_context$appHelper$ut = context.appHelper.utils) === null || _context$appHelper$ut === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut.getApp) === 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.locales) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut2.getLocale) === null || _context$appHelper$ut3 === void 0 ? void 0 : _context$appHelper$ut3.call(_context$appHelper$ut2)) || ((_context$appHelper$ut4 = context.appHelper.utils) === null || _context$appHelper$ut4 === void 0 || (_context$appHelper$ut4 = _context$appHelper$ut4.storage) === null || _context$appHelper$ut4 === void 0 ? void 0 : _context$appHelper$ut4.get('umi_locale')) || 'en';
47
+ var _context$appHelper, _context$appHelper$ge, _context$appHelper$ge2, _context$appHelper$ut, _checkoutLocales;
48
+ var currentLang = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 || (_context$appHelper$ge = _context$appHelper.getApp) === null || _context$appHelper$ge === void 0 || (_context$appHelper$ge = _context$appHelper$ge.call(_context$appHelper)) === null || _context$appHelper$ge === void 0 || (_context$appHelper$ge = _context$appHelper$ge.locales) === null || _context$appHelper$ge === void 0 || (_context$appHelper$ge2 = _context$appHelper$ge.getLocale) === null || _context$appHelper$ge2 === void 0 ? void 0 : _context$appHelper$ge2.call(_context$appHelper$ge)) || ((_context$appHelper$ut = context.appHelper.utils) === null || _context$appHelper$ut === void 0 || (_context$appHelper$ut = _context$appHelper$ut.storage) === null || _context$appHelper$ut === void 0 ? void 0 : _context$appHelper$ut.get('umi_locale')) || 'en';
59
49
  var checkoutText = (_checkoutLocales = checkoutLocales[currentLang]) === null || _checkoutLocales === void 0 ? void 0 : _checkoutLocales[key];
60
50
  if (checkoutText) {
61
51
  return checkoutText;
@@ -66,7 +56,6 @@ export function CashPaymentModule(_ref) {
66
56
  };
67
57
  useEffect(function () {
68
58
  handleKeyboardConfirm(customAmount || '');
69
- // setAmount(customAmount || '');
70
59
  }, [customAmount, balanceDueAmount]);
71
60
 
72
61
  // 检查是否应该禁用按钮:原本disabled为true 或者 订单金额为0
@@ -84,7 +73,7 @@ export function CashPaymentModule(_ref) {
84
73
  if (isAmountButtonsDisabled) return;
85
74
  if (onPaymentComplete) {
86
75
  if (Number(amount) === 0 && Math.abs(roundingAmount) === 0) {
87
- Toast.fail(getText('pisell2.amount-summary.amount-cannot-be-zero', 'The amount cannot be 0'));
76
+ Toast.fail(getText('cash-payment-amount-cannot-be-zero', 'The amount cannot be 0'));
88
77
  return;
89
78
  }
90
79
  var finalAmount = typeof amount === 'number' ? amount : Number(amount) || 0;
@@ -120,24 +109,23 @@ export function CashPaymentModule(_ref) {
120
109
  setRoundingAmount(0);
121
110
  return _context.abrupt("return");
122
111
  case 4:
123
- ;
124
112
  finalValue = String(value);
125
113
  console.log('键盘确认:', finalValue);
126
114
  if (!(Number(finalValue) === 0)) {
127
- _context.next = 10;
115
+ _context.next = 9;
128
116
  break;
129
117
  }
130
- Toast.fail(getText('pisell2.amount-summary.amount-cannot-be-zero', 'The amount cannot be 0'));
118
+ Toast.fail(getText('cash-payment-amount-cannot-be-zero', 'The amount cannot be 0'));
131
119
  return _context.abrupt("return");
132
- case 10:
120
+ case 9:
133
121
  if (!(finalValue === '' || finalValue === null || finalValue === undefined)) {
134
- _context.next = 14;
122
+ _context.next = 13;
135
123
  break;
136
124
  }
137
125
  setAmount('');
138
- _context.next = 33;
126
+ _context.next = 32;
139
127
  break;
140
- case 14:
128
+ case 13:
141
129
  // 移除可能的货币符号和多余空格
142
130
  cleanValue = finalValue.replace(/[$\s]/g, '');
143
131
  numValue = parseFloat(cleanValue); // 检查当前金额是否等于剩余支付金额
@@ -146,22 +134,22 @@ export function CashPaymentModule(_ref) {
146
134
  finalAmount = numValue;
147
135
  roundingDiff = 0;
148
136
  if (!(shouldApplyRounding && roundingFunction)) {
149
- _context.next = 30;
137
+ _context.next = 29;
150
138
  break;
151
139
  }
152
- _context.next = 23;
140
+ _context.next = 22;
153
141
  return roundingFunction(numValue);
154
- case 23:
142
+ case 22:
155
143
  _result = _context.sent;
156
144
  _ref3 = _result || {}, _ref3$roundedAmount = _ref3.roundedAmount, roundedAmount = _ref3$roundedAmount === void 0 ? numValue : _ref3$roundedAmount, _ref3$roundingDiffere = _ref3.roundingDifference, roundingDifference = _ref3$roundingDiffere === void 0 ? 0 : _ref3$roundingDiffere;
157
145
  finalAmount = roundedAmount;
158
146
  roundingDiff = roundingDifference;
159
147
  console.log('应用抹零:', numValue, '->', roundedAmount, '差额:', roundingDifference);
160
- _context.next = 31;
148
+ _context.next = 30;
161
149
  break;
162
- case 30:
150
+ case 29:
163
151
  console.log('不应用抹零,用户输入金额:', numValue, '剩余支付金额:', balanceDue);
164
- case 31:
152
+ case 30:
165
153
  setRoundingAmount(roundingDiff);
166
154
  if (isNaN(numValue)) {
167
155
  setAmount('');
@@ -169,7 +157,7 @@ export function CashPaymentModule(_ref) {
169
157
  setAmount(finalAmount.toString());
170
158
  console.log('设置金额为:', finalAmount);
171
159
  }
172
- case 33:
160
+ case 32:
173
161
  case "end":
174
162
  return _context.stop();
175
163
  }
@@ -180,103 +168,91 @@ export function CashPaymentModule(_ref) {
180
168
  };
181
169
  }();
182
170
 
183
- // 处理键盘取消
184
- var handleKeyboardCancel = function handleKeyboardCancel() {
185
- console.log('键盘取消');
186
- };
187
-
188
- // 处理键盘输入变化
189
- var handleKeyboardChange = function handleKeyboardChange(value) {
190
- if (isInputDisabled) return;
191
- var stringValue = String(value);
192
- console.log('键盘输入变化:', stringValue, '类型:', _typeof(stringValue));
193
- // 在实时输入过程中更新amount状态
194
- setAmount(stringValue);
195
- };
196
- return /*#__PURE__*/React.createElement("div", {
197
- className: classNames('cash-pay-container', {
198
- 'cash-pay-container--disabled': disabled
199
- })
200
- }, /*#__PURE__*/React.createElement("div", {
201
- className: classNames('cash-pay-header')
202
- }, /*#__PURE__*/React.createElement("div", {
203
- className: classNames('cash-pay-header-title')
204
- }, getText('cash') || 'Cash'), Math.abs(roundingAmount) > 0 && /*#__PURE__*/React.createElement("div", {
205
- className: classNames('cash-pay-header-rounding')
206
- }, getText('rounding') || 'Rounding', ":", ' ', formatAmount(roundingAmount, 2, amountSymbol))), /*#__PURE__*/React.createElement("div", {
207
- className: classNames('cash-pay-main-content', {
208
- 'cash-pay-main-content--disabled': disabled
209
- })
210
- }, /*#__PURE__*/React.createElement("div", {
211
- className: classNames('cash-pay-payment-area')
212
- }, /*#__PURE__*/React.createElement(PisellPriceKeyboardPopover, {
213
- value: amount || '0'
214
- // onChange={handleKeyboardChange}
171
+ // 重置功能 - 重置为待支付金额,保留抹零
172
+ var handleReset = /*#__PURE__*/function () {
173
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
174
+ var resetAmount, cleanValue, numValue, balanceDue, shouldApplyRounding, finalAmount, roundingDiff, _result2, _ref5, _ref5$roundedAmount, roundedAmount, _ref5$roundingDiffere, roundingDifference;
175
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
176
+ while (1) switch (_context2.prev = _context2.next) {
177
+ case 0:
178
+ if (!isAmountButtonsDisabled) {
179
+ _context2.next = 2;
180
+ break;
181
+ }
182
+ return _context2.abrupt("return");
183
+ case 2:
184
+ resetAmount = balanceDueAmount || '0'; // 移除可能的货币符号和多余空格
185
+ cleanValue = resetAmount.replace(/[$\s]/g, '');
186
+ numValue = parseFloat(cleanValue); // 检查当前金额是否等于剩余支付金额
187
+ balanceDue = parseFloat(balanceDueAmount);
188
+ shouldApplyRounding = Math.abs(numValue - balanceDue) < 0.01; // 使用小数精度比较
189
+ finalAmount = numValue;
190
+ roundingDiff = 0;
191
+ if (!(shouldApplyRounding && roundingFunction)) {
192
+ _context2.next = 19;
193
+ break;
194
+ }
195
+ _context2.next = 12;
196
+ return roundingFunction(finalAmount);
197
+ case 12:
198
+ _result2 = _context2.sent;
199
+ _ref5 = _result2 || {}, _ref5$roundedAmount = _ref5.roundedAmount, roundedAmount = _ref5$roundedAmount === void 0 ? numValue : _ref5$roundedAmount, _ref5$roundingDiffere = _ref5.roundingDifference, roundingDifference = _ref5$roundingDiffere === void 0 ? 0 : _ref5$roundingDiffere;
200
+ finalAmount = roundedAmount;
201
+ roundingDiff = roundingDifference;
202
+ console.log('应用抹零:', numValue, '->', roundedAmount, '差额:', roundingDifference);
203
+ _context2.next = 20;
204
+ break;
205
+ case 19:
206
+ console.log('不应用抹零,用户输入金额:', numValue, '剩余支付金额:', balanceDue);
207
+ case 20:
208
+ setAmount(finalAmount.toString());
209
+ setRoundingAmount(roundingDiff);
210
+ case 22:
211
+ case "end":
212
+ return _context2.stop();
213
+ }
214
+ }, _callee2);
215
+ }));
216
+ return function handleReset() {
217
+ return _ref4.apply(this, arguments);
218
+ };
219
+ }();
220
+ return /*#__PURE__*/React.createElement(CashKeyboard, {
221
+ variant: "intact"
222
+ // 原价格:订单的待支付金额
215
223
  ,
216
- onConfirm: handleKeyboardConfirm,
217
- onCancel: handleKeyboardCancel,
218
- showCurrencySymbol: true,
219
- useThousandsSeparator: true,
220
- selectType: "dark",
221
- overlayClassName: "cash-payment-keyboard-popover",
222
- disabled: isInputDisabled
223
- }, /*#__PURE__*/React.createElement("div", {
224
- className: classNames('cash-pay-amount-input-area', {
225
- 'cash-pay-amount-input-area--disabled': isInputDisabled
226
- })
227
- }, /*#__PURE__*/React.createElement(Edit05, {
228
- className: classNames('cash-pay-amount-edit-icon', {
229
- 'cash-pay-amount-edit-icon--disabled': isInputDisabled
230
- })
231
- }), /*#__PURE__*/React.createElement("div", {
232
- className: classNames('cash-pay-amount-input-wrapper', {
233
- 'cash-pay-amount-input-wrapper--disabled': isInputDisabled
234
- })
235
- }, /*#__PURE__*/React.createElement("span", {
236
- className: classNames('cash-pay-currency-symbol', {
237
- 'cash-pay-currency-symbol--disabled': isInputDisabled
238
- })
239
- }, amountSymbol), /*#__PURE__*/React.createElement("div", {
240
- className: classNames('cash-pay-amount-display', {
241
- 'cash-pay-amount-display--disabled': isInputDisabled
242
- })
243
- }, amount || '0.00')))), /*#__PURE__*/React.createElement("div", _extends({
244
- className: classNames('cash-pay-button', {
245
- 'cash-pay-button--disabled': isAmountButtonsDisabled
246
- })
247
- }, isAmountButtonsDisabled ? {} : {
248
- onClick: handleCashPay
249
- }, {
250
- style: {
251
- cursor: isAmountButtonsDisabled ? 'not-allowed' : 'pointer'
252
- }
253
- }), /*#__PURE__*/React.createElement("div", {
254
- className: classNames('cash-pay-button-text', {
255
- 'cash-pay-button-text--disabled': isAmountButtonsDisabled
256
- })
257
- }, getText('cash.payment') || 'Cash Pay'))), /*#__PURE__*/React.createElement("div", {
258
- className: classNames('cash-pay-amount-button-grid', {
259
- 'cash-pay-amount-button-grid--disabled': isAmountButtonsDisabled
260
- })
261
- }, amountList.slice(0, 6).map(function (amount, index) {
262
- return /*#__PURE__*/React.createElement("div", _extends({
263
- key: index,
264
- className: classNames('cash-pay-amount-button', {
265
- 'cash-pay-amount-button--disabled': isAmountButtonsDisabled
266
- })
267
- }, isAmountButtonsDisabled ? {} : {
268
- onClick: function onClick() {
269
- return handleAmountClick(amount);
270
- }
271
- }, {
272
- style: {
273
- cursor: isAmountButtonsDisabled ? 'not-allowed' : 'pointer'
224
+ originalValue: customAmount
225
+ // 当前值:实收现金(cash recevie)
226
+ ,
227
+ value: amount,
228
+ disabled: disabled,
229
+ hiddenChangeDue: roundingAmount > 0,
230
+ onChange: function onChange(value) {
231
+ setAmount(value);
232
+ setRoundingAmount(0);
233
+ },
234
+ titleArea: {
235
+ visible: true,
236
+ title: {
237
+ text: getText('cash-payment-title', 'Cash Payment')
238
+ },
239
+ subtitle: {
240
+ visible: Math.abs(roundingAmount) > 0,
241
+ text: "".concat(getText('cash-payment-rounding', 'Rounding'), ": ").concat(formatAmount(roundingAmount, 2, amountSymbol))
274
242
  }
275
- }), /*#__PURE__*/React.createElement("div", {
276
- className: classNames('cash-pay-amount-button-text', {
277
- 'cash-pay-amount-button-text--disabled': isAmountButtonsDisabled
278
- })
279
- }, formatAmount(amount, 2, amountSymbol)));
280
- }))));
243
+ },
244
+ style: {
245
+ width: '100%',
246
+ backgroundColor: 'transparent'
247
+ },
248
+ presets: amountButtons.slice(0, 5).map(function (buttonAmount) {
249
+ return {
250
+ label: formatAmount(buttonAmount, 2, amountSymbol),
251
+ value: buttonAmount
252
+ };
253
+ }),
254
+ onReset: handleReset,
255
+ onEnter: syncingLock ? undefined : handleCashPay
256
+ });
281
257
  }
282
258
  export default CashPaymentModule;