@pisell/private-materials 6.6.25 → 6.6.26

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 (498) 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/render/default/view.css +1 -1
  7. package/build/lowcode/render/default/view.js +1 -1
  8. package/build/lowcode/view.css +1 -1
  9. package/build/lowcode/view.js +1 -1
  10. package/es/businessModel/SalesModel/index.d.ts +0 -1
  11. package/es/components/Sales/Cart/utils.d.ts +63 -0
  12. package/es/components/Sales/Summary/utils.d.ts +51 -0
  13. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  14. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  15. package/es/components/appointmentBooking/components/Voucher/index.js +22 -7
  16. package/es/components/appointmentBooking/locales.d.ts +363 -0
  17. package/es/components/booking/addons/index.js +3 -2
  18. package/es/components/booking/components/footer/amount.js +1 -1
  19. package/es/components/booking/components/footer/index.js +7 -0
  20. package/es/components/booking/components/footer/utils.d.ts +1 -1
  21. package/es/components/booking/components/footer/utils.js +7 -5
  22. package/es/components/booking/components/voucher/index.js +6 -0
  23. package/es/components/booking/components/voucher/index.less +4 -1
  24. package/es/components/booking/components/voucherModal/index.less +1 -0
  25. package/es/components/booking/editBookingModal/utils.d.ts +12 -0
  26. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  27. package/es/components/booking/forms/serve.d.ts +18 -0
  28. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  29. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  30. package/es/components/booking/info/client/serve.d.ts +2 -0
  31. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  32. package/es/components/booking/info/hooks/useHolderConfig.d.ts +10 -0
  33. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  34. package/es/components/booking/info/index.d.ts +0 -1
  35. package/es/components/booking/info/pet/serve.d.ts +1 -0
  36. package/es/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
  37. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  38. package/es/components/booking/info/service/serve.d.ts +34 -0
  39. package/es/components/booking/info/service2/utils.d.ts +1 -1
  40. package/es/components/booking/info2/cartClientCard/locales.d.ts +21 -0
  41. package/es/components/booking/info2/cartClientCard/types.d.ts +18 -0
  42. package/es/components/booking/info2/cartClientCard/utils.d.ts +3 -0
  43. package/es/components/booking/info2/serve.d.ts +6 -0
  44. package/es/components/booking/info2/service/editService/index.js +33 -2
  45. package/es/components/booking/locales.d.ts +951 -0
  46. package/es/components/checkout/PaymentModal.js +42 -2
  47. package/es/components/checkout/components/AdditionalModule/locales.d.ts +36 -0
  48. package/es/components/checkout/components/PaymentResultToast/types.d.ts +59 -0
  49. package/es/components/checkout/components/PaymentResultToast/utils.d.ts +44 -0
  50. package/es/components/checkout/components/ScrollableList/index.d.ts +5 -0
  51. package/es/components/checkout/components/ScrollableList/types.d.ts +53 -0
  52. package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
  53. package/es/components/checkout/components/WalletPassModule/index.js +1 -0
  54. package/es/components/checkout/components/WalletPassModule/types.d.ts +134 -0
  55. package/es/components/checkout/components/WalletPassModule/utils.d.ts +1 -0
  56. package/es/components/checkout/components/WalletPassModule/utils.js +17 -3
  57. package/es/components/checkout/constants.d.ts +2 -0
  58. package/es/components/checkout/hooks/usePaymentLogger.d.ts +2 -0
  59. package/es/components/checkout/hooks/useWalletPass.d.ts +2 -2
  60. package/es/components/checkout/hooks/useWalletPass.js +322 -194
  61. package/es/components/checkout/locales.d.ts +513 -0
  62. package/es/components/checkout/styles.d.ts +67 -0
  63. package/es/components/checkout/types.d.ts +130 -0
  64. package/es/components/checkout/utils.d.ts +3 -0
  65. package/es/components/eftposPay/aggregatePayment/index.d.ts +3 -0
  66. package/es/components/eftposPay/aggregatePayment/types.d.ts +106 -0
  67. package/es/components/eftposPay/amount.d.ts +1 -1
  68. package/es/components/eftposPay/app.d.ts +0 -1
  69. package/es/components/eftposPay/component/fail/failCustom.js +1 -1
  70. package/es/components/eftposPay/const.d.ts +195 -0
  71. package/es/components/eftposPay/device.d.ts +1 -1
  72. package/es/components/eftposPay/hooks.d.ts +2 -2
  73. package/es/components/eftposPay/huifu/hooks.d.ts +25 -0
  74. package/es/components/eftposPay/huifu/types.d.ts +14 -0
  75. package/es/components/eftposPay/locales.d.ts +366 -0
  76. package/es/components/eftposPay/manufacturer.d.ts +8 -0
  77. package/es/components/eftposPay/payo/payment.d.ts +66 -0
  78. package/es/components/eftposPay/store/index.d.ts +362 -0
  79. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  80. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  81. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  82. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  83. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  84. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  85. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  86. package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +13 -0
  87. package/es/components/list/components/ListItemSkeleton/index.d.ts +2 -0
  88. package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +18 -0
  89. package/es/components/list/components/ScrollLoader/index.d.ts +2 -0
  90. package/es/components/list/components/Tab/Tab.d.ts +5 -0
  91. package/es/components/list/components/Tab/index.d.ts +2 -0
  92. package/es/components/list/components/Tab/types.d.ts +14 -0
  93. package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +11 -0
  94. package/es/components/list/components/TabSkeleton/index.d.ts +2 -0
  95. package/es/components/list/components/WaterfallList/WaterfallList.d.ts +33 -0
  96. package/es/components/list/components/WaterfallList/index.d.ts +2 -0
  97. package/es/components/list/hooks/index.d.ts +5 -0
  98. package/es/components/list/hooks/useDevice.d.ts +24 -0
  99. package/es/components/list/hooks/useListState.d.ts +43 -0
  100. package/es/components/list/hooks/useWaterfall.d.ts +34 -0
  101. package/es/components/list/locales.d.ts +66 -0
  102. package/es/components/list/types.d.ts +177 -0
  103. package/es/components/list/utils/getText.d.ts +53 -0
  104. package/es/components/list/utils/index.d.ts +4 -0
  105. package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -1
  106. package/es/components/pay/toB/components/Content/utils.d.ts +16 -0
  107. package/es/components/pay/toB/hooks.d.ts +12 -0
  108. package/es/components/pay/toB/locales.d.ts +54 -0
  109. package/es/components/pay/toB/store/context.d.ts +3 -0
  110. package/es/components/pay/toB/store/index.d.ts +3 -0
  111. package/es/components/pay/toB/store/provider.d.ts +4 -0
  112. package/es/components/pay/toB/types/index.d.ts +61 -0
  113. package/es/components/pay/toB/types/storeTypes.d.ts +143 -0
  114. package/es/components/pay/toC/PaymentList/utils.d.ts +36 -0
  115. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +7 -0
  116. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +3 -0
  117. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +3 -0
  118. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
  119. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  120. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  121. package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
  122. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +166 -145
  123. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  124. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +3 -3
  125. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  126. package/es/components/pay/toC/WalletPassBlock/index.js +3 -1
  127. package/es/components/pay/toC/index.js +66 -27
  128. package/es/components/pay/toC/locales.d.ts +307 -0
  129. package/es/components/pay/toC/model.d.ts +1 -0
  130. package/es/components/pay/toC/serve.d.ts +18 -0
  131. package/es/components/pay/toC/serve.js +29 -1
  132. package/es/components/pay/toC/status.d.ts +13 -0
  133. package/es/components/pay/toC/utils.d.ts +2 -2
  134. package/es/components/pay/toC/utils.js +4 -0
  135. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  136. package/es/components/ruleSetting/locales.d.ts +48 -0
  137. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  138. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  139. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  140. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  141. package/es/components/shoppingCart/locales.d.ts +36 -0
  142. package/es/components/shoppingCart/type.d.ts +50 -0
  143. package/es/components/subTotal/locales.d.ts +42 -0
  144. package/es/components/systemSettings/registry/components/docs/images/image-1.png +0 -0
  145. package/es/components/systemSettings/registry/components/docs/images/image-2.png +0 -0
  146. package/es/components/systemSettings/registry/components/docs/images/image-3.png +0 -0
  147. package/es/components/systemSettings/registry/components/docs/images/image-4.png +0 -0
  148. package/es/components/systemSettings/registry/components/docs/images/image-5.png +0 -0
  149. package/es/components/systemSettings/registry/components/docs/images/image-6.png +0 -0
  150. package/es/components/systemSettings/registry/components/docs/images/image-7.png +0 -0
  151. package/es/components/systemSettings/registry/components/docs/images/image-8.png +0 -0
  152. package/es/components/systemSettings/registry/components/docs/images/image.png +0 -0
  153. package/es/components/systemSettings/registry/locales.d.ts +272 -0
  154. package/es/components/systemSettings/registry/services.d.ts +77 -0
  155. package/es/components/systemSettings/registry/types.d.ts +126 -0
  156. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  157. package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
  158. package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
  159. package/es/components/ticketBooking/components/addServiceVariant/addService.js +7 -4
  160. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  161. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
  162. package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  163. package/es/components/ticketBooking/context/IsActiveContext.d.ts +26 -0
  164. package/es/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
  165. package/es/components/ticketBooking/context/index.d.ts +2 -0
  166. package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
  167. package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  168. package/es/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +6 -0
  169. package/es/components/ticketBooking/locales.d.ts +198 -0
  170. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  171. package/es/components/ticketBooking/utils/productCache.d.ts +75 -0
  172. package/es/components/wallet/utils.d.ts +48 -0
  173. package/es/components/walletList/locales.d.ts +27 -0
  174. package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
  175. package/es/components/workSpaceList/components/Card/constants.d.ts +2 -0
  176. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  177. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  178. package/es/hooks/useEngineContext.d.ts +3 -0
  179. package/es/hooks/useLogger.d.ts +2 -0
  180. package/es/hooks/useToast.d.ts +2 -0
  181. package/es/hooks/useTranslationOriginal.d.ts +1 -0
  182. package/es/hooks/useWindowSize.d.ts +5 -0
  183. package/es/plus/clientCard/locales.d.ts +18 -0
  184. package/es/plus/clientCard/types.d.ts +134 -0
  185. package/es/plus/clientCard/utils.d.ts +8 -0
  186. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
  187. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
  188. package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
  189. package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
  190. package/es/plus/clinetSearch/locales.d.ts +108 -0
  191. package/es/plus/clinetSearch/types.d.ts +70 -0
  192. package/es/plus/noteModal/locales.d.ts +33 -0
  193. package/es/plus/noteModal/types.d.ts +19 -0
  194. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
  195. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
  196. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
  197. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
  198. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
  199. package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -1
  200. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  201. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
  202. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -1
  203. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  204. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
  205. package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -1
  206. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  207. package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -1
  208. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
  209. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  210. package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +6 -0
  211. package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -1
  212. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
  213. package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +6 -0
  214. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +6 -0
  215. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +3 -0
  216. package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
  217. package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +42 -0
  218. package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +162 -0
  219. package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +298 -0
  220. package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +9 -0
  221. package/es/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
  222. package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
  223. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
  224. package/es/plus/selectHolder/locales.d.ts +24 -0
  225. package/es/plus/selectHolder/types.d.ts +104 -0
  226. package/es/plus/selectHolder/utils.d.ts +9 -0
  227. package/es/plus/walletEditor/locales.d.ts +135 -0
  228. package/es/plus/walletPassGallery/locales.d.ts +285 -0
  229. package/es/plus/walletPassGallery/utils.d.ts +48 -0
  230. package/es/pro/Login2.0/shared/types.d.ts +232 -0
  231. package/es/pro/NumberKeyboardPopover/types.d.ts +31 -0
  232. package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
  233. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
  234. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
  235. package/es/pro/comprehensiveSearch/locales.d.ts +15 -0
  236. package/es/pro/comprehensiveSearch/types.d.ts +32 -0
  237. package/es/pro/multiDayTimeSelect/types.d.ts +28 -0
  238. package/es/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
  239. package/es/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
  240. package/es/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
  241. package/es/pro/pisellPriceKeyboardPopover/types.d.ts +33 -0
  242. package/es/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
  243. package/es/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +39 -0
  244. package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +98 -0
  245. package/es/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +42 -0
  246. package/es/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
  247. package/es/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +45 -0
  248. package/es/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
  249. package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +18 -0
  250. package/es/pro/priceKeyboard/hooks/rightItems.d.ts +0 -1
  251. package/es/pro/skuDetailModal/locales.d.ts +48 -0
  252. package/es/pro/skuDetailModal/types.d.ts +348 -0
  253. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  254. package/lib/components/Sales/Cart/utils.d.ts +63 -0
  255. package/lib/components/Sales/Summary/utils.d.ts +51 -0
  256. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  257. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  258. package/lib/components/appointmentBooking/components/Voucher/index.js +10 -2
  259. package/lib/components/appointmentBooking/locales.d.ts +363 -0
  260. package/lib/components/booking/addons/index.js +3 -2
  261. package/lib/components/booking/components/footer/amount.js +1 -1
  262. package/lib/components/booking/components/footer/index.js +9 -0
  263. package/lib/components/booking/components/footer/utils.d.ts +1 -1
  264. package/lib/components/booking/components/footer/utils.js +5 -3
  265. package/lib/components/booking/components/voucher/index.js +6 -0
  266. package/lib/components/booking/components/voucher/index.less +4 -1
  267. package/lib/components/booking/components/voucherModal/index.less +1 -0
  268. package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
  269. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  270. package/lib/components/booking/forms/serve.d.ts +18 -0
  271. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  272. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  273. package/lib/components/booking/info/client/serve.d.ts +2 -0
  274. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  275. package/lib/components/booking/info/hooks/useHolderConfig.d.ts +10 -0
  276. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  277. package/lib/components/booking/info/index.d.ts +0 -1
  278. package/lib/components/booking/info/pet/serve.d.ts +1 -0
  279. package/lib/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
  280. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  281. package/lib/components/booking/info/service/serve.d.ts +34 -0
  282. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  283. package/lib/components/booking/info2/cartClientCard/locales.d.ts +21 -0
  284. package/lib/components/booking/info2/cartClientCard/types.d.ts +18 -0
  285. package/lib/components/booking/info2/cartClientCard/utils.d.ts +3 -0
  286. package/lib/components/booking/info2/serve.d.ts +6 -0
  287. package/lib/components/booking/info2/service/editService/index.js +48 -24
  288. package/lib/components/booking/locales.d.ts +951 -0
  289. package/lib/components/checkout/PaymentModal.js +24 -1
  290. package/lib/components/checkout/components/AdditionalModule/locales.d.ts +36 -0
  291. package/lib/components/checkout/components/PaymentResultToast/types.d.ts +59 -0
  292. package/lib/components/checkout/components/PaymentResultToast/utils.d.ts +44 -0
  293. package/lib/components/checkout/components/ScrollableList/index.d.ts +5 -0
  294. package/lib/components/checkout/components/ScrollableList/types.d.ts +53 -0
  295. package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
  296. package/lib/components/checkout/components/WalletPassModule/index.js +1 -0
  297. package/lib/components/checkout/components/WalletPassModule/types.d.ts +134 -0
  298. package/lib/components/checkout/components/WalletPassModule/utils.d.ts +1 -0
  299. package/lib/components/checkout/components/WalletPassModule/utils.js +18 -2
  300. package/lib/components/checkout/constants.d.ts +2 -0
  301. package/lib/components/checkout/hooks/usePaymentLogger.d.ts +2 -0
  302. package/lib/components/checkout/hooks/useWalletPass.d.ts +2 -2
  303. package/lib/components/checkout/hooks/useWalletPass.js +160 -107
  304. package/lib/components/checkout/locales.d.ts +513 -0
  305. package/lib/components/checkout/styles.d.ts +67 -0
  306. package/lib/components/checkout/types.d.ts +130 -0
  307. package/lib/components/checkout/utils.d.ts +3 -0
  308. package/lib/components/eftposPay/aggregatePayment/index.d.ts +3 -0
  309. package/lib/components/eftposPay/aggregatePayment/types.d.ts +106 -0
  310. package/lib/components/eftposPay/amount.d.ts +1 -1
  311. package/lib/components/eftposPay/app.d.ts +0 -1
  312. package/lib/components/eftposPay/component/fail/failCustom.js +1 -1
  313. package/lib/components/eftposPay/const.d.ts +195 -0
  314. package/lib/components/eftposPay/device.d.ts +1 -1
  315. package/lib/components/eftposPay/hooks.d.ts +2 -2
  316. package/lib/components/eftposPay/huifu/hooks.d.ts +25 -0
  317. package/lib/components/eftposPay/huifu/types.d.ts +14 -0
  318. package/lib/components/eftposPay/locales.d.ts +366 -0
  319. package/lib/components/eftposPay/manufacturer.d.ts +8 -0
  320. package/lib/components/eftposPay/payo/payment.d.ts +66 -0
  321. package/lib/components/eftposPay/store/index.d.ts +362 -0
  322. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  323. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  324. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  325. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  326. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  327. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  328. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  329. package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +13 -0
  330. package/lib/components/list/components/ListItemSkeleton/index.d.ts +2 -0
  331. package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +18 -0
  332. package/lib/components/list/components/ScrollLoader/index.d.ts +2 -0
  333. package/lib/components/list/components/Tab/Tab.d.ts +5 -0
  334. package/lib/components/list/components/Tab/index.d.ts +2 -0
  335. package/lib/components/list/components/Tab/types.d.ts +14 -0
  336. package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +11 -0
  337. package/lib/components/list/components/TabSkeleton/index.d.ts +2 -0
  338. package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +33 -0
  339. package/lib/components/list/components/WaterfallList/index.d.ts +2 -0
  340. package/lib/components/list/hooks/index.d.ts +5 -0
  341. package/lib/components/list/hooks/useDevice.d.ts +24 -0
  342. package/lib/components/list/hooks/useListState.d.ts +43 -0
  343. package/lib/components/list/hooks/useWaterfall.d.ts +34 -0
  344. package/lib/components/list/locales.d.ts +66 -0
  345. package/lib/components/list/types.d.ts +177 -0
  346. package/lib/components/list/utils/getText.d.ts +53 -0
  347. package/lib/components/list/utils/index.d.ts +4 -0
  348. package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -1
  349. package/lib/components/pay/toB/components/Content/utils.d.ts +16 -0
  350. package/lib/components/pay/toB/hooks.d.ts +12 -0
  351. package/lib/components/pay/toB/locales.d.ts +54 -0
  352. package/lib/components/pay/toB/store/context.d.ts +3 -0
  353. package/lib/components/pay/toB/store/index.d.ts +3 -0
  354. package/lib/components/pay/toB/store/provider.d.ts +4 -0
  355. package/lib/components/pay/toB/types/index.d.ts +61 -0
  356. package/lib/components/pay/toB/types/storeTypes.d.ts +143 -0
  357. package/lib/components/pay/toC/PaymentList/utils.d.ts +36 -0
  358. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +7 -0
  359. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +3 -0
  360. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +3 -0
  361. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
  362. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  363. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  364. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
  365. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +90 -103
  366. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  367. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -2
  368. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  369. package/lib/components/pay/toC/WalletPassBlock/index.js +3 -1
  370. package/lib/components/pay/toC/index.js +52 -11
  371. package/lib/components/pay/toC/locales.d.ts +307 -0
  372. package/lib/components/pay/toC/model.d.ts +1 -0
  373. package/lib/components/pay/toC/serve.d.ts +18 -0
  374. package/lib/components/pay/toC/serve.js +6 -0
  375. package/lib/components/pay/toC/status.d.ts +13 -0
  376. package/lib/components/pay/toC/utils.d.ts +2 -2
  377. package/lib/components/pay/toC/utils.js +4 -0
  378. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  379. package/lib/components/ruleSetting/locales.d.ts +48 -0
  380. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  381. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  382. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  383. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  384. package/lib/components/shoppingCart/locales.d.ts +36 -0
  385. package/lib/components/shoppingCart/type.d.ts +50 -0
  386. package/lib/components/subTotal/locales.d.ts +42 -0
  387. package/lib/components/systemSettings/registry/components/docs/images/image-1.png +0 -0
  388. package/lib/components/systemSettings/registry/components/docs/images/image-2.png +0 -0
  389. package/lib/components/systemSettings/registry/components/docs/images/image-3.png +0 -0
  390. package/lib/components/systemSettings/registry/components/docs/images/image-4.png +0 -0
  391. package/lib/components/systemSettings/registry/components/docs/images/image-5.png +0 -0
  392. package/lib/components/systemSettings/registry/components/docs/images/image-6.png +0 -0
  393. package/lib/components/systemSettings/registry/components/docs/images/image-7.png +0 -0
  394. package/lib/components/systemSettings/registry/components/docs/images/image-8.png +0 -0
  395. package/lib/components/systemSettings/registry/components/docs/images/image.png +0 -0
  396. package/lib/components/systemSettings/registry/locales.d.ts +272 -0
  397. package/lib/components/systemSettings/registry/services.d.ts +77 -0
  398. package/lib/components/systemSettings/registry/types.d.ts +126 -0
  399. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  400. package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
  401. package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
  402. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +11 -7
  403. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  404. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
  405. package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  406. package/lib/components/ticketBooking/context/IsActiveContext.d.ts +26 -0
  407. package/lib/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
  408. package/lib/components/ticketBooking/context/index.d.ts +2 -0
  409. package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
  410. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  411. package/lib/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +6 -0
  412. package/lib/components/ticketBooking/locales.d.ts +198 -0
  413. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  414. package/lib/components/ticketBooking/utils/productCache.d.ts +75 -0
  415. package/lib/components/wallet/utils.d.ts +48 -0
  416. package/lib/components/walletList/locales.d.ts +27 -0
  417. package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
  418. package/lib/components/workSpaceList/components/Card/constants.d.ts +2 -0
  419. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  420. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  421. package/lib/hooks/useEngineContext.d.ts +3 -0
  422. package/lib/hooks/useLogger.d.ts +2 -0
  423. package/lib/hooks/useToast.d.ts +2 -0
  424. package/lib/hooks/useTranslationOriginal.d.ts +1 -0
  425. package/lib/hooks/useWindowSize.d.ts +5 -0
  426. package/lib/plus/clientCard/locales.d.ts +18 -0
  427. package/lib/plus/clientCard/types.d.ts +134 -0
  428. package/lib/plus/clientCard/utils.d.ts +8 -0
  429. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
  430. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
  431. package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
  432. package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
  433. package/lib/plus/clinetSearch/locales.d.ts +108 -0
  434. package/lib/plus/clinetSearch/types.d.ts +70 -0
  435. package/lib/plus/noteModal/locales.d.ts +33 -0
  436. package/lib/plus/noteModal/types.d.ts +19 -0
  437. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
  438. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
  439. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
  440. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
  441. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
  442. package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -1
  443. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  444. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
  445. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -1
  446. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  447. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
  448. package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -1
  449. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  450. package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -1
  451. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
  452. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  453. package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +6 -0
  454. package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -1
  455. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
  456. package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +6 -0
  457. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +6 -0
  458. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +3 -0
  459. package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
  460. package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +42 -0
  461. package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +162 -0
  462. package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +298 -0
  463. package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +9 -0
  464. package/lib/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
  465. package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
  466. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
  467. package/lib/plus/selectHolder/locales.d.ts +24 -0
  468. package/lib/plus/selectHolder/types.d.ts +104 -0
  469. package/lib/plus/selectHolder/utils.d.ts +9 -0
  470. package/lib/plus/walletEditor/locales.d.ts +135 -0
  471. package/lib/plus/walletPassGallery/locales.d.ts +285 -0
  472. package/lib/plus/walletPassGallery/utils.d.ts +48 -0
  473. package/lib/pro/Login2.0/shared/types.d.ts +232 -0
  474. package/lib/pro/NumberKeyboardPopover/types.d.ts +31 -0
  475. package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
  476. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
  477. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
  478. package/lib/pro/comprehensiveSearch/locales.d.ts +15 -0
  479. package/lib/pro/comprehensiveSearch/types.d.ts +32 -0
  480. package/lib/pro/multiDayTimeSelect/types.d.ts +28 -0
  481. package/lib/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
  482. package/lib/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
  483. package/lib/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
  484. package/lib/pro/pisellPriceKeyboardPopover/types.d.ts +33 -0
  485. package/lib/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
  486. package/lib/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +39 -0
  487. package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +98 -0
  488. package/lib/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +42 -0
  489. package/lib/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
  490. package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +45 -0
  491. package/lib/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
  492. package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +18 -0
  493. package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +0 -1
  494. package/lib/pro/skuDetailModal/locales.d.ts +48 -0
  495. package/lib/pro/skuDetailModal/types.d.ts +348 -0
  496. package/lowcode/eco-cup-list/meta.ts +63 -0
  497. package/lowcode/eco-customer-list/meta.ts +63 -0
  498. package/package.json +2 -2
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const SalesModel: ({ children, hooks, config }: any) => JSX.Element;
3
2
  export * from './Sales';
