@pisell/private-materials 3.3.10 → 3.3.13

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 (419) 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/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +3 -3
  6. package/build/lowcode/view.js +3 -3
  7. package/es/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +1 -2
  8. package/es/components/appointmentBooking/components/Cart/ContinueButton/index.js +42 -242
  9. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
  10. package/es/components/appointmentBooking/components/Cart/Item/index.js +13 -5
  11. package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -1
  12. package/es/components/appointmentBooking/components/Cart/index.js +5 -2
  13. package/es/components/appointmentBooking/components/Cart/utils.d.ts +0 -41
  14. package/es/components/appointmentBooking/components/Cart/utils.js +4 -308
  15. package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +2 -1
  16. package/es/components/appointmentBooking/components/ConfirmInformation/index.js +145 -4
  17. package/es/components/appointmentBooking/components/Content/index.js +35 -28
  18. package/es/components/appointmentBooking/components/Date/index.d.ts +3 -2
  19. package/es/components/appointmentBooking/components/Date/index.js +67 -34
  20. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -1
  21. package/es/components/appointmentBooking/components/Footer/index.js +12 -10
  22. package/es/components/appointmentBooking/components/Form/index.js +40 -13
  23. package/es/components/appointmentBooking/components/Guest/index.d.ts +2 -1
  24. package/es/components/appointmentBooking/components/Guest/index.js +10 -3
  25. package/es/components/appointmentBooking/components/Header/index.js +31 -23
  26. package/es/components/appointmentBooking/components/Resource/index.d.ts +5 -1
  27. package/es/components/appointmentBooking/components/Resource/index.js +138 -47
  28. package/es/components/appointmentBooking/components/Resource/utils.d.ts +5 -0
  29. package/es/components/appointmentBooking/components/Resource/utils.js +16 -0
  30. package/es/components/appointmentBooking/components/Services/index.d.ts +2 -1
  31. package/es/components/appointmentBooking/components/Services/index.js +17 -72
  32. package/es/components/appointmentBooking/components/TimeSlicing/index.d.ts +3 -2
  33. package/es/components/appointmentBooking/components/TimeSlicing/index.js +17 -4
  34. package/es/components/appointmentBooking/context.js +13 -2
  35. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +12 -9
  36. package/es/components/appointmentBooking/hooks.d.ts +2 -1
  37. package/es/components/appointmentBooking/hooks.js +71 -22
  38. package/es/components/appointmentBooking/utils.d.ts +23 -60
  39. package/es/components/appointmentBooking/utils.js +157 -175
  40. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  41. package/es/components/booking/info/utils.js +1 -1
  42. package/es/components/ticketBooking/components/ticketBooking/index.js +4 -2
  43. package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +1 -2
  44. package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.js +10 -123
  45. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
  46. package/lib/components/appointmentBooking/components/Cart/Item/index.js +4 -5
  47. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -1
  48. package/lib/components/appointmentBooking/components/Cart/index.js +2 -2
  49. package/lib/components/appointmentBooking/components/Cart/utils.d.ts +0 -41
  50. package/lib/components/appointmentBooking/components/Cart/utils.js +6 -184
  51. package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +2 -1
  52. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +65 -3
  53. package/lib/components/appointmentBooking/components/Content/index.js +36 -22
  54. package/lib/components/appointmentBooking/components/Date/index.d.ts +3 -2
  55. package/lib/components/appointmentBooking/components/Date/index.js +13 -3
  56. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -1
  57. package/lib/components/appointmentBooking/components/Footer/index.js +16 -12
  58. package/lib/components/appointmentBooking/components/Form/index.js +17 -11
  59. package/lib/components/appointmentBooking/components/Guest/index.d.ts +2 -1
  60. package/lib/components/appointmentBooking/components/Guest/index.js +7 -2
  61. package/lib/components/appointmentBooking/components/Header/index.js +10 -10
  62. package/lib/components/appointmentBooking/components/Resource/index.d.ts +5 -1
  63. package/lib/components/appointmentBooking/components/Resource/index.js +83 -30
  64. package/lib/components/appointmentBooking/components/Resource/utils.d.ts +5 -0
  65. package/lib/components/appointmentBooking/components/Resource/utils.js +36 -0
  66. package/lib/components/appointmentBooking/components/Services/index.d.ts +2 -1
  67. package/lib/components/appointmentBooking/components/Services/index.js +7 -6
  68. package/lib/components/appointmentBooking/components/TimeSlicing/index.d.ts +3 -2
  69. package/lib/components/appointmentBooking/components/TimeSlicing/index.js +14 -3
  70. package/lib/components/appointmentBooking/context.js +7 -2
  71. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +3 -1
  72. package/lib/components/appointmentBooking/hooks.d.ts +2 -1
  73. package/lib/components/appointmentBooking/hooks.js +29 -8
  74. package/lib/components/appointmentBooking/utils.d.ts +23 -60
  75. package/lib/components/appointmentBooking/utils.js +84 -82
  76. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  77. package/lib/components/booking/info/utils.js +1 -1
  78. package/lib/components/ticketBooking/components/ticketBooking/index.js +4 -2
  79. package/package.json +3 -3
  80. package/es/businessModel/SalesModel/Sales/index.d.ts +0 -24
  81. package/es/businessModel/SalesModel/hooks/index.d.ts +0 -1
  82. package/es/businessModel/SalesModel/index.d.ts +0 -3
  83. package/es/businessModel/index.d.ts +0 -0
  84. package/es/components/Sales/Cart/index.d.ts +0 -53
  85. package/es/components/Sales/Cart/serve.d.ts +0 -2
  86. package/es/components/Sales/Cart/types.d.ts +0 -19
  87. package/es/components/Sales/Checkout/index.d.ts +0 -33
  88. package/es/components/Sales/Checkout/serve.d.ts +0 -2
  89. package/es/components/Sales/Checkout/utils.d.ts +0 -27
  90. package/es/components/Sales/Customer/index.d.ts +0 -24
  91. package/es/components/Sales/Event/Detail.d.ts +0 -27
  92. package/es/components/Sales/Event/index.d.ts +0 -30
  93. package/es/components/Sales/Event/serve.d.ts +0 -26
  94. package/es/components/Sales/Holder/index.d.ts +0 -33
  95. package/es/components/Sales/Holder/serve.d.ts +0 -8
  96. package/es/components/Sales/Init/index.d.ts +0 -24
  97. package/es/components/Sales/Init/serve.d.ts +0 -3
  98. package/es/components/Sales/Resource/index.d.ts +0 -26
  99. package/es/components/Sales/Resource/serve.d.ts +0 -5
  100. package/es/components/Sales/Step/index.d.ts +0 -37
  101. package/es/components/Sales/Summary/index.d.ts +0 -25
  102. package/es/components/Sales/Summary/serve.d.ts +0 -0
  103. package/es/components/Sales/Summary/utils.d.ts +0 -36
  104. package/es/components/Sales/hooks/index.d.ts +0 -1
  105. package/es/components/Sales/index.d.ts +0 -20
  106. package/es/components/Sales/utils/index.d.ts +0 -1
  107. package/es/components/appointmentBooking/components/Date/state.d.ts +0 -62
  108. package/es/components/appointmentBooking/locales.d.ts +0 -345
  109. package/es/components/appointmentBooking/mock.d.ts +0 -627
  110. package/es/components/appointmentBooking/status.d.ts +0 -21
  111. package/es/components/appointmentBooking/type.d.ts +0 -17
  112. package/es/components/booking/addons/index.d.ts +0 -17
  113. package/es/components/booking/components/customSelect/index.d.ts +0 -38
  114. package/es/components/booking/components/footer/amount.d.ts +0 -23
  115. package/es/components/booking/components/footer/index.d.ts +0 -11
  116. package/es/components/booking/components/footer/serve.d.ts +0 -3
  117. package/es/components/booking/components/footer/utils.d.ts +0 -30
  118. package/es/components/booking/forms/index.d.ts +0 -9
  119. package/es/components/booking/forms/serve.d.ts +0 -18
  120. package/es/components/booking/hooks/useCreateBookingPageHeader.d.ts +0 -6
  121. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  122. package/es/components/booking/info/Provider.d.ts +0 -0
  123. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -6
  124. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -25
  125. package/es/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
  126. package/es/components/booking/info/hooks/useAddHolder.d.ts +0 -2
  127. package/es/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
  128. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
  129. package/es/components/booking/info/index.d.ts +0 -3
  130. package/es/components/booking/info/main.d.ts +0 -12
  131. package/es/components/booking/info/model.d.ts +0 -14
  132. package/es/components/booking/info/pet/index.d.ts +0 -14
  133. package/es/components/booking/info/service/Lists.d.ts +0 -2
  134. package/es/components/booking/info/service/addService/index.d.ts +0 -11
  135. package/es/components/booking/info/service/addService/utils.d.ts +0 -71
  136. package/es/components/booking/info/service/editService/EditTabs/index.d.ts +0 -3
  137. package/es/components/booking/info/service/index.d.ts +0 -4
  138. package/es/components/booking/info/service/serve.d.ts +0 -11
  139. package/es/components/booking/info/service/serviceList/index.d.ts +0 -5
  140. package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
  141. package/es/components/booking/info/service/serviceManager/index.d.ts +0 -20
  142. package/es/components/booking/info/service/serviceManager/utils.d.ts +0 -0
  143. package/es/components/booking/info/service2/Group/utils.d.ts +0 -14
  144. package/es/components/booking/info/service2/Lists.d.ts +0 -2
  145. package/es/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
  146. package/es/components/booking/info/service2/index.d.ts +0 -6
  147. package/es/components/booking/info/service2/status.d.ts +0 -31
  148. package/es/components/booking/info/service2/utils.d.ts +0 -241
  149. package/es/components/booking/info2/index.d.ts +0 -12
  150. package/es/components/booking/info2/serve.d.ts +0 -6
  151. package/es/components/booking/info2/service/addService/index.d.ts +0 -11
  152. package/es/components/booking/info2/service/addService/utils.d.ts +0 -88
  153. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
  154. package/es/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +0 -7
  155. package/es/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
  156. package/es/components/booking/info2/service/editService/utils.d.ts +0 -13
  157. package/es/components/booking/info2/service/index.d.ts +0 -4
  158. package/es/components/booking/info2/utils.d.ts +0 -4
  159. package/es/components/booking/info2/utilsByBooking.d.ts +0 -34
  160. package/es/components/booking/locales.d.ts +0 -786
  161. package/es/components/booking/materiels/contacts/index.d.ts +0 -15
  162. package/es/components/booking/materiels/holder/index.d.ts +0 -6
  163. package/es/components/booking/model.d.ts +0 -115
  164. package/es/components/booking/notes/addNote/index.d.ts +0 -3
  165. package/es/components/booking/payments/index.d.ts +0 -9
  166. package/es/components/booking/utils.d.ts +0 -172
  167. package/es/components/eftpos/index.d.ts +0 -46
  168. package/es/components/eftposPay/index.d.ts +0 -4
  169. package/es/components/eftposPay/windcave/windcave.d.ts +0 -6
  170. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -3
  171. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -3
  172. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -2
  173. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
  174. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
  175. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
  176. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
  177. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
  178. package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
  179. package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
  180. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -2
  181. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -2
  182. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -9
  183. package/es/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -13
  184. package/es/components/eventBooking/index.d.ts +0 -3
  185. package/es/components/eventBooking/locales.d.ts +0 -216
  186. package/es/components/eventBooking/mock.d.ts +0 -627
  187. package/es/components/eventBooking/status.d.ts +0 -21
  188. package/es/components/eventBooking/type.d.ts +0 -17
  189. package/es/components/eventBooking/utils.d.ts +0 -45
  190. package/es/components/index.d.ts +0 -18
  191. package/es/components/login/index.d.ts +0 -8
  192. package/es/components/login/locales.d.ts +0 -24
  193. package/es/components/pay/toC/PaymentList/serve.d.ts +0 -28
  194. package/es/components/pay/toC/serve.d.ts +0 -34
  195. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
  196. package/es/components/productExtension/index.d.ts +0 -7
  197. package/es/components/productSelect/hooks/useToken.d.ts +0 -18
  198. package/es/components/productSelect/locales.d.ts +0 -18
  199. package/es/components/productSelect/mock.d.ts +0 -134
  200. package/es/components/productSelect/theme/token.d.ts +0 -17
  201. package/es/components/ruleSetting/index.d.ts +0 -9
  202. package/es/components/schedules/index.d.ts +0 -3
  203. package/es/components/shoppingCart/Provider.d.ts +0 -3
  204. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -3
  205. package/es/components/shoppingCart/components/Render/index.d.ts +0 -3
  206. package/es/components/shoppingCart/hooks/useContext.d.ts +0 -1
  207. package/es/components/shoppingCart/index.d.ts +0 -3
  208. package/es/components/shoppingCart/locales.d.ts +0 -33
  209. package/es/components/shoppingCart/mock.d.ts +0 -40
  210. package/es/components/shoppingCart/status.d.ts +0 -2
  211. package/es/components/shoppingCart/type.d.ts +0 -48
  212. package/es/components/shoppingCart/utils.d.ts +0 -63
  213. package/es/components/subTotal/locales.d.ts +0 -42
  214. package/es/components/taxSelect/index.d.ts +0 -11
  215. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
  216. package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -3
  217. package/es/components/ticketBooking/data.d.ts +0 -58
  218. package/es/components/ticketBooking/hooks/useNetworkStatus.d.ts +0 -11
  219. package/es/components/ticketBooking/index.d.ts +0 -3
  220. package/es/components/ticketBooking/locales.d.ts +0 -144
  221. package/es/components/ticketBooking/miniRedux.d.ts +0 -22
  222. package/es/components/ticketBooking/serve.d.ts +0 -282
  223. package/es/components/ticketBooking/utils/index.d.ts +0 -14
  224. package/es/components/wallet/Detail/locales.d.ts +0 -96
  225. package/es/components/wallet/Detail/model.d.ts +0 -13
  226. package/es/components/wallet/Detail/serve.d.ts +0 -39
  227. package/es/components/wallet/DetailContext.d.ts +0 -25
  228. package/es/components/wallet/DiscountCard/model.d.ts +0 -14
  229. package/es/components/wallet/PointCard/model.d.ts +0 -13
  230. package/es/components/wallet/RechargeableCard/model.d.ts +0 -29
  231. package/es/components/wallet/RechargeableCard/serve.d.ts +0 -23
  232. package/es/components/wallet/Voucher/locales.d.ts +0 -21
  233. package/es/components/wallet/Voucher/model.d.ts +0 -13
  234. package/es/components/wallet/components/FooterButtons/index.d.ts +0 -18
  235. package/es/components/wallet/components/index.d.ts +0 -2
  236. package/es/components/wallet/hooks/useWalletCard.d.ts +0 -33
  237. package/es/components/wallet/locales.d.ts +0 -132
  238. package/es/components/wallet/model.d.ts +0 -37
  239. package/es/components/wallet/serve.d.ts +0 -143
  240. package/es/components/wallet/utils/formatUtils.d.ts +0 -36
  241. package/es/components/walletList/model.d.ts +0 -6
  242. package/es/components/walletList/serve.d.ts +0 -12
  243. package/es/components/walletList/types/index.d.ts +0 -194
  244. package/es/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
  245. package/es/hooks/useEngineContext.d.ts +0 -10
  246. package/es/index.d.ts +0 -45
  247. package/es/utils/locales.d.ts +0 -1
  248. package/es/utils/tasks/index.d.ts +0 -16
  249. package/es/utils/tasks/type.d.ts +0 -4
  250. package/lib/businessModel/SalesModel/Sales/index.d.ts +0 -24
  251. package/lib/businessModel/SalesModel/hooks/index.d.ts +0 -1
  252. package/lib/businessModel/SalesModel/index.d.ts +0 -3
  253. package/lib/businessModel/index.d.ts +0 -0
  254. package/lib/components/Sales/Cart/index.d.ts +0 -53
  255. package/lib/components/Sales/Cart/serve.d.ts +0 -2
  256. package/lib/components/Sales/Cart/types.d.ts +0 -19
  257. package/lib/components/Sales/Checkout/index.d.ts +0 -33
  258. package/lib/components/Sales/Checkout/serve.d.ts +0 -2
  259. package/lib/components/Sales/Checkout/utils.d.ts +0 -27
  260. package/lib/components/Sales/Customer/index.d.ts +0 -24
  261. package/lib/components/Sales/Event/Detail.d.ts +0 -27
  262. package/lib/components/Sales/Event/index.d.ts +0 -30
  263. package/lib/components/Sales/Event/serve.d.ts +0 -26
  264. package/lib/components/Sales/Holder/index.d.ts +0 -33
  265. package/lib/components/Sales/Holder/serve.d.ts +0 -8
  266. package/lib/components/Sales/Init/index.d.ts +0 -24
  267. package/lib/components/Sales/Init/serve.d.ts +0 -3
  268. package/lib/components/Sales/Resource/index.d.ts +0 -26
  269. package/lib/components/Sales/Resource/serve.d.ts +0 -5
  270. package/lib/components/Sales/Step/index.d.ts +0 -37
  271. package/lib/components/Sales/Summary/index.d.ts +0 -25
  272. package/lib/components/Sales/Summary/serve.d.ts +0 -0
  273. package/lib/components/Sales/Summary/utils.d.ts +0 -36
  274. package/lib/components/Sales/hooks/index.d.ts +0 -1
  275. package/lib/components/Sales/index.d.ts +0 -20
  276. package/lib/components/Sales/utils/index.d.ts +0 -1
  277. package/lib/components/appointmentBooking/components/Date/state.d.ts +0 -62
  278. package/lib/components/appointmentBooking/locales.d.ts +0 -345
  279. package/lib/components/appointmentBooking/mock.d.ts +0 -627
  280. package/lib/components/appointmentBooking/status.d.ts +0 -21
  281. package/lib/components/appointmentBooking/type.d.ts +0 -17
  282. package/lib/components/booking/addons/index.d.ts +0 -17
  283. package/lib/components/booking/components/customSelect/index.d.ts +0 -38
  284. package/lib/components/booking/components/footer/amount.d.ts +0 -23
  285. package/lib/components/booking/components/footer/index.d.ts +0 -11
  286. package/lib/components/booking/components/footer/serve.d.ts +0 -3
  287. package/lib/components/booking/components/footer/utils.d.ts +0 -30
  288. package/lib/components/booking/forms/index.d.ts +0 -9
  289. package/lib/components/booking/forms/serve.d.ts +0 -18
  290. package/lib/components/booking/hooks/useCreateBookingPageHeader.d.ts +0 -6
  291. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  292. package/lib/components/booking/info/Provider.d.ts +0 -0
  293. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -6
  294. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -25
  295. package/lib/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
  296. package/lib/components/booking/info/hooks/useAddHolder.d.ts +0 -2
  297. package/lib/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
  298. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
  299. package/lib/components/booking/info/index.d.ts +0 -3
  300. package/lib/components/booking/info/main.d.ts +0 -12
  301. package/lib/components/booking/info/model.d.ts +0 -14
  302. package/lib/components/booking/info/pet/index.d.ts +0 -14
  303. package/lib/components/booking/info/service/Lists.d.ts +0 -2
  304. package/lib/components/booking/info/service/addService/index.d.ts +0 -11
  305. package/lib/components/booking/info/service/addService/utils.d.ts +0 -71
  306. package/lib/components/booking/info/service/editService/EditTabs/index.d.ts +0 -3
  307. package/lib/components/booking/info/service/index.d.ts +0 -4
  308. package/lib/components/booking/info/service/serve.d.ts +0 -11
  309. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -5
  310. package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
  311. package/lib/components/booking/info/service/serviceManager/index.d.ts +0 -20
  312. package/lib/components/booking/info/service/serviceManager/utils.d.ts +0 -0
  313. package/lib/components/booking/info/service2/Group/utils.d.ts +0 -14
  314. package/lib/components/booking/info/service2/Lists.d.ts +0 -2
  315. package/lib/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
  316. package/lib/components/booking/info/service2/index.d.ts +0 -6
  317. package/lib/components/booking/info/service2/status.d.ts +0 -31
  318. package/lib/components/booking/info/service2/utils.d.ts +0 -241
  319. package/lib/components/booking/info2/index.d.ts +0 -12
  320. package/lib/components/booking/info2/serve.d.ts +0 -6
  321. package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
  322. package/lib/components/booking/info2/service/addService/utils.d.ts +0 -88
  323. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
  324. package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +0 -7
  325. package/lib/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
  326. package/lib/components/booking/info2/service/editService/utils.d.ts +0 -13
  327. package/lib/components/booking/info2/service/index.d.ts +0 -4
  328. package/lib/components/booking/info2/utils.d.ts +0 -4
  329. package/lib/components/booking/info2/utilsByBooking.d.ts +0 -34
  330. package/lib/components/booking/locales.d.ts +0 -786
  331. package/lib/components/booking/materiels/contacts/index.d.ts +0 -15
  332. package/lib/components/booking/materiels/holder/index.d.ts +0 -6
  333. package/lib/components/booking/model.d.ts +0 -115
  334. package/lib/components/booking/notes/addNote/index.d.ts +0 -3
  335. package/lib/components/booking/payments/index.d.ts +0 -9
  336. package/lib/components/booking/utils.d.ts +0 -172
  337. package/lib/components/eftpos/index.d.ts +0 -46
  338. package/lib/components/eftposPay/index.d.ts +0 -4
  339. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -6
  340. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -3
  341. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -3
  342. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -2
  343. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
  344. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
  345. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
  346. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
  347. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
  348. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
  349. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
  350. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -2
  351. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -2
  352. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -9
  353. package/lib/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -13
  354. package/lib/components/eventBooking/index.d.ts +0 -3
  355. package/lib/components/eventBooking/locales.d.ts +0 -216
  356. package/lib/components/eventBooking/mock.d.ts +0 -627
  357. package/lib/components/eventBooking/status.d.ts +0 -21
  358. package/lib/components/eventBooking/type.d.ts +0 -17
  359. package/lib/components/eventBooking/utils.d.ts +0 -45
  360. package/lib/components/index.d.ts +0 -18
  361. package/lib/components/login/index.d.ts +0 -8
  362. package/lib/components/login/locales.d.ts +0 -24
  363. package/lib/components/pay/toC/PaymentList/serve.d.ts +0 -28
  364. package/lib/components/pay/toC/serve.d.ts +0 -34
  365. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
  366. package/lib/components/productExtension/index.d.ts +0 -7
  367. package/lib/components/productSelect/hooks/useToken.d.ts +0 -18
  368. package/lib/components/productSelect/locales.d.ts +0 -18
  369. package/lib/components/productSelect/mock.d.ts +0 -134
  370. package/lib/components/productSelect/theme/token.d.ts +0 -17
  371. package/lib/components/ruleSetting/index.d.ts +0 -9
  372. package/lib/components/schedules/index.d.ts +0 -3
  373. package/lib/components/shoppingCart/Provider.d.ts +0 -3
  374. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -3
  375. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -3
  376. package/lib/components/shoppingCart/hooks/useContext.d.ts +0 -1
  377. package/lib/components/shoppingCart/index.d.ts +0 -3
  378. package/lib/components/shoppingCart/locales.d.ts +0 -33
  379. package/lib/components/shoppingCart/mock.d.ts +0 -40
  380. package/lib/components/shoppingCart/status.d.ts +0 -2
  381. package/lib/components/shoppingCart/type.d.ts +0 -48
  382. package/lib/components/shoppingCart/utils.d.ts +0 -63
  383. package/lib/components/subTotal/locales.d.ts +0 -42
  384. package/lib/components/taxSelect/index.d.ts +0 -11
  385. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
  386. package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -3
  387. package/lib/components/ticketBooking/data.d.ts +0 -58
  388. package/lib/components/ticketBooking/hooks/useNetworkStatus.d.ts +0 -11
  389. package/lib/components/ticketBooking/index.d.ts +0 -3
  390. package/lib/components/ticketBooking/locales.d.ts +0 -144
  391. package/lib/components/ticketBooking/miniRedux.d.ts +0 -22
  392. package/lib/components/ticketBooking/serve.d.ts +0 -282
  393. package/lib/components/ticketBooking/utils/index.d.ts +0 -14
  394. package/lib/components/wallet/Detail/locales.d.ts +0 -96
  395. package/lib/components/wallet/Detail/model.d.ts +0 -13
  396. package/lib/components/wallet/Detail/serve.d.ts +0 -39
  397. package/lib/components/wallet/DetailContext.d.ts +0 -25
  398. package/lib/components/wallet/DiscountCard/model.d.ts +0 -14
  399. package/lib/components/wallet/PointCard/model.d.ts +0 -13
  400. package/lib/components/wallet/RechargeableCard/model.d.ts +0 -29
  401. package/lib/components/wallet/RechargeableCard/serve.d.ts +0 -23
  402. package/lib/components/wallet/Voucher/locales.d.ts +0 -21
  403. package/lib/components/wallet/Voucher/model.d.ts +0 -13
  404. package/lib/components/wallet/components/FooterButtons/index.d.ts +0 -18
  405. package/lib/components/wallet/components/index.d.ts +0 -2
  406. package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -33
  407. package/lib/components/wallet/locales.d.ts +0 -132
  408. package/lib/components/wallet/model.d.ts +0 -37
  409. package/lib/components/wallet/serve.d.ts +0 -143
  410. package/lib/components/wallet/utils/formatUtils.d.ts +0 -36
  411. package/lib/components/walletList/model.d.ts +0 -6
  412. package/lib/components/walletList/serve.d.ts +0 -12
  413. package/lib/components/walletList/types/index.d.ts +0 -194
  414. package/lib/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
  415. package/lib/hooks/useEngineContext.d.ts +0 -10
  416. package/lib/index.d.ts +0 -45
  417. package/lib/utils/locales.d.ts +0 -1
  418. package/lib/utils/tasks/index.d.ts +0 -16
  419. package/lib/utils/tasks/type.d.ts +0 -4
