@pisell/private-materials 6.7.4 → 6.7.6

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 (772) 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 +2 -2
  6. package/build/lowcode/preview.js +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +10 -10
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +10 -10
  11. package/es/businessModel/SalesModel/index.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  13. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  14. package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  15. package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
  16. package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  17. package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
  18. package/es/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  19. package/es/components/appointmentBooking/components/Voucher/index.js +2 -1
  20. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  21. package/es/components/appointmentBooking/deposit/index.d.ts +1 -0
  22. package/es/components/appointmentBooking/index.d.ts +1 -0
  23. package/es/components/booking/addons/index.js +25 -17
  24. package/es/components/booking/addons/model.d.ts +1 -10
  25. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  26. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  27. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  28. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  29. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  30. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  31. package/es/components/booking/components/footer/amount.d.ts +1 -0
  32. package/es/components/booking/components/footer/amount.js +548 -84
  33. package/es/components/booking/components/footer/index.d.ts +1 -0
  34. package/es/components/booking/components/footer/index.js +77 -56
  35. package/es/components/booking/components/footer/utils.d.ts +19 -0
  36. package/es/components/booking/components/footer/utils.js +153 -54
  37. package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  38. package/es/components/booking/components/voucher/index.d.ts +1 -0
  39. package/es/components/booking/components/voucher/index.js +23 -7
  40. package/es/components/booking/deposit/index.d.ts +1 -0
  41. package/es/components/booking/forms/footer.d.ts +1 -0
  42. package/es/components/booking/forms/model.d.ts +1 -10
  43. package/es/components/booking/forms/sendModal/useSendModal.d.ts +2 -1
  44. package/es/components/booking/forms/single/index.d.ts +1 -0
  45. package/es/components/booking/forms/table/index.d.ts +1 -0
  46. package/es/components/booking/hooks/useClearCart.d.ts +1 -0
  47. package/es/components/booking/hooks/useQuotation.d.ts +1 -0
  48. package/es/components/booking/hooks/useQuotation.js +4 -1
  49. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  50. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  51. package/es/components/booking/info/date/index.d.ts +1 -0
  52. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  53. package/es/components/booking/info/header/index.d.ts +1 -0
  54. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  55. package/es/components/booking/info/index.d.ts +1 -0
  56. package/es/components/booking/info/model.d.ts +1 -10
  57. package/es/components/booking/info/notes/index.d.ts +1 -0
  58. package/es/components/booking/info/service/Lists.d.ts +1 -0
  59. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  60. package/es/components/booking/info/service/addService/index.d.ts +1 -0
  61. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  62. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  63. package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
  64. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  65. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  66. package/es/components/booking/info/service2/utils.d.ts +1 -1
  67. package/es/components/booking/info/service2/utils.js +1 -0
  68. package/es/components/booking/info2/cartClientCard/index.js +30 -6
  69. package/es/components/booking/info2/index.js +1 -1
  70. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  71. package/es/components/booking/info2/service/addService/index.d.ts +1 -0
  72. package/es/components/booking/info2/service/addService/index.js +2 -3
  73. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  74. package/es/components/booking/info2/service/editNormalService/index.js +6 -0
  75. package/es/components/booking/info2/service/editService/index.js +16 -6
  76. package/es/components/booking/info2/service/editService/utils.d.ts +15 -0
  77. package/es/components/booking/info2/service/editService/utils.js +66 -0
  78. package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  79. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  80. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  81. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  82. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  83. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  84. package/es/components/booking/model.d.ts +1 -9
  85. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  86. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  87. package/es/components/booking/notes/addNote/index.d.ts +1 -0
  88. package/es/components/booking/notes/model.d.ts +1 -10
  89. package/es/components/booking/payments/model.d.ts +1 -10
  90. package/es/components/booking/utils.d.ts +3 -2
  91. package/es/components/booking/utils.js +16 -3
  92. package/es/components/checkout/PaymentModal.d.ts +7 -5
  93. package/es/components/checkout/PaymentModal.js +257 -213
  94. package/es/components/checkout/components/AdditionalModule/index.d.ts +3 -1
  95. package/es/components/checkout/components/AdditionalModule/index.js +52 -12
  96. package/es/components/checkout/components/AmountSummary/index.js +9 -76
  97. package/es/components/checkout/components/AmountSummary/index.less +5 -6
  98. package/es/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
  99. package/es/components/checkout/components/CashPaymentModule/index.js +5 -2
  100. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
  101. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +6 -1
  102. package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -0
  103. package/es/components/checkout/components/PaymentOptionsModule/index.js +2 -1
  104. package/es/components/checkout/components/PaymentOptionsModule/index.less +4 -0
  105. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +4 -0
  106. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +31 -8
  107. package/es/components/checkout/components/PaymentResultToast/index.js +6 -6
  108. package/es/components/checkout/components/PaymentResultToast/index.less +94 -33
  109. package/es/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
  110. package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +1 -0
  111. package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -0
  112. package/es/components/checkout/index.less +1 -1
  113. package/es/components/checkout/locales.d.ts +6 -0
  114. package/es/components/checkout/locales.js +6 -0
  115. package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -1
  116. package/es/components/checkout/utils/PaymentResultToastUtils.js +11 -1
  117. package/es/components/eftpos/index.d.ts +1 -0
  118. package/es/components/eftpos/pos.d.ts +1 -0
  119. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  120. package/es/components/eftposPay/amount.d.ts +2 -1
  121. package/es/components/eftposPay/app.d.ts +1 -0
  122. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  123. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  124. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  125. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  126. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  127. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  128. package/es/components/eftposPay/device.d.ts +1 -1
  129. package/es/components/eftposPay/hooks.d.ts +2 -2
  130. package/es/components/eftposPay/index.d.ts +1 -0
  131. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +14 -6
  132. package/es/components/eftposPay/linkly/index.d.ts +1 -0
  133. package/es/components/eftposPay/pay.d.ts +1 -0
  134. package/es/components/eftposPay/payo/config.d.ts +1 -0
  135. package/es/components/eftposPay/payo/config.js +70 -32
  136. package/es/components/eftposPay/payo/payment.d.ts +66 -0
  137. package/es/components/eftposPay/payo/payment.js +579 -0
  138. package/es/components/eftposPay/store/index.d.ts +4 -4
  139. package/es/components/eftposPay/tip.d.ts +1 -0
  140. package/es/components/eftposPay/tyro/index.js +12 -0
  141. package/es/components/eftposPay/utils/log/index.d.ts +110 -0
  142. package/es/components/eftposPay/utils/log/index.js +371 -0
  143. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  144. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  145. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  146. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  147. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  148. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  149. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  150. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  151. package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  152. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  153. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  154. package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  155. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  156. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  157. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  158. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  159. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  160. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  161. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  162. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  163. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  164. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  165. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  166. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  167. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  168. package/es/components/eventBooking/index.d.ts +1 -0
  169. package/es/components/index.d.ts +2 -1
  170. package/es/components/index.js +2 -1
  171. package/es/components/list/List.js +56 -40
  172. package/es/components/list/hooks/useListState.d.ts +5 -3
  173. package/es/components/list/hooks/useListState.js +17 -2
  174. package/es/components/list/styles/header.less +3 -3
  175. package/es/components/list/utils/index.d.ts +13 -1
  176. package/es/components/list/utils/index.js +43 -1
  177. package/es/components/login/index.d.ts +1 -0
  178. package/es/components/pay/toB/components/Cache/index.d.ts +1 -0
  179. package/es/components/pay/toB/components/Card/index.d.ts +1 -0
  180. package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  181. package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -0
  182. package/es/components/pay/toB/components/Content/Footer.d.ts +1 -0
  183. package/es/components/pay/toB/components/Content/Header.d.ts +1 -0
  184. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  185. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +14 -12
  186. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  187. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  188. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  189. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  190. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  191. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -2
  192. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +2 -0
  193. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
  194. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  195. package/es/components/pay/toC/index.js +7 -4
  196. package/es/components/pay/toC/locales.d.ts +3 -0
  197. package/es/components/pay/toC/locales.js +6 -3
  198. package/es/components/pay/toC/model.d.ts +1 -9
  199. package/es/components/pay/toC/status.d.ts +1 -0
  200. package/es/components/pay/toC/status.js +3 -0
  201. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  202. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  203. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  204. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  205. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  206. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  207. package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
  208. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  209. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  210. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  211. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  212. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  213. package/es/components/productExtension/index.d.ts +1 -0
  214. package/es/components/productSelect/components/TabProduct/index.d.ts +1 -0
  215. package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
  216. package/es/components/ruleSetting/index.d.ts +1 -0
  217. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  218. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  219. package/es/components/schedules/calendar/index.d.ts +1 -0
  220. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  221. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  222. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  223. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  224. package/es/components/schedules/model.d.ts +1 -9
  225. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  226. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  227. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  228. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  229. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  230. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  231. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  232. package/es/components/schedules/products/index.d.ts +1 -0
  233. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  234. package/es/components/schedules/products/list/index.d.ts +1 -0
  235. package/es/components/schedules/resources/index.d.ts +1 -0
  236. package/es/components/schedules/resources/list/index.d.ts +1 -0
  237. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  238. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  239. package/es/components/schedules/schedules/index.d.ts +1 -0
  240. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  241. package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
  242. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  243. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  244. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  245. package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  246. package/es/components/shoppingCart/index.d.ts +1 -0
  247. package/es/components/subTotal/index.js +1 -1
  248. package/es/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  249. package/es/components/{checkout/PaymentPlugin.js → systemSettings/registry/components/GroupModal.js} +132 -171
  250. package/es/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  251. package/es/components/systemSettings/registry/components/ItemModal.js +547 -0
  252. package/es/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  253. package/es/components/systemSettings/registry/components/ModuleList.js +54 -0
  254. package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  255. package/es/components/systemSettings/registry/components/SectionList.js +174 -0
  256. package/es/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  257. package/es/components/systemSettings/registry/components/SettingsTable.js +765 -0
  258. package/es/components/systemSettings/registry/components/index.d.ts +4 -0
  259. package/es/components/systemSettings/registry/components/index.js +4 -0
  260. package/es/components/systemSettings/registry/index.d.ts +5 -0
  261. package/es/components/systemSettings/registry/index.js +1059 -0
  262. package/es/components/systemSettings/registry/index.less +410 -0
  263. package/es/components/systemSettings/registry/locales.d.ts +272 -0
  264. package/es/components/systemSettings/registry/locales.js +300 -0
  265. package/es/components/systemSettings/registry/services.d.ts +77 -0
  266. package/es/components/systemSettings/registry/services.js +472 -0
  267. package/es/components/systemSettings/registry/types.d.ts +126 -0
  268. package/es/components/systemSettings/registry/types.js +1 -0
  269. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  270. package/es/components/systemSettings/registry/utils/typeValidation.js +284 -0
  271. package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
  272. package/es/components/systemSettings/registry/utils/validators.js +44 -0
  273. package/es/components/taxSelect/index.d.ts +1 -0
  274. package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +1 -0
  275. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +33 -2
  276. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.js +139 -36
  277. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
  278. package/es/components/ticketBooking/components/addServiceVariant/addService.js +2 -86
  279. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  280. package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  281. package/es/components/ticketBooking/components/menuBar/index.js +109 -12
  282. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  283. package/es/components/ticketBooking/components/ticketBooking/index.js +2 -2
  284. package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  285. package/es/components/ticketBooking/components/timeBar/index.js +112 -7
  286. package/es/components/ticketBooking/components/timeBar/index.less +59 -0
  287. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +29 -18
  288. package/es/components/ticketBooking/index.d.ts +1 -0
  289. package/es/components/ticketBooking/locales.d.ts +6 -0
  290. package/es/components/ticketBooking/locales.js +9 -3
  291. package/es/components/ticketBooking/utils/index.d.ts +4 -1
  292. package/es/components/ticketBooking/utils/index.js +36 -13
  293. package/es/components/wallet/Detail/index.js +34 -2
  294. package/es/components/wallet/Detail/index.less +11 -0
  295. package/es/components/wallet/Detail/locales.d.ts +6 -0
  296. package/es/components/wallet/Detail/locales.js +14 -2
  297. package/es/components/wallet/Detail/model.d.ts +1 -13
  298. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  299. package/es/components/wallet/PointCard/model.d.ts +1 -13
  300. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  301. package/es/components/wallet/Voucher/index.js +11 -10
  302. package/es/components/wallet/Voucher/model.d.ts +1 -13
  303. package/es/components/wallet/components/WalletCard.js +5 -1
  304. package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
  305. package/es/components/wallet/index.js +4 -2
  306. package/es/components/wallet/model.d.ts +1 -9
  307. package/es/components/wallet/serve.d.ts +7 -0
  308. package/es/components/wallet/utils.d.ts +48 -0
  309. package/es/components/wallet/utils.js +342 -0
  310. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  311. package/es/hooks/usePaymentLogger.d.ts +1 -0
  312. package/es/index.d.ts +4 -0
  313. package/es/index.js +4 -0
  314. package/es/plus/clientCard/locales.js +3 -3
  315. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  316. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  317. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  318. package/es/plus/clinetSearch/index.js +28 -30
  319. package/es/plus/clinetSearch/locales.d.ts +3 -0
  320. package/es/plus/clinetSearch/locales.js +7 -4
  321. package/es/plus/clinetSearch/types.d.ts +12 -0
  322. package/es/plus/contactInfoModal/ContactInfoContent.d.ts +1 -0
  323. package/es/plus/noteModal/AddTempModal.d.ts +1 -0
  324. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
  325. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
  326. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
  327. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
  328. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
  329. package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +1 -0
  330. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  331. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
  332. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  333. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +1 -0
  334. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +1 -0
  335. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  336. package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
  337. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  338. package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +1 -0
  339. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  340. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
  341. package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +1 -0
  342. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  343. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  344. package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +1 -0
  345. package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +1 -0
  346. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  347. package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +1 -0
  348. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +1 -0
  349. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +1 -0
  350. package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
  351. package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  352. package/es/plus/saasCreateOrganization/index.d.ts +1 -0
  353. package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  354. package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  355. package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
  356. package/es/plus/saasRegister/components/Header.d.ts +1 -0
  357. package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
  358. package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  359. package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  360. package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
  361. package/es/plus/walletPassGallery/components/footerButton/index.js +2 -4
  362. package/es/plus/walletPassGallery/components/footerButton/index.less +14 -59
  363. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +2 -0
  364. package/es/plus/walletPassGallery/components/passDetail/index.js +84 -31
  365. package/es/plus/walletPassGallery/components/passDetail/index.less +4 -0
  366. package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  367. package/es/plus/walletPassGallery/components/recharge/index.js +19 -8
  368. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  369. package/es/plus/walletPassGallery/index.d.ts +1 -0
  370. package/es/plus/walletPassGallery/index.js +7 -3
  371. package/es/plus/walletPassGallery/serve.d.ts +3 -0
  372. package/es/plus/walletPassGallery/serve.js +4 -2
  373. package/es/pro/Login2.0/index.less +15 -8
  374. package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  375. package/es/pro/comprehensiveSearch/locales.js +1 -1
  376. package/es/pro/pisellPhoneKeyboard/index.d.ts +1 -0
  377. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +1 -0
  378. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +45 -36
  379. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +2 -0
  380. package/es/pro/priceKeyboard/components/cashKeyboard/index.js +4 -2
  381. package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +1 -0
  382. package/es/pro/priceKeyboard/components/discountKeyboard/index.js +10 -1
  383. package/es/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
  384. package/es/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +1 -0
  385. package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +1 -0
  386. package/es/pro/priceKeyboard/components/shortcuts/index.js +5 -2
  387. package/es/pro/priceKeyboard/components/shortcuts/index.less +4 -0
  388. package/es/pro/priceKeyboard/hooks/rightItems.d.ts +1 -0
  389. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  390. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  391. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  392. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  393. package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
  394. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  395. package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
  396. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  397. package/lib/components/appointmentBooking/components/Voucher/index.js +2 -1
  398. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  399. package/lib/components/appointmentBooking/deposit/index.d.ts +1 -0
  400. package/lib/components/appointmentBooking/index.d.ts +1 -0
  401. package/lib/components/booking/addons/index.js +15 -7
  402. package/lib/components/booking/addons/model.d.ts +1 -10
  403. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  404. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  405. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  406. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  407. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  408. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  409. package/lib/components/booking/components/footer/amount.d.ts +1 -0
  410. package/lib/components/booking/components/footer/amount.js +293 -41
  411. package/lib/components/booking/components/footer/index.d.ts +1 -0
  412. package/lib/components/booking/components/footer/index.js +30 -11
  413. package/lib/components/booking/components/footer/utils.d.ts +19 -0
  414. package/lib/components/booking/components/footer/utils.js +98 -22
  415. package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  416. package/lib/components/booking/components/voucher/index.d.ts +1 -0
  417. package/lib/components/booking/components/voucher/index.js +25 -9
  418. package/lib/components/booking/deposit/index.d.ts +1 -0
  419. package/lib/components/booking/forms/footer.d.ts +1 -0
  420. package/lib/components/booking/forms/model.d.ts +1 -10
  421. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +2 -1
  422. package/lib/components/booking/forms/single/index.d.ts +1 -0
  423. package/lib/components/booking/forms/table/index.d.ts +1 -0
  424. package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
  425. package/lib/components/booking/hooks/useQuotation.d.ts +1 -0
  426. package/lib/components/booking/hooks/useQuotation.js +2 -1
  427. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  428. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  429. package/lib/components/booking/info/date/index.d.ts +1 -0
  430. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  431. package/lib/components/booking/info/header/index.d.ts +1 -0
  432. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  433. package/lib/components/booking/info/index.d.ts +1 -0
  434. package/lib/components/booking/info/model.d.ts +1 -10
  435. package/lib/components/booking/info/notes/index.d.ts +1 -0
  436. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  437. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  438. package/lib/components/booking/info/service/addService/index.d.ts +1 -0
  439. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  440. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  441. package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
  442. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  443. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  444. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  445. package/lib/components/booking/info/service2/utils.js +1 -0
  446. package/lib/components/booking/info2/cartClientCard/index.js +25 -5
  447. package/lib/components/booking/info2/index.js +7 -2
  448. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  449. package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
  450. package/lib/components/booking/info2/service/addService/index.js +1 -2
  451. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  452. package/lib/components/booking/info2/service/editNormalService/index.js +6 -0
  453. package/lib/components/booking/info2/service/editService/index.js +12 -3
  454. package/lib/components/booking/info2/service/editService/utils.d.ts +15 -0
  455. package/lib/components/booking/info2/service/editService/utils.js +40 -3
  456. package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  457. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  458. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  459. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  460. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  461. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  462. package/lib/components/booking/model.d.ts +1 -9
  463. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  464. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  465. package/lib/components/booking/notes/addNote/index.d.ts +1 -0
  466. package/lib/components/booking/notes/model.d.ts +1 -10
  467. package/lib/components/booking/payments/model.d.ts +1 -10
  468. package/lib/components/booking/utils.d.ts +3 -2
  469. package/lib/components/booking/utils.js +11 -0
  470. package/lib/components/checkout/PaymentModal.d.ts +7 -5
  471. package/lib/components/checkout/PaymentModal.js +171 -135
  472. package/lib/components/checkout/components/AdditionalModule/index.d.ts +3 -1
  473. package/lib/components/checkout/components/AdditionalModule/index.js +52 -11
  474. package/lib/components/checkout/components/AmountSummary/index.js +5 -46
  475. package/lib/components/checkout/components/AmountSummary/index.less +5 -6
  476. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
  477. package/lib/components/checkout/components/CashPaymentModule/index.js +5 -2
  478. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
  479. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +5 -1
  480. package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -0
  481. package/lib/components/checkout/components/PaymentOptionsModule/index.js +6 -0
  482. package/lib/components/checkout/components/PaymentOptionsModule/index.less +4 -0
  483. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +4 -0
  484. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +23 -5
  485. package/lib/components/checkout/components/PaymentResultToast/index.js +4 -4
  486. package/lib/components/checkout/components/PaymentResultToast/index.less +94 -33
  487. package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
  488. package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +1 -0
  489. package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -0
  490. package/lib/components/checkout/index.less +1 -1
  491. package/lib/components/checkout/locales.d.ts +6 -0
  492. package/lib/components/checkout/locales.js +6 -0
  493. package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -1
  494. package/lib/components/checkout/utils/PaymentResultToastUtils.js +11 -1
  495. package/lib/components/eftpos/index.d.ts +1 -0
  496. package/lib/components/eftpos/pos.d.ts +1 -0
  497. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  498. package/lib/components/eftposPay/amount.d.ts +2 -1
  499. package/lib/components/eftposPay/app.d.ts +1 -0
  500. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  501. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  502. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  503. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  504. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  505. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  506. package/lib/components/eftposPay/device.d.ts +1 -1
  507. package/lib/components/eftposPay/hooks.d.ts +2 -2
  508. package/lib/components/eftposPay/index.d.ts +1 -0
  509. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +12 -6
  510. package/lib/components/eftposPay/linkly/index.d.ts +1 -0
  511. package/lib/components/eftposPay/pay.d.ts +1 -0
  512. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  513. package/lib/components/eftposPay/payo/config.js +98 -73
  514. package/lib/components/eftposPay/payo/payment.d.ts +66 -0
  515. package/lib/components/eftposPay/payo/payment.js +357 -0
  516. package/lib/components/eftposPay/store/index.d.ts +4 -4
  517. package/lib/components/eftposPay/tip.d.ts +1 -0
  518. package/lib/components/eftposPay/tyro/index.js +12 -0
  519. package/lib/components/eftposPay/utils/log/index.d.ts +110 -0
  520. package/lib/components/eftposPay/utils/log/index.js +294 -0
  521. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  522. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  523. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  524. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  525. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  526. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  527. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  528. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  529. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  530. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  531. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  532. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  533. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  534. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  535. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  536. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  537. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  538. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  539. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  540. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  541. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  542. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  543. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  544. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  545. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  546. package/lib/components/eventBooking/index.d.ts +1 -0
  547. package/lib/components/index.d.ts +2 -1
  548. package/lib/components/index.js +3 -0
  549. package/lib/components/list/List.js +34 -16
  550. package/lib/components/list/hooks/useListState.d.ts +5 -3
  551. package/lib/components/list/hooks/useListState.js +14 -1
  552. package/lib/components/list/styles/header.less +3 -3
  553. package/lib/components/list/utils/index.d.ts +13 -1
  554. package/lib/components/list/utils/index.js +27 -0
  555. package/lib/components/login/index.d.ts +1 -0
  556. package/lib/components/pay/toB/components/Cache/index.d.ts +1 -0
  557. package/lib/components/pay/toB/components/Card/index.d.ts +1 -0
  558. package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  559. package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -0
  560. package/lib/components/pay/toB/components/Content/Footer.d.ts +1 -0
  561. package/lib/components/pay/toB/components/Content/Header.d.ts +1 -0
  562. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  563. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +14 -12
  564. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  565. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  566. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  567. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  568. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  569. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -2
  570. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +1 -1
  571. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
  572. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  573. package/lib/components/pay/toC/index.js +4 -1
  574. package/lib/components/pay/toC/locales.d.ts +3 -0
  575. package/lib/components/pay/toC/locales.js +6 -3
  576. package/lib/components/pay/toC/model.d.ts +1 -9
  577. package/lib/components/pay/toC/status.d.ts +1 -0
  578. package/lib/components/pay/toC/status.js +5 -0
  579. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  580. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  581. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  582. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  583. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  584. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  585. package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
  586. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  587. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  588. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  589. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  590. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  591. package/lib/components/productExtension/index.d.ts +1 -0
  592. package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -0
  593. package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
  594. package/lib/components/ruleSetting/index.d.ts +1 -0
  595. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  596. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  597. package/lib/components/schedules/calendar/index.d.ts +1 -0
  598. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  599. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  600. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  601. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  602. package/lib/components/schedules/model.d.ts +1 -9
  603. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  604. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  605. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  606. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  607. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  608. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  609. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  610. package/lib/components/schedules/products/index.d.ts +1 -0
  611. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  612. package/lib/components/schedules/products/list/index.d.ts +1 -0
  613. package/lib/components/schedules/resources/index.d.ts +1 -0
  614. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  615. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  616. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  617. package/lib/components/schedules/schedules/index.d.ts +1 -0
  618. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  619. package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
  620. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  621. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  622. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  623. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  624. package/lib/components/shoppingCart/index.d.ts +1 -0
  625. package/lib/components/subTotal/index.js +1 -1
  626. package/lib/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  627. package/lib/components/systemSettings/registry/components/GroupModal.js +177 -0
  628. package/lib/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  629. package/lib/components/systemSettings/registry/components/ItemModal.js +508 -0
  630. package/lib/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  631. package/lib/components/systemSettings/registry/components/ModuleList.js +71 -0
  632. package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  633. package/lib/components/systemSettings/registry/components/SectionList.js +181 -0
  634. package/lib/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  635. package/lib/components/systemSettings/registry/components/SettingsTable.js +575 -0
  636. package/lib/components/systemSettings/registry/components/index.d.ts +4 -0
  637. package/lib/components/systemSettings/registry/components/index.js +48 -0
  638. package/lib/components/systemSettings/registry/index.d.ts +5 -0
  639. package/lib/components/systemSettings/registry/index.js +529 -0
  640. package/lib/components/systemSettings/registry/index.less +410 -0
  641. package/lib/components/systemSettings/registry/locales.d.ts +272 -0
  642. package/lib/components/systemSettings/registry/locales.js +324 -0
  643. package/lib/components/systemSettings/registry/services.d.ts +77 -0
  644. package/lib/components/systemSettings/registry/services.js +290 -0
  645. package/lib/components/systemSettings/registry/types.d.ts +126 -0
  646. package/lib/components/systemSettings/registry/types.js +17 -0
  647. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  648. package/lib/components/systemSettings/registry/utils/typeValidation.js +228 -0
  649. package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
  650. package/lib/components/systemSettings/registry/utils/validators.js +54 -0
  651. package/lib/components/taxSelect/index.d.ts +1 -0
  652. package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +1 -0
  653. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +33 -2
  654. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.js +84 -24
  655. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
  656. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +0 -1
  657. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  658. package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  659. package/lib/components/ticketBooking/components/menuBar/index.js +42 -6
  660. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  661. package/lib/components/ticketBooking/components/ticketBooking/index.js +2 -2
  662. package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  663. package/lib/components/ticketBooking/components/timeBar/index.js +105 -4
  664. package/lib/components/ticketBooking/components/timeBar/index.less +59 -0
  665. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +17 -13
  666. package/lib/components/ticketBooking/index.d.ts +1 -0
  667. package/lib/components/ticketBooking/locales.d.ts +6 -0
  668. package/lib/components/ticketBooking/locales.js +9 -3
  669. package/lib/components/ticketBooking/utils/index.d.ts +4 -1
  670. package/lib/components/ticketBooking/utils/index.js +20 -6
  671. package/lib/components/wallet/Detail/index.js +31 -3
  672. package/lib/components/wallet/Detail/index.less +11 -0
  673. package/lib/components/wallet/Detail/locales.d.ts +6 -0
  674. package/lib/components/wallet/Detail/locales.js +14 -2
  675. package/lib/components/wallet/Detail/model.d.ts +1 -13
  676. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  677. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  678. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  679. package/lib/components/wallet/Voucher/index.js +8 -8
  680. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  681. package/lib/components/wallet/components/WalletCard.js +4 -0
  682. package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
  683. package/lib/components/wallet/index.js +2 -2
  684. package/lib/components/wallet/model.d.ts +1 -9
  685. package/lib/components/wallet/serve.d.ts +7 -0
  686. package/lib/components/wallet/utils.d.ts +48 -0
  687. package/lib/components/wallet/utils.js +287 -0
  688. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  689. package/lib/hooks/usePaymentLogger.d.ts +1 -0
  690. package/lib/index.d.ts +4 -0
  691. package/lib/index.js +12 -0
  692. package/lib/plus/clientCard/locales.js +3 -3
  693. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  694. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  695. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  696. package/lib/plus/clinetSearch/index.js +17 -8
  697. package/lib/plus/clinetSearch/locales.d.ts +3 -0
  698. package/lib/plus/clinetSearch/locales.js +7 -4
  699. package/lib/plus/clinetSearch/types.d.ts +12 -0
  700. package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +1 -0
  701. package/lib/plus/noteModal/AddTempModal.d.ts +1 -0
  702. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
  703. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
  704. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
  705. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
  706. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
  707. package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +1 -0
  708. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  709. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
  710. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  711. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +1 -0
  712. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +1 -0
  713. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  714. package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
  715. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  716. package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +1 -0
  717. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  718. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
  719. package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +1 -0
  720. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  721. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  722. package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +1 -0
  723. package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +1 -0
  724. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  725. package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +1 -0
  726. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +1 -0
  727. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +1 -0
  728. package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
  729. package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  730. package/lib/plus/saasCreateOrganization/index.d.ts +1 -0
  731. package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  732. package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  733. package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
  734. package/lib/plus/saasRegister/components/Header.d.ts +1 -0
  735. package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
  736. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  737. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  738. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
  739. package/lib/plus/walletPassGallery/components/footerButton/index.js +2 -2
  740. package/lib/plus/walletPassGallery/components/footerButton/index.less +14 -59
  741. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +2 -0
  742. package/lib/plus/walletPassGallery/components/passDetail/index.js +54 -15
  743. package/lib/plus/walletPassGallery/components/passDetail/index.less +4 -0
  744. package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  745. package/lib/plus/walletPassGallery/components/recharge/index.js +7 -1
  746. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  747. package/lib/plus/walletPassGallery/index.d.ts +1 -0
  748. package/lib/plus/walletPassGallery/index.js +7 -3
  749. package/lib/plus/walletPassGallery/serve.d.ts +3 -0
  750. package/lib/plus/walletPassGallery/serve.js +3 -2
  751. package/lib/pro/Login2.0/index.less +15 -8
  752. package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  753. package/lib/pro/comprehensiveSearch/locales.js +1 -1
  754. package/lib/pro/pisellPhoneKeyboard/index.d.ts +1 -0
  755. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +1 -0
  756. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +42 -43
  757. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +2 -0
  758. package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +3 -2
  759. package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +1 -0
  760. package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +8 -1
  761. package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
  762. package/lib/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +1 -0
  763. package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +1 -0
  764. package/lib/pro/priceKeyboard/components/shortcuts/index.js +3 -2
  765. package/lib/pro/priceKeyboard/components/shortcuts/index.less +4 -0
  766. package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +1 -0
  767. package/lowcode/settings-registry/meta.ts +29 -0
  768. package/lowcode/wallet-pass-detail/meta.ts +89 -0
  769. package/package.json +4 -4
  770. package/es/components/checkout/PaymentPlugin.d.ts +0 -2
  771. package/lib/components/checkout/PaymentPlugin.d.ts +0 -2
  772. package/lib/components/checkout/PaymentPlugin.js +0 -181
