@pisell/private-materials 6.0.24 → 6.0.25

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 (661) 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 +162 -146
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +12 -27
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +18 -33
  11. package/es/businessModel/SalesModel/Sales/index.d.ts +24 -0
  12. package/es/businessModel/SalesModel/Sales/index.js +69 -0
  13. package/es/businessModel/SalesModel/hooks/index.d.ts +1 -0
  14. package/es/businessModel/SalesModel/hooks/index.js +7 -0
  15. package/es/businessModel/SalesModel/index.d.ts +4 -0
  16. package/es/businessModel/SalesModel/index.js +18 -0
  17. package/es/businessModel/index.d.ts +0 -0
  18. package/es/businessModel/index.js +0 -0
  19. package/es/components/Sales/Cart/index.d.ts +53 -0
  20. package/es/components/Sales/Cart/index.js +590 -0
  21. package/es/components/Sales/Cart/serve.d.ts +2 -0
  22. package/es/components/Sales/Cart/serve.js +11 -0
  23. package/es/components/Sales/Cart/types.d.ts +19 -0
  24. package/es/components/Sales/Cart/types.js +1 -0
  25. package/es/components/Sales/Checkout/index.d.ts +33 -0
  26. package/es/components/Sales/Checkout/index.js +152 -0
  27. package/es/components/Sales/Checkout/serve.d.ts +2 -0
  28. package/es/components/Sales/Checkout/serve.js +11 -0
  29. package/es/components/Sales/Checkout/utils.d.ts +27 -0
  30. package/es/components/Sales/Checkout/utils.js +104 -0
  31. package/es/components/Sales/Customer/index.d.ts +24 -0
  32. package/es/components/Sales/Customer/index.js +59 -0
  33. package/es/components/Sales/Event/Detail.d.ts +27 -0
  34. package/es/components/Sales/Event/Detail.js +246 -0
  35. package/es/components/Sales/Event/index.d.ts +30 -0
  36. package/es/components/Sales/Event/index.js +123 -0
  37. package/es/components/Sales/Event/serve.d.ts +26 -0
  38. package/es/components/Sales/Event/serve.js +33 -0
  39. package/es/components/Sales/Holder/index.d.ts +33 -0
  40. package/es/components/Sales/Holder/index.js +229 -0
  41. package/es/components/Sales/Holder/serve.d.ts +8 -0
  42. package/es/components/Sales/Holder/serve.js +20 -0
  43. package/es/components/Sales/Init/index.d.ts +24 -0
  44. package/es/components/Sales/Init/index.js +117 -0
  45. package/es/components/Sales/Init/serve.d.ts +3 -0
  46. package/es/components/Sales/Init/serve.js +11 -0
  47. package/es/components/Sales/Resource/index.d.ts +26 -0
  48. package/es/components/Sales/Resource/index.js +128 -0
  49. package/es/components/Sales/Resource/serve.d.ts +5 -0
  50. package/es/components/Sales/Resource/serve.js +8 -0
  51. package/es/components/Sales/Step/index.d.ts +37 -0
  52. package/es/components/Sales/Step/index.js +195 -0
  53. package/es/components/Sales/Summary/index.d.ts +25 -0
  54. package/es/components/Sales/Summary/index.js +50 -0
  55. package/es/components/Sales/Summary/serve.d.ts +0 -0
  56. package/es/components/Sales/Summary/serve.js +0 -0
  57. package/es/components/Sales/Summary/utils.d.ts +36 -0
  58. package/es/components/Sales/Summary/utils.js +63 -0
  59. package/es/components/Sales/hooks/index.d.ts +1 -0
  60. package/es/components/Sales/hooks/index.js +3 -0
  61. package/es/components/Sales/index.d.ts +20 -0
  62. package/es/components/Sales/index.js +26 -0
  63. package/es/components/Sales/utils/index.d.ts +1 -0
  64. package/es/components/Sales/utils/index.js +18 -0
  65. package/es/components/booking/components/customSelect/index.d.ts +1 -0
  66. package/es/components/booking/components/customSelect/index.js +6 -2
  67. package/es/components/booking/components/footer/AppointmentProductModal/index.d.ts +3 -0
  68. package/es/components/booking/components/footer/AppointmentProductModal/index.js +38 -0
  69. package/es/components/booking/components/footer/AppointmentProductModal/index.less +0 -0
  70. package/es/components/booking/components/footer/amount.js +46 -22
  71. package/es/components/booking/components/footer/index.js +116 -79
  72. package/es/components/booking/components/footer/serve.d.ts +2 -0
  73. package/es/components/booking/components/footer/serve.js +44 -0
  74. package/es/components/booking/components/footer/utils.js +280 -35
  75. package/es/components/booking/info/Provider.d.ts +0 -0
  76. package/es/components/booking/info/Provider.js +54 -0
  77. package/es/components/booking/info/addServiceVariant/index.js +8 -1
  78. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +1 -0
  79. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +14 -13
  80. package/es/components/booking/info/clientVariant/vertical/index.js +131 -15
  81. package/es/components/booking/info/dateRange/index.d.ts +4 -0
  82. package/es/components/booking/info/dateRange/index.js +98 -0
  83. package/es/components/booking/info/dateRange/index.less +21 -0
  84. package/es/components/booking/info/main.js +44 -28
  85. package/es/components/booking/info/model.js +3 -0
  86. package/es/components/booking/info/pet/ChangePetModal/index.d.ts +4 -0
  87. package/es/components/booking/info/pet/ChangePetModal/index.js +134 -0
  88. package/es/components/booking/info/pet/ChangePetModal/index.less +4 -0
  89. package/es/components/booking/info/pet/index.d.ts +1 -1
  90. package/es/components/booking/info/pet/index.js +93 -34
  91. package/es/components/booking/info/service/addService/index.d.ts +0 -1
  92. package/es/components/booking/info/service/addService/index.js +195 -104
  93. package/es/components/booking/info/service/addService/index.less +13 -3
  94. package/es/components/booking/info/service/addService/utils.d.ts +12 -2
  95. package/es/components/booking/info/service/addService/utils.js +103 -26
  96. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  97. package/es/components/booking/info/service/editService/BookingList/index.d.ts +4 -0
  98. package/es/components/booking/info/service/editService/BookingList/index.js +39 -0
  99. package/es/components/booking/info/service/editService/EditTabs/index.d.ts +3 -0
  100. package/es/components/booking/info/service/editService/EditTabs/index.js +35 -0
  101. package/es/components/booking/info/service/editService/index.js +449 -141
  102. package/es/components/booking/info/service/editService/index.less +18 -13
  103. package/es/components/booking/info/service/serve.d.ts +10 -0
  104. package/es/components/booking/info/service/serve.js +28 -0
  105. package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +11 -0
  106. package/es/components/booking/info/service/serviceManager/distributeDiscount.js +55 -0
  107. package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
  108. package/es/components/booking/info/service/serviceManager/index.js +281 -0
  109. package/es/components/booking/info/service/serviceManager/utils.d.ts +0 -0
  110. package/es/components/booking/info/service/serviceManager/utils.js +0 -0
  111. package/es/components/booking/info/service2/Group/utils.d.ts +14 -0
  112. package/es/components/booking/info/service2/Group/utils.js +146 -0
  113. package/es/components/booking/info/service2/Lists.d.ts +3 -0
  114. package/es/components/booking/info/service2/Lists.js +153 -0
  115. package/es/components/booking/info/service2/hooks/useSelectPet.d.ts +6 -0
  116. package/es/components/booking/info/service2/hooks/useSelectPet.js +54 -0
  117. package/es/components/booking/info/service2/index.d.ts +6 -0
  118. package/es/components/booking/info/service2/index.js +57 -0
  119. package/es/components/booking/info/service2/status.d.ts +31 -0
  120. package/es/components/booking/info/service2/status.js +78 -0
  121. package/es/components/booking/info/service2/utils.d.ts +240 -0
  122. package/es/components/booking/info/service2/utils.js +1077 -0
  123. package/es/components/booking/info/utils.d.ts +20 -0
  124. package/es/components/booking/info/utils.js +38 -1
  125. package/es/components/booking/info2/utilsByBooking.js +0 -1
  126. package/es/components/booking/locales.d.ts +66 -0
  127. package/es/components/booking/locales.js +81 -3
  128. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  129. package/es/components/booking/materiels/holder/index.d.ts +7 -0
  130. package/es/components/booking/materiels/holder/index.js +51 -0
  131. package/es/components/booking/model.d.ts +5 -1
  132. package/es/components/booking/model.js +4 -2
  133. package/es/components/booking/utils.d.ts +12 -3
  134. package/es/components/booking/utils.js +143 -26
  135. package/es/components/eftpos/hooks.d.ts +4 -4
  136. package/es/components/eftpos/index.d.ts +1 -0
  137. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  138. package/es/components/eftposPay/component/fail/index.d.ts +0 -1
  139. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
  140. package/es/components/eftposPay/component/step/index.d.ts +6 -6
  141. package/es/components/eftposPay/component/step/step.d.ts +4 -4
  142. package/es/components/eftposPay/hooks.d.ts +1 -1
  143. package/es/components/eftposPay/pay.d.ts +0 -1
  144. package/es/components/eftposPay/tyro/hooks.d.ts +2 -2
  145. package/es/components/eftposPay/windcave/helper.d.ts +1 -1
  146. package/es/components/eventBooking/assets/alert-circle.png +0 -0
  147. package/es/components/eventBooking/assets/calendar-heart.svg +5 -0
  148. package/es/components/eventBooking/assets/compass.svg +13 -0
  149. package/es/components/eventBooking/assets/image.svg +5 -0
  150. package/es/components/eventBooking/assets/phone.svg +5 -0
  151. package/es/components/eventBooking/assets/shopping-cart.svg +10 -0
  152. package/es/components/eventBooking/components/ErrorTip/index.d.ts +3 -0
  153. package/es/components/eventBooking/components/ErrorTip/index.js +14 -0
  154. package/es/components/eventBooking/components/ErrorTip/index.less +51 -0
  155. package/es/components/eventBooking/components/OpenCard/index.d.ts +4 -0
  156. package/es/components/eventBooking/components/OpenCard/index.js +65 -0
  157. package/es/components/eventBooking/components/OpenCard/index.less +52 -0
  158. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +3 -0
  159. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +274 -0
  160. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
  161. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +3 -0
  162. package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +46 -0
  163. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +3 -0
  164. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +63 -0
  165. package/es/components/eventBooking/components/Provider/Cart/Item/index.less +87 -0
  166. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +3 -0
  167. package/es/components/eventBooking/components/Provider/Cart/index.js +30 -0
  168. package/es/components/eventBooking/components/Provider/Cart/index.less +2 -0
  169. package/es/components/eventBooking/components/Provider/Content/index.d.ts +4 -0
  170. package/es/components/eventBooking/components/Provider/Content/index.js +65 -0
  171. package/es/components/eventBooking/components/Provider/Content/index.less +31 -0
  172. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +3 -0
  173. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.js +34 -0
  174. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.less +17 -0
  175. package/es/components/eventBooking/components/Provider/Event/index.d.ts +3 -0
  176. package/es/components/eventBooking/components/Provider/Event/index.js +93 -0
  177. package/es/components/eventBooking/components/Provider/Event/index.less +20 -0
  178. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +3 -0
  179. package/es/components/eventBooking/components/Provider/Footer/index.js +76 -0
  180. package/es/components/eventBooking/components/Provider/Footer/index.less +64 -0
  181. package/es/components/eventBooking/components/Provider/Header/index.d.ts +4 -0
  182. package/es/components/eventBooking/components/Provider/Header/index.js +75 -0
  183. package/es/components/eventBooking/components/Provider/Header/index.less +2 -0
  184. package/es/components/eventBooking/components/Provider/Information/index.d.ts +3 -0
  185. package/es/components/eventBooking/components/Provider/Information/index.js +178 -0
  186. package/es/components/eventBooking/components/Provider/Information/index.less +92 -0
  187. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +3 -0
  188. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.js +34 -0
  189. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.less +27 -0
  190. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +3 -0
  191. package/es/components/eventBooking/components/Provider/OrderProductModal/index.js +27 -0
  192. package/es/components/eventBooking/components/Provider/OrderProductModal/index.less +32 -0
  193. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +2 -0
  194. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.js +31 -0
  195. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +3 -0
  196. package/es/components/eventBooking/components/Provider/Resource/index.js +79 -0
  197. package/es/components/eventBooking/components/Provider/Resource/index.less +46 -0
  198. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +3 -0
  199. package/es/components/eventBooking/components/Provider/SelectHolderModal.js +90 -0
  200. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +4 -0
  201. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +26 -0
  202. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +25 -0
  203. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +10 -0
  204. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +65 -0
  205. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +32 -0
  206. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +3 -0
  207. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +69 -0
  208. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +12 -0
  209. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +12 -0
  210. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +152 -0
  211. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +35 -0
  212. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +4 -0
  213. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +20 -0
  214. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +28 -0
  215. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +5 -0
  216. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +38 -0
  217. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +87 -0
  218. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +4 -0
  219. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +28 -0
  220. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +25 -0
  221. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +4 -0
  222. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +269 -0
  223. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +119 -0
  224. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +63 -0
  225. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +256 -0
  226. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +4 -0
  227. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +173 -0
  228. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +4 -0
  229. package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +14 -0
  230. package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.js +36 -0
  231. package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.less +2 -0
  232. package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +34 -0
  233. package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.js +70 -0
  234. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +2 -0
  235. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.js +38 -0
  236. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +3 -0
  237. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.js +33 -0
  238. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +3 -0
  239. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.js +30 -0
  240. package/es/components/eventBooking/components/bookingDetailModal/index.d.ts +7 -0
  241. package/es/components/eventBooking/components/bookingDetailModal/index.js +337 -0
  242. package/es/components/eventBooking/components/bookingDetailModal/index.less +82 -0
  243. package/es/components/eventBooking/components/bookingServiceList/index.d.ts +17 -0
  244. package/es/components/eventBooking/components/bookingServiceList/index.js +52 -0
  245. package/es/components/eventBooking/components/bookingServiceList/index.less +6 -0
  246. package/es/components/eventBooking/components/eventCard/index.d.ts +14 -0
  247. package/es/components/eventBooking/components/eventCard/index.js +116 -0
  248. package/es/components/eventBooking/components/eventCard/index.less +81 -0
  249. package/es/components/eventBooking/components/productCard/index.d.ts +16 -0
  250. package/es/components/eventBooking/components/productCard/index.js +79 -0
  251. package/es/components/eventBooking/components/productCard/index.less +60 -0
  252. package/es/components/eventBooking/components/progressBar/index.d.ts +16 -0
  253. package/es/components/eventBooking/components/progressBar/index.js +93 -0
  254. package/es/components/eventBooking/components/progressBar/index.less +15 -0
  255. package/es/components/eventBooking/components/resourceDisplay/index.d.ts +23 -0
  256. package/es/components/eventBooking/components/resourceDisplay/index.js +148 -0
  257. package/es/components/eventBooking/components/resourceDisplay/index.less +95 -0
  258. package/es/components/eventBooking/components/resourceUsability/index.d.ts +12 -0
  259. package/es/components/eventBooking/components/resourceUsability/index.js +44 -0
  260. package/es/components/eventBooking/components/resourceUsability/index.less +40 -0
  261. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +10 -0
  262. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.js +37 -0
  263. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.less +58 -0
  264. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +11 -0
  265. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.js +127 -0
  266. package/es/components/eventBooking/components/scheduleCalendar/index.d.ts +13 -0
  267. package/es/components/eventBooking/components/scheduleCalendar/index.js +142 -0
  268. package/es/components/eventBooking/components/scheduleCalendar/index.less +222 -0
  269. package/es/components/eventBooking/components/selectHolder/index.d.ts +22 -0
  270. package/es/components/eventBooking/components/selectHolder/index.js +118 -0
  271. package/es/components/eventBooking/components/selectHolder/index.less +70 -0
  272. package/es/components/eventBooking/components/timeResourceSelector/index.d.ts +20 -0
  273. package/es/components/eventBooking/components/timeResourceSelector/index.js +168 -0
  274. package/es/components/eventBooking/components/timeResourceSelector/index.less +74 -0
  275. package/es/components/eventBooking/index.d.ts +4 -0
  276. package/es/components/eventBooking/index.js +58 -0
  277. package/es/components/eventBooking/index.less +22 -0
  278. package/es/components/eventBooking/locales.d.ts +216 -0
  279. package/es/components/eventBooking/locales.js +251 -0
  280. package/es/components/eventBooking/mock.d.ts +627 -0
  281. package/es/components/eventBooking/mock.js +1172 -0
  282. package/es/components/eventBooking/status.d.ts +21 -0
  283. package/es/components/eventBooking/status.js +51 -0
  284. package/es/components/eventBooking/type.d.ts +17 -0
  285. package/es/components/eventBooking/type.js +1 -0
  286. package/es/components/eventBooking/utils.d.ts +45 -0
  287. package/es/components/eventBooking/utils.js +99 -0
  288. package/es/components/login/index.d.ts +1 -0
  289. package/es/components/productExtension/index.d.ts +1 -0
  290. package/es/components/shoppingCart/Provider.d.ts +3 -0
  291. package/es/components/shoppingCart/Provider.js +86 -0
  292. package/es/components/shoppingCart/components/Cart/Product.d.ts +3 -0
  293. package/es/components/shoppingCart/components/Cart/Product.js +71 -0
  294. package/es/components/shoppingCart/components/Cart/index.d.ts +3 -0
  295. package/es/components/shoppingCart/components/Cart/index.js +73 -0
  296. package/es/components/shoppingCart/components/Cart/index.less +68 -0
  297. package/es/components/shoppingCart/components/Empty/index.d.ts +4 -0
  298. package/es/components/shoppingCart/components/Empty/index.js +15 -0
  299. package/es/components/shoppingCart/components/Empty/index.less +19 -0
  300. package/es/components/shoppingCart/components/Render/index.d.ts +4 -0
  301. package/es/components/shoppingCart/components/Render/index.js +70 -0
  302. package/es/components/shoppingCart/components/Render/index.less +2 -0
  303. package/es/components/shoppingCart/components/SelectHolderModal/index.d.ts +4 -0
  304. package/es/components/shoppingCart/components/SelectHolderModal/index.js +132 -0
  305. package/es/components/shoppingCart/components/SelectHolderModal/index.less +32 -0
  306. package/es/components/shoppingCart/hooks/useAddService.d.ts +2 -0
  307. package/es/components/shoppingCart/hooks/useAddService.js +23 -0
  308. package/es/components/shoppingCart/hooks/useClearCart.d.ts +2 -0
  309. package/es/components/shoppingCart/hooks/useClearCart.js +59 -0
  310. package/es/components/shoppingCart/hooks/useContext.d.ts +1 -0
  311. package/es/components/shoppingCart/hooks/useContext.js +5 -0
  312. package/es/components/shoppingCart/index.d.ts +4 -0
  313. package/es/components/shoppingCart/index.js +24 -0
  314. package/es/components/shoppingCart/locales.d.ts +33 -0
  315. package/es/components/shoppingCart/locales.js +38 -0
  316. package/es/components/shoppingCart/mock.d.ts +40 -0
  317. package/es/components/shoppingCart/mock.js +40 -0
  318. package/es/components/shoppingCart/status.d.ts +2 -0
  319. package/es/components/shoppingCart/status.js +22 -0
  320. package/es/components/shoppingCart/type.d.ts +40 -0
  321. package/es/components/shoppingCart/type.js +1 -0
  322. package/es/components/shoppingCart/utils.d.ts +63 -0
  323. package/es/components/shoppingCart/utils.js +116 -0
  324. package/es/components/tabProduct/tabs/index.less +13 -3
  325. package/es/components/taxSelect/index.d.ts +1 -0
  326. package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
  327. package/es/components/workSpaceList/server.d.ts +3 -3
  328. package/es/index.d.ts +13 -0
  329. package/es/index.js +14 -1
  330. package/lib/businessModel/SalesModel/Sales/index.d.ts +24 -0
  331. package/lib/businessModel/SalesModel/Sales/index.js +104 -0
  332. package/lib/businessModel/SalesModel/hooks/index.d.ts +1 -0
  333. package/lib/businessModel/SalesModel/hooks/index.js +34 -0
  334. package/lib/businessModel/SalesModel/index.d.ts +4 -0
  335. package/lib/businessModel/SalesModel/index.js +51 -0
  336. package/lib/businessModel/index.d.ts +0 -0
  337. package/lib/businessModel/index.js +0 -0
  338. package/lib/components/Sales/Cart/index.d.ts +53 -0
  339. package/lib/components/Sales/Cart/index.js +500 -0
  340. package/lib/components/Sales/Cart/serve.d.ts +2 -0
  341. package/lib/components/Sales/Cart/serve.js +37 -0
  342. package/lib/components/Sales/Cart/types.d.ts +19 -0
  343. package/lib/components/Sales/Cart/types.js +17 -0
  344. package/lib/components/Sales/Checkout/index.d.ts +33 -0
  345. package/lib/components/Sales/Checkout/index.js +130 -0
  346. package/lib/components/Sales/Checkout/serve.d.ts +2 -0
  347. package/lib/components/Sales/Checkout/serve.js +37 -0
  348. package/lib/components/Sales/Checkout/utils.d.ts +27 -0
  349. package/lib/components/Sales/Checkout/utils.js +88 -0
  350. package/lib/components/Sales/Customer/index.d.ts +24 -0
  351. package/lib/components/Sales/Customer/index.js +90 -0
  352. package/lib/components/Sales/Event/Detail.d.ts +27 -0
  353. package/lib/components/Sales/Event/Detail.js +224 -0
  354. package/lib/components/Sales/Event/index.d.ts +30 -0
  355. package/lib/components/Sales/Event/index.js +136 -0
  356. package/lib/components/Sales/Event/serve.d.ts +26 -0
  357. package/lib/components/Sales/Event/serve.js +54 -0
  358. package/lib/components/Sales/Holder/index.d.ts +33 -0
  359. package/lib/components/Sales/Holder/index.js +210 -0
  360. package/lib/components/Sales/Holder/serve.d.ts +8 -0
  361. package/lib/components/Sales/Holder/serve.js +37 -0
  362. package/lib/components/Sales/Init/index.d.ts +24 -0
  363. package/lib/components/Sales/Init/index.js +128 -0
  364. package/lib/components/Sales/Init/serve.d.ts +3 -0
  365. package/lib/components/Sales/Init/serve.js +34 -0
  366. package/lib/components/Sales/Resource/index.d.ts +26 -0
  367. package/lib/components/Sales/Resource/index.js +133 -0
  368. package/lib/components/Sales/Resource/serve.d.ts +5 -0
  369. package/lib/components/Sales/Resource/serve.js +32 -0
  370. package/lib/components/Sales/Step/index.d.ts +37 -0
  371. package/lib/components/Sales/Step/index.js +170 -0
  372. package/lib/components/Sales/Summary/index.d.ts +25 -0
  373. package/lib/components/Sales/Summary/index.js +83 -0
  374. package/lib/components/Sales/Summary/serve.d.ts +0 -0
  375. package/lib/components/Sales/Summary/serve.js +0 -0
  376. package/lib/components/Sales/Summary/utils.d.ts +36 -0
  377. package/lib/components/Sales/Summary/utils.js +80 -0
  378. package/lib/components/Sales/hooks/index.d.ts +1 -0
  379. package/lib/components/Sales/hooks/index.js +31 -0
  380. package/lib/components/Sales/index.d.ts +20 -0
  381. package/lib/components/Sales/index.js +79 -0
  382. package/lib/components/Sales/utils/index.d.ts +1 -0
  383. package/lib/components/Sales/utils/index.js +43 -0
  384. package/lib/components/booking/components/customSelect/index.d.ts +1 -0
  385. package/lib/components/booking/components/customSelect/index.js +6 -2
  386. package/lib/components/booking/components/footer/AppointmentProductModal/index.d.ts +3 -0
  387. package/lib/components/booking/components/footer/AppointmentProductModal/index.js +60 -0
  388. package/lib/components/booking/components/footer/AppointmentProductModal/index.less +0 -0
  389. package/lib/components/booking/components/footer/amount.js +27 -8
  390. package/lib/components/booking/components/footer/index.js +48 -55
  391. package/lib/components/booking/components/footer/serve.d.ts +2 -0
  392. package/lib/components/booking/components/footer/serve.js +12 -0
  393. package/lib/components/booking/components/footer/utils.js +168 -37
  394. package/lib/components/booking/info/Provider.d.ts +0 -0
  395. package/lib/components/booking/info/Provider.js +0 -0
  396. package/lib/components/booking/info/addServiceVariant/index.js +5 -0
  397. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +1 -0
  398. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +8 -7
  399. package/lib/components/booking/info/clientVariant/vertical/index.js +96 -20
  400. package/lib/components/booking/info/dateRange/index.d.ts +4 -0
  401. package/lib/components/booking/info/dateRange/index.js +111 -0
  402. package/lib/components/booking/info/dateRange/index.less +21 -0
  403. package/lib/components/booking/info/main.js +33 -22
  404. package/lib/components/booking/info/model.js +3 -0
  405. package/lib/components/booking/info/pet/ChangePetModal/index.d.ts +4 -0
  406. package/lib/components/booking/info/pet/ChangePetModal/index.js +121 -0
  407. package/lib/components/booking/info/pet/ChangePetModal/index.less +4 -0
  408. package/lib/components/booking/info/pet/index.d.ts +1 -1
  409. package/lib/components/booking/info/pet/index.js +90 -44
  410. package/lib/components/booking/info/service/addService/index.d.ts +0 -1
  411. package/lib/components/booking/info/service/addService/index.js +131 -101
  412. package/lib/components/booking/info/service/addService/index.less +13 -3
  413. package/lib/components/booking/info/service/addService/utils.d.ts +12 -2
  414. package/lib/components/booking/info/service/addService/utils.js +57 -10
  415. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  416. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +4 -0
  417. package/lib/components/booking/info/service/editService/BookingList/index.js +55 -0
  418. package/lib/components/booking/info/service/editService/EditTabs/index.d.ts +3 -0
  419. package/lib/components/booking/info/service/editService/EditTabs/index.js +75 -0
  420. package/lib/components/booking/info/service/editService/index.js +446 -197
  421. package/lib/components/booking/info/service/editService/index.less +18 -13
  422. package/lib/components/booking/info/service/serve.d.ts +10 -0
  423. package/lib/components/booking/info/service/serve.js +7 -2
  424. package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +11 -0
  425. package/lib/components/booking/info/service/serviceManager/distributeDiscount.js +70 -0
  426. package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
  427. package/lib/components/booking/info/service/serviceManager/index.js +211 -0
  428. package/lib/components/booking/info/service/serviceManager/utils.d.ts +0 -0
  429. package/lib/components/booking/info/service/serviceManager/utils.js +0 -0
  430. package/lib/components/booking/info/service2/Group/utils.d.ts +14 -0
  431. package/lib/components/booking/info/service2/Group/utils.js +142 -0
  432. package/lib/components/booking/info/service2/Lists.d.ts +3 -0
  433. package/lib/components/booking/info/service2/Lists.js +116 -0
  434. package/lib/components/booking/info/service2/hooks/useSelectPet.d.ts +6 -0
  435. package/lib/components/booking/info/service2/hooks/useSelectPet.js +49 -0
  436. package/lib/components/booking/info/service2/index.d.ts +6 -0
  437. package/lib/components/booking/info/service2/index.js +75 -0
  438. package/lib/components/booking/info/service2/status.d.ts +31 -0
  439. package/lib/components/booking/info/service2/status.js +81 -0
  440. package/lib/components/booking/info/service2/utils.d.ts +240 -0
  441. package/lib/components/booking/info/service2/utils.js +686 -0
  442. package/lib/components/booking/info/utils.d.ts +20 -0
  443. package/lib/components/booking/info/utils.js +42 -1
  444. package/lib/components/booking/locales.d.ts +66 -0
  445. package/lib/components/booking/locales.js +69 -3
  446. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  447. package/lib/components/booking/materiels/holder/index.d.ts +7 -0
  448. package/lib/components/booking/materiels/holder/index.js +64 -0
  449. package/lib/components/booking/model.d.ts +5 -1
  450. package/lib/components/booking/model.js +4 -2
  451. package/lib/components/booking/utils.d.ts +12 -3
  452. package/lib/components/booking/utils.js +89 -18
  453. package/lib/components/eftpos/hooks.d.ts +4 -4
  454. package/lib/components/eftpos/index.d.ts +1 -0
  455. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  456. package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
  457. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  458. package/lib/components/eftposPay/component/step/index.d.ts +6 -6
  459. package/lib/components/eftposPay/component/step/step.d.ts +4 -4
  460. package/lib/components/eftposPay/hooks.d.ts +1 -1
  461. package/lib/components/eftposPay/pay.d.ts +0 -1
  462. package/lib/components/eftposPay/tyro/hooks.d.ts +2 -2
  463. package/lib/components/eftposPay/windcave/helper.d.ts +1 -1
  464. package/lib/components/eventBooking/assets/alert-circle.png +0 -0
  465. package/lib/components/eventBooking/assets/calendar-heart.svg +5 -0
  466. package/lib/components/eventBooking/assets/compass.svg +13 -0
  467. package/lib/components/eventBooking/assets/image.svg +5 -0
  468. package/lib/components/eventBooking/assets/phone.svg +5 -0
  469. package/lib/components/eventBooking/assets/shopping-cart.svg +10 -0
  470. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +3 -0
  471. package/lib/components/eventBooking/components/ErrorTip/index.js +30 -0
  472. package/lib/components/eventBooking/components/ErrorTip/index.less +51 -0
  473. package/lib/components/eventBooking/components/OpenCard/index.d.ts +4 -0
  474. package/lib/components/eventBooking/components/OpenCard/index.js +90 -0
  475. package/lib/components/eventBooking/components/OpenCard/index.less +52 -0
  476. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +3 -0
  477. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +158 -0
  478. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
  479. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +3 -0
  480. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +82 -0
  481. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +3 -0
  482. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +92 -0
  483. package/lib/components/eventBooking/components/Provider/Cart/Item/index.less +87 -0
  484. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +3 -0
  485. package/lib/components/eventBooking/components/Provider/Cart/index.js +59 -0
  486. package/lib/components/eventBooking/components/Provider/Cart/index.less +2 -0
  487. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +4 -0
  488. package/lib/components/eventBooking/components/Provider/Content/index.js +90 -0
  489. package/lib/components/eventBooking/components/Provider/Content/index.less +31 -0
  490. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +3 -0
  491. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.js +60 -0
  492. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.less +17 -0
  493. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +3 -0
  494. package/lib/components/eventBooking/components/Provider/Event/index.js +100 -0
  495. package/lib/components/eventBooking/components/Provider/Event/index.less +20 -0
  496. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +3 -0
  497. package/lib/components/eventBooking/components/Provider/Footer/index.js +87 -0
  498. package/lib/components/eventBooking/components/Provider/Footer/index.less +64 -0
  499. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +4 -0
  500. package/lib/components/eventBooking/components/Provider/Header/index.js +80 -0
  501. package/lib/components/eventBooking/components/Provider/Header/index.less +2 -0
  502. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +3 -0
  503. package/lib/components/eventBooking/components/Provider/Information/index.js +151 -0
  504. package/lib/components/eventBooking/components/Provider/Information/index.less +92 -0
  505. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +3 -0
  506. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.js +67 -0
  507. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.less +27 -0
  508. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +3 -0
  509. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.js +57 -0
  510. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.less +32 -0
  511. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +2 -0
  512. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.js +62 -0
  513. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +3 -0
  514. package/lib/components/eventBooking/components/Provider/Resource/index.js +90 -0
  515. package/lib/components/eventBooking/components/Provider/Resource/index.less +46 -0
  516. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +3 -0
  517. package/lib/components/eventBooking/components/Provider/SelectHolderModal.js +97 -0
  518. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +4 -0
  519. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +55 -0
  520. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +25 -0
  521. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +10 -0
  522. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +78 -0
  523. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +32 -0
  524. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +3 -0
  525. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +86 -0
  526. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +12 -0
  527. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +12 -0
  528. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +121 -0
  529. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +35 -0
  530. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +4 -0
  531. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +37 -0
  532. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +28 -0
  533. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +5 -0
  534. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +58 -0
  535. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +87 -0
  536. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +4 -0
  537. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +55 -0
  538. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +25 -0
  539. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +4 -0
  540. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +196 -0
  541. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +119 -0
  542. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +63 -0
  543. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +198 -0
  544. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +4 -0
  545. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +122 -0
  546. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +4 -0
  547. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +14 -0
  548. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.js +70 -0
  549. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.less +2 -0
  550. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +34 -0
  551. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.js +70 -0
  552. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +2 -0
  553. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.js +75 -0
  554. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +3 -0
  555. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.js +66 -0
  556. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +3 -0
  557. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.js +69 -0
  558. package/lib/components/eventBooking/components/bookingDetailModal/index.d.ts +7 -0
  559. package/lib/components/eventBooking/components/bookingDetailModal/index.js +248 -0
  560. package/lib/components/eventBooking/components/bookingDetailModal/index.less +82 -0
  561. package/lib/components/eventBooking/components/bookingServiceList/index.d.ts +17 -0
  562. package/lib/components/eventBooking/components/bookingServiceList/index.js +79 -0
  563. package/lib/components/eventBooking/components/bookingServiceList/index.less +6 -0
  564. package/lib/components/eventBooking/components/eventCard/index.d.ts +14 -0
  565. package/lib/components/eventBooking/components/eventCard/index.js +124 -0
  566. package/lib/components/eventBooking/components/eventCard/index.less +81 -0
  567. package/lib/components/eventBooking/components/productCard/index.d.ts +16 -0
  568. package/lib/components/eventBooking/components/productCard/index.js +77 -0
  569. package/lib/components/eventBooking/components/productCard/index.less +60 -0
  570. package/lib/components/eventBooking/components/progressBar/index.d.ts +16 -0
  571. package/lib/components/eventBooking/components/progressBar/index.js +100 -0
  572. package/lib/components/eventBooking/components/progressBar/index.less +15 -0
  573. package/lib/components/eventBooking/components/resourceDisplay/index.d.ts +23 -0
  574. package/lib/components/eventBooking/components/resourceDisplay/index.js +116 -0
  575. package/lib/components/eventBooking/components/resourceDisplay/index.less +95 -0
  576. package/lib/components/eventBooking/components/resourceUsability/index.d.ts +12 -0
  577. package/lib/components/eventBooking/components/resourceUsability/index.js +76 -0
  578. package/lib/components/eventBooking/components/resourceUsability/index.less +40 -0
  579. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +10 -0
  580. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.js +73 -0
  581. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.less +58 -0
  582. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +11 -0
  583. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.js +135 -0
  584. package/lib/components/eventBooking/components/scheduleCalendar/index.d.ts +13 -0
  585. package/lib/components/eventBooking/components/scheduleCalendar/index.js +125 -0
  586. package/lib/components/eventBooking/components/scheduleCalendar/index.less +222 -0
  587. package/lib/components/eventBooking/components/selectHolder/index.d.ts +22 -0
  588. package/lib/components/eventBooking/components/selectHolder/index.js +106 -0
  589. package/lib/components/eventBooking/components/selectHolder/index.less +70 -0
  590. package/lib/components/eventBooking/components/timeResourceSelector/index.d.ts +20 -0
  591. package/lib/components/eventBooking/components/timeResourceSelector/index.js +146 -0
  592. package/lib/components/eventBooking/components/timeResourceSelector/index.less +74 -0
  593. package/lib/components/eventBooking/index.d.ts +4 -0
  594. package/lib/components/eventBooking/index.js +78 -0
  595. package/lib/components/eventBooking/index.less +22 -0
  596. package/lib/components/eventBooking/locales.d.ts +216 -0
  597. package/lib/components/eventBooking/locales.js +239 -0
  598. package/lib/components/eventBooking/mock.d.ts +627 -0
  599. package/lib/components/eventBooking/mock.js +1352 -0
  600. package/lib/components/eventBooking/status.d.ts +21 -0
  601. package/lib/components/eventBooking/status.js +70 -0
  602. package/lib/components/eventBooking/type.d.ts +17 -0
  603. package/lib/components/eventBooking/type.js +17 -0
  604. package/lib/components/eventBooking/utils.d.ts +45 -0
  605. package/lib/components/eventBooking/utils.js +90 -0
  606. package/lib/components/login/index.d.ts +1 -0
  607. package/lib/components/productExtension/index.d.ts +1 -0
  608. package/lib/components/shoppingCart/Provider.d.ts +3 -0
  609. package/lib/components/shoppingCart/Provider.js +110 -0
  610. package/lib/components/shoppingCart/components/Cart/Product.d.ts +3 -0
  611. package/lib/components/shoppingCart/components/Cart/Product.js +72 -0
  612. package/lib/components/shoppingCart/components/Cart/index.d.ts +3 -0
  613. package/lib/components/shoppingCart/components/Cart/index.js +85 -0
  614. package/lib/components/shoppingCart/components/Cart/index.less +68 -0
  615. package/lib/components/shoppingCart/components/Empty/index.d.ts +4 -0
  616. package/lib/components/shoppingCart/components/Empty/index.js +43 -0
  617. package/lib/components/shoppingCart/components/Empty/index.less +19 -0
  618. package/lib/components/shoppingCart/components/Render/index.d.ts +4 -0
  619. package/lib/components/shoppingCart/components/Render/index.js +75 -0
  620. package/lib/components/shoppingCart/components/Render/index.less +2 -0
  621. package/lib/components/shoppingCart/components/SelectHolderModal/index.d.ts +4 -0
  622. package/lib/components/shoppingCart/components/SelectHolderModal/index.js +124 -0
  623. package/lib/components/shoppingCart/components/SelectHolderModal/index.less +32 -0
  624. package/lib/components/shoppingCart/hooks/useAddService.d.ts +2 -0
  625. package/lib/components/shoppingCart/hooks/useAddService.js +55 -0
  626. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +2 -0
  627. package/lib/components/shoppingCart/hooks/useClearCart.js +66 -0
  628. package/lib/components/shoppingCart/hooks/useContext.d.ts +1 -0
  629. package/lib/components/shoppingCart/hooks/useContext.js +31 -0
  630. package/lib/components/shoppingCart/index.d.ts +4 -0
  631. package/lib/components/shoppingCart/index.js +60 -0
  632. package/lib/components/shoppingCart/locales.d.ts +33 -0
  633. package/lib/components/shoppingCart/locales.js +56 -0
  634. package/lib/components/shoppingCart/mock.d.ts +40 -0
  635. package/lib/components/shoppingCart/mock.js +76 -0
  636. package/lib/components/shoppingCart/status.d.ts +2 -0
  637. package/lib/components/shoppingCart/status.js +60 -0
  638. package/lib/components/shoppingCart/type.d.ts +40 -0
  639. package/lib/components/shoppingCart/type.js +17 -0
  640. package/lib/components/shoppingCart/utils.d.ts +63 -0
  641. package/lib/components/shoppingCart/utils.js +83 -0
  642. package/lib/components/tabProduct/tabs/index.less +13 -3
  643. package/lib/components/taxSelect/index.d.ts +1 -0
  644. package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
  645. package/lib/components/workSpaceList/server.d.ts +3 -3
  646. package/lib/index.d.ts +13 -0
  647. package/lib/index.js +39 -0
  648. package/lowcode/event-booking/meta.ts +69 -0
  649. package/lowcode/event-booking-availability-calendar/meta.ts +53 -0
  650. package/lowcode/event-booking-detail-modal/meta.ts +39 -0
  651. package/lowcode/event-booking-service-list/meta.ts +77 -0
  652. package/lowcode/event-card/meta.ts +77 -0
  653. package/lowcode/event-product-card/meta.ts +79 -0
  654. package/lowcode/event-progress-bar/meta.ts +65 -0
  655. package/lowcode/event-resource-display/meta.ts +169 -0
  656. package/lowcode/event-resource-usability/meta.ts +67 -0
  657. package/lowcode/event-schedule-calendar/meta.ts +56 -0
  658. package/lowcode/event-select-holder/meta.ts +84 -0
  659. package/lowcode/event-time-resource-selector/meta.ts +69 -0
  660. package/lowcode/shopping-cart/meta.ts +98 -0
  661. package/package.json +3 -3