4
3
  export default SalesModel;
@@ -0,0 +1,63 @@
1
+ import Decimal from 'decimal.js';
2
+ import { ICalculatePriceParams } from './types';
3
+ export declare const handleProductInfo: (eventDetail: any, num: number) => {
4
+ totalPrice: number;
5
+ originTotal: any;
6
+ is_charge_tax: any;
7
+ };
8
+ /**
9
+ * 获取商品总价
10
+ * @description 当前总价计算基于商品数量为1
11
+ * @param item 商品
12
+ * @returns 商品总价
13
+ */
14
+ export declare const getTotalPrice: (params: ICalculatePriceParams) => number;
15
+ /**
16
+ * 获取商品原始总价
17
+ * @description 当前总价计算基于商品数量为1
18
+ * @param item 商品
19
+ * @returns 商品原始总价
20
+ */
21
+ export declare const getOriginTotalPrice: (params: ICalculatePriceParams) => number | undefined;
22
+ export declare const handleCartItemOrigin: (cartItem: any, eventDetail: any) => any;
23
+ export declare const formatBundleToOrigin: (bundle: any) => any;
24
+ export declare const formatOptionsToOrigin: (options: any) => any;
25
+ export declare const handleProductDeposit: (cartItem: any, eventDetail: any, num: number) => {
26
+ total: number;
27
+ protocols: any;
28
+ } | null;
29
+ /**
30
+ * 获取商品定金
31
+ * @description 定金基于商品售价来算,最终乘商品数量
32
+ * 1、如果套餐主商品有定金规则,则定金为:(套餐商品总售价 * 定金百分比 + 定金固定金额)* 商品数量
33
+ * 2、如果套餐主商品没有定金规则,子商品有定金规则,则定金为:(套餐子商品售价 * 套餐子商品定金百分比 + 套餐子商品定金固定金额)* 商品数量,最终将所有子商品定金相加
34
+ * 3、普通商品/单规格商品/组合规则商品,定金规则:(商品总售价 * 定金百分比 + 定金固定金额)* 商品数量
35
+ * @param params 参数
36
+ * @returns 商品定金
37
+ */
38
+ export declare const getProductDeposit: (params: {
39
+ cartItem: any;
40
+ product: any;
41
+ bundle?: any;
42
+ options?: any;
43
+ num?: number;
44
+ }) => {
45
+ total: number;
46
+ protocols: any;
47
+ } | null;
48
+ /**
49
+ * 计算商品定金
50
+ * @param params 参数
51
+ * @returns 商品定金
52
+ */
53
+ export declare const calculateProductDeposit: (params: {
54
+ depositData: {
55
+ deposit_fixed?: string;
56
+ deposit_percentage?: string;
57
+ };
58
+ total: string | number;
59
+ num: number;
60
+ }) => {
61
+ result: boolean;
62
+ depositTotal: Decimal;
63
+ };
@@ -0,0 +1,51 @@
1
+ import Decimal from 'decimal.js';
2
+ interface CartItem {
3
+ price: number | string;
4
+ quantity?: number;
5
+ [k: string]: any;
6
+ }
7
+ interface PriceDetail {
8
+ subtotal: string;
9
+ total: string;
10
+ taxTitle?: string;
11
+ totalTaxFee?: string;
12
+ isPriceIncludeTax?: 0 | 1;
13
+ deposit?: {
14
+ total: string;
15
+ protocols: any[];
16
+ hasDeposit: boolean;
17
+ };
18
+ }
19
+ /**
20
+ * 计算商品小计(不含其他费用)
21
+ * @param items - 购物车商品数组
22
+ * @returns 商品总价字符串,保留2位小数
23
+ */
24
+ export declare const calculateSubtotal: (items: CartItem[]) => string;
25
+ /**
26
+ * @title: 单个商品的税费
27
+ * @description:
28
+ * 单个商品的税费 = 商品销售单价(折扣后) * 税率 * is_charge_tax /( 1+ 税率 * is_price_include_tax)
29
+ * $taxFee = $price * $taxRate * $isChargeTax / (1 + $taxRate * $isPriceIncludeTax);
30
+ * @return {*}
31
+ * @Author: xiangfeng.xue
32
+ */
33
+ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
34
+ /**
35
+ * 计算所有价格明细
36
+ * @param items - 购物车商品数组
37
+ * @param options - 其他费用配置
38
+ * @returns 价格明细对象
39
+ */
40
+ export declare const calculatePriceDetails: (shopInfo: any, items: CartItem[]) => PriceDetail;
41
+ /**
42
+ * @title: 计算定金
43
+ * @param items - 购物车商品数组
44
+ * @returns 定金字符串,保留2位小数
45
+ */
46
+ export declare const calculateDeposit: (items: CartItem[]) => {
47
+ total: string;
48
+ protocols: any[];
49
+ hasDeposit: never;
50
+ } | undefined;
51
+ export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Footer: ({ onNext, isOpen }: any) => JSX.Element;
4
3
  export default Footer;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const GuestOptionsModal: (props: any) => JSX.Element;