@@ -47,7 +47,7 @@ var getRelationDetailsTotal = (relation_details) => {
47
47
  }
48
48
  return total.toNumber();
49
49
  };
50
- var getProductExpectAmount = (state, isEdit) => {
50
+ var getProductExpectAmount = (state, isEdit, isOriginTotal) => {
51
51
  var _a, _b, _c, _d;
52
52
  let price = new import_decimal.default(0);
53
53
  let duration = new import_decimal.default(0);
@@ -59,13 +59,15 @@ var getProductExpectAmount = (state, isEdit) => {
59
59
  if (isDay || (0, import_utils3.isNormalProductByDurationSchedule)(item)) {
60
60
  const quantity = new import_decimal.default(item._extend.quantity || 1);
61
61
  const itemTotal = new import_decimal.default(item._extend.total || 0);
62
- price = price.add(itemTotal.mul(quantity));
62
+ const itemOriginTotal = new import_decimal.default(item._extend.origin_total || 0);
63
+ price = price.add((isOriginTotal ? itemOriginTotal : itemTotal).mul(quantity));
63
64
  const _duration = (0, import_utils3.isDayBookingProduct)(item, state) ? new import_decimal.default(item._extend.duration || 0) : new import_decimal.default(0);
64
65
  duration = duration.add(_duration);
65
66
  } else {
66
67
  const quantity = new import_decimal.default(item._extend.quantity || 1);
67
68
  const itemTotal = new import_decimal.default(item._extend.total || 0);
68
- price = price.add(itemTotal.mul(quantity));
69
+ const itemOriginTotal = new import_decimal.default(item._extend.origin_total || 0);
70
+ price = price.add((isOriginTotal ? itemOriginTotal : itemTotal).mul(quantity));
69
71
  const relationTotal = new import_decimal.default(getRelationDetailsTotal(
70
72
  item._extend.relation_details || []
71
73
  ));
@@ -79,7 +81,8 @@ var getProductExpectAmount = (state, isEdit) => {
79
81
  for (let item of state.addons.value) {
80
82
  const quantity = new import_decimal.default(item._extend.quantity || 1);
81
83
  const itemTotal = new import_decimal.default(item._extend.total || 0);
82
- price = price.add(itemTotal.mul(quantity));
84
+ const itemOriginTotal = new import_decimal.default(item._extend.origin_total || 0);
85
+ price = price.add((isOriginTotal ? itemOriginTotal : itemTotal).mul(quantity));
83
86
  }
84
87
  }
85
88
  }
@@ -130,9 +133,10 @@ var getProductItemTax = (item, state, options) => {
130
133
  }
131
134
  }
132
135
  }
133
- return singleItemTax.times(quantity);
136
+ return singleItemTax.times(quantity).toDecimalPlaces(2, import_decimal.default.ROUND_HALF_UP);
134
137
  };