@@ -1,5 +1,4 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -28,13 +27,15 @@ import { useAppointmentBookingCart, useAppointmentBookingStep, useAppointmentBoo
28
27
  import "./index.less";
29
28
  var Layout = function Layout() {
30
29
  var _currentStep$step, _currentStep$step3, _currentStep$step4, _currentStep$step6, _currentStep$step7;
30
+ var stepRef = useRef();
31
31
  var formRef = useRef();
32
32
  var _useAppointmentBookin = useAppointmentBookingContext(),
33
33
  currentStep = _useAppointmentBookin.currentStep,
34
34
  setResourceOtherParams = _useAppointmentBookin.setResourceOtherParams,
35
35
  resourceOtherParams = _useAppointmentBookin.resourceOtherParams,
36
36
  setIsAgreeDepositPolicy = _useAppointmentBookin.setIsAgreeDepositPolicy,
37
- appointmentBooking = _useAppointmentBookin.appointmentBooking;
37
+ appointmentBooking = _useAppointmentBookin.appointmentBooking,
38
+ setLoading = _useAppointmentBookin.setLoading;
38
39
  var _useAppointmentBookin2 = useAppointmentBookingSetting(),
39
40
  getLoadAllSchedule = _useAppointmentBookin2.getLoadAllSchedule,
40
41
  isDateSelectedFirst = _useAppointmentBookin2.isDateSelectedFirst,
@@ -45,7 +46,7 @@ var Layout = function Layout() {
45
46
  getHolders = _useAppointmentBookin4.getHolders;
46
47
  var _useAppointmentBookin5 = useAppointmentBookingStep(),
47
48
  removeStep = _useAppointmentBookin5.removeStep,
48
- addStep = _useAppointmentBookin5.addStep;
49
+ stepList = _useAppointmentBookin5.stepList;
49
50
 
50
51
  // 不要删除
51
52
  useAppointmentBookingCart();
@@ -60,15 +61,17 @@ var Layout = function Layout() {
60
61
  };
61
62
  }, []);
62
63
  useEffect(function () {
63
- if (isFormSubject) {
64
- removeStep('select-guest');
65
- } else {
66
- appointmentBooking.addStep({
67
- index: (currentStep === null || currentStep === void 0 ? void 0 : currentStep.index) + 1,
68
- key: 'select-guest',
69
- description: locales.getText('pisell2.appointment.add-guests')
70
- }, 'select-service');
71
- }
64
+ try {
65
+ if (isFormSubject) {
66
+ removeStep('select-guest');
67
+ } else {
68
+ appointmentBooking.addStep({
69
+ index: (currentStep === null || currentStep === void 0 ? void 0 : currentStep.index) + 1,
70
+ key: 'select-guest',
71
+ description: locales.getText('pisell2.appointment.add-guests')
72
+ }, 'select-service');
73
+ }
74
+ } catch (error) {}
72
75
  }, [isFormSubject]);
73
76
  useEffect(function () {
74
77
  if (isFormSubject && isLogin) {
@@ -76,6 +79,11 @@ var Layout = function Layout() {
76
79
  }
77
80
  }, [isFormSubject, isLogin]);
78
81
  useEffect(function () {
82
+ if (!(currentStep !== null && currentStep !== void 0 && currentStep.step)) return;
83
+
84
+ // 清空底部按钮的loading
85
+ setLoading(false);
86
+
79
87
  // 清空资源分配失败数据
80
88
  setResourceOtherParams(_objectSpread(_objectSpread({}, resourceOtherParams), {}, {
81
89
  errorList: null
@@ -85,12 +93,6 @@ var Layout = function Layout() {
85
93
  behavior: 'smooth'
86
94
  });
87
95
  }, [currentStep === null || currentStep === void 0 || (_currentStep$step = currentStep.step) === null || _currentStep$step === void 0 ? void 0 : _currentStep$step.key]);
88
-
89
- // 传递 submit 方法给 Footer
90
- var handleFormSubmit = function handleFormSubmit() {
91
- var _formRef$current, _formRef$current$subm;
92
- (_formRef$current = formRef.current) === null || _formRef$current === void 0 || (_formRef$current$subm = _formRef$current.submit) === null || _formRef$current$subm === void 0 || _formRef$current$subm.call(_formRef$current);
93
- };
94
96
  var Com = useMemo(function () {
95
97
  var _currentStep$step2;
96
98
  var key = currentStep === null || currentStep === void 0 || (_currentStep$step2 = currentStep.step) === null || _currentStep$step2 === void 0 ? void 0 : _currentStep$step2.key;
@@ -107,20 +109,17 @@ var Layout = function Layout() {
107
109
  // 时间切片
108
110
  'select-time': TimeSlicing,
109
111
  // 填写表单
110
- 'fill-form': function fillForm(props) {
111
- return /*#__PURE__*/React.createElement(Form, _extends({
112
- ref: formRef
113
- }, props));
114
- },
112
+ 'fill-form': Form,
115
113
  // 确认信息
116
114
  'confirm-information': ConfirmInformation
117
115
  };
118
116
  var Com = components[key];
119
117
  return /*#__PURE__*/React.createElement(Com, {
120
118
  onChange: setParams,
121
- params: params
119
+ params: params,
120
+ ref: stepRef
122
121
  });
123
- }, [currentStep === null || currentStep === void 0 || (_currentStep$step3 = currentStep.step) === null || _currentStep$step3 === void 0 ? void 0 : _currentStep$step3.key]);
122
+ }, [currentStep === null || currentStep === void 0 || (_currentStep$step3 = currentStep.step) === null || _currentStep$step3 === void 0 ? void 0 : _currentStep$step3.key, stepRef]);
124
123
 
125
124
  /**
126
125
  * @title: 动态计算中间内容区域的高度
@@ -157,15 +156,23 @@ var Layout = function Layout() {
157
156
  return /*#__PURE__*/React.createElement("div", {
158
157
  className: "parallel-content-right"
159
158
  }, /*#__PURE__*/React.createElement(CartItem, {
160
- onContinue: handleFormSubmit
159
+ onNext: function onNext() {
160
+ var _stepRef$current, _stepRef$current$next;
161
+ 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);
162
+ }
161
163
  }));
162
164
  }, [isDateSelectedFirst, currentStep === null || currentStep === void 0 || (_currentStep$step6 = currentStep.step) === null || _currentStep$step6 === void 0 ? void 0 : _currentStep$step6.key]);