4
3
  export default GuestOptionsModal;
@@ -28,6 +28,8 @@ import { PisellInput, PisellGoodPassCard, PisellText, PisellToast } from '@pisel
28
28
  import { useAppointmentBooking, useShopDiscount, useAppointmentBookingLogin, useAppointmentBookingAccount } from "../../hooks";
29
29
  import "../../../booking/components/voucher/index.less";
30
30
  import "./index.less";
31
+ import { useAppointmentBookingContext } from "../../context";
32
+ import { useDebounceFn } from 'ahooks';
31
33
  var ShopDiscountHooks = {
32
34
  onInited: 'shopDiscount:onInited',
33
35
  onDestroy: 'shopDiscount:onDestroy',
@@ -69,11 +71,19 @@ var VoucherCard = function VoucherCard(props) {
69
71
  openLoginModal = _useAppointmentBookin.openLoginModal;
70
72
  var _useAppointmentBookin2 = useAppointmentBookingAccount(),
71
73
  accountLists = _useAppointmentBookin2.accountLists;
74
+ var _useAppointmentBookin3 = useAppointmentBookingContext(),
75
+ summary = _useAppointmentBookin3.summary;
76
+ var originTotal = summary.originTotal,
77
+ total = summary.total;
72
78
  var cart = appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$s = appointmentBooking.store) === null || _appointmentBooking$s === void 0 ? void 0 : _appointmentBooking$s.cart;
73
79
  var isUserLoggedIn = useMemo(function () {
74
80
  var _utils$token, _utils$token$get;
75
81
  return !!(utils !== null && utils !== void 0 && (_utils$token = utils.token) !== null && _utils$token !== void 0 && (_utils$token$get = _utils$token.get) !== null && _utils$token$get !== void 0 && _utils$token$get.call(_utils$token)) || false;
76
82
  }, [store]);
83
+ useEffect(function () {
84
+ var shopDiscount = pisellos.getModule('shopDiscount');
85
+ shopDiscount.setOriginTotalAmount(originTotal);
86
+ }, [originTotal]);
77
87
  var availableData = useMemo(function () {
78
88
  return discountList.filter(function (item) {
79
89
  return !!item.isAvailable;
@@ -110,13 +120,18 @@ var VoucherCard = function VoucherCard(props) {
110
120
  });
111
121
  appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$b = appointmentBooking.batchUpdateCart) === null || _appointmentBooking$b === void 0 || _appointmentBooking$b.call(appointmentBooking, items);
112
122
  };
113
- var onCartChange = function onCartChange() {
114
- var _shopDiscount$setBook, _appointmentBooking$o;
115
- var products = cart === null || cart === void 0 ? void 0 : cart.getItems();
116
- shopDiscount === null || shopDiscount === void 0 || (_shopDiscount$setBook = shopDiscount.setBookingSubject) === null || _shopDiscount$setBook === void 0 || _shopDiscount$setBook.call(shopDiscount, appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o = appointmentBooking.otherParams) === null || _appointmentBooking$o === void 0 || (_appointmentBooking$o = _appointmentBooking$o.bookingSetting) === null || _appointmentBooking$o === void 0 ? void 0 : _appointmentBooking$o.bookingSubject);
117
- var val = shopDiscount.calcDiscount(products);
118
- batchUpdateCart(val.productList);
119
- };
123
+
124
+ // 防抖处理
125
+ var _useDebounceFn = useDebounceFn(function () {
126
+ var _shopDiscount$setBook, _appointmentBooking$o;
127
+ var products = cart === null || cart === void 0 ? void 0 : cart.getItems();
128
+ shopDiscount === null || shopDiscount === void 0 || (_shopDiscount$setBook = shopDiscount.setBookingSubject) === null || _shopDiscount$setBook === void 0 || _shopDiscount$setBook.call(shopDiscount, appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o = appointmentBooking.otherParams) === null || _appointmentBooking$o === void 0 || (_appointmentBooking$o = _appointmentBooking$o.bookingSetting) === null || _appointmentBooking$o === void 0 ? void 0 : _appointmentBooking$o.bookingSubject);
129
+ var val = shopDiscount.calcDiscount(products);
130
+ batchUpdateCart(val.productList);
131
+ }, {
132
+ wait: 200
133
+ }),
134
+ onCartChange = _useDebounceFn.run;
120
135
  var stringifiedHolders = useMemo(function () {
121
136
  var _ret;
122
137
  try {
@@ -0,0 +1,363 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.event.calendar.limit.unavailable': string;
4
+ 'pisell2.event.calendar.limit.sold.out': string;
5
+ 'pisell2.event.calendar.limit.call.to.book': string;
6
+ 'pisell2.event.calendar.limit.filling.up.fast': string;
7
+ 'pisell2.event.calendar.limit.lots.of.space': string;
8
+ 'pisell2.event.calendar.booking-closed': string;
9
+ 'pisell2.event.calendar.call-to-book': string;
10
+ 'pisell2.event.calendar.email-to-book': string;
11
+ 'pisell2.event.close.title': string;
12
+ 'pisell2.event.close.tip': string;
13
+ 'pisell2.event.close.continue': string;
14
+ 'pisell2.event.close.exit': string;
15
+ 'pisell2.appointment.step': (step: number) => string;
16
+ 'pisell2.event.select.category': (val: string) => string;
17
+ 'pisell2.event.select.campus': (val: string) => string;
18
+ 'pisell2.event.select.event': string;
19
+ 'pisell2.event.cart': string;
20
+ 'pisell2.event.total': string;
21
+ 'pisell2.event.total.gst': (val: string, amount: any) => string;
22
+ 'pisell2.event.continue': string;
23
+ 'pisell2.event.details': string;
24
+ 'pisell2.event.introduction': string;
25
+ 'pisell2.event.schedule': string;
26
+ 'pisell2.event.teacher': string;
27
+ 'pisell2.event.campus': string;
28
+ 'pisell2.event.resource': string;
29
+ 'pisell2.event.booking.options': string;
30
+ 'pisell2.event.add.to.cart': string;
31
+ 'pisell2.event.description': string;
32
+ 'pisell2.event.view.more': string;
33
+ 'pisell2.event.view.less': string;
34
+ 'pisell2.event.holder.modal.title': string;
35
+ 'pisell2.event.confirm': string;
36
+ 'pisell2.event.confirm.information': string;
37
+ 'pisell2.event.confirm.information.tip': string;
38
+ 'pisell2.event.confirm.information.other': string;
39
+ 'pisell2.event.add.others': string;
40
+ 'pisell2.event.checkout': string;
41
+ 'pisell2.event.edit.event': string;
42
+ 'pisell2.event.remove': string;
43
+ 'pisell2.event.option': string;
44
+ 'pisell2.event.order.items.error.title': string;
45
+ 'pisell2.event.order.items.error.tip': (val: number) => string;
46
+ 'pisell2.event.order.items.error.proceed': string;
47
+ 'pisell2.event.order.items.error.return': string;
48
+ 'pisell2.event.order.items.error.back': string;
49
+ 'pisell2.event.order.items.error.continue': string;
50
+ 'pisell2.event.order.items.error.all.tip': string;
51
+ 'pisell2.event.remove.title': string;
52
+ 'pisell2.event.remove.tip': string;
53
+ 'pisell2.event.remove.cancel': string;
54
+ 'pisell2.event.create': string;
55
+ 'pisell2.event.search': string;
56
+ 'pisell2.event.empty.service': string;
57
+ 'pisell2.event.title': (val: number) => string;
58
+ 'pisell2.event.create.form': string;
59
+ 'pisell2.event.empty.event': string;
60
+ 'pisell2.event.error.holder': string;
61
+ 'pisell2.event.price.from': string;
62
+ 'pisell2.event.empty.holder.title': string;
63
+ 'pisell2.event.empty.holder.tip': string;
64
+ 'pisell2.event.empty.holder.continue.tip': string;
65
+ 'pisell2.event.empty.holder.go.back': string;
66
+ 'pisell2.event.empty.holder.continue.anyway': string;
67
+ 'pisell2.event.event.full.title': string;
68
+ 'pisell2.event.event.full.tip': string;
69
+ 'pisell2.event.event.full.ok': string;
70
+ 'pisell2.event.capacity.limit.reached.title': string;
71
+ 'pisell2.event.capacity.limit.reached.tip': string;
72
+ 'pisell2.appointment.booking.empty.service': string;
73
+ 'pisell2.appointment.booking.empty.data': string;
74
+ 'pisell2.appointment.booking.empty.time': string;
75
+ 'pisell2.appointment.service.title': (val: number) => string;
76
+ 'pisell2.appointment.add.guest': string;
77
+ 'pisell2.appointment.edit.service': string;
78
+ 'pisell2.appointment.remove.guest': string;
79
+ 'pisell2.appointment.no.available.service': string;
80
+ 'pisell2.appointment.max.guest': string;
81
+ 'pisell2.appointment.no.available.time': string;
82
+ 'pisell2.appointment.monday': string;
83
+ 'pisell2.appointment.tuesday': string;
84
+ 'pisell2.appointment.wednesday': string;
85
+ 'pisell2.appointment.thursday': string;
86
+ 'pisell2.appointment.friday': string;
87
+ 'pisell2.appointment.saturday': string;
88
+ 'pisell2.appointment.sunday': string;
89
+ 'pisell2.appointment.any.professional': string;
90
+ 'pisell2.appointment.for.maximum.availability': string;
91
+ 'pisell2.appointment.deposit': string;
92
+ 'pisell2.appointment.deposit.agreed': string;
93
+ 'pisell2.appointment.deposit.agree.policy': string;
94
+ 'pisell2.appointment.deposit.and': string;
95
+ 'pisell2.appointment.deposit.amount.tip1': string;
96
+ 'pisell2.appointment.deposit.amount.tip2': string;
97
+ 'pisell2.appointment.deposit.close': string;
98
+ 'pisell2.appointment.tips': string;
99
+ 'pisell2.appointment.tips.content': string;
100
+ 'pisell2.appointment.fill-form': string;
101
+ 'pisell2.appointment.select.holder': (val: string) => string;
102
+ 'pisell2.appointment.select.time': string;
103
+ 'pisell2.appointment.unselect.time': string;
104
+ 'pisell2.appointment.unselect.date': string;
105
+ 'pisell2.appointment.unuse.date': string;
106
+ 'pisell2.appointment.add-guests': string;
107
+ 'pisell2.appointment.policy': string;
108
+ 'pisell2.appointment.policy.confirm': string;
109
+ 'pisell2.appointment.resource.tip': (val: string) => string;
110
+ 'pisell2.text.apply': string;
111
+ 'pisell2.text.goodpass': string;
112
+ 'pisell2.text.goodpass.product-vouchers': string;
113
+ 'pisell2.text.goodpass.view-more': string;
114
+ 'pisell2.text.goodpass.code': string;
115
+ 'pisell2.text.goodpass.enter-code': string;
116
+ 'pisell2.text.goodpass.code-invalid': string;
117
+ 'pisell2.text.goodpass.code-invalid-cart': string;
118
+ 'pisell2.text.goodpass.login': string;
119
+ 'pisell2.text.goodpass.login-tip': string;
120
+ 'pisell2.text.contact-info.title': string;
121
+ };
122
+ 'zh-CN': {
123
+ 'pisell2.event.calendar.limit.unavailable': string;
124
+ 'pisell2.event.calendar.limit.sold.out': string;
125
+ 'pisell2.event.calendar.limit.call.to.book': string;
126
+ 'pisell2.event.calendar.limit.filling.up.fast': string;
127
+ 'pisell2.event.calendar.limit.lots.of.space': string;
128
+ 'pisell2.event.calendar.booking-closed': string;
129
+ 'pisell2.event.calendar.call-to-book': string;
130
+ 'pisell2.event.calendar.email-to-book': string;
131
+ 'pisell2.event.close.title': string;
132
+ 'pisell2.event.close.tip': string;
133
+ 'pisell2.event.close.continue': string;
134
+ 'pisell2.event.close.exit': string;
135
+ 'pisell2.appointment.step': (step: number) => string;
136
+ 'pisell2.event.select.category': (val: string) => string;
137
+ 'pisell2.event.select.event': string;
138
+ 'pisell2.event.select.campus': (val: string) => string;
139
+ 'pisell2.event.cart': string;
140
+ 'pisell2.event.total': string;
141
+ 'pisell2.event.total.gst': (val: string, amount: any) => string;
142
+ 'pisell2.event.continue': string;
143
+ 'pisell2.event.details': string;
144
+ 'pisell2.event.introduction': string;
145
+ 'pisell2.event.schedule': string;
146
+ 'pisell2.event.teacher': string;
147
+ 'pisell2.event.campus': string;
148
+ 'pisell2.event.resource': string;
149
+ 'pisell2.event.booking.options': string;
150
+ 'pisell2.event.add.to.cart': string;
151
+ 'pisell2.event.description': string;
152
+ 'pisell2.event.view.more': string;
153
+ 'pisell2.event.view.less': string;
154
+ 'pisell2.event.holder.modal.title': string;
155
+ 'pisell2.event.confirm': string;
156
+ 'pisell2.event.confirm.information': string;
157
+ 'pisell2.event.confirm.information.tip': string;
158
+ 'pisell2.event.confirm.information.other': string;
159
+ 'pisell2.event.add.others': string;
160
+ 'pisell2.event.checkout': string;
161
+ 'pisell2.event.edit.event': string;
162
+ 'pisell2.event.remove': string;
163
+ 'pisell2.event.option': string;
164
+ 'pisell2.event.order.items.error.title': string;
165
+ 'pisell2.event.order.items.error.tip': (val: number) => string;
166
+ 'pisell2.event.order.items.error.proceed': string;
167
+ 'pisell2.event.order.items.error.return': string;
168
+ 'pisell2.event.order.items.error.back': string;
169
+ 'pisell2.event.order.items.error.continue': string;
170
+ 'pisell2.event.order.items.error.all.tip': string;
171
+ 'pisell2.event.remove.title': string;
172
+ 'pisell2.event.remove.tip': string;
173
+ 'pisell2.event.remove.cancel': string;
174
+ 'pisell2.event.create': string;
175
+ 'pisell2.event.search': string;
176
+ 'pisell2.event.empty.service': string;
177
+ 'pisell2.event.title': (val: number) => string;
178
+ 'pisell2.event.create.form': string;
179
+ 'pisell2.event.empty.event': string;
180
+ 'pisell2.event.error.holder': string;
181
+ 'pisell2.event.price.from': string;
182
+ 'pisell2.event.empty.holder.title': string;
183
+ 'pisell2.event.empty.holder.tip': string;
184
+ 'pisell2.event.empty.holder.continue.tip': string;
185
+ 'pisell2.event.empty.holder.go.back': string;
186
+ 'pisell2.event.empty.holder.continue.anyway': string;
187
+ 'pisell2.event.event.full.title': string;
188
+ 'pisell2.event.event.full.tip': string;
189
+ 'pisell2.event.event.full.ok': string;
190
+ 'pisell2.event.capacity.limit.reached.title': string;
191
+ 'pisell2.event.capacity.limit.reached.tip': string;
192
+ 'pisell2.appointment.booking.empty.service': string;
193
+ 'pisell2.appointment.booking.empty.data': string;
194
+ 'pisell2.appointment.booking.empty.time': string;
195
+ 'pisell2.appointment.service.title': (val: number) => string;
196
+ 'pisell2.appointment.add.guest': string;
197
+ 'pisell2.appointment.edit.service': string;
198
+ 'pisell2.appointment.remove.guest': string;
199
+ 'pisell2.appointment.no.available.service': string;
200
+ 'pisell2.appointment.max.guest': string;
201
+ 'pisell2.appointment.no.available.time': string;
202
+ 'pisell2.appointment.monday': string;
203
+ 'pisell2.appointment.tuesday': string;
204
+ 'pisell2.appointment.wednesday': string;
205
+ 'pisell2.appointment.thursday': string;
206
+ 'pisell2.appointment.friday': string;
207
+ 'pisell2.appointment.saturday': string;
208
+ 'pisell2.appointment.sunday': string;
209
+ 'pisell2.appointment.any.professional': string;
210
+ 'pisell2.appointment.for.maximum.availability': string;
211
+ 'pisell2.appointment.deposit': string;
212
+ 'pisell2.appointment.deposit.agreed': string;
213
+ 'pisell2.appointment.deposit.agree.policy': string;
214
+ 'pisell2.appointment.deposit.and': string;
215
+ 'pisell2.appointment.deposit.amount.tip1': string;
216
+ 'pisell2.appointment.deposit.amount.tip2': string;
217
+ 'pisell2.appointment.deposit.close': string;
218
+ 'pisell2.appointment.tips': string;
219
+ 'pisell2.appointment.tips.content': string;
220
+ 'pisell2.appointment.fill-form': string;
221
+ 'pisell2.appointment.select.holder': (val: string) => string;
222
+ 'pisell2.appointment.select.time': string;
223
+ 'pisell2.appointment.unselect.time': string;
224
+ 'pisell2.appointment.unselect.date': string;
225
+ 'pisell2.appointment.unuse.date': string;
226
+ 'pisell2.appointment.add-guests': string;
227
+ 'pisell2.appointment.policy': string;
228
+ 'pisell2.appointment.policy.confirm': string;
229
+ 'pisell2.appointment.resource.tip': (val: string) => string;
230
+ 'pisell2.text.apply': string;
231
+ 'pisell2.text.goodpass': string;
232
+ 'pisell2.text.goodpass.product-vouchers': string;
233
+ 'pisell2.text.goodpass.view-more': string;
234
+ 'pisell2.text.goodpass.code': string;
235
+ 'pisell2.text.goodpass.enter-code': string;
236
+ 'pisell2.text.goodpass.code-invalid': string;
237
+ 'pisell2.text.goodpass.code-invalid-cart': string;
238
+ 'pisell2.text.goodpass.login': string;
239
+ 'pisell2.text.goodpass.login-tip': string;
240
+ 'pisell2.text.contact-info.title': string;
241
+ };
242
+ 'zh-HK': {
243
+ 'pisell2.event.calendar.limit.unavailable': string;
244
+ 'pisell2.event.calendar.limit.sold.out': string;
245
+ 'pisell2.event.calendar.limit.call.to.book': string;
246
+ 'pisell2.event.calendar.limit.filling.up.fast': string;
247
+ 'pisell2.event.calendar.limit.lots.of.space': string;
248
+ 'pisell2.event.calendar.booking-closed': string;
249
+ 'pisell2.event.calendar.call-to-book': string;
250
+ 'pisell2.event.calendar.email-to-book': string;
251
+ 'pisell2.event.close.title': string;
252
+ 'pisell2.event.close.tip': string;
253
+ 'pisell2.event.close.continue': string;
254
+ 'pisell2.event.close.exit': string;
255
+ 'pisell2.appointment.step': (step: number) => string;
256
+ 'pisell2.event.select.category': (val: string) => string;
257
+ 'pisell2.event.select.event': string;
258
+ 'pisell2.event.select.campus': (val: string) => string;
259
+ 'pisell2.event.cart': string;
260
+ 'pisell2.event.total': string;
261
+ 'pisell2.event.total.gst': (val: string, amount: any) => string;
262
+ 'pisell2.event.continue': string;
263
+ 'pisell2.event.details': string;
264
+ 'pisell2.event.introduction': string;
265
+ 'pisell2.event.schedule': string;
266
+ 'pisell2.event.teacher': string;
267
+ 'pisell2.event.campus': string;
268
+ 'pisell2.event.resource': string;
269
+ 'pisell2.event.booking.options': string;
270
+ 'pisell2.event.add.to.cart': string;
271
+ 'pisell2.event.description': string;
272
+ 'pisell2.event.view.more': string;
273
+ 'pisell2.event.view.less': string;
274
+ 'pisell2.event.holder.modal.title': string;
275
+ 'pisell2.event.confirm': string;
276
+ 'pisell2.event.confirm.information': string;
277
+ 'pisell2.event.confirm.information.tip': string;
278
+ 'pisell2.event.confirm.information.other': string;
279
+ 'pisell2.event.add.others': string;
280
+ 'pisell2.event.checkout': string;
281
+ 'pisell2.event.edit.event': string;
282
+ 'pisell2.event.remove': string;
283
+ 'pisell2.event.option': string;
284
+ 'pisell2.event.order.items.error.title': string;
285
+ 'pisell2.event.order.items.error.tip': (val: number) => string;
286
+ 'pisell2.event.order.items.error.proceed': string;
287
+ 'pisell2.event.order.items.error.return': string;
288
+ 'pisell2.event.order.items.error.back': string;
289
+ 'pisell2.event.order.items.error.continue': string;
290
+ 'pisell2.event.order.items.error.all.tip': string;
291
+ 'pisell2.event.remove.title': string;
292
+ 'pisell2.event.remove.tip': string;
293
+ 'pisell2.event.remove.cancel': string;
294
+ 'pisell2.event.create': string;
295
+ 'pisell2.event.search': string;
296
+ 'pisell2.event.empty.service': string;
297
+ 'pisell2.event.title': (val: number) => string;
298
+ 'pisell2.event.create.form': string;
299
+ 'pisell2.event.empty.event': string;
300
+ 'pisell2.event.error.holder': string;
301
+ 'pisell2.event.price.from': string;
302
+ 'pisell2.event.empty.holder.title': string;
303
+ 'pisell2.event.empty.holder.tip': string;
304
+ 'pisell2.event.empty.holder.continue.tip': string;
305
+ 'pisell2.event.empty.holder.go.back': string;
306
+ 'pisell2.event.empty.holder.continue.anyway': string;
307
+ 'pisell2.event.event.full.title': string;
308
+ 'pisell2.event.event.full.tip': string;
309
+ 'pisell2.event.event.full.ok': string;
310
+ 'pisell2.event.capacity.limit.reached.title': string;
311
+ 'pisell2.event.capacity.limit.reached.tip': string;
312
+ 'pisell2.appointment.booking.empty.service': string;
313
+ 'pisell2.appointment.booking.empty.data': string;
314
+ 'pisell2.appointment.booking.empty.time': string;
315
+ 'pisell2.appointment.service.title': (val: number) => string;
316
+ 'pisell2.appointment.add.guest': string;
317
+ 'pisell2.appointment.edit.service': string;
318
+ 'pisell2.appointment.remove.guest': string;
319
+ 'pisell2.appointment.no.available.service': string;
320
+ 'pisell2.appointment.max.guest': string;
321
+ 'pisell2.appointment.no.available.time': string;
322
+ 'pisell2.appointment.monday': string;
323
+ 'pisell2.appointment.tuesday': string;
324
+ 'pisell2.appointment.wednesday': string;
325
+ 'pisell2.appointment.thursday': string;
326
+ 'pisell2.appointment.friday': string;
327
+ 'pisell2.appointment.saturday': string;
328
+ 'pisell2.appointment.sunday': string;
329
+ 'pisell2.appointment.any.professional': string;
330
+ 'pisell2.appointment.for.maximum.availability': string;
331
+ 'pisell2.appointment.deposit': string;
332
+ 'pisell2.appointment.deposit.agreed': string;
333
+ 'pisell2.appointment.deposit.agree.policy': string;
334
+ 'pisell2.appointment.deposit.and': string;
335
+ 'pisell2.appointment.deposit.amount.tip1': string;
336
+ 'pisell2.appointment.deposit.amount.tip2': string;
337
+ 'pisell2.appointment.deposit.close': string;
338
+ 'pisell2.appointment.tips': string;
339
+ 'pisell2.appointment.tips.content': string;
340
+ 'pisell2.appointment.fill-form': string;
341
+ 'pisell2.appointment.select.holder': (val: string) => string;
342
+ 'pisell2.appointment.select.time': string;
343
+ 'pisell2.appointment.unselect.time': string;
344
+ 'pisell2.appointment.unselect.date': string;
345
+ 'pisell2.appointment.unuse.date': string;
346
+ 'pisell2.appointment.add-guests': string;
347
+ 'pisell2.appointment.policy': string;
348
+ 'pisell2.appointment.policy.confirm': string;
349
+ 'pisell2.appointment.resource.tip': (val: string) => string;
350
+ 'pisell2.text.apply': string;
351
+ 'pisell2.text.goodpass': string;
352
+ 'pisell2.text.goodpass.product-vouchers': string;
353
+ 'pisell2.text.goodpass.view-more': string;
354
+ 'pisell2.text.goodpass.code': string;
355
+ 'pisell2.text.goodpass.enter-code': string;
356
+ 'pisell2.text.goodpass.code-invalid': string;
357
+ 'pisell2.text.goodpass.code-invalid-cart': string;
358
+ 'pisell2.text.goodpass.login': string;
359
+ 'pisell2.text.goodpass.login-tip': string;
360
+ 'pisell2.text.contact-info.title': string;
361
+ };
362
+ };
363
+ export default _default;
@@ -60,14 +60,15 @@ export var formatProducts = function formatProducts(values) {
60
60
  discountway: 'num',
61
61
  discount_type: 'discount',
62
62
  bundle_edit: (_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.bundle_edit,
63
- product_bundle: formatProductBundle((_item$_extend3 = item._extend) === null || _item$_extend3 === void 0 || (_item$_extend3 = _item$_extend3.other) === null || _item$_extend3 === void 0 ? void 0 : _item$_extend3.bundle),
63
+ product_bundle: formatProductBundle((_item$_extend3 = item._extend) === null || _item$_extend3 === void 0 || (_item$_extend3 = _item$_extend3.other) === null || _item$_extend3 === void 0 ? void 0 : _item$_extend3.bundle, item.is_price_include_tax),
64
64
  "product_option_item": formatProductOption((_item$_extend4 = item._extend) === null || _item$_extend4 === void 0 || (_item$_extend4 = _item$_extend4.other) === null || _item$_extend4 === void 0 ? void 0 : _item$_extend4.option),
65
65
  "product_variant_id": ((_item$_extend5 = item._extend) === null || _item$_extend5 === void 0 || (_item$_extend5 = _item$_extend5.other) === null || _item$_extend5 === void 0 ? void 0 : _item$_extend5.product_variant_id) || 0,
66
66
  "source_product_price": getSourceProductPrice(item),
67
67
  "main_product_selling_price": (_getMainProductSellin = getMainProductSellingPrice(item)) !== null && _getMainProductSellin !== void 0 ? _getMainProductSellin : formatProductPrice(item),
68
68
  "calculated_original_price": formatOriginalPrice(item),
69
69
  "calculated_selling_price": formatSellingPrice(item),
70
- "tax_fee": item._extend.tax_fee
70
+ "tax_fee": item._extend.tax_fee,
71
+ is_price_include_tax: item.is_price_include_tax
71
72
  };
72
73
  });
