@pisell/private-materials 6.2.20 → 6.2.21

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 (402) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.js +2 -2
  8. package/build/lowcode/view.js +8 -8
  9. package/es/businessModel/SalesModel/index.d.ts +0 -1
  10. package/es/components/Sales/Cart/utils.d.ts +63 -0
  11. package/es/components/Sales/Checkout/index.d.ts +37 -0
  12. package/es/components/Sales/Checkout/serve.d.ts +15 -0
  13. package/es/components/Sales/Checkout/utils.d.ts +0 -1
  14. package/es/components/Sales/Checkout/utils.js +2 -3
  15. package/es/components/Sales/Customer/index.d.ts +25 -0
  16. package/es/components/Sales/Event/Detail.d.ts +30 -0
  17. package/es/components/Sales/Event/serve.d.ts +49 -0
  18. package/es/components/Sales/Summary/index.d.ts +35 -0
  19. package/es/components/Sales/Summary/serve.d.ts +1 -0
  20. package/es/components/Sales/Summary/utils.d.ts +51 -0
  21. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
  22. package/es/components/appointmentBooking/components/Cart/utils.d.ts +56 -0
  23. package/es/components/appointmentBooking/components/Content/index.d.ts +3 -0
  24. package/es/components/appointmentBooking/components/Content/index.js +19 -12
  25. package/es/components/appointmentBooking/components/Deposit/index.d.ts +9 -0
  26. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  27. package/es/components/appointmentBooking/components/Form/index.d.ts +4 -0
  28. package/es/components/appointmentBooking/components/Form/utils.d.ts +8 -0
  29. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  30. package/es/components/appointmentBooking/components/Header/index.d.ts +3 -0
  31. package/es/components/appointmentBooking/components/Resource/index.d.ts +7 -0
  32. package/es/components/appointmentBooking/components/Services/index.d.ts +4 -0
  33. package/es/components/appointmentBooking/components/TimeSlicing/index.js +7 -3
  34. package/es/components/appointmentBooking/components/Voucher/index.d.ts +4 -0
  35. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  36. package/es/components/appointmentBooking/deposit/index.d.ts +3 -0
  37. package/es/components/appointmentBooking/hooks.d.ts +106 -0
  38. package/es/components/appointmentBooking/index.d.ts +3 -0
  39. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  40. package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
  41. package/es/components/booking/components/browserSelect/index.js +1 -1
  42. package/es/components/booking/components/customSelect/index.d.ts +38 -0
  43. package/es/components/booking/components/customSelect/index.js +0 -1
  44. package/es/components/booking/components/footer/index.d.ts +11 -0
  45. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  46. package/es/components/booking/components/reloadResourceModal/index.d.ts +8 -0
  47. package/es/components/booking/components/voucher/index.d.ts +3 -0
  48. package/es/components/booking/editBookingModal/index.js +58 -29
  49. package/es/components/booking/editBookingModal/serve.d.ts +1 -0
  50. package/es/components/booking/editBookingModal/serve.js +19 -11
  51. package/es/components/booking/forms/model.js +5 -5
  52. package/es/components/booking/forms/table/index.d.ts +0 -1
  53. package/es/components/booking/hooks/useClearCart.d.ts +2 -0
  54. package/es/components/booking/hooks/useClearCart.js +8 -11
  55. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  56. package/es/components/booking/info/addServiceVariant/index.d.ts +6 -0
  57. package/es/components/booking/info/client/index.d.ts +4 -0
  58. package/es/components/booking/info/client/index.js +2 -3
  59. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  60. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  61. package/es/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
  62. package/es/components/booking/info/hooks/useInfoHolder.js +9 -16
  63. package/es/components/booking/info/index.d.ts +3 -0
  64. package/es/components/booking/info/service/Lists.d.ts +2 -0
  65. package/es/components/booking/info/service/Lists.js +26 -36
  66. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  67. package/es/components/booking/info/service/editService/index.js +10 -15
  68. package/es/components/booking/info/service/like/index.d.ts +0 -1
  69. package/es/components/booking/info/service/like/index.js +1 -1
  70. package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
  71. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  72. package/es/components/booking/info/service2/utils.d.ts +247 -0
  73. package/es/components/booking/info/service2/utils.js +21 -20
  74. package/es/components/booking/info/utils.js +1 -1
  75. package/es/components/booking/info2/index.d.ts +12 -0
  76. package/es/components/booking/info2/index.js +0 -1
  77. package/es/components/booking/info2/service/addService/index.d.ts +11 -0
  78. package/es/components/booking/info2/service/addService/utils.d.ts +98 -0
  79. package/es/components/booking/info2/service/addService/utils.js +4 -7
  80. package/es/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
  81. package/es/components/booking/info2/service/addTimeModal/index.js +0 -3
  82. package/es/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  83. package/es/components/booking/info2/service/editService/Resources/index.js +0 -5
  84. package/es/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
  85. package/es/components/booking/info2/service/editService/index.js +168 -264
  86. package/es/components/booking/info2/service/index.d.ts +4 -0
  87. package/es/components/booking/info2/service/index.js +15 -19
  88. package/es/components/booking/info2/utils.d.ts +4 -0
  89. package/es/components/booking/info2/utilsByBooking.d.ts +35 -0
  90. package/es/components/booking/locales.d.ts +828 -0
  91. package/es/components/booking/materiels/duration/index.d.ts +13 -0
  92. package/es/components/booking/materiels/duration/index.js +2 -9
  93. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  94. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  95. package/es/components/booking/materiels/startTime/index.js +1 -1
  96. package/es/components/booking/model.d.ts +108 -0
  97. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  98. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  99. package/es/components/booking/notes/model.js +5 -5
  100. package/es/components/booking/payments/model.js +5 -5
  101. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  102. package/es/components/eftpos/form/index.d.ts +0 -1
  103. package/es/components/eftpos/group/index.d.ts +0 -1
  104. package/es/components/eftpos/hooks.d.ts +0 -1
  105. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  106. package/es/components/eftpos/icon/device.d.ts +0 -1
  107. package/es/components/eftpos/receipt/index.d.ts +0 -1
  108. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  109. package/es/components/eftposPay/app.d.ts +0 -1
  110. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  111. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  112. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  113. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  114. package/es/components/eftposPay/const.d.ts +184 -0
  115. package/es/components/eftposPay/hooks.d.ts +35 -0
  116. package/es/components/eftposPay/index.d.ts +4 -0
  117. package/es/components/eftposPay/linkly/const.d.ts +23 -0
  118. package/es/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  119. package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  120. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  121. package/es/components/eftposPay/linkly/index.d.ts +2 -0
  122. package/es/components/eftposPay/linkly/service.d.ts +32 -0
  123. package/es/components/eftposPay/manufacturer.d.ts +7 -0
  124. package/es/components/eftposPay/pay.d.ts +20 -0
  125. package/es/components/eftposPay/store/index.d.ts +355 -0
  126. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  127. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  128. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
  129. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +3 -0
  130. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +3 -0
  131. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  132. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  133. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  134. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  135. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  136. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  137. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  138. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  139. package/es/components/eventBooking/components/bookingDetailModal/index.d.ts +7 -0
  140. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  141. package/es/components/eventBooking/index.d.ts +3 -0
  142. package/es/components/eventBooking/locales.d.ts +246 -0
  143. package/es/components/listComponent/index.js +5 -5
  144. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
  145. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +3 -0
  146. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +61 -0
  147. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  148. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  149. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  150. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  151. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  152. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  153. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  154. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
  155. package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  156. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  157. package/es/components/pay/toC/index.d.ts +3 -0
  158. package/es/components/pay/toC/locales.d.ts +289 -0
  159. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  160. package/es/components/productExtension/card/index.js +3 -3
  161. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  162. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  163. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  164. package/es/components/productExtension/fields/Forms/index.js +12 -12
  165. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  166. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  167. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  168. package/es/components/productExtension/server.js +2 -2
  169. package/es/components/productSelect/components/TabProduct/index.d.ts +2 -0
  170. package/es/components/productSelect/index.d.ts +26 -0
  171. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  172. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  173. package/es/components/schedules/calendar/index.js +4 -4
  174. package/es/components/schedules/calendar/serve.js +2 -2
  175. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  176. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  177. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  178. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  179. package/es/components/schedules/components/ResourceList/index.js +1 -1
  180. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  181. package/es/components/schedules/components/Search/index.js +5 -5
  182. package/es/components/schedules/model.js +5 -5
  183. package/es/components/schedules/openHours/index.js +1 -1
  184. package/es/components/schedules/openHours/serve.js +2 -2
  185. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  186. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  187. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  188. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  189. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  190. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  191. package/es/components/schedules/products/index.d.ts +0 -1
  192. package/es/components/schedules/products/serve.js +2 -2
  193. package/es/components/schedules/products/utils.js +5 -5
  194. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  195. package/es/components/schedules/resources/detail/index.js +10 -10
  196. package/es/components/schedules/resources/list/index.js +2 -2
  197. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  198. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  199. package/es/components/schedules/resources/serve.js +2 -2
  200. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  201. package/es/components/schedules/utils.js +4 -4
  202. package/es/components/selectModal/index.js +2 -2
  203. package/es/components/shoppingCart/components/Cart/Product.d.ts +3 -0
  204. package/es/components/shoppingCart/components/Cart/Product.js +41 -48
  205. package/es/components/shoppingCart/components/Cart/index.d.ts +3 -0
  206. package/es/components/shoppingCart/components/Cart/index.js +18 -21
  207. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  208. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  209. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  210. package/es/components/ticketBooking/components/addServiceVariant/addService.js +157 -177
  211. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  212. package/es/components/ticketBooking/components/menuBar/index.d.ts +3 -0
  213. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
  214. package/es/components/ticketBooking/components/timeBar/index.d.ts +12 -0
  215. package/es/components/ticketBooking/components/timeBar/index.js +71 -78
  216. package/es/components/ticketBooking/index.d.ts +7 -0
  217. package/es/components/ticketBooking/locales.d.ts +174 -0
  218. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
  219. package/es/components/ticketBooking/utils/formatTime.d.ts +31 -0
  220. package/es/components/walletList/index.d.ts +28 -0
  221. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  222. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  223. package/es/hooks/useComponents.js +1 -1
  224. package/es/utils/index.d.ts +23 -0
  225. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  226. package/lib/components/Sales/Cart/utils.d.ts +63 -0
  227. package/lib/components/Sales/Checkout/index.d.ts +37 -0
  228. package/lib/components/Sales/Checkout/serve.d.ts +15 -0
  229. package/lib/components/Sales/Checkout/utils.d.ts +0 -1
  230. package/lib/components/Sales/Checkout/utils.js +2 -3
  231. package/lib/components/Sales/Customer/index.d.ts +25 -0
  232. package/lib/components/Sales/Event/Detail.d.ts +30 -0
  233. package/lib/components/Sales/Event/serve.d.ts +49 -0
  234. package/lib/components/Sales/Summary/index.d.ts +35 -0
  235. package/lib/components/Sales/Summary/serve.d.ts +1 -0
  236. package/lib/components/Sales/Summary/utils.d.ts +51 -0
  237. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
  238. package/lib/components/appointmentBooking/components/Cart/utils.d.ts +56 -0
  239. package/lib/components/appointmentBooking/components/Content/index.d.ts +3 -0
  240. package/lib/components/appointmentBooking/components/Content/index.js +7 -2
  241. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +9 -0
  242. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  243. package/lib/components/appointmentBooking/components/Form/index.d.ts +4 -0
  244. package/lib/components/appointmentBooking/components/Form/utils.d.ts +8 -0
  245. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  246. package/lib/components/appointmentBooking/components/Header/index.d.ts +3 -0
  247. package/lib/components/appointmentBooking/components/Resource/index.d.ts +7 -0
  248. package/lib/components/appointmentBooking/components/Services/index.d.ts +4 -0
  249. package/lib/components/appointmentBooking/components/TimeSlicing/index.js +7 -3
  250. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +4 -0
  251. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  252. package/lib/components/appointmentBooking/deposit/index.d.ts +3 -0
  253. package/lib/components/appointmentBooking/hooks.d.ts +106 -0
  254. package/lib/components/appointmentBooking/index.d.ts +3 -0
  255. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  256. package/lib/components/booking/components/customSelect/index.d.ts +38 -0
  257. package/lib/components/booking/components/customSelect/index.js +0 -1
  258. package/lib/components/booking/components/footer/index.d.ts +11 -0
  259. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  260. package/lib/components/booking/components/reloadResourceModal/index.d.ts +8 -0
  261. package/lib/components/booking/components/voucher/index.d.ts +3 -0
  262. package/lib/components/booking/editBookingModal/index.js +56 -21
  263. package/lib/components/booking/editBookingModal/serve.d.ts +1 -0
  264. package/lib/components/booking/editBookingModal/serve.js +12 -6
  265. package/lib/components/booking/forms/table/index.d.ts +0 -1
  266. package/lib/components/booking/hooks/useClearCart.d.ts +2 -0
  267. package/lib/components/booking/hooks/useClearCart.js +13 -16
  268. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  269. package/lib/components/booking/info/addServiceVariant/index.d.ts +6 -0
  270. package/lib/components/booking/info/client/index.d.ts +4 -0
  271. package/lib/components/booking/info/client/index.js +4 -5
  272. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  273. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  274. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
  275. package/lib/components/booking/info/hooks/useInfoHolder.js +9 -10
  276. package/lib/components/booking/info/index.d.ts +3 -0
  277. package/lib/components/booking/info/service/Lists.d.ts +2 -0
  278. package/lib/components/booking/info/service/Lists.js +23 -35
  279. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  280. package/lib/components/booking/info/service/editService/index.js +1 -7
  281. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  282. package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
  283. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  284. package/lib/components/booking/info/service2/utils.d.ts +247 -0
  285. package/lib/components/booking/info/service2/utils.js +17 -17
  286. package/lib/components/booking/info/utils.js +1 -2
  287. package/lib/components/booking/info2/index.d.ts +12 -0
  288. package/lib/components/booking/info2/service/addService/index.d.ts +11 -0
  289. package/lib/components/booking/info2/service/addService/utils.d.ts +98 -0
  290. package/lib/components/booking/info2/service/addService/utils.js +3 -5
  291. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
  292. package/lib/components/booking/info2/service/addTimeModal/index.js +0 -3
  293. package/lib/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  294. package/lib/components/booking/info2/service/editService/Resources/index.js +0 -2
  295. package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
  296. package/lib/components/booking/info2/service/editService/index.js +72 -137
  297. package/lib/components/booking/info2/service/index.d.ts +4 -0
  298. package/lib/components/booking/info2/service/index.js +9 -13
  299. package/lib/components/booking/info2/utils.d.ts +4 -0
  300. package/lib/components/booking/info2/utilsByBooking.d.ts +35 -0
  301. package/lib/components/booking/locales.d.ts +828 -0
  302. package/lib/components/booking/materiels/duration/index.d.ts +13 -0
  303. package/lib/components/booking/materiels/duration/index.js +2 -7
  304. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  305. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  306. package/lib/components/booking/model.d.ts +108 -0
  307. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  308. package/lib/components/eftpos/form/index.d.ts +0 -1
  309. package/lib/components/eftpos/group/index.d.ts +0 -1
  310. package/lib/components/eftpos/hooks.d.ts +0 -1
  311. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  312. package/lib/components/eftpos/icon/device.d.ts +0 -1
  313. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  314. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  315. package/lib/components/eftposPay/app.d.ts +0 -1
  316. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  317. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  318. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  319. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  320. package/lib/components/eftposPay/const.d.ts +184 -0
  321. package/lib/components/eftposPay/hooks.d.ts +35 -0
  322. package/lib/components/eftposPay/index.d.ts +4 -0
  323. package/lib/components/eftposPay/linkly/const.d.ts +23 -0
  324. package/lib/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  325. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  326. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  327. package/lib/components/eftposPay/linkly/index.d.ts +2 -0
  328. package/lib/components/eftposPay/linkly/service.d.ts +32 -0
  329. package/lib/components/eftposPay/manufacturer.d.ts +7 -0
  330. package/lib/components/eftposPay/pay.d.ts +20 -0
  331. package/lib/components/eftposPay/store/index.d.ts +355 -0
  332. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  333. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  334. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
  335. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +3 -0
  336. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +3 -0
  337. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  338. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  339. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  340. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  341. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  342. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  343. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  344. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  345. package/lib/components/eventBooking/components/bookingDetailModal/index.d.ts +7 -0
  346. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  347. package/lib/components/eventBooking/index.d.ts +3 -0
  348. package/lib/components/eventBooking/locales.d.ts +246 -0
  349. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
  350. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +3 -0
  351. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +61 -0
  352. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  353. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  354. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  355. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  356. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  357. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  358. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  359. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
  360. package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  361. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  362. package/lib/components/pay/toC/index.d.ts +3 -0
  363. package/lib/components/pay/toC/locales.d.ts +289 -0
  364. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  365. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  366. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  367. package/lib/components/productSelect/components/TabProduct/index.d.ts +2 -0
  368. package/lib/components/productSelect/index.d.ts +26 -0
  369. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  370. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  371. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  372. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  373. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  374. package/lib/components/schedules/products/index.d.ts +0 -1
  375. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  376. package/lib/components/schedules/utils.js +1 -1
  377. package/lib/components/shoppingCart/components/Cart/Product.d.ts +3 -0
  378. package/lib/components/shoppingCart/components/Cart/Product.js +21 -31
  379. package/lib/components/shoppingCart/components/Cart/index.d.ts +3 -0
  380. package/lib/components/shoppingCart/components/Cart/index.js +15 -18
  381. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  382. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  383. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  384. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +127 -145
  385. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  386. package/lib/components/ticketBooking/components/menuBar/index.d.ts +3 -0
  387. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
  388. package/lib/components/ticketBooking/components/timeBar/index.d.ts +12 -0
  389. package/lib/components/ticketBooking/components/timeBar/index.js +88 -95
  390. package/lib/components/ticketBooking/index.d.ts +7 -0
  391. package/lib/components/ticketBooking/locales.d.ts +174 -0
  392. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
  393. package/lib/components/ticketBooking/utils/formatTime.d.ts +31 -0
  394. package/lib/components/walletList/index.d.ts +28 -0
  395. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  396. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  397. package/lib/utils/index.d.ts +23 -0
  398. package/package.json +4 -4
  399. package/es/components/booking/info/service/editService/constants.d.ts +0 -1
  400. package/es/components/booking/info/service/editService/constants.js +0 -3
  401. package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
  402. package/lib/components/booking/info/service/editService/constants.js +0 -31