135
138
  var processItemsTax = (items, state, options) => {
139
+ var _a, _b, _c;
136
140
  const { tax_rate, is_price_include_tax, computed } = options;
137
141
  const { shopDiscount, productExpectAmount } = computed;
138
142
  let originTax = new import_decimal.default(0);
@@ -140,10 +144,11 @@ var processItemsTax = (items, state, options) => {
140
144
  for (let item of items) {
141
145
  const quantity = new import_decimal.default(item._extend.quantity || 1);
142
146
  const unitPrice = new import_decimal.default(item._extend.total || 0);
143
- const originalTaxPerItem = getProductItemTax(
147
+ const mainProductPrice = new import_decimal.default(getMainProductTotal(item) || 0);
148
+ let originalTaxPerItem = getProductItemTax(
144
149
  {
145
150
  ...item,
146
- total: unitPrice.toNumber(),
151
+ total: mainProductPrice.add(((_a = item._extend) == null ? void 0 : _a.surcharge_fee) || 0).toNumber(),
147
152
  quantity: 1
148
153
  },
149
154
  state,
@@ -153,19 +158,22 @@ var processItemsTax = (items, state, options) => {
153
158
  if (productExpectAmount > 0) {
154
159
  itemDiscount = unitPrice.dividedBy(productExpectAmount).times(shopDiscount);
155
160
  }
156
- const itemDiscountedUnitPrice = unitPrice.minus(itemDiscount);
157
- const discountedTaxPerItem = getProductItemTax(
161
+ let mainItemDiscount = new import_decimal.default(0);
162
+ if (unitPrice.greaterThan(0)) {
163
+ mainItemDiscount = mainProductPrice.dividedBy(productExpectAmount).times(shopDiscount);
164
+ }
165
+ const mainItemDiscountedUnitPrice = mainProductPrice.minus(mainItemDiscount).add(((_b = item._extend) == null ? void 0 : _b.surcharge_fee) || 0);
166
+ const maxDiscountedTaxPerItem = getProductItemTax(
158
167
  {
159
168
  ...item,
160
- total: itemDiscountedUnitPrice.toNumber(),
169
+ total: mainItemDiscountedUnitPrice.toNumber(),
161
170
  price: item._extend.total,
162
171
  quantity: 1
163
172
  },
164
173
  state,
165
174
  { tax_rate, is_price_include_tax }
166
175
  );
167
- item._extend.original_tax_fee = originalTaxPerItem.toNumber();
168
- item._extend.tax_fee = discountedTaxPerItem.toNumber();
176
+ item._extend.main_product_attached_bundle_tax_fee = maxDiscountedTaxPerItem.toNumber();
169
177
  let addTimeTotalTax = new import_decimal.default(0);
170
178
  if (Array.isArray(item._extend.relation_details)) {
171
179
  for (let atItem of item._extend.relation_details) {
@@ -181,8 +189,7 @@ var processItemsTax = (items, state, options) => {
181
189
  const addTimeTaxPerItem = getProductItemTax(
182
190
  {
183
191
  ...atItem,
184
- total: _discountedTotal,
185
- // 可能包含原有数据,或前端临时数据
192
+ total: _discountedTotal.add((atItem == null ? void 0 : atItem.surcharge_fee) || 0).toNumber(),
186
193
  quantity: atItem.product_quantity || atItem.num || 1
187
194
  },
188
195
  state,
@@ -191,8 +198,51 @@ var processItemsTax = (items, state, options) => {
191
198
  addTimeTotalTax = addTimeTotalTax.plus(addTimeTaxPerItem);
192
199
  }
193
200
  }
194
- originTax = originTax.plus(originalTaxPerItem.times(quantity)).plus(addTimeTotalTax);
195
- tax = tax.plus(discountedTaxPerItem.times(quantity)).plus(addTimeTotalTax);
201
+ let bundleTotalOriginTax = new import_decimal.default(0);
202
+ let bundleTotalTax = new import_decimal.default(0);
203
+ if (Array.isArray((_c = item._extend.other) == null ? void 0 : _c.bundle)) {
204
+ for (let bundleItem of item._extend.other.bundle) {
205
+ if (getBundleItemIsOriginalPrice(bundleItem)) {
206
+ const bundleQuantity = new import_decimal.default(bundleItem.quantity || 1);
207
+ const bundleUnitPrice = new import_decimal.default(
208
+ bundleItem.bundle_selling_price ?? bundleItem.price ?? 0
209
+ );
210
+ const bundleOriginalTaxPerItem = getProductItemTax(
211
+ {
212
+ ...bundleItem,
213
+ total: bundleUnitPrice.add((bundleItem == null ? void 0 : bundleItem.surcharge_fee) || 0).toNumber(),
214
+ quantity: 1
215
+ },
216
+ state,
217
+ { tax_rate, is_price_include_tax }
218
+ );
219
+ let bundleItemDiscount = new import_decimal.default(0);
220
+ if (productExpectAmount > 0) {
221
+ bundleItemDiscount = bundleUnitPrice.dividedBy(productExpectAmount).times(shopDiscount);
222
+ }
223
+ const bundleDiscountedUnitPrice = bundleUnitPrice.minus(bundleItemDiscount).add((bundleItem == null ? void 0 : bundleItem.surcharge_fee) || 0);
224
+ const bundleDiscountedTaxPerItem = getProductItemTax(
225
+ {
226
+ ...bundleItem,
227
+ total: bundleDiscountedUnitPrice.toNumber(),
228
+ quantity: 1
229
+ },
230
+ state,
231
+ { tax_rate, is_price_include_tax }
232
+ );
233
+ bundleItem.original_tax_fee = new import_decimal.default(bundleOriginalTaxPerItem).toNumber();
234
+ bundleItem.tax_fee = new import_decimal.default(bundleDiscountedTaxPerItem).toNumber();
235
+ bundleTotalOriginTax = bundleTotalOriginTax.plus(bundleOriginalTaxPerItem.times(bundleQuantity));
236
+ bundleTotalTax = bundleTotalTax.plus(bundleDiscountedTaxPerItem.times(bundleQuantity));
237
+ }
238
+ }
239
+ }
240
+ const original_tax_fee = originalTaxPerItem.add(bundleTotalOriginTax);
241
+ const tax_fee = maxDiscountedTaxPerItem.add(bundleTotalTax);
242
+ item._extend.original_tax_fee = original_tax_fee.toNumber();
243
+ item._extend.tax_fee = tax_fee.toNumber();
244
+ originTax = originTax.plus(original_tax_fee.times(quantity)).plus(addTimeTotalTax);
245
+ tax = tax.plus(tax_fee.times(quantity)).plus(addTimeTotalTax);
196
246
  }
197
247
  return { originTax, tax };
198
248
  };
@@ -253,7 +303,7 @@ var isProductMatchSurchargeCondition = (item, options) => {
253
303
  }
254
304
  const isInScheduleByDate = (_a = options.ScheduleModule) == null ? void 0 : _a.isInScheduleByDate;
255
305
  const { surchargeConfig, scheduleById = {} } = options;
256
- const { startDate, other, isCustomItem } = item._extend;
306
+ const { startDate, product_id, isCustomItem } = item;
257
307
  const {
258
308
  open_product = 0,
259
309
  // 1 | 0
@@ -277,7 +327,6 @@ var isProductMatchSurchargeCondition = (item, options) => {
277
327
  if (isCustomItem) {
278
328
  isProductMatch = false;
279
329
  } else {
280
- const product_id = other == null ? void 0 : other.product_id;
281
330
  isProductMatch = available_product_ids.includes(product_id);
282
331
  }
283
332
  }
@@ -307,8 +356,71 @@ var isProductMatchSurchargeCondition = (item, options) => {
307
356
  }
308
357
  return isProductMatch && isScheduleMatch;
309
358
  };
359
+ var getBundleItemIsOriginalPrice = (item) => {
360
+ return (item == null ? void 0 : item.price_type) === "markup" && (item == null ? void 0 : item.price_type_ext) === "product_price";
361
+ };
362
+ var getBundleItemIsMarkupPrice = (item) => {
363
+ return (item == null ? void 0 : item.price_type) === "markup" && ((item == null ? void 0 : item.price_type_ext) === "" || !(item == null ? void 0 : item.price_type_ext));
364
+ };
365
+ var getBundleItemIsDiscountPrice = (item) => {
366
+ return (item == null ? void 0 : item.price_type) === "markdown" && ((item == null ? void 0 : item.price_type_ext) === "" || !(item == null ? void 0 : item.price_type_ext));
367
+ };
368
+ var getBundleItemIsMarkupOrDiscountPrice = (item) => {
369
+ return getBundleItemIsMarkupPrice(item) || getBundleItemIsDiscountPrice(item);
370
+ };
371
+ var getDiscountAmount = (discounts) => {
372
+ return (discounts || []).reduce((total, discount) => {
373
+ return total.add(new import_decimal.default(discount.amount || 0));
374
+ }, new import_decimal.default(0)).toNumber();
375
+ };
376
+ var getMainProductTotal = (item) => {
377
+ var _a, _b, _c, _d, _e, _f;
378
+ let total = new import_decimal.default(((_a = item._extend) == null ? void 0 : _a.main_product_selling_price) ?? ((_b = item == null ? void 0 : item.metadata) == null ? void 0 : _b.main_product_selling_price) ?? item._extend.price ?? 0);
379
+ if (((_c = item._extend.other) == null ? void 0 : _c.option) && Array.isArray((_d = item._extend.other) == null ? void 0 : _d.option)) {
380
+ total = total.add((_e = item._extend.other) == null ? void 0 : _e.option.reduce((t, option) => {
381
+ return t.add(new import_decimal.default(option.price || 0).mul(option.num || 1));
382
+ }, new import_decimal.default(0)));
383
+ }
384
+ for (let bundleItem of ((_f = item._extend.other) == null ? void 0 : _f.bundle) || []) {
385
+ if (getBundleItemIsMarkupOrDiscountPrice(bundleItem)) {
386
+ const discountAmount = getDiscountAmount(bundleItem.discount_list);
387
+ const bundleItemPrice = new import_decimal.default(bundleItem.bundle_selling_price ?? bundleItem.price ?? 0);
388
+ const bundleItemTotal = bundleItemPrice.minus(discountAmount);
389
+ total = total.add(bundleItemTotal);
390
+ }
391
+ }
392
+ return total.toNumber();
393
+ };
394
+ var clearSurchargeFee = (state) => {
395
+ var _a, _b;
396
+ const { service, addons } = state;
397
+ if (Array.isArray(service == null ? void 0 : service.value)) {
398
+ for (let item of service.value) {
399
+ item._extend.surcharge_fee = 0;
400
+ item._extend.relation_surcharge_ids = [];
401
+ for (let bundleItem of ((_a = item._extend.other) == null ? void 0 : _a.bundle) || []) {
402
+ bundleItem.surcharge_fee = 0;
403
+ bundleItem.relation_surcharge_ids = [];
404
+ }
405
+ for (let relationDetail of item._extend.relation_details || []) {
406
+ relationDetail.surcharge_fee = 0;
407
+ relationDetail.relation_surcharge_ids = [];
408
+ }
409
+ }
410
+ }
411
+ if (Array.isArray(addons == null ? void 0 : addons.value)) {
412
+ for (let item of addons.value) {
413
+ item._extend.surcharge_fee = 0;
414
+ item._extend.relation_surcharge_ids = [];
415
+ for (let bundleItem of ((_b = item._extend.other) == null ? void 0 : _b.bundle) || []) {
416
+ bundleItem.surcharge_fee = 0;
417
+ bundleItem.relation_surcharge_ids = [];
418
+ }
419
+ }
420
+ }
421
+ };
310
422
  var getSurcharge = (state, options) => {
311
- var _a;
423
+ var _a, _b, _c, _d, _e;
312
424
  const { isEdit, ScheduleModule, surcharge_list, scheduleById } = options;
313
425
  const { bookingDetail, bookingId } = state;
314
426
  if (!isEdit && bookingId) {
@@ -333,6 +445,7 @@ var getSurcharge = (state, options) => {
333
445
  }
334
446
  return [];
335
447
  }
448
+ clearSurchargeFee(state);
336
449
  const { service, addons } = state;
337
450
  if (!Array.isArray(surcharge_list) || !(surcharge_list == null ? void 0 : surcharge_list.length)) return [];
338
451
  const surchargeWithAmount = [];
@@ -343,24 +456,89 @@ var getSurcharge = (state, options) => {
343
456
  fixed = "0",
344
457
  id,
345
458
  type,
346
- description
459
+ description,
460
+ open_product
347
461
  } = surchargeConfig;
348
462
  const matchedItems = [];
349
463
  if (Array.isArray(service == null ? void 0 : service.value)) {
350
464
  for (let item of service.value) {
351
- if (isProductMatchSurchargeCondition(item, {
352
- surchargeConfig,
353
- scheduleById: scheduleById || {},
354
- ScheduleModule
355
- })) {
465
+ if (isProductMatchSurchargeCondition(
466
+ {
467
+ isCustomItem: item.isCustomItem,
468
+ startDate: item._extend.startDate,
469
+ product_id: item.product_id
470
+ },
471
+ {
472
+ surchargeConfig,
473
+ scheduleById: scheduleById || {},
474
+ ScheduleModule
475
+ }
476
+ )) {
477
+ const total = getMainProductTotal(item);
478
+ const mainQuantity = item._extend.quantity || 1;
356
479
  matchedItems.push({
357
- total: Number(item._extend.total),
358
- addTimeTotal: getRelationDetailsTotal(
359
- item._extend.relation_details || []
360
- ),
361
- quantity: item._extend.quantity || 1
480
+ total,
481
+ // addTimeTotal: getRelationDetailsTotal(
482
+ // item._extend.relation_details || []
483
+ // ),
484
+ isMain: true,
485
+ quantity: mainQuantity,
486
+ item,
487
+ mainQuantity
488
+ // 主商品的mainQuantity等于自己的quantity
362
489
  });
363
490
  }
491
+ for (let bundleItem of ((_b = item._extend.other) == null ? void 0 : _b.bundle) || []) {
492
+ if (getBundleItemIsOriginalPrice(bundleItem) && isProductMatchSurchargeCondition(
493
+ {
494
+ isCustomItem: false,
495
+ startDate: item._extend.startDate,
496
+ product_id: bundleItem._bundle_product_id
497
+ },
498
+ {
499
+ surchargeConfig,
500
+ scheduleById: scheduleById || {},
501
+ ScheduleModule
502
+ }
503
+ )) {
504
+ const mainQuantity = item._extend.quantity || 1;
505
+ matchedItems.push({
506
+ isMain: false,
507
+ total: Number(
508
+ bundleItem.bundle_selling_price ?? bundleItem.price ?? 0
509
+ ),
510
+ quantity: bundleItem.num || bundleItem.quantity || 1,
511
+ item: bundleItem,
512
+ mainQuantity
513
+ // 子商品的mainQuantity是所属主商品的quantity
514
+ });
515
+ }
516
+ }
517
+ for (let relationDetail of item._extend.relation_details || []) {
518
+ if (isProductMatchSurchargeCondition(
519
+ {
520
+ isCustomItem: false,
521
+ startDate: item._extend.startDate,
522
+ product_id: relationDetail.product_id
523
+ },
524
+ {
525
+ surchargeConfig,
526
+ scheduleById: scheduleById || {},
527
+ ScheduleModule
528
+ }
529
+ )) {
530
+ matchedItems.push({
531
+ isMain: false,
532
+ total: Number(
533
+ (relationDetail == null ? void 0 : relationDetail.price) || ((_c = relationDetail == null ? void 0 : relationDetail.metadata) == null ? void 0 : _c.main_product_attached_bundle_selling_price)
534
+ ),
535
+ quantity: relationDetail.num || relationDetail.quantity || 1,
536
+ item: relationDetail,
537
+ mainQuantity: 1
538
+ // 加时商品不受主商品数量影响
539
+ });
540
+ }
541
+ }
364
542
  }
365
543
  }
366
544
  if (Array.isArray(addons == null ? void 0 : addons.value)) {
@@ -371,28 +549,84 @@ var getSurcharge = (state, options) => {
371
549
  ScheduleModule
372
550
  })) {
373
551
  matchedItems.push({
552
+ isMain: true,
374
553
  total: Number(item._extend.total),
375
- quantity: item._extend.quantity || 1
554
+ quantity: item._extend.quantity || 1,
555
+ item,
556
+ mainQuantity: 1
557
+ // addons独立商品,mainQuantity为1
376
558
  });
377
559
  }
378
560
  }
379
561
  }
380
562
  let finalAmount = 0;
563
+ const productCount = matchedItems.reduce((total, item) => {
564
+ if (item.isMain) {
565
+ return total + (item.quantity || 1);
566
+ } else {
567
+ return total + (item.quantity || 1) * (item.mainQuantity || 1);
568
+ }
569
+ }, 0);
570
+ let fixedTotal = new import_decimal.default(0);
571
+ let productTotalSurcharge = new import_decimal.default(0);
381
572
  if (matchedItems.length > 0) {
382
573
  let configTotal = new import_decimal.default(0);
383
- if (percentage && new import_decimal.default(percentage).gt(0)) {
574
+ if (fixed && new import_decimal.default(fixed).gt(0)) {
575
+ configTotal = configTotal.plus(fixed);
576
+ }
577
+ if (percentage && new import_decimal.default(percentage).gt(0) || fixed) {
384
578
  const percentageRate = new import_decimal.default(percentage);
385
- for (let item of matchedItems) {
579
+ for (let [index, item] of matchedItems.entries()) {
580
+ const isLast = index === matchedItems.length - 1;
386
581
  const itemPrice = new import_decimal.default(Math.max(0, item.total || 0));
387
- const itemQuantity = new import_decimal.default(item.quantity || 1);
582
+ const itemQuantity = new import_decimal.default(item.isMain ? item.quantity || 1 : item.quantity * item.mainQuantity || 1);
388
583
  const addTimeTotal = new import_decimal.default(item.addTimeTotal || 0);
389
- const itemSurcharge = itemPrice.times(itemQuantity).plus(addTimeTotal).times(percentageRate);
390
- configTotal = configTotal.plus(itemSurcharge);
584
+ const itemTotalSurcharge = itemPrice.times(itemQuantity).plus(addTimeTotal).times(percentageRate);
585
+ configTotal = configTotal.plus(itemTotalSurcharge);
586
+ const itemSurcharge = itemPrice.times(percentageRate);
587
+ const fixedSurcharge = new import_decimal.default(1).div(productCount).times(fixed).times(100).floor().div(100).toFixed(2);
588
+ const quantity = item.isMain ? item.quantity : item.quantity * item.mainQuantity;
589
+ fixedTotal = fixedTotal.plus(new import_decimal.default(fixedSurcharge).times(quantity).toNumber());
590
+ if (isLast && fixedTotal.gt(0)) {
591
+ const remaining = new import_decimal.default(fixed).minus(fixedTotal).toNumber();
592
+ if (remaining > 0) {
593
+ productTotalSurcharge = productTotalSurcharge.plus(remaining);
594
+ if (item.isMain) {
595
+ item.item._extend.surcharge_rounding_remainder = remaining;
596
+ } else {
597
+ item.item.surcharge_rounding_remainder = remaining;
598
+ }
599
+ }
600
+ }
601
+ if (open_product !== 0) {
602
+ if (item.isMain) {
603
+ const originSurchargeFee = new import_decimal.default(item.item._extend.surcharge_fee || 0);
604
+ const surchargeFee = originSurchargeFee.plus(itemSurcharge).plus(fixedSurcharge).toDecimalPlaces(2, import_decimal.default.ROUND_DOWN).toNumber();
605
+ productTotalSurcharge = productTotalSurcharge.plus(new import_decimal.default(surchargeFee).times(itemQuantity).toNumber());
606
+ item.item._extend.surcharge_fee = surchargeFee;
607
+ item.item._extend.relation_surcharge_ids = [...((_d = item.item._extend) == null ? void 0 : _d.relation_surcharge_ids) || [], id];
608
+ } else {
609
+ const originSurchargeFee = new import_decimal.default(item.item.surcharge_fee || 0);
610
+ const surchargeFee = originSurchargeFee.plus(itemSurcharge).plus(fixedSurcharge).toDecimalPlaces(2, import_decimal.default.ROUND_DOWN).toNumber();
611
+ productTotalSurcharge = productTotalSurcharge.plus(new import_decimal.default(surchargeFee).times(itemQuantity).toNumber());
612
+ item.item.surcharge_fee = surchargeFee;
613
+ item.item.relation_surcharge_ids = [...((_e = item.item) == null ? void 0 : _e.relation_surcharge_ids) || [], id];
614
+ }
615
+ }
616
+ if (isLast && configTotal.minus(productTotalSurcharge).gt(0)) {
617
+ const configTotalRounded = configTotal.toDecimalPlaces(2, import_decimal.default.ROUND_HALF_UP);
618
+ if (item.isMain) {
619
+ let newRoundingRemainder = new import_decimal.default(item.item._extend.surcharge_rounding_remainder || 0);
620
+ newRoundingRemainder = newRoundingRemainder.plus(configTotalRounded.minus(productTotalSurcharge));
621
+ item.item._extend.surcharge_rounding_remainder = newRoundingRemainder.toNumber();
622
+ } else {
623
+ let newRoundingRemainder = new import_decimal.default(item.item.surcharge_rounding_remainder || 0);
624
+ newRoundingRemainder = newRoundingRemainder.plus(configTotalRounded.minus(productTotalSurcharge));
625
+ item.item.surcharge_rounding_remainder = newRoundingRemainder.toNumber();
626
+ }
627
+ }
391
628
  }
392
629
  }
393
- if (fixed && new import_decimal.default(fixed).gt(0)) {
394
- configTotal = configTotal.plus(fixed);
395
- }
396
630
  finalAmount = configTotal.toDecimalPlaces(2, import_decimal.default.ROUND_HALF_UP).toNumber();
397
631
  }
398
632
  const name = surchargeConfig.name || {};
@@ -410,7 +644,10 @@ var getSurcharge = (state, options) => {
410
644
  type: "default",
411
645
  fixed,
412
646
  amount: finalAmount,
413
- percentage
647
+ percentage,
648
+ metadata: {
649
+ open_product
650
+ }
414
651
  });
415
652
  }
416
653
  return surchargeWithAmount;
@@ -520,6 +757,19 @@ var getSumTotal = (state, options) => {
520
757
  state,
521
758
  options
522
759
  });
760
+ const { productExpectAmount: productExpectAmountWithoutDiscount } = getProductExpectAmount(
761
+ state,
762
+ options.isEdit,
763
+ true
764
+ );
765
+ const originExpectAmountWithoutDiscount = getExpectAmount({
766
+ price: productExpectAmountWithoutDiscount,
767
+ tax: originTax,
768
+ surchargeAmount,
769
+ shopDiscount: 0,
770
+ state,
771
+ options
772
+ });
523
773
  const sumTotalAmount = getSumTotalAmount({ expectAmount, roundingAmount });
524
774
  const sumTotalAmountDecimal = new import_decimal.default((0, import_utils2.formatAmount)(sumTotalAmount, 2, "") || 0);
525
775
  const orderPaidAmountDecimal = new import_decimal.default(orderPaidAmount || 0);
@@ -546,7 +796,9 @@ var getSumTotal = (state, options) => {
546
796
  totalRefundAmount,
547
797
  dueAmount,
548
798
  roundingAmount,
549
- originExpectAmount
799
+ originExpectAmount,
800
+ // 订单原价 不包含整单折扣 不包含商品券折扣卡抵扣
801
+ originExpectAmountWithoutDiscount
550
802
  };
551
803
  };
552
804
  // Annotate the CommonJS export names for ESM import in node:
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  /**
3
4
  * @title: 底部
@@ -62,7 +62,7 @@ var import_ahooks = require("ahooks");
62
62
  var import_lodash = require("lodash");
63
63
  var import_useShopDiscountModule = require("../../../ticketBooking/hooks/pisellos/useShopDiscountModule");
64
64
  var Footer = (props) => {
65
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
65
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
66
66
  const { state, buttons, dispatch, source } = props;
67
67
  const [showDetail, setShowDetail] = (0, import_react.useState)(false);
68
68
  const [loading, setLoading] = (0, import_react.useState)(false);
@@ -467,7 +467,11 @@ var Footer = (props) => {
467
467
  (_l = (_k = state.client) == null ? void 0 : _k.value) == null ? void 0 : _l.id
468
468
  ]);
469
469
  const handleCheckoutInternal = async () => {
470
- (0, import_PaymentResultToast.closeAllPaymentResultToasts)();
470
+ var _a2, _b2, _c2;
471
+ const isToastMode = ((_c2 = (_b2 = (_a2 = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a2.config) == null ? void 0 : _b2.payment_setting) == null ? void 0 : _c2.payment_result_display_mode) !== "modal";
472
+ if (isToastMode) {
473
+ (0, import_PaymentResultToast.closeAllPaymentResultToasts)();
474
+ }
471
475
  const isNewOrder = !state.bookingId;
472
476
  if (isEdit) {
473
477
  if ((0, import_utils2.isDayBooking)(state)) {
@@ -494,18 +498,18 @@ var Footer = (props) => {
494
498
  setIsPaymentModalOpen(true);
495
499
  setCheckoutLoading(false);
496
500
  setPaymentCallback(() => (paymentResult) => {
497
- var _a2, _b2, _c2, _d2;
501
+ var _a3, _b3, _c3, _d2;
498
502
  console.log("Payment result:", paymentResult);
499
503
  setIsPaymentModalOpen(false);
500
504
  if ((paymentResult == null ? void 0 : paymentResult.status) === "success") {
501
505
  console.log("Payment completed successfully");
502
- (_b2 = (_a2 = window == null ? void 0 : window.shopApi) == null ? void 0 : _a2.bookingTicket) == null ? void 0 : _b2.clearAllCart();
506
+ (_b3 = (_a3 = window == null ? void 0 : window.shopApi) == null ? void 0 : _a3.bookingTicket) == null ? void 0 : _b3.clearAllCart();
503
507
  setPaymentModalData(null);
504
508
  setPaymentCallback(null);
505
509
  } else if ((paymentResult == null ? void 0 : paymentResult.status) === "cancelled") {
506
510
  console.log("Payment cancelled");
507
511
  if (res == null ? void 0 : res.order_id) {
508
- (_d2 = (_c2 = window == null ? void 0 : window.shopApi) == null ? void 0 : _c2.booking) == null ? void 0 : _d2.voidBooking(res.order_id);
512
+ (_d2 = (_c3 = window == null ? void 0 : window.shopApi) == null ? void 0 : _c3.booking) == null ? void 0 : _d2.voidBooking(res.order_id);
509
513
  }
510
514
  setPaymentModalData(null);
511
515
  setPaymentCallback(null);
@@ -596,8 +600,11 @@ var Footer = (props) => {
596
600
  messageShow = true,
597
601
  noSubmit = false
598
602
  }) => {
599
- var _a2, _b2, _c2, _d2, _e2;
600
- (0, import_PaymentResultToast.closeAllPaymentResultToasts)();
603
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2;
604
+ const isToastMode = ((_c2 = (_b2 = (_a2 = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a2.config) == null ? void 0 : _b2.payment_setting) == null ? void 0 : _c2.payment_result_display_mode) !== "modal";
605
+ if (isToastMode) {
606
+ (0, import_PaymentResultToast.closeAllPaymentResultToasts)();
607
+ }
601
608
  if ((0, import_utils2.isDayBooking)(state)) {
602
609
  const isHasDayProducts = handleDaySubmit();
603
610
  if (isHasDayProducts) return;
@@ -612,7 +619,7 @@ var Footer = (props) => {
612
619
  const createApi = state.renderType === "eventBooking" ? import_serve2.createEventBooking : createBooking;
613
620
  let saveOtherValue = {};
614
621
  if (type === "save") {
615
- saveOtherValue = await ((_a2 = state == null ? void 0 : state.onSave) == null ? void 0 : _a2.call(state, state.client)) || {};
622
+ saveOtherValue = await ((_d2 = state == null ? void 0 : state.onSave) == null ? void 0 : _d2.call(state, state.client)) || {};
616
623
  }
617
624
  try {
618
625
  let callbackData = null;
@@ -658,7 +665,7 @@ var Footer = (props) => {
658
665
  { key: "日期", value: (0, import_dayjs.default)().format("YYYY-MM-DD HH:mm") },
659
666
  {
660
667
  key: "店铺id",
661
- value: (_e2 = (_d2 = (_c2 = (_b2 = store == null ? void 0 : store.getState) == null ? void 0 : _b2.call(store)) == null ? void 0 : _c2.global) == null ? void 0 : _d2.globalConfig) == null ? void 0 : _e2.id
668
+ value: (_h2 = (_g2 = (_f2 = (_e2 = store == null ? void 0 : store.getState) == null ? void 0 : _e2.call(store)) == null ? void 0 : _f2.global) == null ? void 0 : _g2.globalConfig) == null ? void 0 : _h2.id
662
669
  },
663
670
  {
664
671
  key: "shopApi",
@@ -1413,8 +1420,20 @@ var Footer = (props) => {
1413
1420
  data: paymentModalData,
1414
1421
  callback: paymentCallback || void 0,
1415
1422
  setEditCartMode,
1416
- state,
1417
- dispatch,
1423
+ paymentResultDisplayMode: (_s = (_r = (_q = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _q.config) == null ? void 0 : _r.payment_setting) == null ? void 0 : _s.payment_result_display_mode,
1424
+ shopDiscount: state.shop_discount,
1425
+ client: (_t = state.client) == null ? void 0 : _t.value,
1426
+ currentTotalPrice: total.productAmount,
1427
+ onChangeShopDiscount: (discount) => {
1428
+ dispatch({
1429
+ type: "setState",
1430
+ payload: {
1431
+ shop_discount: discount
1432
+ }
1433
+ });
1434
+ },
1435
+ onChangeOrderNote: handleNoteConfirm,
1436
+ onDeleteOrderNote: handleNoteDelete,
1418
1437
  onClose: (reset) => {
1419
1438
  setIsPaymentModalOpen(false);
1420
1439
  setPaymentModalData(null);
@@ -16,6 +16,11 @@ export declare const formatProductOption: (option: any) => any;
16
16
  * @Date: 2024-02-19 09:26
17
17
  */
18
18
  export declare const formatProductBundle: (bundle: any) => any;
19
+ /**
20
+ * 获取子商品折扣信息
21
+ * @param item
22
+ */
23
+ export declare const getBundleDiscountList: (bundle: any[]) => any[];
19
24
  export interface ResourceItem {
20
25
  [key: string]: any;
21
26
  }
@@ -37,5 +42,19 @@ export declare const checkResourcesFormat: (resources: any[], service: any, isCh
37
42
  * @Date: 2024-12-23 12:05
38
43
  */
39
44
  export declare const formatProductPrice: (item: any) => number;
45
+ /**
46
+ * checkout2.0: 单个数量商品总价(原价),包含所有套餐子商品金额、报价单等等
47
+ * @param item
48
+ * @returns
49
+ */
50
+ export declare const formatOriginalPrice: (item: any) => number;
51
+ /**
52
+ * checkout2.0: 商品维度折扣后价格, original_price - 商品折扣金额(商品手动折扣等等)
53
+ * @param item
54
+ * @returns
55
+ */
56
+ export declare const formatSellingPrice: (item: any) => number;
57
+ export declare const getSourceProductPrice: (item: any) => number;
58
+ export declare const getMainProductSellingPrice: (item: any) => number | undefined;
40
59
  export declare const formatValues: (state: any) => any;
41
60
  export declare const checkHolderIsError: (state: any) => any;