163
165
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Header, null), /*#__PURE__*/React.createElement("div", {
164
166
  className: "parallel-content-wrap ".concat(isMobile() ? 'parallel-content-mobile-wrap' : '')
165
167
  }, /*#__PURE__*/React.createElement("div", {
166
168
  className: "parallel-content-left"
167
- }, Com), isShowCartCom), isMobile() && (currentStep === null || currentStep === void 0 || (_currentStep$step7 = currentStep.step) === null || _currentStep$step7 === void 0 ? void 0 : _currentStep$step7.key) !== 'confirm-information' ? /*#__PURE__*/React.createElement(Footer, {
168
- onContinue: handleFormSubmit
169
+ }, Com), isShowCartCom), isMobile() && (currentStep === null || currentStep === void 0 || (_currentStep$step7 = currentStep.step) === null || _currentStep$step7 === void 0 ? void 0 : _currentStep$step7.key) !== 'confirm-information' ? /*#__PURE__*/React.createElement(Footer
170
+ // isOpen={params?.isOpen}
171
+ , {
172
+ onNext: function onNext() {
173
+ var _stepRef$current2, _stepRef$current2$nex;
174
+ return stepRef === null || stepRef === void 0 || (_stepRef$current2 = stepRef.current) === null || _stepRef$current2 === void 0 || (_stepRef$current2$nex = _stepRef$current2.next) === null || _stepRef$current2$nex === void 0 ? void 0 : _stepRef$current2$nex.call(_stepRef$current2);
175
+ }
169
176
  }) : null);