@@ -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,37 @@
1
+ import React from 'react';
2
+ interface CheckoutData {
3
+ }
4
+ interface PayProps {
5
+ order_id: string;
6
+ amount: number;
7
+ sale_channel?: string;
8
+ is_deposit?: number;
9
+ deposit_amount?: number;
10
+ total_amount?: number;
11
+ }
12
+ interface CheckoutContextType {
13
+ onCheckBeforeBooking: (data: any) => Promise<{
14
+ result: boolean;
15
+ num: number;
16
+ }>;
17
+ onCheckout: (data: any) => Promise<any>;
18
+ onPay: (payProps: PayProps) => void;
19
+ createBooking: any;
20
+ checkBeforeBooking: any;
21
+ freePay: any;
22
+ }
23
+ interface CheckoutProviderProps {
24
+ children: React.ReactNode;
25
+ }
26
+ export declare const CheckoutContext: React.Context<CheckoutContextType | undefined>;
27
+ export declare const CheckoutProvider: React.FC<CheckoutProviderProps>;
28
+ /**
29
+ * 使用步骤管理的Hook
30
+ * @throws {Error} 如果在StepProvider外部使用会抛出错误
31
+ * @returns {StepContextType} 步骤管理上下文
32
+ */
33
+ export declare const useCheckout: () => CheckoutContextType;
34
+ declare const _default: {
35
+ defaultState: CheckoutData;
36
+ };
37
+ export default _default;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @title: 下单前置校验接口
3
+ * @param {any} data
4
+ */
5
+ export declare const checkBeforeBookingApi: (data: any) => Promise<any>;
6
+ /**
7
+ * @title: 创建订单
8
+ * @param {any} data
9
+ */
10
+ export declare const createBookingApi: (data: any) => Promise<any>;
11
+ /**
12
+ * @title: 免费支付
13
+ * @param {string} orderId
14
+ */
15
+ export declare const freePayApi: (orderId: string) => Promise<any>;
@@ -29,7 +29,6 @@ export declare const formatValues: (params: {
29
29
  platform: 'h5' | 'pc';
30
30
  excludeDisabled?: boolean;
31
31
  extra?: Record<string, any>;
32
- otherValue?: Record<string, any>;
33
32
  }) => any;