73
74
  return arr;
@@ -834,7 +834,7 @@ var getMainProductTotal = function getMainProductTotal(item) {
834
834
  // 子商品价格
835
835
  var bundleItemPrice = new Decimal((_ref5 = (_bundleItem$bundle_se2 = bundleItem.bundle_selling_price) !== null && _bundleItem$bundle_se2 !== void 0 ? _bundleItem$bundle_se2 : bundleItem.price) !== null && _ref5 !== void 0 ? _ref5 : 0);
836
836
  // todo: 套餐子商品后不需要处理 子商品价格 - 子商品折扣金额
837
- var bundleItemTotal = bundleItemPrice.minus(discountAmount);
837
+ var bundleItemTotal = bundleItemPrice;
838
838
  total = total.add(bundleItemTotal);
839
839
  }
840
840
  }
@@ -339,6 +339,13 @@ var Footer = function Footer(props) {
339
339
  ScheduleModule: ScheduleModule
340
340
  }, getDataFromHost()));
341
341
  }, [state, isEdit]);
342
+ useEffect(function () {
343
+ window.dispatchEvent(new CustomEvent('onOriginExpectAmountWithoutDiscountChange', {
344
+ detail: {
345
+ originExpectAmountWithoutDiscount: total === null || total === void 0 ? void 0 : total.originExpectAmountWithoutDiscount
346
+ }
347
+ }));
348
+ }, [total === null || total === void 0 ? void 0 : total.originExpectAmountWithoutDiscount]);
342
349
  var orderTotalList = useMemo(function () {
343
350
  return [
344
351
  // 订单已付金额
@@ -15,7 +15,7 @@ export declare const formatProductOption: (option: any) => any;
15
15
  * @Author: zhiwei.Wang
16
16
  * @Date: 2024-02-19 09:26
17
17
  */
18
- export declare const formatProductBundle: (bundle: any) => any;
18
+ export declare const formatProductBundle: (bundle: any, is_price_include_tax: number) => any;
19
19
  /**
20
20
  * 获取子商品折扣信息
21
21
  * @param item
@@ -92,7 +92,7 @@ var log = function log(data) {
92
92
  * @Author: zhiwei.Wang
93
93
  * @Date: 2024-02-19 09:26
94
94
  */
95
- export var formatProductBundle = function formatProductBundle(bundle) {
95
+ export var formatProductBundle = function formatProductBundle(bundle, is_price_include_tax) {
96
96
  if (!bundle) {
97
97
  return;
98
98
  }
@@ -133,6 +133,7 @@ export var formatProductBundle = function formatProductBundle(bundle) {
133
133
  "option": option,
134
134
  "bundle_selling_price": Math.abs(d === null || d === void 0 ? void 0 : d.price),
135
135
  // "bundle_sum_price": d?.original_price || d?.original_total,
136
+ is_price_include_tax: is_price_include_tax,
136
137
  "metadata": {
137
138
  custom_product_bundle_map_id: d._id,
138
139
  // 子商品单数量附加费
@@ -322,8 +323,8 @@ export var formatOriginalPrice = function formatOriginalPrice(item) {
322
323
 
323
324
  /**
324
325
  * 获取套餐子商品折扣差价
325
- * @param item
326
- * @returns
326
+ * @param item
327
+ * @returns
327
328
  */
328
329
  var getBundleProductDiscountDifference = function getBundleProductDiscountDifference(item) {
329
330
  var _item$_extend9, _item$_extend10, _item$_extend11;
@@ -521,7 +522,7 @@ var formatProducts = function formatProducts(item, quantity) {
521
522
  "discount_per": item._extend.discount_per,
522
523
  "discount_type": item._extend.discount_type || discount_type,
523
524
  "order_detail_id": item._extend.order_detail_id || 0,
524
- "product_bundle": formatProductBundle((_item$_extend36 = item._extend) === null || _item$_extend36 === void 0 || (_item$_extend36 = _item$_extend36.other) === null || _item$_extend36 === void 0 ? void 0 : _item$_extend36.bundle),
525
+ "product_bundle": formatProductBundle((_item$_extend36 = item._extend) === null || _item$_extend36 === void 0 || (_item$_extend36 = _item$_extend36.other) === null || _item$_extend36 === void 0 ? void 0 : _item$_extend36.bundle, item.is_price_include_tax),
525
526
  "bundle_edit": item._extend.bundle_edit || bundleDiscountList.length ? 1 : 0,
526
527
  "product_option_item": formatProductOption((_item$_extend37 = item._extend) === null || _item$_extend37 === void 0 || (_item$_extend37 = _item$_extend37.other) === null || _item$_extend37 === void 0 ? void 0 : _item$_extend37.option),
527
528
  "product_variant_id": ((_item$_extend38 = item._extend) === null || _item$_extend38 === void 0 || (_item$_extend38 = _item$_extend38.other) === null || _item$_extend38 === void 0 ? void 0 : _item$_extend38.product_variant_id) || 0,
@@ -531,7 +532,8 @@ var formatProducts = function formatProducts(item, quantity) {
531
532
  "calculated_original_price": formatOriginalPrice(item),
532
533
  "calculated_selling_price": formatSellingPrice(item),
533
534
  "tax_fee": item._extend.tax_fee,
534
- "custom_deposit_data": item.custom_deposit_data
535
+ "custom_deposit_data": item.custom_deposit_data,
536
+ is_price_include_tax: item.is_price_include_tax
535
537
  };
536
538
  };
537
539