170
177
  };
171
178
  export default Layout;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import './index.less';
2
- declare const CalendarDate: (props: any) => JSX.Element;
3
- export default CalendarDate;
3
+ declare const Date: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
4
+ export default Date;
@@ -13,7 +13,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
13
13
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
14
14
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
15
15
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
- import React, { useState, useEffect } from 'react';
16
+ import React, { useState, useEffect, forwardRef, useImperativeHandle } from 'react';
17
17
  import { Skeleton } from 'antd';
18
18
  import Dayjs from 'dayjs';
19
19
  import isSameOrBefore from 'dayjs/plugin/isSameOrBefore';
@@ -22,9 +22,10 @@ import classNames from 'classnames';
22
22
  import { locales, isMobile } from '@pisell/utils';
23
23
  import { CaretLeftOutlined, CaretRightOutlined } from '@ant-design/icons';
24
24
  import { useAppointmentBookingContext } from "../../context";
25
+ import { Toast } from "../../utils";
25
26
  import { useAppointmentBookingSetting } from "../../hooks";
26
27
  import "./index.less";
27
- var CalendarDate = function CalendarDate(props) {
28
+ var Date = /*#__PURE__*/forwardRef(function (props, ref) {
28
29
  var _useState = useState(false),
29
30
  _useState2 = _slicedToArray(_useState, 2),
30
31
  loading = _useState2[0],
@@ -50,6 +51,38 @@ var CalendarDate = function CalendarDate(props) {
50
51
  customPageId = _useAppointmentBookin2.customPageId,
51
52
  getLoadAllSchedule = _useAppointmentBookin2.getLoadAllSchedule,
52
53
  channel = _useAppointmentBookin2.channel;
54
+ useImperativeHandle(ref, function () {
55
+ return {
56
+ next: function () {
57
+ var _next2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
58
+ var data;
59
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
60
+ while (1) switch (_context.prev = _context.next) {
61
+ case 0:
62
+ _context.next = 2;
63
+ return appointmentBooking.getDateRange();
64
+ case 2:
65
+ data = _context.sent;
66
+ if (data !== null && data !== void 0 && data.length) {
67
+ _context.next = 5;
68
+ break;
69
+ }
70
+ return _context.abrupt("return", Toast(locales.getText('pisell2.appointment.unselect.date')));
71
+ case 5:
72
+ appointmentBooking.next();
73
+ case 6:
74
+ case "end":
75
+ return _context.stop();
76
+ }
77
+ }, _callee);
78
+ }));
79
+ function next() {
80
+ return _next2.apply(this, arguments);
81
+ }
82
+ return next;
83
+ }()
84
+ };
85
+ });
53
86
  var weekListText = [locales.getText('pisell2.appointment.sunday'), locales.getText('pisell2.appointment.monday'), locales.getText('pisell2.appointment.tuesday'), locales.getText('pisell2.appointment.wednesday'), locales.getText('pisell2.appointment.thursday'), locales.getText('pisell2.appointment.friday'), locales.getText('pisell2.appointment.saturday')];