@@ -18,26 +18,36 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
18
18
  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; }
19
19
  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; } }
20
20
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
21
- import React, { useCallback, useContext, useEffect, useMemo, useState, useImperativeHandle, forwardRef } from 'react';
22
21
  import Delete_wght300_24px from '@pisell/icon/es/Delete_wght300_24px';
23
- import Drawer from "../../../components/drawer";
24
- import { Context } from "../../model";
22
+ import '@pisell/materials';
25
23
  import { formatAmount, locales } from '@pisell/utils';
26
- import Duration from "../../../materiels/duration";
27
- import { Input, Button, Select, Row, Col, Form, Alert, InputNumber } from 'antd';
28
- import "./index.less";
24
+ import { useMemoizedFn, useUpdateEffect } from 'ahooks';
25
+ import { Alert, Button, Col, DatePicker, Form, Input, InputNumber, Row, Select } from 'antd';
26
+ import React, { forwardRef, useCallback, useContext, useEffect, useImperativeHandle, useMemo, useState } from 'react';
29
27
  import CollapsibleList from "../../../components/collapsibleList";
30
28
  import { renderBundles } from "../../../components/collapsibleList/utils";
31
- import { useUpdateEffect, useMemoizedFn } from 'ahooks';
29
+ import Drawer from "../../../components/drawer";
30
+ import Duration from "../../../materiels/duration";
31
+ import Holder from "../../../materiels/holder";
32
+ import { Context } from "../../model";
33
+ import BookingList from "./BookingList";
34
+ import "./index.less";
32
35
  // import SelectTime from "../../../../../../../materials/src/components/select-time";