34
33
  /**
35
34
  * @title: 获取拉开表单弹窗参数
@@ -86,11 +86,10 @@ var formatBookings = function formatBookings(list) {
86
86
  */
87
87
  export var formatValues = function formatValues(params) {
88
88
  var state = params.state,
89
- otherValue = params.otherValue,
90
89
  platform = params.platform,
91
90
  excludeDisabled = params.excludeDisabled,
92
91
  extra = params.extra;
93
- var values = _objectSpread(_objectSpread({
92
+ var values = _objectSpread({
94
93
  type: 'event_booking_v2',
95
94
  platform: platform === 'pc' ? 'PC' : 'H5',
96
95
  sales_channel: 'my_pisel',
@@ -98,7 +97,7 @@ export var formatValues = function formatValues(params) {
98
97
  bookings: [],
99
98
  shop_note: '',
100
99
  schedule_date: ''
101
- }, extra || {}), otherValue || {});
100
+ }, extra || {});
102
101
  console.log('values', values);
103
102
  var data = [];
104
103
  if (excludeDisabled) {
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ interface CustomerData {
3
+ }
4
+ interface CustomerContextType {
5
+ appContext: any;
6
+ appUtils: any;
7
+ isLogin: () => boolean;
8
+ openLoginModal: (params: any) => void;
9
+ getUserInfo: () => any;
10
+ }
11
+ interface CustomerProviderProps {
12
+ children: React.ReactNode;
13
+ }
14
+ export declare const CustomerContext: React.Context<CustomerContextType | undefined>;
15
+ export declare const CustomerProvider: React.FC<CustomerProviderProps>;
16
+ /**
17
+ * 使用步骤管理的Hook
18
+ * @throws {Error} 如果在StepProvider外部使用会抛出错误
19
+ * @returns {StepContextType} 步骤管理上下文
20
+ */
21
+ export declare const useCustomer: () => CustomerContextType;
22
+ declare const _default: {
23
+ defaultState: CustomerData;
24
+ };
25
+ export default _default;
@@ -0,0 +1,30 @@
1
+ import React from 'react';
2
+ interface EventDetailContextType {
3
+ detail: any;
4
+ open: boolean;
5
+ onOpenEventDetail: (eventItem: any) => void;
6
+ onCloseEventDetail: () => void;
7
+ onSelectEventDetail: () => void;
8
+ selectEventDetailBookingOptions: (v: any) => void;
9
+ getEventDetailSelectDate: {
10
+ run: (id: number, params: any) => void;
11
+ loading: boolean;
12
+ data?: any;
13
+ };
14
+ currentBookingOption: any;
15
+ selectEventDetailProductDetail: (productDetail: any) => void;
16
+ checkBeforeSelectEventDetail: () => boolean;
17
+ getProductDetailRequest: any;
18
+ }
19
+ interface EventDetailProviderProps {
20
+ children: React.ReactNode;
21
+ }
22
+ export declare const EventDetailContext: React.Context<EventDetailContextType | undefined>;
23
+ export declare const EventDetailProvider: React.FC<EventDetailProviderProps>;
24
+ /**
25
+ * 使用步骤管理的Hook
26
+ * @throws {Error} 如果在StepProvider外部使用会抛出错误
27
+ * @returns {StepContextType} 步骤管理上下文
28
+ */
29
+ export declare const useEventDetail: () => EventDetailContextType;
30
+ export {};
@@ -0,0 +1,49 @@
1
+ /**
2
+ * @title: 获取活动列表
3
+ * @description: https://menutech.w.eolink.com/home/api-studio/inside/K2bI3n465fe7244b3dbd6679d87caedfbb0636bf8c29eda/api/3102494/detail/55349999?spaceKey=menutech
4
+ * @param {any} params
5
+ * @return {*}
6
+ * @Author: zhiwei.Wang
7
+ */
8
+ export declare const getEventListApi: (params: {
9
+ event_item_resource_id: number | string;
10
+ title?: string;
11
+ skip?: number;
12
+ num?: number;
13
+ open_quotation: number;
14
+ }) => Promise<any>;
15
+ export declare const getEventDetailIntroductionApi: (eventItemId: number | string) => Promise<any>;
16
+ export declare const getEventDetailTeacherApi: (params: {
17
+ event_item_id: number | string;
18
+ }) => Promise<any>;
19
+ export declare const getEventDetailBookingOptionsApi: (params: {
20
+ ids: number | string;
21
+ num: number;
22
+ skip: number;
23
+ customer_id?: number;
24
+ open_quotation?: number;
25
+ is_eject?: number;
26
+ }) => Promise<any>;
27
+ export declare const getEventDetailSelectDateApi: (id: number | string, params: {
28
+ days: number;
29
+ start_date?: string;
30
+ }) => Promise<any>;
31
+ /**
32
+ * 批量查询指定商品的最新价格
33
+ * @param params
34
+ */
35
+ export declare const getProductPrice: (params: {
36
+ ids: number[];
37
+ customer_id: number;
38
+ schedule_date?: string;
39
+ }) => Promise<any>;
40
+ /**
41
+ * 获取商品详情
42
+ * @param id 商品id
43
+ * @param params 参数
44
+ * @returns
45
+ */
46
+ export declare const getProductDetailApi: (id: number, params: {
47
+ open_deposit?: string | number;
48
+ front_end_cache_id?: string;
49
+ }) => Promise<any>;
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+ interface SummaryData {
3
+ }
4
+ interface SummaryContextType {
5
+ subtotal: number | string;
6
+ total: number | string;
7
+ taxTitle?: string;
8
+ totalTaxFee?: string;
9
+ isPriceIncludeTax?: 0 | 1;
10
+ deposit?: {
11
+ total: string;
12
+ protocols: any[];
13
+ hasDeposit: boolean;
14
+ };
15
+ isAgreeDepositPolicy: boolean;
16
+ setIsAgreeDepositPolicy: (value: boolean) => void;
17
+ getDepositProtocol: (params: {
18
+ id: string;
19
+ }) => Promise<any>;
20
+ }
21
+ interface SummaryProviderProps {
22
+ children: React.ReactNode;
23
+ }
24
+ export declare const SummaryContext: React.Context<SummaryContextType | undefined>;
25
+ export declare const SummaryProvider: React.FC<SummaryProviderProps>;
26
+ /**
27
+ * 使用步骤管理的Hook
28
+ * @throws {Error} 如果在StepProvider外部使用会抛出错误
29
+ * @returns {StepContextType} 步骤管理上下文
30
+ */
31
+ export declare const useSummary: () => SummaryContextType;
32
+ declare const _default: {
33
+ defaultState: SummaryData;
34
+ };
35
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare const getDepositProtocolApi: (id: string) => Promise<any>;
@@ -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 {};
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const CartItem: ({ onNext }: any) => JSX.Element;
3
+ export default CartItem;
@@ -0,0 +1,56 @@
1
+ interface CheckLoginParams {
2
+ isLogin: boolean;
3
+ openLoginModal: (params: {
4
+ callback: (status: string) => void;
5
+ }) => void;
6
+ isFormSubject: boolean;
7
+ utils: any;
8
+ accountLists: any[];
9
+ appointmentBooking: any;
10
+ getHolders: () => void;
11
+ }
12
+ export declare const checkLogin: ({ isLogin, openLoginModal, isFormSubject, utils, accountLists, appointmentBooking, getHolders, }: CheckLoginParams) => Promise<boolean>;
13
+ interface CheckHolderParams {
14
+ isFormSubject: boolean;
15
+ checkAccount: (type: string) => boolean;
16
+ carts: any[];
17
+ }
18
+ export declare const checkHolder: ({ isFormSubject, checkAccount, carts }: CheckHolderParams) => false | any[];
19
+ interface CheckResourceParams {
20
+ carts: any[];
21
+ resources: any[];
22
+ }
23
+ /**
24
+ * @title: 检测资源数据
25
+ * @description:
26
+ * @param {CheckResourceParams} param1
27
+ * @return {*}
28
+ * @Author: WangHan
29
+ * @Date: 2025-04-29 18:02
30
+ */
31
+ export declare const checkResource: ({ carts, resources }: CheckResourceParams) => false | any[];
32
+ interface CheckResourceParams {
33
+ carts: any[];
34
+ }
35
+ export declare type StepKey = 'select-resource' | 'fill-form' | 'select-time' | 'confirm-information' | 'select-service' | 'select-date' | 'select-guest';
36
+ interface AddHolderParams {
37
+ res: any;
38
+ bookingSubject: any;
39
+ accountLists: any[];
40
+ cartItem: any;
41
+ getHolders: () => void;
42
+ appointmentBooking: any;
43
+ }
44
+ /**
45
+ * @title: 添加holder
46
+ * @description:
47
+ * @param {any} res
48
+ * @param {any} bookingSubject
49
+ * @param {any} accountLists
50
+ * @param {any} e
51
+ * @return {*}
52
+ * @Author: WangHan
53
+ * @Date: 2025-05-10 18:25
54
+ */
55
+ export declare const handleAddHolder: ({ res, bookingSubject, accountLists, cartItem, getHolders, appointmentBooking }: AddHolderParams) => Promise<any>;
56
+ export {};
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Layout: () => JSX.Element;
3
+ export default Layout;
@@ -32,13 +32,14 @@ import ConfirmInformation from "../ConfirmInformation";
32
32
  // };
33
33
  import { useAppointmentBookingContext } from "../../context";
34
34
  import PolicyModal from "../../deposit/components/PolicyModal";
35
+ import { scrollToFirstErrorCard } from "../Resource/utils";
35
36
  import { useAppointmentBookingCart, useAppointmentBookingStep, useAppointmentBookingSetting, useAppointmentBookingLogin, useAppointmentBookingAccount, useShopDiscount, contextUtils } from "../../hooks";
36
37
  import "./index.less";
37
38
  import useComponents from "../../../../hooks/useComponents";
38
39
  import useEngineContext from "../../../../hooks/useEngineContext";
39
40
  import { formatCustomer } from "../../utils";
40
41
  var Layout = function Layout() {
41
- var _useEngineContext$eng2, _currentStep$step, _currentStep$step3, _currentStep$step4, _currentStep$step6, _currentStep$step8;
42
+ var _useEngineContext$eng2, _currentStep$step2, _currentStep$step4, _currentStep$step5, _currentStep$step7, _currentStep$step9;
42
43
  var stepRef = useRef();
43
44
  var _ref = useAppointmentBookingContext(),
44
45
  currentStep = _ref.currentStep,
@@ -172,6 +173,7 @@ var Layout = function Layout() {
172
173
  }
173
174
  }, [isFormSubject, isLogin, isRetailTemplate]);
174
175
  useEffect(function () {
176
+ var _currentStep$step;
175
177
  if (!(currentStep !== null && currentStep !== void 0 && currentStep.step)) return;
176
178
 
177
179
  // 清空底部按钮的loading
@@ -186,7 +188,12 @@ var Layout = function Layout() {
186
188
  top: 0,
187
189
  behavior: 'smooth'
188
190
  });
189
- }, [currentStep === null || currentStep === void 0 || (_currentStep$step = currentStep.step) === null || _currentStep$step === void 0 ? void 0 : _currentStep$step.key]);
191
+
192
+ // 在确认页,滚动到第一个错误卡片的位置
193
+ if ((currentStep === null || currentStep === void 0 || (_currentStep$step = currentStep.step) === null || _currentStep$step === void 0 ? void 0 : _currentStep$step.key) === 'confirm-information') {
194
+ scrollToFirstErrorCard('.pisell-lowcode-product-card-error');
195
+ }
196
+ }, [currentStep === null || currentStep === void 0 || (_currentStep$step2 = currentStep.step) === null || _currentStep$step2 === void 0 ? void 0 : _currentStep$step2.key]);
190
197
  var components = {
191
198
  // 选择服务
192
199
  'select-service': Services,
@@ -200,8 +207,8 @@ var Layout = function Layout() {
200
207
  'confirm-information': ConfirmInformation
201
208
  };
202
209
  var Com = useMemo(function () {
203
- var _currentStep$step2;
204
- var key = currentStep === null || currentStep === void 0 || (_currentStep$step2 = currentStep.step) === null || _currentStep$step2 === void 0 ? void 0 : _currentStep$step2.key;
210
+ var _currentStep$step3;
211
+ var key = currentStep === null || currentStep === void 0 || (_currentStep$step3 = currentStep.step) === null || _currentStep$step3 === void 0 ? void 0 : _currentStep$step3.key;
205
212
  if (!key) return null;
206
213
  var Com;
207
214
  if (key.startsWith('select-resource')) {
@@ -231,7 +238,7 @@ var Layout = function Layout() {
231
238
  ref: stepRef
232
239
  });
233
240
  }
234
- }, [currentStep === null || currentStep === void 0 || (_currentStep$step3 = currentStep.step) === null || _currentStep$step3 === void 0 ? void 0 : _currentStep$step3.key]);
241
+ }, [currentStep === null || currentStep === void 0 || (_currentStep$step4 = currentStep.step) === null || _currentStep$step4 === void 0 ? void 0 : _currentStep$step4.key]);
235
242
 