54
87
 
55
88
  // 计算开始渲染的列
@@ -62,22 +95,22 @@ var CalendarDate = function CalendarDate(props) {
62
95
  useEffect(function () {
63
96
  // 设置当前显示的月份
64
97
  var getCurrentMonthData = /*#__PURE__*/function () {
65
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
98
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
66
99
  var _data$;
67
100
  var data;
68
- return _regeneratorRuntime().wrap(function _callee$(_context) {
69
- while (1) switch (_context.prev = _context.next) {
101
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
102
+ while (1) switch (_context2.prev = _context2.next) {
70
103
  case 0:
71
- _context.next = 2;
104
+ _context2.next = 2;
72
105
  return appointmentBooking.getDateRange();
73
106
  case 2:
74
- data = _context.sent;
107
+ data = _context2.sent;
75
108
  setCurrentMonth(Dayjs(data === null || data === void 0 || (_data$ = data[0]) === null || _data$ === void 0 ? void 0 : _data$.date) || Dayjs());
76
109
  case 4:
77
110
  case "end":
78
- return _context.stop();
111
+ return _context2.stop();
79
112
  }
80
- }, _callee);
113
+ }, _callee2);
81
114
  }));
82
115
  return function getCurrentMonthData() {
83
116
  return _ref.apply(this, arguments);
@@ -141,56 +174,56 @@ var CalendarDate = function CalendarDate(props) {
141
174
  * @Date: 2025-04-24 18:31
142
175
  */
143
176
  var getDateData = /*#__PURE__*/function () {
144
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(params) {
145
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
146
- while (1) switch (_context2.prev = _context2.next) {
177
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(params) {
178
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
179
+ while (1) switch (_context3.prev = _context3.next) {
147
180
  case 0:
148
181
  console.log(isDateSelectedFirst, customPageId, params, channel, 'wh7868');
149
182
  // 先选日期
150
183
  if (!isDateSelectedFirst) {
151
- _context2.next = 3;
184
+ _context3.next = 3;
152
185
  break;
153
186
  }
154
- return _context2.abrupt("return", appointmentBooking.loadScheduleAvailableDate(_objectSpread(_objectSpread({}, params), {}, {
187
+ return _context3.abrupt("return", appointmentBooking.loadScheduleAvailableDate(_objectSpread(_objectSpread({}, params), {}, {
155
188
  custom_page_id: customPageId,
156
189
  channel: channel
157
190
  })));
158
191
  case 3:
159
- _context2.next = 5;
192
+ _context3.next = 5;
160
193
  return appointmentBooking.getAvailableDate(params);
161
194
  case 5:
162
- return _context2.abrupt("return", _context2.sent);
195
+ return _context3.abrupt("return", _context3.sent);
163
196
  case 6:
164
197
  case "end":
165
- return _context2.stop();
198
+ return _context3.stop();
166
199
  }
167
- }, _callee2);
200
+ }, _callee3);
168
201
  }));
169
202
  return function getDateData(_x) {
170
203
  return _ref2.apply(this, arguments);
171
204
  };
172
205
  }();
173
206
  var getDates = /*#__PURE__*/function () {
174
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(date) {
207
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(date) {
175
208
  var startDate, endDate, params, data, selected, _selected$, firstAvailableDate, baseMonthData, updatedDates;
176
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
177
- while (1) switch (_context3.prev = _context3.next) {
209
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
210
+ while (1) switch (_context4.prev = _context4.next) {
178
211
  case 0:
179
- _context3.prev = 0;
212
+ _context4.prev = 0;
180
213
  startDate = Dayjs(date).startOf('month').format('YYYY-MM-DD');
181
214
  endDate = Dayjs(date).endOf('month').format('YYYY-MM-DD');
182
215
  params = {
183
216
  startDate: startDate,
184
217
  endDate: endDate
185
218
  };
186
- _context3.next = 6;
219
+ _context4.next = 6;
187
220
  return getDateData(params);
188
221
  case 6:
189
- data = _context3.sent;
190
- _context3.next = 9;
222
+ data = _context4.sent;
223
+ _context4.next = 9;
191
224
  return appointmentBooking.getDateRange();
192
225
  case 9:
193
- selected = _context3.sent;
226
+ selected = _context4.sent;
194
227
  console.log(data, selected, customPageId, 'getDates');
195
228
  if ((selected === null || selected === void 0 ? void 0 : selected.length) > 0) {
196
229
  setCurrentDate(selected === null || selected === void 0 || (_selected$ = selected[0]) === null || _selected$ === void 0 ? void 0 : _selected$.date);
@@ -225,19 +258,19 @@ var CalendarDate = function CalendarDate(props) {
225
258
  // }
226
259
  setLoading(false);
227
260
  setDateMonthList(updatedDates);
228
- _context3.next = 23;
261
+ _context4.next = 23;
229
262
  break;
230
263
  case 18:
231
- _context3.prev = 18;
232
- _context3.t0 = _context3["catch"](0);
264
+ _context4.prev = 18;
265
+ _context4.t0 = _context4["catch"](0);
233
266
  setLoading(false);
234
267
  setDateMonthList([]);
235
- console.log(_context3.t0, 'wh978968234234');
268
+ console.log(_context4.t0, 'wh978968234234');
236
269
  case 23:
237
270
  case "end":
238
- return _context3.stop();
271
+ return _context4.stop();
239
272
  }
240
- }, _callee3, null, [[0, 18]]);
273
+ }, _callee4, null, [[0, 18]]);
241
274
  }));
242
275
  return function getDates(_x2) {
243
276
  return _ref3.apply(this, arguments);
@@ -341,5 +374,5 @@ var CalendarDate = function CalendarDate(props) {
341
374
  className: classNames('day-text')
342
375
  }, Dayjs(day.date).format('D')));