33
- import { getErrorList, getServiceTimes, deleteCacheParams, getProductTotalPrice } from "../../../utils";
34
- import Like from "../like";
36
+ import { Page, PisellAdjustPriceInputNumber } from '@pisell/materials';
37
+ import dayjs from 'dayjs';
35
38
  import { getNoResource } from "../../../mock";
36
- import { formatResources, getDurationProps, getFlexibleOption, getTimeObj } from "../addService/utils";
37
- import { PisellAdjustPriceInputNumber, Page } from '@pisell/materials';
39
+ import { getDays, getErrorList, getProductTotalPrice } from "../../../utils";
40
+ import { createBookingItemsByGroup, filterItemByGroupId, getGroupTotalPrice, isGroupBooking } from "../../service2/Group/utils";
41
+ import useSelectPet from "../../service2/hooks/useSelectPet";
42
+ import { disabledDate as _disabledDate, formatDayTime, isDayBooking, isDayBookingProduct, isEventBooking } from "../../service2/utils";
43
+ import { formatResources, getDurationProps, getFlexibleOption, getMultiDay, getTimeObj } from "../addService/utils";
44
+ import Like from "../like";
45
+ import { getMultiDayPrices } from "../../utils";
46
+ import { useService } from "../serviceManager";
47
+ import EditTabs from "./EditTabs";
38
48
  var submitLock = false;