236
243
  /**
237
244
  * @title: 动态计算中间内容区域的高度
@@ -255,10 +262,10 @@ var Layout = function Layout() {
255
262
  content.style.overflowY = 'auto';
256
263
  }
257
264
  }
258
- }, [currentStep === null || currentStep === void 0 || (_currentStep$step4 = currentStep.step) === null || _currentStep$step4 === void 0 ? void 0 : _currentStep$step4.key]);
265
+ }, [currentStep === null || currentStep === void 0 || (_currentStep$step5 = currentStep.step) === null || _currentStep$step5 === void 0 ? void 0 : _currentStep$step5.key]);
259
266
  var isShowCartCom = useMemo(function () {
260
- var _currentStep$step5;
261
- var key = currentStep === null || currentStep === void 0 || (_currentStep$step5 = currentStep.step) === null || _currentStep$step5 === void 0 ? void 0 : _currentStep$step5.key;
267
+ var _currentStep$step6;
268
+ var key = currentStep === null || currentStep === void 0 || (_currentStep$step6 = currentStep.step) === null || _currentStep$step6 === void 0 ? void 0 : _currentStep$step6.key;
262
269
  if (isMobile()) return null;
263
270
 
264
271
  // 先选择日期,并且当前步骤是选择日期,则不显示购物车
@@ -273,7 +280,7 @@ var Layout = function Layout() {
273
280
  return stepRef === null || stepRef === void 0 || (_stepRef$current = stepRef.current) === null || _stepRef$current === void 0 || (_stepRef$current$next = _stepRef$current.next) === null || _stepRef$current$next === void 0 ? void 0 : _stepRef$current$next.call(_stepRef$current);
274
281
  }
275
282
  }));
276
- }, [isDateSelectedFirst, currentStep === null || currentStep === void 0 || (_currentStep$step6 = currentStep.step) === null || _currentStep$step6 === void 0 ? void 0 : _currentStep$step6.key]);
283
+ }, [isDateSelectedFirst, currentStep === null || currentStep === void 0 || (_currentStep$step7 = currentStep.step) === null || _currentStep$step7 === void 0 ? void 0 : _currentStep$step7.key]);
277
284
 
278
285
  /**
279
286
  * @title: 是否显示底部
@@ -284,14 +291,14 @@ var Layout = function Layout() {
284
291
  * @Date: 2025-05-10 17:42
285
292
  */