343
376
  })))));
344
- };
345
- export default CalendarDate;
377
+ });
378
+ export default Date;
@@ -1,3 +1,3 @@
1
1
  import './index.less';
2
- declare const Footer: ({ onContinue }: any) => JSX.Element;
2
+ declare const Footer: ({ onNext, isOpen }: any) => JSX.Element;
3
3
  export default Footer;
@@ -15,17 +15,20 @@ import Total from "../Cart/Item/Total";
15
15
  import "./index.less";
16
16
  var Footer = function Footer(_ref) {
17
17
  var _currentStep$step;
18
- var onContinue = _ref.onContinue;
18
+ var onNext = _ref.onNext,
19
+ isOpen = _ref.isOpen;
19
20
  var _useAppointmentBookin = useAppointmentBookingContext(),
20
21
  carts = _useAppointmentBookin.carts,
21
- currentStep = _useAppointmentBookin.currentStep;
22
+ currentStep = _useAppointmentBookin.currentStep,
23
+ isErrorHolder = _useAppointmentBookin.isErrorHolder,
24
+ setIsErrorHolder = _useAppointmentBookin.setIsErrorHolder;
22
25
  var _useState = useState(false),
23
26
  _useState2 = _slicedToArray(_useState, 2),
24
27
  open = _useState2[0],
25
28
  setOpen = _useState2[1];
26
29
  useEffect(function () {
27
- setOpen(false);
28
- }, [currentStep === null || currentStep === void 0 || (_currentStep$step = currentStep.step) === null || _currentStep$step === void 0 ? void 0 : _currentStep$step.key]);
30
+ setOpen(isErrorHolder || false);
31
+ }, [currentStep === null || currentStep === void 0 || (_currentStep$step = currentStep.step) === null || _currentStep$step === void 0 ? void 0 : _currentStep$step.key, isErrorHolder]);
29
32
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SectionFooters, {
30
33
  className: "section-footer-wrap",
31
34
  left: /*#__PURE__*/React.createElement(Total, {
@@ -46,16 +49,15 @@ var Footer = function Footer(_ref) {
46
49
  src: shoppingCartSvg,
47
50
  preview: false
48
51
  }))), /*#__PURE__*/React.createElement(ContinueButton, {
49
- onContinue: onContinue,
50
- onIsErrorResource: function onIsErrorResource(val) {
51
- return setOpen(val || false);
52
- }
52
+ onNext: onNext
53
53
  }))