39
49
  var Info = function Info(_, ref) {
40
- var _state$bookingConfig2, _state$service$cacheI4, _state$service$cacheI6, _state$service$cacheI7, _state$service3, _state$service5, _state$date, _state$date$format, _window$BaseMaterials, _state$service$cacheI13, _state$service7, _state$service$cacheI14, _state$bookingConfig4;
50
+ var _state$bookingConfig2, _state$service$cacheI4, _state$service$cacheI6, _state$service$cacheI7, _state$service4, _state$service6, _state$service8, _state$date, _state$date$format, _state$date2, _window$BaseMaterials, _state$service$cacheI13, _state$service10, _state$service$cacheI14, _state$bookingConfig4;
41
51
  var _Form$useForm = Form.useForm(),
42
52
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
43
53
  form = _Form$useForm2[0];
@@ -46,6 +56,8 @@ var Info = function Info(_, ref) {
46
56
  var useResource = Form.useWatch('resource', form);
47
57
  var useStartTime = Form.useWatch('start_time', form);
48
58
  var useDuration = Form.useWatch('duration', form);
59
+ var useStartDate = Form.useWatch('start_date', form);
60
+ var useEndDate = Form.useWatch('end_date', form);
49
61
  var _useState = useState(false),
50
62
  _useState2 = _slicedToArray(_useState, 2),
51
63
  resourceLoading = _useState2[0],
@@ -58,12 +70,31 @@ var Info = function Info(_, ref) {
58
70
  _useState4 = _slicedToArray(_useState3, 2),
59
71
  selectOpen = _useState4[0],
60
72
  setSelectOpen = _useState4[1];
73
+ var _useSelectPet = useSelectPet(state),
74
+ holderLists = _useSelectPet.holderLists;
75
+ var _useService = useService({
76
+ state: state,
77
+ dispatch: dispatch
78
+ }),
79
+ editBookingData = _useService.editBookingData,
80
+ editBooking = _useService.editBooking;
81
+ var _useState5 = useState('batch_edit'),
82
+ _useState6 = _slicedToArray(_useState5, 2),
83
+ currentTab = _useState6[0],
84
+ setCurrentTab = _useState6[1];
85
+ var isDayBookingMode = useMemo(function () {
86
+ return isDayBooking(state);
87
+ }, [state === null || state === void 0 ? void 0 : state.renderType]);
88
+ var isEventBookingMode = useMemo(function () {
89
+ return isEventBooking(state);
90
+ }, [state === null || state === void 0 ? void 0 : state.renderType]);
61
91
 
62
92
  // 当前商品信息+ 表单信息
63
93
  var getCurrentCacheItem = function getCurrentCacheItem(_cacheItem) {
94
+ var _state$service;
64
95
  // 获取当前表单数据
65
96
  var values = form.getFieldsValue();
66
- var _item = _cacheItem || state.service.cacheItem;
97
+ var _item = _cacheItem || (state === null || state === void 0 || (_state$service = state.service) === null || _state$service === void 0 ? void 0 : _state$service.cacheItem);
67
98
  return _objectSpread(_objectSpread({}, _item), {}, {
68
99
  _extend: _objectSpread(_objectSpread({}, _item === null || _item === void 0 ? void 0 : _item._extend), values)
69
100
  });
@@ -178,7 +209,8 @@ var Info = function Info(_, ref) {
178
209
  payload: {
179
210
  resources: formatResources({
180
211
  cacheItem: _cacheItem,
181
- resourcesOrigin: _list
212
+ resourcesOrigin: _list,
213
+ isDay: isDayBookingMode
182
214
  })
183
215
  }
184
216
  });
@@ -226,9 +258,13 @@ var Info = function Info(_, ref) {
226
258
  }
227
259
  var _list = _toConsumableArray(state.service.value);
228
260
  var _id = (_state$service$cacheI = state.service.cacheItem) === null || _state$service$cacheI === void 0 ? void 0 : _state$service$cacheI._id;
229
- _list = _list.filter(function (d) {
230
- return d._id !== _id;
231
- });
261
+ if (isGroupBooking(_id)) {
262
+ _list = filterItemByGroupId(_id, _list);
263
+ } else {
264
+ _list = _list.filter(function (d) {
265
+ return d._id !== _id;
266
+ });
267
+ }
232
268
  dispatch({
233
269
  type: 'setService',
234
270
  payload: {
@@ -290,7 +326,7 @@ var Info = function Info(_, ref) {
290
326
  });
291
327
  if (item) {
292
328
  var _item$_extend$usableT;
293
- var isMaxLimitRange = (_item$_extend$usableT = item._extend.usableTime) === null || _item$_extend$usableT === void 0 ? void 0 : _item$_extend$usableT._extend.isMaxLimitRange;
329
+ var isMaxLimitRange = (_item$_extend$usableT = item._extend.usableTime) === null || _item$_extend$usableT === void 0 || (_item$_extend$usableT = _item$_extend$usableT._extend) === null || _item$_extend$usableT === void 0 ? void 0 : _item$_extend$usableT.isMaxLimitRange;
294
330
  // unknown 为未知是否可用, 需要掉后端接口确定
295
331
  if (isMaxLimitRange === 'unknown') {
296
332
  // 调接口
@@ -337,76 +373,58 @@ var Info = function Info(_, ref) {
337
373
  * @Author: zhiwei.Wang
338
374
  * @Date: 2024-01-09 14:04
339
375
  */
340
- var onFinish = useMemoizedFn(function (values) {
341
- var _currentResource$_ext;
342
- // 防止多次提交, 增加锁
343
- if (submitLock) {
344
- return;
345
- }
346
- submitLock = true;
376
+ var onFinish = useMemoizedFn( /*#__PURE__*/function () {
377
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(values) {
378
+ var data;
379
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
380
+ while (1) switch (_context2.prev = _context2.next) {
381
+ case 0:
382
+ if (!submitLock) {
383
+ _context2.next = 2;
384
+ break;
385
+ }
386
+ return _context2.abrupt("return");
387
+ case 2:
388
+ submitLock = true;
347
389
 
348
- // 1500毫秒后解除
349
- setTimeout(function () {
350
- submitLock = false;
351
- }, 1500);
352
- var _list = _toConsumableArray(state.service.value);
353
- var _item = _objectSpread(_objectSpread({}, state.service.cacheItem), {}, {
354
- autoClose: false,
355
- errorList: errorList
356
- });
357
- var _extend = _objectSpread(_objectSpread({}, _item._extend), values);
358
- var _getServiceTimes = getServiceTimes({
359
- _extend: _extend
360
- }),
361
- startDate = _getServiceTimes.startDate,
362
- endDate = _getServiceTimes.endDate;
363
- _extend.startDate = startDate;
364
- _extend.endDate = endDate;
365
- var _ref2 = (currentResource === null || currentResource === void 0 || (_currentResource$_ext = currentResource._extend) === null || _currentResource$_ext === void 0 ? void 0 : _currentResource$_ext.usableTime) || {},
366
- relation_type = _ref2.relation_type,
367
- item_id = _ref2.item_id,
368
- schedule_id = _ref2.schedule_id;
369
- _extend.relation_type = relation_type || 'form';
370
- _extend.relation_id = item_id || (currentResource === null || currentResource === void 0 ? void 0 : currentResource.form_record_id) || 0;
371
- _extend.schedule_id = schedule_id || 0;
372
- if (_extend.bundle_edit !== undefined) {
373
- _extend.bundle_edit = 1;
374
- }
375
- _item._extend = _extend;
376
- _item._time = new Date().getTime();
377
- var _id = _item === null || _item === void 0 ? void 0 : _item._id;
378
-
379
- // 判断是新增还是编辑
380
- if (!_list.some(function (d) {
381
- return d._id === _id;
382
- })) {
383
- _list.push(_item);
384
- } else {
385
- _list = _list.map(function (d) {
386
- return d._id === _id ? _objectSpread(_objectSpread({}, _item), {}, {
387
- new: 0
388
- }) : d;
389
- });
390
- }
391
- deleteCacheParams();
392
- console.log('_onFinish', _list);
393
- dispatch({
394
- type: 'setService',
395
- payload: {
396
- editModal: false,
397
- addModal: false,
398
- value: _list,
399
- edit: true,
400
- cacheItem: null,
401
- changeService: false
402
- }
403
- });
404
- });
390
+ // 1500毫秒后解除
391
+ setTimeout(function () {
392
+ submitLock = false;
393
+ }, 1500);
394
+ _context2.next = 6;
395
+ return editBookingData({
396
+ changeValues: _objectSpread(_objectSpread({}, values), {}, {
397
+ errorList: errorList
398
+ })
399
+ });
400
+ case 6:
401
+ data = _context2.sent;
402
+ _context2.next = 9;
403
+ return editBooking({
404
+ booking: data
405
+ });
406
+ case 9:
407
+ case "end":
408
+ return _context2.stop();
409
+ }
410
+ }, _callee2);
411
+ }));
412
+ return function (_x3) {
413
+ return _ref2.apply(this, arguments);
414
+ };
415
+ }());
405
416
  var setEditData = useMemoizedFn(function (_cacheItem, open) {
417
+ var _values;
418
+ setCurrentTab('batch_edit');
406
419
  var cacheItem = _cacheItem || state.service.cacheItem;
407
420
  var values = cacheItem._extend;
421
+
422
+ // 没有折扣原因则清空
423
+ values = _objectSpread(_objectSpread({}, values), {}, {
424
+ discount_reason: ((_values = values) === null || _values === void 0 ? void 0 : _values.discount_reason) || ''
425
+ });
408
426
  form.setFieldsValue(values);
409
- if (state.renderType !== 'eventBooking') {
427
+ if (!isEventBookingMode) {
410
428
  // 获取资源列表
411
429
  getResources(cacheItem, open);
412
430
  }
@@ -437,7 +455,7 @@ var Info = function Info(_, ref) {
437
455
  * @Date: 2024-01-09 14:06
438
456
  */
439
457
  var errorList = useMemo(function () {
440
- return getErrorList(currentResource, getCurrentCacheItem());
458
+ return getErrorList(currentResource, getCurrentCacheItem(), isDayBookingMode);
441
459
  }, [currentResource, useDuration, useStartTime]);
442
460
 
443
461
  /**
@@ -451,17 +469,29 @@ var Info = function Info(_, ref) {
451
469
  var _state$service$cacheI5;
452
470
  // autoClose 不执行下面逻辑
453
471
  if (state.service.cacheItem && !((_state$service$cacheI5 = state.service.cacheItem) !== null && _state$service$cacheI5 !== void 0 && _state$service$cacheI5.autoClose)) {
454
- if (useStartTime && useDuration && state.renderType !== 'eventBooking') {
472
+ if (useStartTime && useDuration && !isEventBookingMode) {
455
473
  getResources();
456
474
  }
457
475
  }
458
476
  }, [useStartTime, useDuration, state.renderType, state.service.resourcesOrigin, (_state$service$cacheI6 = state.service.cacheItem) === null || _state$service$cacheI6 === void 0 ? void 0 : _state$service$cacheI6.autoClose]);
477
+
478
+ /**
479
+ * @title: 是否在terminal上打开预约
480
+ * @description:
481
+ * @param {*} useMemo
482
+ * @return {*}
483
+ * @Author: WangHan
484
+ * @Date: 2024-12-04 19:02
485
+ */
486
+ var isTerminalBooking = useMemo(function () {
487
+ return state.isBookingCreatePage || state.isTerminalDayBookingPage;
488
+ }, [state.isBookingCreatePage, state.isTerminalDayBookingPage]);
459
489
  useEffect(function () {
460
490
  // 预约创建页面并且打开了编辑弹窗
461
- if (state.isBookingCreatePage && state.service.editModal) {
491
+ if (isTerminalBooking && state.service.editModal) {
462
492
  setEditData(null, true);
463
493
  }
464
- }, [state.service.editModal, state.isBookingCreatePage]);
494
+ }, [state.service.editModal, isTerminalBooking]);
465
495
 
466
496
  /**
467
497
  * @title: 资源 时间 发生变化时, 重新计算错误信息
@@ -472,7 +502,7 @@ var Info = function Info(_, ref) {
472
502
  */
473
503
  useEffect(function () {
474
504
  getErrorMsg();
475
- }, [useResource, useStartTime, useDuration]);
505
+ }, [useResource, useStartTime, useDuration, useStartDate, useEndDate]);
476
506
 
477
507
  /**
478
508
  * @title: 价格发生变化,重新计算折扣
@@ -489,22 +519,33 @@ var Info = function Info(_, ref) {
489
519
  // handleLikeResource("common");
490
520
  // }, [useResource]);
491
521
  var isDiscount = useMemo(function () {
492
- var _state$service, _state$service2;
493
- if (!((_state$service = state.service) !== null && _state$service !== void 0 && _state$service.cacheItem)) {
522
+ var _state$service2, _state$service3;
523
+ if (!((_state$service2 = state.service) !== null && _state$service2 !== void 0 && _state$service2.cacheItem)) {
494
524
  return false;
495
525
  }
496
- return useTotal != ((_state$service2 = state.service) === null || _state$service2 === void 0 || (_state$service2 = _state$service2.cacheItem) === null || _state$service2 === void 0 ? void 0 : _state$service2._extend.origin_total);
497
- }, [useTotal, (_state$service3 = state.service) === null || _state$service3 === void 0 || (_state$service3 = _state$service3.cacheItem) === null || _state$service3 === void 0 ? void 0 : _state$service3._extend.origin_total]);
526
+ return useTotal != ((_state$service3 = state.service) === null || _state$service3 === void 0 || (_state$service3 = _state$service3.cacheItem) === null || _state$service3 === void 0 ? void 0 : _state$service3._extend.origin_total);
527
+ }, [useTotal, (_state$service4 = state.service) === null || _state$service4 === void 0 || (_state$service4 = _state$service4.cacheItem) === null || _state$service4 === void 0 ? void 0 : _state$service4._extend.origin_total]);
498
528
  useEffect(function () {
499
529
  if (useResource === 0) {
500
530
  handleLikeResource('common');
501
531
  }
502
532
  }, [useResource]);
503
533
  var bundles = useMemo(function () {
504
- var _state$service4;
505
- return ((_state$service4 = state.service) === null || _state$service4 === void 0 || (_state$service4 = _state$service4.cacheItem) === null || _state$service4 === void 0 || (_state$service4 = _state$service4._extend) === null || _state$service4 === void 0 || (_state$service4 = _state$service4.other) === null || _state$service4 === void 0 ? void 0 : _state$service4.bundle) || [];
506
- }, [(_state$service5 = state.service) === null || _state$service5 === void 0 || (_state$service5 = _state$service5.cacheItem) === null || _state$service5 === void 0 || (_state$service5 = _state$service5._extend) === null || _state$service5 === void 0 || (_state$service5 = _state$service5.other) === null || _state$service5 === void 0 ? void 0 : _state$service5.bundle]);
507
-
534
+ var _state$service5;
535
+ return ((_state$service5 = state.service) === null || _state$service5 === void 0 || (_state$service5 = _state$service5.cacheItem) === null || _state$service5 === void 0 || (_state$service5 = _state$service5._extend) === null || _state$service5 === void 0 || (_state$service5 = _state$service5.other) === null || _state$service5 === void 0 ? void 0 : _state$service5.bundle) || [];
536
+ }, [(_state$service6 = state.service) === null || _state$service6 === void 0 || (_state$service6 = _state$service6.cacheItem) === null || _state$service6 === void 0 || (_state$service6 = _state$service6._extend) === null || _state$service6 === void 0 || (_state$service6 = _state$service6.other) === null || _state$service6 === void 0 ? void 0 : _state$service6.bundle]);
537
+ var multiDayPrices = useMemo(function () {
538
+ var _state$service7;
539
+ return Object.entries(getMultiDayPrices(((_state$service7 = state.service) === null || _state$service7 === void 0 || (_state$service7 = _state$service7.cacheItem) === null || _state$service7 === void 0 || (_state$service7 = _state$service7._extend) === null || _state$service7 === void 0 ? void 0 : _state$service7.multi_day) || [])).map(function (_ref3) {
540
+ var _ref4 = _slicedToArray(_ref3, 2),
541
+ key = _ref4[0],
542
+ value = _ref4[1];
543
+ return {
544
+ key: key,
545
+ value: value
546
+ };
547
+ });
548
+ }, [(_state$service8 = state.service) === null || _state$service8 === void 0 || (_state$service8 = _state$service8.cacheItem) === null || _state$service8 === void 0 || (_state$service8 = _state$service8._extend) === null || _state$service8 === void 0 ? void 0 : _state$service8.multi_day]);
508
549
  /**
509
550
  * @title: 获取资源列表数据
510
551
  * @description:
@@ -513,25 +554,51 @@ var Info = function Info(_, ref) {
513
554
  * @Date: 2024-01-09 13:38
514
555
  */
515
556
  var getResourcesData = /*#__PURE__*/function () {
516
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
517
- var data, _list;
518
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
519
- while (1) switch (_context2.prev = _context2.next) {
557
+ var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
558
+ var params, format, startDate, endDate, _formatDayTime, startDateTime, endDateTime, data, _list;
559
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
560
+ while (1) switch (_context3.prev = _context3.next) {
520
561
  case 0:
521
562
  setResourceLoading(true);
522
- _context2.prev = 1;
523
- _context2.next = 4;
524
- return state.apis.getResources({
563
+ _context3.prev = 1;
564
+ params = {};
565
+ if (!isDayBookingMode) {
566
+ _context3.next = 13;
567
+ break;
568
+ }
569
+ format = 'YYYY-MM-DD HH:mm';
570
+ startDate = useStartDate || state.date.value;
571
+ endDate = useEndDate || state.date.end_date;
572
+ _formatDayTime = formatDayTime({
573
+ startDate: startDate,
574
+ endDate: endDate
575
+ }), startDateTime = _formatDayTime.startDateTime, endDateTime = _formatDayTime.endDateTime;
576
+ if (!dayjs(startDateTime).isAfter(dayjs(endDateTime))) {
577
+ _context3.next = 10;
578
+ break;
579
+ }
580
+ return _context3.abrupt("return");
581
+ case 10:
582
+ params.check_time = {
583
+ start_time: dayjs(startDateTime).format(format),
584
+ end_time: dayjs(endDateTime).format(format)
585
+ };
586
+ _context3.next = 14;
587
+ break;
588
+ case 13:
589
+ params.with_date_times = state.date.value.format('YYYY-MM-DD');
590
+ case 14:
591
+ _context3.next = 16;
592
+ return state.apis.getResources(_objectSpread({
525
593
  skip: 1,
526
594
  num: 1000,
527
- with_date_times: state.date.value.format('YYYY-MM-DD'),
528
595
  codes: ['resources', 'therapist', 'table'],
529
596
  _config: {
530
597
  abort: true
531
598
  }
532
- });
533
- case 4:
534
- data = _context2.sent;
599
+ }, params));
600
+ case 16:
601
+ data = _context3.sent;
535
602
  // 合并无资源
536
603
  _list = [getNoResource()].concat((data === null || data === void 0 ? void 0 : data.list) || []);
537
604
  dispatch({
@@ -540,29 +607,32 @@ var Info = function Info(_, ref) {
540
607
  resourcesOrigin: _list
541
608
  }
542
609
  });
543
- _context2.next = 12;
610
+ _context3.next = 24;
544
611
  break;
545
- case 9:
546
- _context2.prev = 9;
547
- _context2.t0 = _context2["catch"](1);
548
- console.log(_context2.t0, 'err');
549
- case 12:
612
+ case 21:
613
+ _context3.prev = 21;
614
+ _context3.t0 = _context3["catch"](1);
615
+ console.log(_context3.t0, 'err');
616
+ case 24:
550
617
  setResourceLoading(false);
551
- case 13:
618
+ case 25:
552
619
  case "end":
553
- return _context2.stop();
620
+ return _context3.stop();
554
621
  }
555
- }, _callee2, null, [[1, 9]]);
622
+ }, _callee3, null, [[1, 21]]);
556
623
  }));