286
293
  var isFooter = useMemo(function () {
287
- var _currentStep$step7;
294
+ var _currentStep$step8;
288
295
  if (!isMobile()) return false;
289
- var key = currentStep === null || currentStep === void 0 || (_currentStep$step7 = currentStep.step) === null || _currentStep$step7 === void 0 ? void 0 : _currentStep$step7.key;
296
+ var key = currentStep === null || currentStep === void 0 || (_currentStep$step8 = currentStep.step) === null || _currentStep$step8 === void 0 ? void 0 : _currentStep$step8.key;
290
297
 
291
298
  // 先选日期并且当前步骤是选择日期,则不显示底部
292
299
  if (isDateSelectedFirst && key === 'select-date') return false;
293
300
  return key !== 'confirm-information';
294
- }, [isDateSelectedFirst, currentStep === null || currentStep === void 0 || (_currentStep$step8 = currentStep.step) === null || _currentStep$step8 === void 0 ? void 0 : _currentStep$step8.key]);
301
+ }, [isDateSelectedFirst, currentStep === null || currentStep === void 0 || (_currentStep$step9 = currentStep.step) === null || _currentStep$step9 === void 0 ? void 0 : _currentStep$step9.key]);
295
302
 
296
303
  /**
297
304
  * @title: 获取协议方法需要在组件中定义才能传递给子组件,子组件无法获取到context中的方法
@@ -0,0 +1,9 @@
1
+ import './index.less';
2
+ export declare const DepositContent: (props: {
3
+ isAgreeDepositPolicy: boolean;
4
+ setIsAgreeDepositPolicy: (value: boolean) => void;
5
+ deposit: any;
6
+ depositProtocolRequest?: any;
7
+ }) => JSX.Element;
8
+ declare const Deposit: () => JSX.Element;
9
+ export default Deposit;
@@ -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;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare const Form: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
4
+ export default Form;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @title: 更新表单数据
3
+ * @description:
4
+ * @return {*}
5
+ * @Author: WangHan
6
+ * @Date: 2025-05-26 16:58
7
+ */
8
+ export declare const updateRelationForms: (carts: any[], currentCart: any, values: any, currentStepKey?: string) => any;
@@ -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;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Header: () => JSX.Element;
3
+ export default Header;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface ResourceProps {
4
+ onChange?: (val: any) => void;
5
+ }
6
+ declare const Resource: React.ForwardRefExoticComponent<ResourceProps & React.RefAttributes<any>>;
7
+ export default Resource;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare const Services: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
4
+ export default Services;
@@ -12,6 +12,7 @@ import React, { useEffect, useState, forwardRef, useImperativeHandle } from 'rea
12
12
  import { Iconfont, PisellEmpty } from '@pisell/materials';