54
54
  }), /*#__PURE__*/React.createElement(Cart, {
55
55
  open: open,
56
56
  onCancel: function onCancel() {
57
- return setOpen(false);
58
- }
57
+ setOpen(false);
58
+ setIsErrorHolder(false);
59
+ },
60
+ onNext: onNext
59
61
  }));
60
62
  };
61
63
  export default Footer;
@@ -37,24 +37,52 @@ var Form = /*#__PURE__*/forwardRef(function (props, ref) {
37
37
  setFormStatus = _useState8[1];
38
38
  var _useAppointmentBookin = useAppointmentBookingContext(),
39
39
  carts = _useAppointmentBookin.carts,
40
- appointmentBooking = _useAppointmentBookin.appointmentBooking;
40
+ appointmentBooking = _useAppointmentBookin.appointmentBooking,
41
+ setLoading = _useAppointmentBookin.setLoading;
41
42
  var _useAppointmentBookin2 = useAppointmentBookingResource(),
42
43
  getResourceList = _useAppointmentBookin2.getResourceList;
43
44
  var _useAppointmentBookin3 = useAppointmentBookingSetting(),
44
45
  setOtherData = _useAppointmentBookin3.setOtherData,
45
46
  getOtherData = _useAppointmentBookin3.getOtherData;
47
+ useImperativeHandle(ref, function () {
48
+ return {
49
+ next: function next() {
50
+ var _manualRef$current, _manualRef$current$su;
51
+ setLoading(true);
52
+ (_manualRef$current = manualRef.current) === null || _manualRef$current === void 0 || (_manualRef$current$su = _manualRef$current.submit) === null || _manualRef$current$su === void 0 || _manualRef$current$su.call(_manualRef$current);
53
+ }
54
+ };
55
+ });
46
56
  var key = 'booking_form';
57
+
58
+ /**
59
+ * @title: 获取资源列表
60
+ * @description:
61
+ * @param {*} useMemo
62
+ * @return {*}
63
+ * @Author: WangHan
64
+ * @Date: 2025-05-06 10:00
65
+ */
47
66
  var resources = useMemo(function () {
48
67
  var _resource = getResourceList();
49
68
  return (_resource === null || _resource === void 0 ? void 0 : _resource.resources) || [];
50
69
  }, []);
70
+
71
+ /**
72
+ * @title: 获取本地存储表单
73
+ * @description:
74
+ * @param {*} useMemo
75
+ * @return {*}
76
+ * @Author: WangHan
77
+ * @Date: 2025-05-06 10:00
78
+ */
51
79
  var formStorage = useMemo(function () {
52
80
  return getOtherData(key);
53
81
  }, []);
54
82
  var newCarts = formatCarts(carts, resources);
55
83
  var forms = useMemo(function () {
56
84
  if (!(newCarts !== null && newCarts !== void 0 && newCarts.length) || !(resources !== null && resources !== void 0 && resources.length)) return [];
57
- return formatForms(newCarts);
85
+ return formatForms(newCarts) || [];
58
86
  }, [newCarts, resources]);
59
87
  var currentForm = useMemo(function () {
60
88
  return forms === null || forms === void 0 ? void 0 : forms[currentFormIndex];
@@ -80,6 +108,7 @@ var Form = /*#__PURE__*/forwardRef(function (props, ref) {
80
108
  // 如果下一个表单没有id但有协议,直接弹协议
81
109
  if (!(forms !== null && forms !== void 0 && (_forms$nextIndex = forms[nextIndex]) !== null && _forms$nextIndex !== void 0 && _forms$nextIndex.form_id) && forms !== null && forms !== void 0 && (_forms$nextIndex2 = forms[nextIndex]) !== null && _forms$nextIndex2 !== void 0 && _forms$nextIndex2.policy_id) {
82
110
  var _forms$nextIndex3;
111
+ setLoading(true);
83
112
  setAgreementContent({
84
113
  id: forms === null || forms === void 0 || (_forms$nextIndex3 = forms[nextIndex]) === null || _forms$nextIndex3 === void 0 ? void 0 : _forms$nextIndex3.policy_id
85
114
  });
@@ -99,6 +128,9 @@ var Form = /*#__PURE__*/forwardRef(function (props, ref) {
99
128
  * @Date: 2025-04-26 18:39
100
129
  */
101
130
  var updateFormStatus = function updateFormStatus(status) {
131
+ if (status === 'error') {
132
+ setLoading(false);
133
+ }
102
134
  var newFormStatus = updateLists(formStatus, 'id', currentForm === null || currentForm === void 0 ? void 0 : currentForm.form_id, {
103
135
  status: status
104
136
  });
@@ -157,14 +189,6 @@ var Form = /*#__PURE__*/forwardRef(function (props, ref) {
157
189
  setShowAgreement(false);
158
190
  goToNextForm();
159
191
  };
160
- useImperativeHandle(ref, function () {
161
- return {
162
- submit: function submit() {
163
- var _manualRef$current, _manualRef$current$su;
164
- (_manualRef$current = manualRef.current) === null || _manualRef$current === void 0 || (_manualRef$current$su = _manualRef$current.submit) === null || _manualRef$current$su === void 0 || _manualRef$current$su.call(_manualRef$current);
165
- }
166
- };
167
- });
168
192
  return /*#__PURE__*/React.createElement(React.Fragment, null, currentForm !== null && currentForm !== void 0 && currentForm.form_id ? /*#__PURE__*/React.createElement("div", {
169
193
  className: "appointment-form-wrap"
170
194
  }, /*#__PURE__*/React.createElement(FormCard, {
@@ -189,12 +213,15 @@ var Form = /*#__PURE__*/forwardRef(function (props, ref) {
189
213
  onFormValueChange: function onFormValueChange(values) {
190
214
  console.log(values, 'onFormValueChange');
191
215
  },
192
- defaultValues: formStorage === null || formStorage === void 0 ? void 0 : formStorage[currentForm === null || currentForm === void 0 ? void 0 : currentForm.id],
193
- isClearData: false
216
+ defaultValues: (formStorage === null || formStorage === void 0 ? void 0 : formStorage[currentForm === null || currentForm === void 0 ? void 0 : currentForm.id]) || {},
217
+ isClearData: !(formStorage !== null && formStorage !== void 0 && formStorage[currentForm === null || currentForm === void 0 ? void 0 : currentForm.id])
194
218
  })) : null, showAgreement ? /*#__PURE__*/React.createElement(PolicyModal, {
195
219
  open: showAgreement,
196
220
  onCancel: handleAgreementOk,
197
- item: agreementContent
221
+ item: agreementContent,
222
+ onChange: function onChange() {
223
+ return setLoading(false);
224
+ }
198
225
  }) : null);
199
226
  });
200
227
  export default Form;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import './index.less';
2
- declare const Guest: () => JSX.Element;
3
+ declare const Guest: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
3
4
  export default Guest;
@@ -4,7 +4,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
4
4
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
5
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
- import React, { useMemo, useState } from 'react';
7
+ import React, { useMemo, useState, forwardRef, useImperativeHandle } from 'react';
8
8
  import { Dropdown } from 'antd';
9
9
  import { Button, Iconfont, PisellCard, PisellAvatar, PisellToast } from '@pisell/materials';
10
10
  import { locales, isMobile, getUniqueId } from '@pisell/utils';
@@ -13,7 +13,7 @@ import { useAppointmentBookingContext } from "../../context";
13
13
  import { useAppointmentBookingAccount } from "../../hooks";
14
14
  import { formatGuest } from "../../utils";
15
15
  import "./index.less";
16
- var Guest = function Guest() {
16
+ var Guest = /*#__PURE__*/forwardRef(function (props, ref) {
17
17
  var _useState = useState(false),
18
18
  _useState2 = _slicedToArray(_useState, 2),
19
19
  openOption = _useState2[0],
@@ -28,6 +28,13 @@ var Guest = function Guest() {
28
28
  appointmentBooking = _useAppointmentBookin.appointmentBooking;
29
29
  var _useAppointmentBookin2 = useAppointmentBookingAccount(),
30
30
  accountLists = _useAppointmentBookin2.accountLists;
31
+ useImperativeHandle(ref, function () {
32
+ return {
33
+ next: function next() {
34
+ appointmentBooking.next();
35
+ }
36
+ };
37
+ });
31
38
  var lists = useMemo(function () {
32
39
  var _lists = formatGuest(accountLists, carts);
33
40
  return _lists;
@@ -172,5 +179,5 @@ var Guest = function Guest() {
172
179
  setOpenOption(false);
173
180
  }
174
181
  }) : null);
175
- };
182
+ });
176
183
  export default Guest;
@@ -23,7 +23,8 @@ var Header = function Header() {
23
23
  checkSkipResourceStep = _useIsSkipResourceSte.checkSkipResourceStep;
24
24
  var _useAppointmentBookin2 = useAppointmentBookingStep(),
25
25
  getStepIndex = _useAppointmentBookin2.getStepIndex,
26
- stepList = _useAppointmentBookin2.stepList;
26
+ stepList = _useAppointmentBookin2.stepList,
27
+ updateStep = _useAppointmentBookin2.updateStep;
27
28
  var _useAppointmentBookin3 = useAppointmentBookingSetting(),
28
29
  setOtherData = _useAppointmentBookin3.setOtherData;
29
30
  var _useAppointmentBookin4 = useAppointmentBookingProduct(),
@@ -60,7 +61,7 @@ var Header = function Header() {
60
61
  var handleBack = /*#__PURE__*/function () {
61
62
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
62
63
  var _currentStep$step4;
63
- var key, types, _carts$, type, isHasForm, shouldCheckSkip, skipResourceStep, targetIndex;
64
+ var key, types, _carts$, type, resourceStep;
64
65
  return _regeneratorRuntime().wrap(function _callee$(_context) {
65
66
  while (1) switch (_context.prev = _context.next) {
66
67
  case 0:
@@ -101,30 +102,37 @@ var Header = function Header() {
101
102
  setOtherData('booking_form', {});
102
103
  }
103
104
 
104
- // 5. 判断是否需要跳过资源步骤
105
- isHasForm = stepList === null || stepList === void 0 ? void 0 : stepList.some(function (item) {
106
- return item.key === 'fill-form';
107
- });
108
- shouldCheckSkip = isHasForm && key === 'fill-form' || key === 'select-time';
109
- if (!shouldCheckSkip) {
110
- _context.next = 22;
111
- break;
112
- }
113
- _context.next = 17;
114
- return checkSkipResourceStep();
115
- case 17:
116
- skipResourceStep = _context.sent;
117
- if (!skipResourceStep) {
118
- _context.next = 22;
119
- break;
105
+ // // 5. 判断是否需要跳过资源步骤
106
+ // const isHasForm = stepList?.some((item: any) => item.key === 'fill-form');
107
+ // const shouldCheckSkip =
108
+ // (isHasForm && key === 'fill-form') || key === 'select-time';
109
+
110
+ // if (shouldCheckSkip) {
111
+ // const skipResourceStep = await checkSkipResourceStep(true);
112
+ // if (skipResourceStep) {
113
+ // appointmentBooking.deleteCartItemInfo('resource');
114
+ // const targetIndex = getStepIndex('prev', 2);
115
+ // return appointmentBooking.gotoStep(targetIndex);
116
+ // }
117
+ // }
118
+
119
+ // 如果前一步是资源步骤,并且被跳过了,则清空资源
120
+ resourceStep = stepList[(currentStep === null || currentStep === void 0 ? void 0 : currentStep.index) - 1];
121
+ if (resourceStep !== null && resourceStep !== void 0 && resourceStep.isSkip && (resourceStep === null || resourceStep === void 0 ? void 0 : resourceStep.key) === 'select-resource') {
122
+ appointmentBooking.deleteCartItemInfo('resource');
120
123
  }
121
- appointmentBooking.deleteCartItemInfo('resource');
122
- targetIndex = getStepIndex('prev', 2);
123
- return _context.abrupt("return", appointmentBooking.gotoStep(targetIndex));
124
- case 22:
124
+
125
125
  // 6. 默认回退一步
126
126
  appointmentBooking.back();
127
- case 23:
127
+
128
+ // 再次将步骤更新为false
129
+ if (resourceStep !== null && resourceStep !== void 0 && resourceStep.isSkip && (resourceStep === null || resourceStep === void 0 ? void 0 : resourceStep.key) === 'select-resource') {
130
+ updateStep(resourceStep === null || resourceStep === void 0 ? void 0 : resourceStep.key, {
131
+ index: currentStep === null || currentStep === void 0 ? void 0 : currentStep.index,
132
+ isSkip: false
133
+ });
134
+ }
135
+ case 16:
128
136
  case "end":
129
137
  return _context.stop();
130
138
  }
@@ -1,3 +1,7 @@
1
+ import React from 'react';
1
2
  import './index.less';
2
- declare const Resource: () => JSX.Element;
3
+ interface ResourceProps {
4
+ onChange?: (val: any) => void;
5
+ }
6
+ declare const Resource: React.ForwardRefExoticComponent<ResourceProps & React.RefAttributes<any>>;
3
7
  export default Resource;