557
624
  return function getResourcesData() {
558
- return _ref3.apply(this, arguments);
625
+ return _ref5.apply(this, arguments);
559
626
  };
560
627
  }();
561
628
  useEffect(function () {
629
+ if (isEventBookingMode) {
630
+ return;
631
+ }
562
632
  setTimeout(function () {
563
633
  getResourcesData();
564
634
  }, 20);
565
- }, [(_state$date = state.date) === null || _state$date === void 0 || (_state$date = _state$date.value) === null || _state$date === void 0 || (_state$date$format = _state$date.format) === null || _state$date$format === void 0 ? void 0 : _state$date$format.call(_state$date, 'YYYY-MM-DD')]);
635
+ }, [(_state$date = state.date) === null || _state$date === void 0 || (_state$date = _state$date.value) === null || _state$date === void 0 || (_state$date$format = _state$date.format) === null || _state$date$format === void 0 ? void 0 : _state$date$format.call(_state$date, 'YYYY-MM-DD'), (_state$date2 = state.date) === null || _state$date2 === void 0 ? void 0 : _state$date2.end_date, useStartDate, useEndDate, isEventBookingMode]);
566
636
 
567
637
  /**
568
638
  * @title: 编辑商品
@@ -573,11 +643,24 @@ var Info = function Info(_, ref) {
573
643
  * @Date: 2024-08-28 17:08
574
644
  */