13
13
  import { locales } from '@pisell/utils';
14
14
  import { useAppointmentBookingContext } from "../../context";
15
+ import { scrollToFirstErrorCard } from "../Resource/utils";
15
16
  import { useAppointmentBookingResource, useAppointmentBookingStep } from "../../hooks";
16
17
  import { Toast } from "../../utils";
17
18
  import "./index.less";
@@ -53,11 +54,14 @@ var TimeSlicing = /*#__PURE__*/forwardRef(function (props, ref) {
53
54
  while (1) switch (_context.prev = _context.next) {
54
55
  case 0:
55
56
  setSelectedTime(val);
56
- _context.next = 3;
57
+
58
+ // 滚动到第一个错误卡片的位置
59
+ scrollToFirstErrorCard('.pisell-lowcode-product-card-error');
60
+ _context.next = 4;
57
61
  return appointmentBooking.submitTimeSlot(val);
58
- case 3:
59
- result = _context.sent;
60
62
  case 4:
63
+ result = _context.sent;
64
+ case 5:
61
65
  case "end":
62
66
  return _context.stop();
63
67
  }
@@ -0,0 +1,4 @@
1
+ import '../../../booking/components/voucher/index.less';
2
+ import './index.less';
3
+ declare const VoucherCard: (props: any) => JSX.Element;
4
+ export default VoucherCard;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const DepositModal: (props: any) => JSX.Element;
3
+ export default DepositModal;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Deposit: (props: any) => JSX.Element;
3
+ export default Deposit;