575
645
  var handleEdit = useMemoizedFn(function (e) {
646
+ var _item$_extend3, _state$client;
576
647
  // 当前商品
577
648
  var item = state.service.cacheItem;
578
649
 
579
650
  // 表单数据
580
651
  var values = form.getFieldsValue();
652
+ var dayValue = {};
653
+ if (isDayBookingMode) {
654
+ var _item$_extend, _item$_extend2;
655
+ // 格式化单规格
656
+ var option = (_item$_extend = item._extend) === null || _item$_extend === void 0 || (_item$_extend = _item$_extend.other) === null || _item$_extend === void 0 || (_item$_extend = _item$_extend.option) === null || _item$_extend === void 0 ? void 0 : _item$_extend.map(function (o) {
657
+ return _objectSpread(_objectSpread({}, o), {}, {
658
+ option_group_item_id: o.product_option_item_id
659
+ });
660
+ });
661
+ dayValue.product_variant = ((_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 || (_item$_extend2 = _item$_extend2.other) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.product_variant_id) || 0;
662
+ dayValue.product_option = option || [];
663
+ }
581
664
 
582
665
  // 打开商品详情弹窗
583
666
  state.action({
@@ -586,14 +669,16 @@ var Info = function Info(_, ref) {
586
669
  id: item.id,
587
670
  date: state.date.value.format('YYYY-MM-DD'),
588
671
  showConfig: {
589
- option: false,
672
+ option: isDayBookingMode ? true : false,
590
673
  session: false,
591
- variant: false,
674
+ variant: isDayBookingMode ? true : false,
592
675
  package: true
593
676
  },
594
- value: item._extend.other
677
+ value: _objectSpread(_objectSpread({}, ((_item$_extend3 = item._extend) === null || _item$_extend3 === void 0 ? void 0 : _item$_extend3.other) || {}), dayValue),
678
+ customer_id: isDayBookingMode ? ((_state$client = state.client) === null || _state$client === void 0 || (_state$client = _state$client.value) === null || _state$client === void 0 ? void 0 : _state$client.id) || 1 : undefined
595
679
  },
596
680
  callback: function callback(e) {
681
+ var _cacheItem$_extend;
597
682
  // 重新生成商品
598
683
  var cacheItem = _objectSpread(_objectSpread({}, item), {}, {
599
684
  product_id: item.id,
@@ -609,6 +694,12 @@ var Info = function Info(_, ref) {
609
694
  // 获取商品总价
610
695
  var _total = getProductTotalPrice(cacheItem);
611
696
 
697
+ // 如果有多规格,则更新商品的单价
698
+ if (cacheItem !== null && cacheItem !== void 0 && (_cacheItem$_extend = cacheItem._extend) !== null && _cacheItem$_extend !== void 0 && (_cacheItem$_extend = _cacheItem$_extend.other) !== null && _cacheItem$_extend !== void 0 && _cacheItem$_extend.product_variant_id) {
699
+ var _cacheItem$_extend2;
700
+ cacheItem._extend.price = Number((_cacheItem$_extend2 = cacheItem._extend) === null || _cacheItem$_extend2 === void 0 || (_cacheItem$_extend2 = _cacheItem$_extend2.other) === null || _cacheItem$_extend2 === void 0 ? void 0 : _cacheItem$_extend2.price);
701
+ }
702
+
612
703
  // 用于折扣 可修改
613
704
  cacheItem._extend.total = _total;
614
705
 
@@ -622,11 +713,12 @@ var Info = function Info(_, ref) {
622
713
  cacheItem: cacheItem
623
714
  }
624
715
  });
625
-
626
- // 更新表单内的商品价格
627
- form.setFieldsValue({
628
- total: _total
629
- });
716
+ setTimeout(function () {
717
+ updateMultiDay({
718
+ start_date: values.start_date,
719
+ end_date: values.end_date
720
+ });
721
+ }, 100);
630
722
  }
631
723
  });
632
724
  });
@@ -659,8 +751,165 @@ var Info = function Info(_, ref) {
659
751
  };
660
752
  });
661
753
  var SelectTime = (_window$BaseMaterials = window.BaseMaterials) === null || _window$BaseMaterials === void 0 ? void 0 : _window$BaseMaterials.SelectTime;
754
+
755
+ /**
756
+ * @title: 日期组件
757
+ * @description:
758
+ * @return {*}
759
+ * @Author: WangHan
760
+ * @Date: 2024-11-30 22:22
761
+ */
762
+ var DateCom = function DateCom(position) {
763
+ return /*#__PURE__*/React.createElement(DatePicker, {
764
+ className: "pisell-lowcode__booking-service-select-date",
765
+ disabledDate: function disabledDate(current) {
766
+ return _disabledDate(current, position, useStartDate);
767
+ },
768
+ size: "large",
769
+ style: {
770
+ width: '100%'
771
+ },
772
+ format: state.locale === 'en' ? 'DD/MM/YYYY' : 'YYYY-MM-DD'
773
+ });
774
+ };
775
+
776
+ /**
777
+ * @title: 更新报价单价格
778
+ * @description:
779
+ * @param {any} param1
780
+ * @return {*}
781
+ * @Author: WangHan
782
+ * @Date: 2024-12-29 23:17
783
+ */
784
+ var updateMultiDay = /*#__PURE__*/function () {
785
+ var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(_ref6) {
786
+ var start_date, end_date, duration, cacheItem, fieldsValues;
787
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
788
+ while (1) switch (_context4.prev = _context4.next) {
789
+ case 0:
790
+ start_date = _ref6.start_date, end_date = _ref6.end_date, duration = _ref6.duration;
791
+ _context4.next = 3;
792
+ return getMultiDay({
793
+ start_date: start_date,
794
+ end_date: end_date,
795
+ state: state,
796
+ cacheItem: getCurrentCacheItem()
797
+ });
798
+ case 3:
799
+ cacheItem = _context4.sent;
800
+ // 兼容时长为空的情况
801
+ if (duration !== undefined) {
802
+ cacheItem._extend.duration = duration;
803
+ }
804
+ cacheItem._extend.items = createBookingItemsByGroup(cacheItem);
805
+ cacheItem._extend = _objectSpread(_objectSpread({}, cacheItem._extend), getGroupTotalPrice(cacheItem._extend.items));
806
+ // 覆盖商品
807
+ dispatch({
808
+ type: 'setService',
809
+ payload: {
810
+ cacheItem: cacheItem
811
+ }
812
+ });
813
+ fieldsValues = {
814
+ total: cacheItem._extend.total
815
+ }; // 更新表单内的商品价格
816
+ form.setFieldsValue(fieldsValues);
817
+ case 10:
818
+ case "end":
819
+ return _context4.stop();
820
+ }
821
+ }, _callee4);
822
+ }));
823
+ return function updateMultiDay(_x4) {
824
+ return _ref7.apply(this, arguments);
825
+ };
826
+ }();
827
+
828
+ /**
829
+ * @title: 表单更新
830
+ * @description:
831
+ * @param {any} changedValues
832
+ * @return {*}
833
+ * @Author: WangHan
834
+ * @Date: 2024-12-04 14:39
835
+ */
836
+ var onValuesChange = function onValuesChange(changedValues) {
837
+ // 跨日预约
838
+ if (isDayBookingMode) {
839
+ // 根据时长更新结束时间
840
+ if (changedValues !== null && changedValues !== void 0 && changedValues.duration) {
841
+ var end_date = dayjs(useStartDate).add(changedValues === null || changedValues === void 0 ? void 0 : changedValues.duration, 'day');
842
+ form.setFieldsValue({
843
+ end_date: end_date
844
+ });
845
+
846
+ // 跨日预约报价单
847
+ return updateMultiDay({
848
+ start_date: useStartDate,
849
+ end_date: end_date,
850
+ duration: changedValues === null || changedValues === void 0 ? void 0 : changedValues.duration
851
+ });
852
+ }
853
+
854
+ // 验证结束日期
855
+ if (changedValues !== null && changedValues !== void 0 && changedValues.start_date) {
856
+ var startDate = dayjs(changedValues === null || changedValues === void 0 ? void 0 : changedValues.start_date);
857
+ var endDate = dayjs(useEndDate);
858
+ // 如果开始日期大于结束日期,则清空数据
859
+ if (startDate.isAfter(endDate)) {
860
+ return form.setFieldsValue({
861
+ duration: undefined,
862
+ end_date: undefined
863
+ });
864
+ }
865
+ }
866
+
867
+ // 计算时长
868
+ if (changedValues !== null && changedValues !== void 0 && changedValues.start_date || changedValues !== null && changedValues !== void 0 && changedValues.end_date) {
869
+ var _cacheItem2 = getCurrentCacheItem();
870
+ var duration = getDays(_cacheItem2, 'days');
871
+ var start_date = (changedValues === null || changedValues === void 0 ? void 0 : changedValues.start_date) || useStartDate;
872
+ var _end_date = (changedValues === null || changedValues === void 0 ? void 0 : changedValues.end_date) || useEndDate;
873
+ updateMultiDay({
874
+ start_date: start_date,
875
+ end_date: _end_date,
876
+ duration: duration
877
+ });
878
+ return form.setFieldsValue({
879
+ duration: duration
880
+ });
881
+ }
882
+ }
883
+ };
884
+
885
+ /**
886
+ * @title: 是否显示资源和时长
887
+ * @description:
888
+ * @param {*} useMemo
889
+ * @return {*}
890
+ * @Author: WangHan
891
+ * @Date: 2024-12-09 15:59
892
+ */
893
+ var showResource = useMemo(function () {
894
+ if (isEventBookingMode) {
895
+ return false;
896
+ }
897
+
898
+ // 跨日预约 预约商品才展示
899
+ if (isDayBookingMode) {
900
+ return isDayBookingProduct(state.service.cacheItem, state);
901
+ }
902
+ return true;
903
+ }, [state.service.cacheItem, state.renderType]);
904
+ var items = useMemo(function () {
905
+ var _getCurrentCacheItem;
906
+ return ((_getCurrentCacheItem = getCurrentCacheItem()) === null || _getCurrentCacheItem === void 0 || (_getCurrentCacheItem = _getCurrentCacheItem._extend) === null || _getCurrentCacheItem === void 0 ? void 0 : _getCurrentCacheItem.items) || [];
907
+ }, [getCurrentCacheItem(), state.service.cacheItem, useLikeStatus, currentResource, useTotal]);
908
+ var isEditGroup = useMemo(function () {
909
+ return items.length;
910
+ }, [items]);
662
911
  return useMemo(function () {
663
- var _state$service$cacheI8, _state$service6, _state$service$cacheI9, _state$service$cacheI10, _state$service$cacheI11, _state$service$cacheI12, _state$bookingConfig3;
912
+ var _state$service$cacheI8, _state$service9, _state$service$cacheI9, _state$service$cacheI10, _state$service$cacheI11, _state$service$cacheI12, _state$bookingConfig3;
664
913
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Drawer
665
914
  //通过zIndex的方式控制 添加商品 和 编辑服务弹窗的上下层级
666
915
  , {
@@ -668,7 +917,7 @@ var Info = function Info(_, ref) {
668
917
  zIndex: state.service.changeService ? 999 : 1000,
669
918
  forceRender: true,
670
919
  open: state.service.editModal && !((_state$service$cacheI8 = state.service.cacheItem) !== null && _state$service$cacheI8 !== void 0 && _state$service$cacheI8.autoClose),
671
- title: locales.getText('pisell2.text.edit-service'),
920
+ title: isDayBookingMode ? locales.getText('pisell2.text.edit-select-service') : locales.getText('pisell2.text.edit-service'),
672
921
  onClose: function onClose() {
673
922
  dispatch({
674
923
  type: 'setService',
@@ -681,10 +930,29 @@ var Info = function Info(_, ref) {
681
930
  }
682
931
  }, /*#__PURE__*/React.createElement("div", {
683
932
  className: "pisell-lowcode__booking-service-body-edit"
684
- }, /*#__PURE__*/React.createElement(Page, null, /*#__PURE__*/React.createElement(Form, {
933
+ }, isEditGroup ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(EditTabs, {
934
+ value: currentTab,
935
+ onChange: function onChange(e) {
936
+ console.log(e);
937
+ setCurrentTab(e);
938
+ }
939
+ }), /*#__PURE__*/React.createElement("div", {
940
+ className: "",
941
+ style: {
942
+ display: currentTab === 'booking_list' ? 'block' : 'none'
943
+ }
944
+ }, /*#__PURE__*/React.createElement(BookingList, {
945
+ items: items
946
+ }))) : null, /*#__PURE__*/React.createElement("div", {
947
+ className: "",
948
+ style: {
949
+ display: currentTab === 'batch_edit' ? 'block' : 'none'
950
+ }
951
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Page, null, /*#__PURE__*/React.createElement(Form, {
685
952
  layout: "vertical",
686
953
  form: form,
687
- onFinish: onFinish
954
+ onFinish: onFinish,
955
+ onValuesChange: onValuesChange
688
956
  }, /*#__PURE__*/React.createElement(Row, {
689
957
  style: {
690
958
  width: '100%'
@@ -700,9 +968,9 @@ var Info = function Info(_, ref) {
700
968
  className: "current-service-info-name-wrap"
701
969
  }, /*#__PURE__*/React.createElement("div", {
702
970
  className: "current-service-info-name"
703
- }, ((_state$service6 = state.service) === null || _state$service6 === void 0 || (_state$service6 = _state$service6.cacheItem) === null || _state$service6 === void 0 || (_state$service6 = _state$service6._extend) === null || _state$service6 === void 0 ? void 0 : _state$service6.product_name) || '-'), /*#__PURE__*/React.createElement(Button, {
971
+ }, ((_state$service9 = state.service) === null || _state$service9 === void 0 || (_state$service9 = _state$service9.cacheItem) === null || _state$service9 === void 0 || (_state$service9 = _state$service9._extend) === null || _state$service9 === void 0 ? void 0 : _state$service9.product_name) || '-'), /*#__PURE__*/React.createElement(Button, {
704
972
  onClick: handleEdit
705
- }, locales.getText('pisell2.text.edit')), !state.isBookingCreatePage && /*#__PURE__*/React.createElement(Button, {
973
+ }, locales.getText('pisell2.text.edit')), !isTerminalBooking && /*#__PURE__*/React.createElement(Button, {
706
974
  onClick: handleChange
707
975
  }, locales.getText('pisell2.text.change'))), /*#__PURE__*/React.createElement(CollapsibleList, {
708
976
  style: {
@@ -738,15 +1006,15 @@ var Info = function Info(_, ref) {
738
1006
  name: "discount_reason"
739
1007
  }, /*#__PURE__*/React.createElement(Input.TextArea, {
740
1008
  size: "large"
741
- }))) : null, state.renderType !== 'eventBooking' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Col, {
1009
+ }))) : null, showResource && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Col, {
742
1010
  span: 12
743
1011
  }, /*#__PURE__*/React.createElement(Form.Item, {
744
- label: locales.getText('pisell2.text.start_time'),
745
- name: "start_time",
1012
+ label: locales.getText(isDayBookingMode ? 'pisell2.text.start_date' : 'pisell2.text.start_time'),
1013
+ name: isDayBookingMode ? 'start_date' : 'start_time',
746
1014
  rules: [{
747
1015
  required: true
748
1016
  }]
749
- }, SelectTime ? /*#__PURE__*/React.createElement(SelectTime, {
1017
+ }, isDayBookingMode ? DateCom('start') : SelectTime ? /*#__PURE__*/React.createElement(SelectTime, {
750
1018
  slice: (_state$bookingConfig3 = state.bookingConfig) === null || _state$bookingConfig3 === void 0 || (_state$bookingConfig3 = _state$bookingConfig3.config) === null || _state$bookingConfig3 === void 0 || (_state$bookingConfig3 = _state$bookingConfig3.basic) === null || _state$bookingConfig3 === void 0 || (_state$bookingConfig3 = _state$bookingConfig3.service_time) === null || _state$bookingConfig3 === void 0 ? void 0 : _state$bookingConfig3.value,
751
1019
  timePickerProps: {
752
1020
  style: {
@@ -758,7 +1026,15 @@ var Info = function Info(_, ref) {
758
1026
  zoom: 0.8
759
1027
  }
760
1028
  }
761
- }) : null)), /*#__PURE__*/React.createElement(Col, {
1029
+ }) : null)), isDayBookingMode ? /*#__PURE__*/React.createElement(Col, {
1030
+ span: 12
1031
+ }, /*#__PURE__*/React.createElement(Form.Item, {
1032
+ label: locales.getText(isDayBookingMode ? 'pisell2.text.end_date' : 'pisell2.text.end_time'),
1033
+ name: "end_date",
1034
+ rules: [{
1035
+ required: true
1036
+ }]
1037
+ }, DateCom('end'))) : null, /*#__PURE__*/React.createElement(Col, {
762
1038
  span: 12
763
1039
  }, /*#__PURE__*/React.createElement(Form.Item, {
764
1040
  label: locales.getText('pisell2.text.duration'),
@@ -768,7 +1044,17 @@ var Info = function Info(_, ref) {
768
1044
  }]
769
1045
  }, /*#__PURE__*/React.createElement(Duration, _extends({}, durationProps, {
770
1046
  timeObj: timeObj
771
- })))), /*#__PURE__*/React.createElement(Col, {
1047
+ })))), isDayBookingMode && (holderLists === null || holderLists === void 0 ? void 0 : holderLists.length) > 0 ? /*#__PURE__*/React.createElement(Col, {
1048
+ span: 12
1049
+ }, /*#__PURE__*/React.createElement(Form.Item, {
1050
+ label: locales.getText('pisell2.text.holder'),
1051
+ name: "holder_id",
1052
+ rules: [{
1053
+ required: true
1054
+ }]
1055
+ }, /*#__PURE__*/React.createElement(Holder, {
1056
+ size: "large"
1057
+ }))) : null, /*#__PURE__*/React.createElement(Col, {
772
1058
  span: 24
773
1059
  }, /*#__PURE__*/React.createElement(Form.Item, {
774
1060
  required: true,
@@ -808,7 +1094,29 @@ var Info = function Info(_, ref) {
808
1094
  }, /*#__PURE__*/React.createElement(InputNumber, null)), /*#__PURE__*/React.createElement(Form.Item, {
809
1095
  hidden: true,
810
1096
  name: "like_status"
811
- }, /*#__PURE__*/React.createElement(Input, null)))))), state.renderType !== 'eventBooking' && errorList.map(function (d, i) {
1097
+ }, /*#__PURE__*/React.createElement(Input, null))), !isEventBookingMode && isDayBookingMode && !isDayBookingProduct(state.service.cacheItem, state) ? /*#__PURE__*/React.createElement(Col, {
1098
+ span: 24
1099
+ }, /*#__PURE__*/React.createElement(Form.Item, {
1100
+ label: locales.getText('pisell2.text.quantity'),
1101
+ name: "quantity",
1102
+ rules: [{
1103
+ required: true
1104
+ }]
1105
+ }, /*#__PURE__*/React.createElement(InputNumber, {
1106
+ size: "large",
1107
+ style: {
1108
+ width: '100%'
1109
+ },
1110
+ min: 1,
1111
+ max: 999999,
1112
+ formatter: function formatter(value) {
1113
+ if (value !== undefined) {
1114
+ // 向下取整
1115
+ return Math.floor(value);
1116
+ }
1117
+ return value;
1118
+ }
1119
+ }))) : null))), showResource && errorList.map(function (d, i) {
812
1120
  return /*#__PURE__*/React.createElement(Alert, {
813
1121
  key: d.type,
814
1122
  message: d.label,
@@ -818,7 +1126,7 @@ var Info = function Info(_, ref) {
818
1126
  marginBottom: 12
819
1127
  }
820
1128
  });
821
- }), /*#__PURE__*/React.createElement("div", {
1129
+ }))), /*#__PURE__*/React.createElement("div", {
822
1130
  className: "pisell-lowcode__booking-service-body-edit-footer"
823
1131
  }, /*#__PURE__*/React.createElement("div", {
824
1132
  className: "pisell-lowcode__booking-service-delete-wrap",
@@ -833,6 +1141,6 @@ var Info = function Info(_, ref) {
833
1141
  form.submit();
834
1142
  }
835
1143
  }, locales.getText('pisell2.text.apply'))))));
836
- }, [state.service.changeService, state.service.editModal, (_state$service$cacheI13 = state.service.cacheItem) === null || _state$service$cacheI13 === void 0 ? void 0 : _state$service$cacheI13.autoClose, locales, (_state$service7 = state.service) === null || _state$service7 === void 0 || (_state$service7 = _state$service7.cacheItem) === null || _state$service7 === void 0 || (_state$service7 = _state$service7._extend) === null || _state$service7 === void 0 ? void 0 : _state$service7.product_name, bundles, state.amountSymbol, state.channelDisabledEdit, (_state$service$cacheI14 = state.service.cacheItem) === null || _state$service$cacheI14 === void 0 || (_state$service$cacheI14 = _state$service$cacheI14._extend) === null || _state$service$cacheI14 === void 0 ? void 0 : _state$service$cacheI14.origin_total, isDiscount, isReason, state.renderType, (_state$bookingConfig4 = state.bookingConfig) === null || _state$bookingConfig4 === void 0 || (_state$bookingConfig4 = _state$bookingConfig4.config) === null || _state$bookingConfig4 === void 0 || (_state$bookingConfig4 = _state$bookingConfig4.basic) === null || _state$bookingConfig4 === void 0 || (_state$bookingConfig4 = _state$bookingConfig4.service_time) === null || _state$bookingConfig4 === void 0 ? void 0 : _state$bookingConfig4.value, SelectTime, durationProps, timeObj, useResource, useLikeStatus, resourceLoading, selectOpen, state.service.resources, errorList, useTotal]);
1144
+ }, [state.service.changeService, state.service.editModal, (_state$service$cacheI13 = state.service.cacheItem) === null || _state$service$cacheI13 === void 0 ? void 0 : _state$service$cacheI13.autoClose, locales, (_state$service10 = state.service) === null || _state$service10 === void 0 || (_state$service10 = _state$service10.cacheItem) === null || _state$service10 === void 0 || (_state$service10 = _state$service10._extend) === null || _state$service10 === void 0 ? void 0 : _state$service10.product_name, bundles, state.amountSymbol, state.channelDisabledEdit, (_state$service$cacheI14 = state.service.cacheItem) === null || _state$service$cacheI14 === void 0 || (_state$service$cacheI14 = _state$service$cacheI14._extend) === null || _state$service$cacheI14 === void 0 ? void 0 : _state$service$cacheI14.origin_total, isDiscount, isReason, state.renderType, (_state$bookingConfig4 = state.bookingConfig) === null || _state$bookingConfig4 === void 0 || (_state$bookingConfig4 = _state$bookingConfig4.config) === null || _state$bookingConfig4 === void 0 || (_state$bookingConfig4 = _state$bookingConfig4.basic) === null || _state$bookingConfig4 === void 0 || (_state$bookingConfig4 = _state$bookingConfig4.service_time) === null || _state$bookingConfig4 === void 0 ? void 0 : _state$bookingConfig4.value, SelectTime, durationProps, timeObj, useResource, useLikeStatus, resourceLoading, selectOpen, state.service.resources, errorList, useTotal, useStartDate, useEndDate, showResource, holderLists, multiDayPrices, currentTab, items, isEventBookingMode]);
837
1145
  };
838
1146
  export default /*#__PURE__*/forwardRef(Info);