@pisell/private-materials 3.0.214 → 3.1.2

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 (647) 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 +146 -146
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +27 -12
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +33 -18
  11. package/es/components/booking/components/customSelect/index.d.ts +0 -1
  12. package/es/components/booking/components/customSelect/index.js +2 -6
  13. package/es/components/booking/components/footer/amount.js +22 -46
  14. package/es/components/booking/components/footer/index.js +79 -116
  15. package/es/components/booking/components/footer/serve.d.ts +0 -2
  16. package/es/components/booking/components/footer/serve.js +0 -44
  17. package/es/components/booking/components/footer/utils.js +68 -282
  18. package/es/components/booking/info/addServiceVariant/index.js +1 -8
  19. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -1
  20. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +13 -14
  21. package/es/components/booking/info/clientVariant/vertical/index.js +15 -131
  22. package/es/components/booking/info/main.js +28 -44
  23. package/es/components/booking/info/model.js +0 -3
  24. package/es/components/booking/info/pet/index.d.ts +1 -1
  25. package/es/components/booking/info/pet/index.js +35 -94
  26. package/es/components/booking/info/service/addService/index.js +104 -195
  27. package/es/components/booking/info/service/addService/index.less +3 -13
  28. package/es/components/booking/info/service/addService/utils.d.ts +2 -12
  29. package/es/components/booking/info/service/addService/utils.js +26 -103
  30. package/es/components/booking/info/service/editService/index.js +142 -450
  31. package/es/components/booking/info/service/editService/index.less +13 -18
  32. package/es/components/booking/info/service/serve.d.ts +0 -10
  33. package/es/components/booking/info/service/serve.js +0 -28
  34. package/es/components/booking/info/utils.d.ts +0 -20
  35. package/es/components/booking/info/utils.js +1 -38
  36. package/es/components/booking/info2/utilsByBooking.js +1 -0
  37. package/es/components/booking/locales.d.ts +0 -66
  38. package/es/components/booking/locales.js +3 -81
  39. package/es/components/booking/model.d.ts +1 -5
  40. package/es/components/booking/model.js +2 -4
  41. package/es/components/booking/utils.d.ts +3 -12
  42. package/es/components/booking/utils.js +26 -143
  43. package/es/components/eftpos/hooks.d.ts +4 -4
  44. package/es/components/eftposPay/amount.d.ts +1 -1
  45. package/es/components/eftposPay/component/step/index.d.ts +6 -6
  46. package/es/components/eftposPay/component/step/step.d.ts +4 -4
  47. package/es/components/eftposPay/device.d.ts +1 -1
  48. package/es/components/eftposPay/hooks.d.ts +2 -2
  49. package/es/components/eftposPay/tyro/hooks.d.ts +2 -2
  50. package/es/components/eftposPay/windcave/helper.d.ts +1 -1
  51. package/es/components/eftposPay/windcave/windcave.js +60 -27
  52. package/es/components/tabProduct/tabs/index.less +3 -13
  53. package/es/index.d.ts +0 -13
  54. package/es/index.js +1 -14
  55. package/lib/components/booking/components/customSelect/index.d.ts +0 -1
  56. package/lib/components/booking/components/customSelect/index.js +2 -6
  57. package/lib/components/booking/components/footer/amount.js +8 -27
  58. package/lib/components/booking/components/footer/index.js +55 -50
  59. package/lib/components/booking/components/footer/serve.d.ts +0 -2
  60. package/lib/components/booking/components/footer/serve.js +0 -12
  61. package/lib/components/booking/components/footer/utils.js +53 -167
  62. package/lib/components/booking/info/addServiceVariant/index.js +0 -5
  63. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -1
  64. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +7 -8
  65. package/lib/components/booking/info/clientVariant/vertical/index.js +20 -97
  66. package/lib/components/booking/info/main.js +21 -32
  67. package/lib/components/booking/info/model.js +0 -3
  68. package/lib/components/booking/info/pet/index.d.ts +1 -1
  69. package/lib/components/booking/info/pet/index.js +44 -91
  70. package/lib/components/booking/info/service/addService/index.js +101 -132
  71. package/lib/components/booking/info/service/addService/index.less +3 -13
  72. package/lib/components/booking/info/service/addService/utils.d.ts +2 -12
  73. package/lib/components/booking/info/service/addService/utils.js +10 -58
  74. package/lib/components/booking/info/service/editService/index.js +197 -447
  75. package/lib/components/booking/info/service/editService/index.less +13 -18
  76. package/lib/components/booking/info/service/serve.d.ts +0 -10
  77. package/lib/components/booking/info/service/serve.js +2 -7
  78. package/lib/components/booking/info/utils.d.ts +0 -20
  79. package/lib/components/booking/info/utils.js +1 -42
  80. package/lib/components/booking/locales.d.ts +0 -66
  81. package/lib/components/booking/locales.js +3 -69
  82. package/lib/components/booking/model.d.ts +1 -5
  83. package/lib/components/booking/model.js +2 -4
  84. package/lib/components/booking/utils.d.ts +3 -12
  85. package/lib/components/booking/utils.js +18 -89
  86. package/lib/components/eftpos/hooks.d.ts +4 -4
  87. package/lib/components/eftposPay/amount.d.ts +1 -1
  88. package/lib/components/eftposPay/component/step/index.d.ts +6 -6
  89. package/lib/components/eftposPay/component/step/step.d.ts +4 -4
  90. package/lib/components/eftposPay/device.d.ts +1 -1
  91. package/lib/components/eftposPay/hooks.d.ts +2 -2
  92. package/lib/components/eftposPay/tyro/hooks.d.ts +2 -2
  93. package/lib/components/eftposPay/windcave/helper.d.ts +1 -1
  94. package/lib/components/eftposPay/windcave/windcave.js +28 -11
  95. package/lib/components/tabProduct/tabs/index.less +3 -13
  96. package/lib/index.d.ts +0 -13
  97. package/lib/index.js +0 -39
  98. package/package.json +4 -4
  99. package/es/businessModel/SalesModel/Sales/index.d.ts +0 -24
  100. package/es/businessModel/SalesModel/Sales/index.js +0 -69
  101. package/es/businessModel/SalesModel/hooks/index.d.ts +0 -1
  102. package/es/businessModel/SalesModel/hooks/index.js +0 -7
  103. package/es/businessModel/SalesModel/index.d.ts +0 -4
  104. package/es/businessModel/SalesModel/index.js +0 -18
  105. package/es/businessModel/index.d.ts +0 -0
  106. package/es/businessModel/index.js +0 -0
  107. package/es/components/Sales/Cart/index.d.ts +0 -53
  108. package/es/components/Sales/Cart/index.js +0 -591
  109. package/es/components/Sales/Cart/serve.d.ts +0 -2
  110. package/es/components/Sales/Cart/serve.js +0 -11
  111. package/es/components/Sales/Cart/types.d.ts +0 -19
  112. package/es/components/Sales/Cart/types.js +0 -1
  113. package/es/components/Sales/Checkout/index.d.ts +0 -33
  114. package/es/components/Sales/Checkout/index.js +0 -149
  115. package/es/components/Sales/Checkout/serve.d.ts +0 -2
  116. package/es/components/Sales/Checkout/serve.js +0 -11
  117. package/es/components/Sales/Checkout/utils.d.ts +0 -27
  118. package/es/components/Sales/Checkout/utils.js +0 -104
  119. package/es/components/Sales/Customer/index.d.ts +0 -24
  120. package/es/components/Sales/Customer/index.js +0 -56
  121. package/es/components/Sales/Event/Detail.d.ts +0 -27
  122. package/es/components/Sales/Event/Detail.js +0 -244
  123. package/es/components/Sales/Event/index.d.ts +0 -30
  124. package/es/components/Sales/Event/index.js +0 -121
  125. package/es/components/Sales/Event/serve.d.ts +0 -26
  126. package/es/components/Sales/Event/serve.js +0 -33
  127. package/es/components/Sales/Holder/index.d.ts +0 -33
  128. package/es/components/Sales/Holder/index.js +0 -226
  129. package/es/components/Sales/Holder/serve.d.ts +0 -8
  130. package/es/components/Sales/Holder/serve.js +0 -20
  131. package/es/components/Sales/Init/index.d.ts +0 -24
  132. package/es/components/Sales/Init/index.js +0 -114
  133. package/es/components/Sales/Init/serve.d.ts +0 -3
  134. package/es/components/Sales/Init/serve.js +0 -11
  135. package/es/components/Sales/Resource/index.d.ts +0 -26
  136. package/es/components/Sales/Resource/index.js +0 -126
  137. package/es/components/Sales/Resource/serve.d.ts +0 -5
  138. package/es/components/Sales/Resource/serve.js +0 -8
  139. package/es/components/Sales/Step/index.d.ts +0 -37
  140. package/es/components/Sales/Step/index.js +0 -189
  141. package/es/components/Sales/Summary/index.d.ts +0 -25
  142. package/es/components/Sales/Summary/index.js +0 -47
  143. package/es/components/Sales/Summary/serve.d.ts +0 -0
  144. package/es/components/Sales/Summary/serve.js +0 -0
  145. package/es/components/Sales/Summary/utils.d.ts +0 -36
  146. package/es/components/Sales/Summary/utils.js +0 -63
  147. package/es/components/Sales/hooks/index.d.ts +0 -1
  148. package/es/components/Sales/hooks/index.js +0 -3
  149. package/es/components/Sales/index.d.ts +0 -20
  150. package/es/components/Sales/index.js +0 -26
  151. package/es/components/Sales/utils/index.d.ts +0 -1
  152. package/es/components/Sales/utils/index.js +0 -18
  153. package/es/components/booking/components/footer/AppointmentProductModal/index.d.ts +0 -3
  154. package/es/components/booking/components/footer/AppointmentProductModal/index.js +0 -38
  155. package/es/components/booking/components/footer/AppointmentProductModal/index.less +0 -0
  156. package/es/components/booking/info/Provider.d.ts +0 -0
  157. package/es/components/booking/info/Provider.js +0 -54
  158. package/es/components/booking/info/dateRange/index.d.ts +0 -5
  159. package/es/components/booking/info/dateRange/index.js +0 -98
  160. package/es/components/booking/info/dateRange/index.less +0 -21
  161. package/es/components/booking/info/pet/ChangePetModal/index.d.ts +0 -4
  162. package/es/components/booking/info/pet/ChangePetModal/index.js +0 -134
  163. package/es/components/booking/info/pet/ChangePetModal/index.less +0 -4
  164. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -5
  165. package/es/components/booking/info/service/editService/BookingList/index.js +0 -39
  166. package/es/components/booking/info/service/editService/EditTabs/index.d.ts +0 -3
  167. package/es/components/booking/info/service/editService/EditTabs/index.js +0 -35
  168. package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
  169. package/es/components/booking/info/service/serviceManager/distributeDiscount.js +0 -55
  170. package/es/components/booking/info/service/serviceManager/index.d.ts +0 -20
  171. package/es/components/booking/info/service/serviceManager/index.js +0 -281
  172. package/es/components/booking/info/service/serviceManager/utils.d.ts +0 -0
  173. package/es/components/booking/info/service/serviceManager/utils.js +0 -0
  174. package/es/components/booking/info/service2/Group/utils.d.ts +0 -14
  175. package/es/components/booking/info/service2/Group/utils.js +0 -146
  176. package/es/components/booking/info/service2/Lists.d.ts +0 -3
  177. package/es/components/booking/info/service2/Lists.js +0 -153
  178. package/es/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
  179. package/es/components/booking/info/service2/hooks/useSelectPet.js +0 -54
  180. package/es/components/booking/info/service2/index.d.ts +0 -6
  181. package/es/components/booking/info/service2/index.js +0 -57
  182. package/es/components/booking/info/service2/status.d.ts +0 -31
  183. package/es/components/booking/info/service2/status.js +0 -78
  184. package/es/components/booking/info/service2/utils.d.ts +0 -240
  185. package/es/components/booking/info/service2/utils.js +0 -1077
  186. package/es/components/booking/materiels/holder/index.d.ts +0 -7
  187. package/es/components/booking/materiels/holder/index.js +0 -51
  188. package/es/components/eventBooking/assets/alert-circle.png +0 -0
  189. package/es/components/eventBooking/assets/calendar-heart.svg +0 -5
  190. package/es/components/eventBooking/assets/compass.svg +0 -13
  191. package/es/components/eventBooking/assets/image.svg +0 -5
  192. package/es/components/eventBooking/assets/phone.svg +0 -5
  193. package/es/components/eventBooking/assets/shopping-cart.svg +0 -10
  194. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -4
  195. package/es/components/eventBooking/components/ErrorTip/index.js +0 -14
  196. package/es/components/eventBooking/components/ErrorTip/index.less +0 -51
  197. package/es/components/eventBooking/components/OpenCard/index.d.ts +0 -4
  198. package/es/components/eventBooking/components/OpenCard/index.js +0 -65
  199. package/es/components/eventBooking/components/OpenCard/index.less +0 -52
  200. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -4
  201. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +0 -274
  202. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
  203. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -4
  204. package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +0 -46
  205. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -4
  206. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +0 -63
  207. package/es/components/eventBooking/components/Provider/Cart/Item/index.less +0 -87
  208. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -4
  209. package/es/components/eventBooking/components/Provider/Cart/index.js +0 -30
  210. package/es/components/eventBooking/components/Provider/Cart/index.less +0 -2
  211. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -4
  212. package/es/components/eventBooking/components/Provider/Content/index.js +0 -65
  213. package/es/components/eventBooking/components/Provider/Content/index.less +0 -31
  214. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -4
  215. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.js +0 -34
  216. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.less +0 -17
  217. package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -4
  218. package/es/components/eventBooking/components/Provider/Event/index.js +0 -93
  219. package/es/components/eventBooking/components/Provider/Event/index.less +0 -20
  220. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -4
  221. package/es/components/eventBooking/components/Provider/Footer/index.js +0 -76
  222. package/es/components/eventBooking/components/Provider/Footer/index.less +0 -64
  223. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -4
  224. package/es/components/eventBooking/components/Provider/Header/index.js +0 -75
  225. package/es/components/eventBooking/components/Provider/Header/index.less +0 -2
  226. package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -4
  227. package/es/components/eventBooking/components/Provider/Information/index.js +0 -178
  228. package/es/components/eventBooking/components/Provider/Information/index.less +0 -92
  229. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -4
  230. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.js +0 -34
  231. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.less +0 -27
  232. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -4
  233. package/es/components/eventBooking/components/Provider/OrderProductModal/index.js +0 -27
  234. package/es/components/eventBooking/components/Provider/OrderProductModal/index.less +0 -32
  235. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -3
  236. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.js +0 -31
  237. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -4
  238. package/es/components/eventBooking/components/Provider/Resource/index.js +0 -79
  239. package/es/components/eventBooking/components/Provider/Resource/index.less +0 -46
  240. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -3
  241. package/es/components/eventBooking/components/Provider/SelectHolderModal.js +0 -90
  242. package/es/components/eventBooking/components/Provider/SelectProduct/index.d.ts +0 -4
  243. package/es/components/eventBooking/components/Provider/SelectProduct/index.js +0 -77
  244. package/es/components/eventBooking/components/Provider/SelectProduct/index.less +0 -131
  245. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -4
  246. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +0 -26
  247. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +0 -25
  248. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
  249. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +0 -65
  250. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -32
  251. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -4
  252. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +0 -69
  253. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +0 -12
  254. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -13
  255. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +0 -152
  256. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +0 -35
  257. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -4
  258. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +0 -20
  259. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +0 -28
  260. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -5
  261. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +0 -38
  262. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -87
  263. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -4
  264. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +0 -28
  265. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +0 -25
  266. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
  267. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +0 -269
  268. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +0 -119
  269. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
  270. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +0 -257
  271. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
  272. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +0 -174
  273. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +0 -4
  274. package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
  275. package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.js +0 -36
  276. package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.less +0 -2
  277. package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
  278. package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.js +0 -70
  279. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -3
  280. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.js +0 -38
  281. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -3
  282. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.js +0 -33
  283. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -3
  284. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.js +0 -30
  285. package/es/components/eventBooking/components/bookingDetailModal/index.d.ts +0 -7
  286. package/es/components/eventBooking/components/bookingDetailModal/index.js +0 -355
  287. package/es/components/eventBooking/components/bookingDetailModal/index.less +0 -83
  288. package/es/components/eventBooking/components/bookingServiceList/index.d.ts +0 -17
  289. package/es/components/eventBooking/components/bookingServiceList/index.js +0 -52
  290. package/es/components/eventBooking/components/bookingServiceList/index.less +0 -6
  291. package/es/components/eventBooking/components/eventCard/index.d.ts +0 -14
  292. package/es/components/eventBooking/components/eventCard/index.js +0 -116
  293. package/es/components/eventBooking/components/eventCard/index.less +0 -81
  294. package/es/components/eventBooking/components/productCard/index.d.ts +0 -16
  295. package/es/components/eventBooking/components/productCard/index.js +0 -79
  296. package/es/components/eventBooking/components/productCard/index.less +0 -60
  297. package/es/components/eventBooking/components/progressBar/index.d.ts +0 -16
  298. package/es/components/eventBooking/components/progressBar/index.js +0 -93
  299. package/es/components/eventBooking/components/progressBar/index.less +0 -15
  300. package/es/components/eventBooking/components/resourceDisplay/index.d.ts +0 -23
  301. package/es/components/eventBooking/components/resourceDisplay/index.js +0 -148
  302. package/es/components/eventBooking/components/resourceDisplay/index.less +0 -95
  303. package/es/components/eventBooking/components/resourceUsability/index.d.ts +0 -12
  304. package/es/components/eventBooking/components/resourceUsability/index.js +0 -44
  305. package/es/components/eventBooking/components/resourceUsability/index.less +0 -40
  306. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -10
  307. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.js +0 -37
  308. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.less +0 -58
  309. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -12
  310. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.js +0 -127
  311. package/es/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -13
  312. package/es/components/eventBooking/components/scheduleCalendar/index.js +0 -142
  313. package/es/components/eventBooking/components/scheduleCalendar/index.less +0 -222
  314. package/es/components/eventBooking/components/selectHolder/index.d.ts +0 -22
  315. package/es/components/eventBooking/components/selectHolder/index.js +0 -118
  316. package/es/components/eventBooking/components/selectHolder/index.less +0 -70
  317. package/es/components/eventBooking/components/timeResourceSelector/index.d.ts +0 -20
  318. package/es/components/eventBooking/components/timeResourceSelector/index.js +0 -168
  319. package/es/components/eventBooking/components/timeResourceSelector/index.less +0 -74
  320. package/es/components/eventBooking/index.d.ts +0 -4
  321. package/es/components/eventBooking/index.js +0 -58
  322. package/es/components/eventBooking/index.less +0 -22
  323. package/es/components/eventBooking/locales.d.ts +0 -216
  324. package/es/components/eventBooking/locales.js +0 -251
  325. package/es/components/eventBooking/mock.d.ts +0 -627
  326. package/es/components/eventBooking/mock.js +0 -1172
  327. package/es/components/eventBooking/status.d.ts +0 -21
  328. package/es/components/eventBooking/status.js +0 -51
  329. package/es/components/eventBooking/type.d.ts +0 -17
  330. package/es/components/eventBooking/type.js +0 -1
  331. package/es/components/eventBooking/utils.d.ts +0 -45
  332. package/es/components/eventBooking/utils.js +0 -99
  333. package/es/components/shoppingCart/Provider.d.ts +0 -3
  334. package/es/components/shoppingCart/Provider.js +0 -86
  335. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -4
  336. package/es/components/shoppingCart/components/Cart/Product.js +0 -71
  337. package/es/components/shoppingCart/components/Cart/index.d.ts +0 -4
  338. package/es/components/shoppingCart/components/Cart/index.js +0 -73
  339. package/es/components/shoppingCart/components/Cart/index.less +0 -68
  340. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -4
  341. package/es/components/shoppingCart/components/Empty/index.js +0 -15
  342. package/es/components/shoppingCart/components/Empty/index.less +0 -19
  343. package/es/components/shoppingCart/components/Render/index.d.ts +0 -4
  344. package/es/components/shoppingCart/components/Render/index.js +0 -70
  345. package/es/components/shoppingCart/components/Render/index.less +0 -2
  346. package/es/components/shoppingCart/components/SelectHolderModal/index.d.ts +0 -4
  347. package/es/components/shoppingCart/components/SelectHolderModal/index.js +0 -132
  348. package/es/components/shoppingCart/components/SelectHolderModal/index.less +0 -32
  349. package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -3
  350. package/es/components/shoppingCart/hooks/useAddService.js +0 -23
  351. package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -3
  352. package/es/components/shoppingCart/hooks/useClearCart.js +0 -60
  353. package/es/components/shoppingCart/hooks/useContext.d.ts +0 -1
  354. package/es/components/shoppingCart/hooks/useContext.js +0 -5
  355. package/es/components/shoppingCart/index.d.ts +0 -4
  356. package/es/components/shoppingCart/index.js +0 -24
  357. package/es/components/shoppingCart/locales.d.ts +0 -33
  358. package/es/components/shoppingCart/locales.js +0 -38
  359. package/es/components/shoppingCart/mock.d.ts +0 -40
  360. package/es/components/shoppingCart/mock.js +0 -40
  361. package/es/components/shoppingCart/status.d.ts +0 -2
  362. package/es/components/shoppingCart/status.js +0 -22
  363. package/es/components/shoppingCart/type.d.ts +0 -40
  364. package/es/components/shoppingCart/type.js +0 -1
  365. package/es/components/shoppingCart/utils.d.ts +0 -63
  366. package/es/components/shoppingCart/utils.js +0 -116
  367. package/lib/businessModel/SalesModel/Sales/index.d.ts +0 -24
  368. package/lib/businessModel/SalesModel/Sales/index.js +0 -104
  369. package/lib/businessModel/SalesModel/hooks/index.d.ts +0 -1
  370. package/lib/businessModel/SalesModel/hooks/index.js +0 -34
  371. package/lib/businessModel/SalesModel/index.d.ts +0 -4
  372. package/lib/businessModel/SalesModel/index.js +0 -51
  373. package/lib/businessModel/index.d.ts +0 -0
  374. package/lib/businessModel/index.js +0 -0
  375. package/lib/components/Sales/Cart/index.d.ts +0 -53
  376. package/lib/components/Sales/Cart/index.js +0 -500
  377. package/lib/components/Sales/Cart/serve.d.ts +0 -2
  378. package/lib/components/Sales/Cart/serve.js +0 -37
  379. package/lib/components/Sales/Cart/types.d.ts +0 -19
  380. package/lib/components/Sales/Cart/types.js +0 -17
  381. package/lib/components/Sales/Checkout/index.d.ts +0 -33
  382. package/lib/components/Sales/Checkout/index.js +0 -130
  383. package/lib/components/Sales/Checkout/serve.d.ts +0 -2
  384. package/lib/components/Sales/Checkout/serve.js +0 -37
  385. package/lib/components/Sales/Checkout/utils.d.ts +0 -27
  386. package/lib/components/Sales/Checkout/utils.js +0 -88
  387. package/lib/components/Sales/Customer/index.d.ts +0 -24
  388. package/lib/components/Sales/Customer/index.js +0 -90
  389. package/lib/components/Sales/Event/Detail.d.ts +0 -27
  390. package/lib/components/Sales/Event/Detail.js +0 -224
  391. package/lib/components/Sales/Event/index.d.ts +0 -30
  392. package/lib/components/Sales/Event/index.js +0 -136
  393. package/lib/components/Sales/Event/serve.d.ts +0 -26
  394. package/lib/components/Sales/Event/serve.js +0 -54
  395. package/lib/components/Sales/Holder/index.d.ts +0 -33
  396. package/lib/components/Sales/Holder/index.js +0 -210
  397. package/lib/components/Sales/Holder/serve.d.ts +0 -8
  398. package/lib/components/Sales/Holder/serve.js +0 -37
  399. package/lib/components/Sales/Init/index.d.ts +0 -24
  400. package/lib/components/Sales/Init/index.js +0 -128
  401. package/lib/components/Sales/Init/serve.d.ts +0 -3
  402. package/lib/components/Sales/Init/serve.js +0 -34
  403. package/lib/components/Sales/Resource/index.d.ts +0 -26
  404. package/lib/components/Sales/Resource/index.js +0 -133
  405. package/lib/components/Sales/Resource/serve.d.ts +0 -5
  406. package/lib/components/Sales/Resource/serve.js +0 -32
  407. package/lib/components/Sales/Step/index.d.ts +0 -37
  408. package/lib/components/Sales/Step/index.js +0 -170
  409. package/lib/components/Sales/Summary/index.d.ts +0 -25
  410. package/lib/components/Sales/Summary/index.js +0 -83
  411. package/lib/components/Sales/Summary/serve.d.ts +0 -0
  412. package/lib/components/Sales/Summary/serve.js +0 -0
  413. package/lib/components/Sales/Summary/utils.d.ts +0 -36
  414. package/lib/components/Sales/Summary/utils.js +0 -80
  415. package/lib/components/Sales/hooks/index.d.ts +0 -1
  416. package/lib/components/Sales/hooks/index.js +0 -31
  417. package/lib/components/Sales/index.d.ts +0 -20
  418. package/lib/components/Sales/index.js +0 -79
  419. package/lib/components/Sales/utils/index.d.ts +0 -1
  420. package/lib/components/Sales/utils/index.js +0 -43
  421. package/lib/components/booking/components/footer/AppointmentProductModal/index.d.ts +0 -3
  422. package/lib/components/booking/components/footer/AppointmentProductModal/index.js +0 -60
  423. package/lib/components/booking/components/footer/AppointmentProductModal/index.less +0 -0
  424. package/lib/components/booking/info/Provider.d.ts +0 -0
  425. package/lib/components/booking/info/Provider.js +0 -0
  426. package/lib/components/booking/info/dateRange/index.d.ts +0 -5
  427. package/lib/components/booking/info/dateRange/index.js +0 -111
  428. package/lib/components/booking/info/dateRange/index.less +0 -21
  429. package/lib/components/booking/info/pet/ChangePetModal/index.d.ts +0 -4
  430. package/lib/components/booking/info/pet/ChangePetModal/index.js +0 -121
  431. package/lib/components/booking/info/pet/ChangePetModal/index.less +0 -4
  432. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -5
  433. package/lib/components/booking/info/service/editService/BookingList/index.js +0 -55
  434. package/lib/components/booking/info/service/editService/EditTabs/index.d.ts +0 -3
  435. package/lib/components/booking/info/service/editService/EditTabs/index.js +0 -75
  436. package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
  437. package/lib/components/booking/info/service/serviceManager/distributeDiscount.js +0 -70
  438. package/lib/components/booking/info/service/serviceManager/index.d.ts +0 -20
  439. package/lib/components/booking/info/service/serviceManager/index.js +0 -211
  440. package/lib/components/booking/info/service/serviceManager/utils.d.ts +0 -0
  441. package/lib/components/booking/info/service/serviceManager/utils.js +0 -0
  442. package/lib/components/booking/info/service2/Group/utils.d.ts +0 -14
  443. package/lib/components/booking/info/service2/Group/utils.js +0 -142
  444. package/lib/components/booking/info/service2/Lists.d.ts +0 -3
  445. package/lib/components/booking/info/service2/Lists.js +0 -116
  446. package/lib/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
  447. package/lib/components/booking/info/service2/hooks/useSelectPet.js +0 -50
  448. package/lib/components/booking/info/service2/index.d.ts +0 -6
  449. package/lib/components/booking/info/service2/index.js +0 -75
  450. package/lib/components/booking/info/service2/status.d.ts +0 -31
  451. package/lib/components/booking/info/service2/status.js +0 -81
  452. package/lib/components/booking/info/service2/utils.d.ts +0 -240
  453. package/lib/components/booking/info/service2/utils.js +0 -695
  454. package/lib/components/booking/materiels/holder/index.d.ts +0 -7
  455. package/lib/components/booking/materiels/holder/index.js +0 -65
  456. package/lib/components/eventBooking/assets/alert-circle.png +0 -0
  457. package/lib/components/eventBooking/assets/calendar-heart.svg +0 -5
  458. package/lib/components/eventBooking/assets/compass.svg +0 -13
  459. package/lib/components/eventBooking/assets/image.svg +0 -5
  460. package/lib/components/eventBooking/assets/phone.svg +0 -5
  461. package/lib/components/eventBooking/assets/shopping-cart.svg +0 -10
  462. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -4
  463. package/lib/components/eventBooking/components/ErrorTip/index.js +0 -30
  464. package/lib/components/eventBooking/components/ErrorTip/index.less +0 -51
  465. package/lib/components/eventBooking/components/OpenCard/index.d.ts +0 -4
  466. package/lib/components/eventBooking/components/OpenCard/index.js +0 -90
  467. package/lib/components/eventBooking/components/OpenCard/index.less +0 -52
  468. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -4
  469. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +0 -159
  470. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
  471. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -4
  472. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +0 -82
  473. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -4
  474. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +0 -92
  475. package/lib/components/eventBooking/components/Provider/Cart/Item/index.less +0 -87
  476. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -4
  477. package/lib/components/eventBooking/components/Provider/Cart/index.js +0 -59
  478. package/lib/components/eventBooking/components/Provider/Cart/index.less +0 -2
  479. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -4
  480. package/lib/components/eventBooking/components/Provider/Content/index.js +0 -91
  481. package/lib/components/eventBooking/components/Provider/Content/index.less +0 -31
  482. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -4
  483. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.js +0 -60
  484. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.less +0 -17
  485. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -4
  486. package/lib/components/eventBooking/components/Provider/Event/index.js +0 -101
  487. package/lib/components/eventBooking/components/Provider/Event/index.less +0 -20
  488. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -4
  489. package/lib/components/eventBooking/components/Provider/Footer/index.js +0 -87
  490. package/lib/components/eventBooking/components/Provider/Footer/index.less +0 -64
  491. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -4
  492. package/lib/components/eventBooking/components/Provider/Header/index.js +0 -80
  493. package/lib/components/eventBooking/components/Provider/Header/index.less +0 -2
  494. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -4
  495. package/lib/components/eventBooking/components/Provider/Information/index.js +0 -151
  496. package/lib/components/eventBooking/components/Provider/Information/index.less +0 -92
  497. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -4
  498. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.js +0 -67
  499. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.less +0 -27
  500. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -4
  501. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.js +0 -57
  502. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.less +0 -32
  503. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -3
  504. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.js +0 -62
  505. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -4
  506. package/lib/components/eventBooking/components/Provider/Resource/index.js +0 -90
  507. package/lib/components/eventBooking/components/Provider/Resource/index.less +0 -46
  508. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -3
  509. package/lib/components/eventBooking/components/Provider/SelectHolderModal.js +0 -97
  510. package/lib/components/eventBooking/components/Provider/SelectProduct/index.d.ts +0 -4
  511. package/lib/components/eventBooking/components/Provider/SelectProduct/index.js +0 -69
  512. package/lib/components/eventBooking/components/Provider/SelectProduct/index.less +0 -131
  513. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -4
  514. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +0 -55
  515. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +0 -25
  516. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
  517. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +0 -78
  518. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -32
  519. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -4
  520. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +0 -86
  521. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +0 -12
  522. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -13
  523. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +0 -121
  524. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +0 -35
  525. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -4
  526. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +0 -37
  527. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +0 -28
  528. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -5
  529. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +0 -58
  530. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -87
  531. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -4
  532. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +0 -55
  533. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +0 -25
  534. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
  535. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +0 -198
  536. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +0 -119
  537. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
  538. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +0 -198
  539. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
  540. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +0 -122
  541. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +0 -4
  542. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
  543. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.js +0 -70
  544. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.less +0 -2
  545. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
  546. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.js +0 -71
  547. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -3
  548. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.js +0 -75
  549. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -3
  550. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.js +0 -66
  551. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -3
  552. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.js +0 -70
  553. package/lib/components/eventBooking/components/bookingDetailModal/index.d.ts +0 -7
  554. package/lib/components/eventBooking/components/bookingDetailModal/index.js +0 -272
  555. package/lib/components/eventBooking/components/bookingDetailModal/index.less +0 -83
  556. package/lib/components/eventBooking/components/bookingServiceList/index.d.ts +0 -17
  557. package/lib/components/eventBooking/components/bookingServiceList/index.js +0 -79
  558. package/lib/components/eventBooking/components/bookingServiceList/index.less +0 -6
  559. package/lib/components/eventBooking/components/eventCard/index.d.ts +0 -14
  560. package/lib/components/eventBooking/components/eventCard/index.js +0 -124
  561. package/lib/components/eventBooking/components/eventCard/index.less +0 -81
  562. package/lib/components/eventBooking/components/productCard/index.d.ts +0 -16
  563. package/lib/components/eventBooking/components/productCard/index.js +0 -78
  564. package/lib/components/eventBooking/components/productCard/index.less +0 -60
  565. package/lib/components/eventBooking/components/progressBar/index.d.ts +0 -16
  566. package/lib/components/eventBooking/components/progressBar/index.js +0 -100
  567. package/lib/components/eventBooking/components/progressBar/index.less +0 -15
  568. package/lib/components/eventBooking/components/resourceDisplay/index.d.ts +0 -23
  569. package/lib/components/eventBooking/components/resourceDisplay/index.js +0 -117
  570. package/lib/components/eventBooking/components/resourceDisplay/index.less +0 -95
  571. package/lib/components/eventBooking/components/resourceUsability/index.d.ts +0 -12
  572. package/lib/components/eventBooking/components/resourceUsability/index.js +0 -76
  573. package/lib/components/eventBooking/components/resourceUsability/index.less +0 -40
  574. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -10
  575. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.js +0 -73
  576. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.less +0 -58
  577. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -12
  578. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.js +0 -135
  579. package/lib/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -13
  580. package/lib/components/eventBooking/components/scheduleCalendar/index.js +0 -125
  581. package/lib/components/eventBooking/components/scheduleCalendar/index.less +0 -222
  582. package/lib/components/eventBooking/components/selectHolder/index.d.ts +0 -22
  583. package/lib/components/eventBooking/components/selectHolder/index.js +0 -106
  584. package/lib/components/eventBooking/components/selectHolder/index.less +0 -70
  585. package/lib/components/eventBooking/components/timeResourceSelector/index.d.ts +0 -20
  586. package/lib/components/eventBooking/components/timeResourceSelector/index.js +0 -146
  587. package/lib/components/eventBooking/components/timeResourceSelector/index.less +0 -74
  588. package/lib/components/eventBooking/index.d.ts +0 -4
  589. package/lib/components/eventBooking/index.js +0 -79
  590. package/lib/components/eventBooking/index.less +0 -22
  591. package/lib/components/eventBooking/locales.d.ts +0 -216
  592. package/lib/components/eventBooking/locales.js +0 -239
  593. package/lib/components/eventBooking/mock.d.ts +0 -627
  594. package/lib/components/eventBooking/mock.js +0 -1352
  595. package/lib/components/eventBooking/status.d.ts +0 -21
  596. package/lib/components/eventBooking/status.js +0 -70
  597. package/lib/components/eventBooking/type.d.ts +0 -17
  598. package/lib/components/eventBooking/type.js +0 -17
  599. package/lib/components/eventBooking/utils.d.ts +0 -45
  600. package/lib/components/eventBooking/utils.js +0 -90
  601. package/lib/components/shoppingCart/Provider.d.ts +0 -3
  602. package/lib/components/shoppingCart/Provider.js +0 -110
  603. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -4
  604. package/lib/components/shoppingCart/components/Cart/Product.js +0 -73
  605. package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -4
  606. package/lib/components/shoppingCart/components/Cart/index.js +0 -85
  607. package/lib/components/shoppingCart/components/Cart/index.less +0 -68
  608. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -4
  609. package/lib/components/shoppingCart/components/Empty/index.js +0 -43
  610. package/lib/components/shoppingCart/components/Empty/index.less +0 -19
  611. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -4
  612. package/lib/components/shoppingCart/components/Render/index.js +0 -75
  613. package/lib/components/shoppingCart/components/Render/index.less +0 -2
  614. package/lib/components/shoppingCart/components/SelectHolderModal/index.d.ts +0 -4
  615. package/lib/components/shoppingCart/components/SelectHolderModal/index.js +0 -124
  616. package/lib/components/shoppingCart/components/SelectHolderModal/index.less +0 -32
  617. package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -3
  618. package/lib/components/shoppingCart/hooks/useAddService.js +0 -55
  619. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -3
  620. package/lib/components/shoppingCart/hooks/useClearCart.js +0 -66
  621. package/lib/components/shoppingCart/hooks/useContext.d.ts +0 -1
  622. package/lib/components/shoppingCart/hooks/useContext.js +0 -31
  623. package/lib/components/shoppingCart/index.d.ts +0 -4
  624. package/lib/components/shoppingCart/index.js +0 -60
  625. package/lib/components/shoppingCart/locales.d.ts +0 -33
  626. package/lib/components/shoppingCart/locales.js +0 -56
  627. package/lib/components/shoppingCart/mock.d.ts +0 -40
  628. package/lib/components/shoppingCart/mock.js +0 -76
  629. package/lib/components/shoppingCart/status.d.ts +0 -2
  630. package/lib/components/shoppingCart/status.js +0 -60
  631. package/lib/components/shoppingCart/type.d.ts +0 -40
  632. package/lib/components/shoppingCart/type.js +0 -17
  633. package/lib/components/shoppingCart/utils.d.ts +0 -63
  634. package/lib/components/shoppingCart/utils.js +0 -86
  635. package/lowcode/event-booking/meta.ts +0 -69
  636. package/lowcode/event-booking-availability-calendar/meta.ts +0 -53
  637. package/lowcode/event-booking-detail-modal/meta.ts +0 -39
  638. package/lowcode/event-booking-service-list/meta.ts +0 -77
  639. package/lowcode/event-card/meta.ts +0 -77
  640. package/lowcode/event-product-card/meta.ts +0 -79
  641. package/lowcode/event-progress-bar/meta.ts +0 -65
  642. package/lowcode/event-resource-display/meta.ts +0 -169
  643. package/lowcode/event-resource-usability/meta.ts +0 -67
  644. package/lowcode/event-schedule-calendar/meta.ts +0 -56
  645. package/lowcode/event-select-holder/meta.ts +0 -84
  646. package/lowcode/event-time-resource-selector/meta.ts +0 -69
  647. package/lowcode/shopping-cart/meta.ts +0 -98
@@ -18,36 +18,26 @@ 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(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
20
20
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
21
+ import React, { useCallback, useContext, useEffect, useMemo, useState, useImperativeHandle, forwardRef } from 'react';
21
22
  import Delete_wght300_24px from '@pisell/icon/es/Delete_wght300_24px';
22
- import '@pisell/materials';
23
- import { formatAmount, locales } from '@pisell/utils';
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';
27
- import CollapsibleList from "../../../components/collapsibleList";
28
- import { renderBundles } from "../../../components/collapsibleList/utils";
29
23
  import Drawer from "../../../components/drawer";
30
- import Duration from "../../../materiels/duration";
31
- import Holder from "../../../materiels/holder";
32
24
  import { Context } from "../../model";
33
- import BookingList from "./BookingList";
25
+ import { formatAmount, locales } from '@pisell/utils';
26
+ import Duration from "../../../materiels/duration";
27
+ import { Input, Button, Select, Row, Col, Form, Alert, InputNumber } from 'antd';
34
28
  import "./index.less";
29
+ import CollapsibleList from "../../../components/collapsibleList";
30
+ import { renderBundles } from "../../../components/collapsibleList/utils";
31
+ import { useUpdateEffect, useMemoizedFn } from 'ahooks';
35
32
  // import SelectTime from "../../../../../../../materials/src/components/select-time";
36
- import { Page, PisellAdjustPriceInputNumber } from '@pisell/materials';
37
- import dayjs from 'dayjs';
38
- import { getNoResource } from "../../../mock";
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";
33
+ import { getErrorList, getServiceTimes, deleteCacheParams, getProductTotalPrice } from "../../../utils";
44
34
  import Like from "../like";
45
- import { getMultiDayPrices } from "../../utils";
46
- import { useService } from "../serviceManager";
47
- import EditTabs from "./EditTabs";
35
+ import { getNoResource } from "../../../mock";
36
+ import { formatResources, getDurationProps, getFlexibleOption, getTimeObj } from "../addService/utils";
37
+ import { PisellAdjustPriceInputNumber, Page } from '@pisell/materials';
48
38
  var submitLock = false;
49
39
  var Info = function Info(_, ref) {
50
- var _state$bookingConfig2, _state$bookingConfig3, _state$bookingConfig4, _state$service$cacheI4, _state$service$cacheI5, _state$service$cacheI7, _state$service$cacheI8, _state$service$cacheI9, _state$service4, _state$service4$cache, _state$service6, _state$service6$cache, _state$service6$cache2, _state$service6$cache3, _state$service8, _state$service8$cache, _state$service8$cache2, _state$date, _state$date$value, _state$date$value$for, _state$date2, _window$BaseMaterials, _state$service$cacheI19, _state$service10, _state$service10$cach, _state$service10$cach2, _state$service$cacheI20, _state$service$cacheI21, _state$bookingConfig9, _state$bookingConfig10, _state$bookingConfig11, _state$bookingConfig12;
40
+ var _state$bookingConfig2, _state$bookingConfig3, _state$bookingConfig4, _state$service$cacheI4, _state$service$cacheI5, _state$service$cacheI7, _state$service$cacheI8, _state$service$cacheI9, _state$service3, _state$service3$cache, _state$service5, _state$service5$cache, _state$service5$cache2, _state$service5$cache3, _state$date, _state$date$value, _state$date$value$for, _window$BaseMaterials, _state$service$cacheI19, _state$service7, _state$service7$cache, _state$service7$cache2, _state$service$cacheI20, _state$service$cacheI21, _state$bookingConfig9, _state$bookingConfig10, _state$bookingConfig11, _state$bookingConfig12;
51
41
  var _Form$useForm = Form.useForm(),
52
42
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
53
43
  form = _Form$useForm2[0];
@@ -56,8 +46,6 @@ var Info = function Info(_, ref) {
56
46
  var useResource = Form.useWatch('resource', form);
57
47
  var useStartTime = Form.useWatch('start_time', form);
58
48
  var useDuration = Form.useWatch('duration', form);
59
- var useStartDate = Form.useWatch('start_date', form);
60
- var useEndDate = Form.useWatch('end_date', form);
61
49
  var _useState = useState(false),
62
50
  _useState2 = _slicedToArray(_useState, 2),
63
51
  resourceLoading = _useState2[0],
@@ -70,31 +58,12 @@ var Info = function Info(_, ref) {
70
58
  _useState4 = _slicedToArray(_useState3, 2),
71
59
  selectOpen = _useState4[0],
72
60
  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]);
91
61
 
92
62
  // 当前商品信息+ 表单信息
93
63
  var getCurrentCacheItem = function getCurrentCacheItem(_cacheItem) {
94
- var _state$service;
95
64
  // 获取当前表单数据
96
65
  var values = form.getFieldsValue();
97
- var _item = _cacheItem || (state === null || state === void 0 ? void 0 : (_state$service = state.service) === null || _state$service === void 0 ? void 0 : _state$service.cacheItem);
66
+ var _item = _cacheItem || state.service.cacheItem;
98
67
  return _objectSpread(_objectSpread({}, _item), {}, {
99
68
  _extend: _objectSpread(_objectSpread({}, _item === null || _item === void 0 ? void 0 : _item._extend), values)
100
69
  });
@@ -209,8 +178,7 @@ var Info = function Info(_, ref) {
209
178
  payload: {
210
179
  resources: formatResources({
211
180
  cacheItem: _cacheItem,
212
- resourcesOrigin: _list,
213
- isDay: isDayBookingMode
181
+ resourcesOrigin: _list
214
182
  })
215
183
  }
216
184
  });
@@ -258,13 +226,9 @@ var Info = function Info(_, ref) {
258
226
  }
259
227
  var _list = _toConsumableArray(state.service.value);
260
228
  var _id = (_state$service$cacheI = state.service.cacheItem) === null || _state$service$cacheI === void 0 ? void 0 : _state$service$cacheI._id;
261
- if (isGroupBooking(_id)) {
262
- _list = filterItemByGroupId(_id, _list);
263
- } else {
264
- _list = _list.filter(function (d) {
265
- return d._id !== _id;
266
- });
267
- }
229
+ _list = _list.filter(function (d) {
230
+ return d._id !== _id;
231
+ });
268
232
  dispatch({
269
233
  type: 'setService',
270
234
  payload: {
@@ -325,8 +289,8 @@ var Info = function Info(_, ref) {
325
289
  return d.form_record_id == useResource;
326
290
  });
327
291
  if (item) {
328
- var _item$_extend$usableT, _item$_extend$usableT2;
329
- var isMaxLimitRange = (_item$_extend$usableT = item._extend.usableTime) === null || _item$_extend$usableT === void 0 ? void 0 : (_item$_extend$usableT2 = _item$_extend$usableT._extend) === null || _item$_extend$usableT2 === void 0 ? void 0 : _item$_extend$usableT2.isMaxLimitRange;
292
+ 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;
330
294
  // unknown 为未知是否可用, 需要掉后端接口确定
331
295
  if (isMaxLimitRange === 'unknown') {
332
296
  // 调接口
@@ -373,58 +337,76 @@ var Info = function Info(_, ref) {
373
337
  * @Author: zhiwei.Wang
374
338
  * @Date: 2024-01-09 14:04
375
339
  */
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;
340
+ var onFinish = useMemoizedFn(function (values) {
341
+ var _currentResource$_ext;
342
+ // 防止多次提交, 增加锁
343
+ if (submitLock) {
344
+ return;
345
+ }
346
+ submitLock = true;
389
347
 
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 (_x4) {
413
- return _ref2.apply(this, arguments);
414
- };
415
- }());
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 ? 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
+ });
416
405
  var setEditData = useMemoizedFn(function (_cacheItem, open) {
417
- var _values;
418
- setCurrentTab('batch_edit');
419
406
  var cacheItem = _cacheItem || state.service.cacheItem;
420
407
  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
- });
426
408
  form.setFieldsValue(values);
427
- if (!isEventBookingMode) {
409
+ if (state.renderType !== 'eventBooking') {
428
410
  // 获取资源列表
429
411
  getResources(cacheItem, open);
430
412
  }
@@ -455,7 +437,7 @@ var Info = function Info(_, ref) {
455
437
  * @Date: 2024-01-09 14:06
456
438
  */
457
439
  var errorList = useMemo(function () {
458
- return getErrorList(currentResource, getCurrentCacheItem(), isDayBookingMode);
440
+ return getErrorList(currentResource, getCurrentCacheItem());
459
441
  }, [currentResource, useDuration, useStartTime]);
460
442
 
461
443
  /**
@@ -469,29 +451,17 @@ var Info = function Info(_, ref) {
469
451
  var _state$service$cacheI6;
470
452
  // autoClose 不执行下面逻辑
471
453
  if (state.service.cacheItem && !((_state$service$cacheI6 = state.service.cacheItem) !== null && _state$service$cacheI6 !== void 0 && _state$service$cacheI6.autoClose)) {
472
- if (useStartTime && useDuration && !isEventBookingMode) {
454
+ if (useStartTime && useDuration && state.renderType !== 'eventBooking') {
473
455
  getResources();
474
456
  }
475
457
  }
476
458
  }, [useStartTime, useDuration, state.renderType, state.service.resourcesOrigin, (_state$service$cacheI7 = state.service.cacheItem) === null || _state$service$cacheI7 === void 0 ? void 0 : _state$service$cacheI7.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]);
489
459
  useEffect(function () {
490
460
  // 预约创建页面并且打开了编辑弹窗
491
- if (isTerminalBooking && state.service.editModal) {
461
+ if (state.isBookingCreatePage && state.service.editModal) {
492
462
  setEditData(null, true);
493
463
  }
494
- }, [state.service.editModal, isTerminalBooking]);
464
+ }, [state.service.editModal, state.isBookingCreatePage]);
495
465
 
496
466
  /**
497
467
  * @title: 资源 时间 发生变化时, 重新计算错误信息
@@ -502,7 +472,7 @@ var Info = function Info(_, ref) {
502
472
  */
503
473
  useEffect(function () {
504
474
  getErrorMsg();
505
- }, [useResource, useStartTime, useDuration, useStartDate, useEndDate]);
475
+ }, [useResource, useStartTime, useDuration]);
506
476
 
507
477
  /**
508
478
  * @title: 价格发生变化,重新计算折扣
@@ -519,33 +489,22 @@ var Info = function Info(_, ref) {
519
489
  // handleLikeResource("common");
520
490
  // }, [useResource]);
521
491
  var isDiscount = useMemo(function () {
522
- var _state$service2, _state$service3, _state$service3$cache;
523
- if (!((_state$service2 = state.service) !== null && _state$service2 !== void 0 && _state$service2.cacheItem)) {
492
+ var _state$service, _state$service2, _state$service2$cache;
493
+ if (!((_state$service = state.service) !== null && _state$service !== void 0 && _state$service.cacheItem)) {
524
494
  return false;
525
495
  }
526
- return useTotal != ((_state$service3 = state.service) === null || _state$service3 === void 0 ? void 0 : (_state$service3$cache = _state$service3.cacheItem) === null || _state$service3$cache === void 0 ? void 0 : _state$service3$cache._extend.origin_total);
527
- }, [useTotal, (_state$service4 = state.service) === null || _state$service4 === void 0 ? void 0 : (_state$service4$cache = _state$service4.cacheItem) === null || _state$service4$cache === void 0 ? void 0 : _state$service4$cache._extend.origin_total]);
496
+ return useTotal != ((_state$service2 = state.service) === null || _state$service2 === void 0 ? void 0 : (_state$service2$cache = _state$service2.cacheItem) === null || _state$service2$cache === void 0 ? void 0 : _state$service2$cache._extend.origin_total);
497
+ }, [useTotal, (_state$service3 = state.service) === null || _state$service3 === void 0 ? void 0 : (_state$service3$cache = _state$service3.cacheItem) === null || _state$service3$cache === void 0 ? void 0 : _state$service3$cache._extend.origin_total]);
528
498
  useEffect(function () {
529
499
  if (useResource === 0) {
530
500
  handleLikeResource('common');
531
501
  }
532
502
  }, [useResource]);
533
503
  var bundles = useMemo(function () {
534
- var _state$service5, _state$service5$cache, _state$service5$cache2, _state$service5$cache3;
535
- return ((_state$service5 = state.service) === null || _state$service5 === void 0 ? void 0 : (_state$service5$cache = _state$service5.cacheItem) === null || _state$service5$cache === void 0 ? void 0 : (_state$service5$cache2 = _state$service5$cache._extend) === null || _state$service5$cache2 === void 0 ? void 0 : (_state$service5$cache3 = _state$service5$cache2.other) === null || _state$service5$cache3 === void 0 ? void 0 : _state$service5$cache3.bundle) || [];
536
- }, [(_state$service6 = state.service) === null || _state$service6 === void 0 ? void 0 : (_state$service6$cache = _state$service6.cacheItem) === null || _state$service6$cache === void 0 ? void 0 : (_state$service6$cache2 = _state$service6$cache._extend) === null || _state$service6$cache2 === void 0 ? void 0 : (_state$service6$cache3 = _state$service6$cache2.other) === null || _state$service6$cache3 === void 0 ? void 0 : _state$service6$cache3.bundle]);
537
- var multiDayPrices = useMemo(function () {
538
- var _state$service7, _state$service7$cache, _state$service7$cache2;
539
- return Object.entries(getMultiDayPrices(((_state$service7 = state.service) === null || _state$service7 === void 0 ? void 0 : (_state$service7$cache = _state$service7.cacheItem) === null || _state$service7$cache === void 0 ? void 0 : (_state$service7$cache2 = _state$service7$cache._extend) === null || _state$service7$cache2 === void 0 ? void 0 : _state$service7$cache2.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 ? void 0 : (_state$service8$cache = _state$service8.cacheItem) === null || _state$service8$cache === void 0 ? void 0 : (_state$service8$cache2 = _state$service8$cache._extend) === null || _state$service8$cache2 === void 0 ? void 0 : _state$service8$cache2.multi_day]);
504
+ var _state$service4, _state$service4$cache, _state$service4$cache2, _state$service4$cache3;
505
+ return ((_state$service4 = state.service) === null || _state$service4 === void 0 ? void 0 : (_state$service4$cache = _state$service4.cacheItem) === null || _state$service4$cache === void 0 ? void 0 : (_state$service4$cache2 = _state$service4$cache._extend) === null || _state$service4$cache2 === void 0 ? void 0 : (_state$service4$cache3 = _state$service4$cache2.other) === null || _state$service4$cache3 === void 0 ? void 0 : _state$service4$cache3.bundle) || [];
506
+ }, [(_state$service5 = state.service) === null || _state$service5 === void 0 ? void 0 : (_state$service5$cache = _state$service5.cacheItem) === null || _state$service5$cache === void 0 ? void 0 : (_state$service5$cache2 = _state$service5$cache._extend) === null || _state$service5$cache2 === void 0 ? void 0 : (_state$service5$cache3 = _state$service5$cache2.other) === null || _state$service5$cache3 === void 0 ? void 0 : _state$service5$cache3.bundle]);
507
+
549
508
  /**
550
509
  * @title: 获取资源列表数据
551
510
  * @description:
@@ -554,51 +513,25 @@ var Info = function Info(_, ref) {
554
513
  * @Date: 2024-01-09 13:38
555
514
  */
556
515
  var getResourcesData = /*#__PURE__*/function () {
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) {
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) {
561
520
  case 0:
562
521
  setResourceLoading(true);
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({
522
+ _context2.prev = 1;
523
+ _context2.next = 4;
524
+ return state.apis.getResources({
593
525
  skip: 1,
594
526
  num: 1000,
527
+ with_date_times: state.date.value.format('YYYY-MM-DD'),
595
528
  codes: ['resources', 'therapist', 'table'],
596
529
  _config: {
597
530
  abort: true
598
531
  }
599
- }, params));
600
- case 16:
601
- data = _context3.sent;
532
+ });
533
+ case 4:
534
+ data = _context2.sent;
602
535
  // 合并无资源
603
536
  _list = [getNoResource()].concat((data === null || data === void 0 ? void 0 : data.list) || []);
604
537
  dispatch({
@@ -607,32 +540,29 @@ var Info = function Info(_, ref) {
607
540
  resourcesOrigin: _list
608
541
  }
609
542
  });
610
- _context3.next = 24;
543
+ _context2.next = 12;
611
544
  break;
612
- case 21:
613
- _context3.prev = 21;
614
- _context3.t0 = _context3["catch"](1);
615
- console.log(_context3.t0, 'err');
616
- case 24:
545
+ case 9:
546
+ _context2.prev = 9;
547
+ _context2.t0 = _context2["catch"](1);
548
+ console.log(_context2.t0, 'err');
549
+ case 12:
617
550
  setResourceLoading(false);
618
- case 25:
551
+ case 13:
619
552
  case "end":
620
- return _context3.stop();
553
+ return _context2.stop();
621
554
  }
622
- }, _callee3, null, [[1, 21]]);
555
+ }, _callee2, null, [[1, 9]]);
623
556
  }));
624
557
  return function getResourcesData() {
625
- return _ref5.apply(this, arguments);
558
+ return _ref3.apply(this, arguments);
626
559
  };
627
560
  }();
628
561
  useEffect(function () {
629
- if (isEventBookingMode) {
630
- return;
631
- }
632
562
  setTimeout(function () {
633
563
  getResourcesData();
634
564
  }, 20);
635
- }, [(_state$date = state.date) === null || _state$date === void 0 ? void 0 : (_state$date$value = _state$date.value) === null || _state$date$value === void 0 ? void 0 : (_state$date$value$for = _state$date$value.format) === null || _state$date$value$for === void 0 ? void 0 : _state$date$value$for.call(_state$date$value, 'YYYY-MM-DD'), (_state$date2 = state.date) === null || _state$date2 === void 0 ? void 0 : _state$date2.end_date, useStartDate, useEndDate, isEventBookingMode]);
565
+ }, [(_state$date = state.date) === null || _state$date === void 0 ? void 0 : (_state$date$value = _state$date.value) === null || _state$date$value === void 0 ? void 0 : (_state$date$value$for = _state$date$value.format) === null || _state$date$value$for === void 0 ? void 0 : _state$date$value$for.call(_state$date$value, 'YYYY-MM-DD')]);
636
566
 
637
567
  /**
638
568
  * @title: 编辑商品
@@ -643,24 +573,11 @@ var Info = function Info(_, ref) {
643
573
  * @Date: 2024-08-28 17:08
644
574
  */
645
575
  var handleEdit = useMemoizedFn(function (e) {
646
- var _item$_extend3, _state$client, _state$client$value;
647
576
  // 当前商品
648
577
  var item = state.service.cacheItem;
649
578
 
650
579
  // 表单数据
651
580
  var values = form.getFieldsValue();
652
- var dayValue = {};
653
- if (isDayBookingMode) {
654
- var _item$_extend, _item$_extend$other, _item$_extend$other$o, _item$_extend2, _item$_extend2$other;
655
- // 格式化单规格
656
- var option = (_item$_extend = item._extend) === null || _item$_extend === void 0 ? void 0 : (_item$_extend$other = _item$_extend.other) === null || _item$_extend$other === void 0 ? void 0 : (_item$_extend$other$o = _item$_extend$other.option) === null || _item$_extend$other$o === void 0 ? void 0 : _item$_extend$other$o.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 ? void 0 : (_item$_extend2$other = _item$_extend2.other) === null || _item$_extend2$other === void 0 ? void 0 : _item$_extend2$other.product_variant_id) || 0;
662
- dayValue.product_option = option || [];
663
- }
664
581
 
665
582
  // 打开商品详情弹窗
666
583
  state.action({
@@ -669,16 +586,14 @@ var Info = function Info(_, ref) {
669
586
  id: item.id,
670
587
  date: state.date.value.format('YYYY-MM-DD'),
671
588
  showConfig: {
672
- option: isDayBookingMode ? true : false,
589
+ option: false,
673
590
  session: false,
674
- variant: isDayBookingMode ? true : false,
591
+ variant: false,
675
592
  package: true
676
593
  },
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 ? void 0 : (_state$client$value = _state$client.value) === null || _state$client$value === void 0 ? void 0 : _state$client$value.id) || 1 : undefined
594
+ value: item._extend.other
679
595
  },
680
596
  callback: function callback(e) {
681
- var _cacheItem$_extend, _cacheItem$_extend$ot;
682
597
  // 重新生成商品
683
598
  var cacheItem = _objectSpread(_objectSpread({}, item), {}, {
684
599
  product_id: item.id,
@@ -694,12 +609,6 @@ var Info = function Info(_, ref) {
694
609
  // 获取商品总价
695
610
  var _total = getProductTotalPrice(cacheItem);
696
611
 
697
- // 如果有多规格,则更新商品的单价
698
- if (cacheItem !== null && cacheItem !== void 0 && (_cacheItem$_extend = cacheItem._extend) !== null && _cacheItem$_extend !== void 0 && (_cacheItem$_extend$ot = _cacheItem$_extend.other) !== null && _cacheItem$_extend$ot !== void 0 && _cacheItem$_extend$ot.product_variant_id) {
699
- var _cacheItem$_extend2, _cacheItem$_extend2$o;
700
- cacheItem._extend.price = Number((_cacheItem$_extend2 = cacheItem._extend) === null || _cacheItem$_extend2 === void 0 ? void 0 : (_cacheItem$_extend2$o = _cacheItem$_extend2.other) === null || _cacheItem$_extend2$o === void 0 ? void 0 : _cacheItem$_extend2$o.price);
701
- }
702
-
703
612
  // 用于折扣 可修改
704
613
  cacheItem._extend.total = _total;
705
614
 
@@ -713,12 +622,11 @@ var Info = function Info(_, ref) {
713
622
  cacheItem: cacheItem
714
623
  }
715
624
  });
716
- setTimeout(function () {
717
- updateMultiDay({
718
- start_date: values.start_date,
719
- end_date: values.end_date
720
- });
721
- }, 100);
625
+
626
+ // 更新表单内的商品价格
627
+ form.setFieldsValue({
628
+ total: _total
629
+ });
722
630
  }
723
631
  });
724
632
  });
@@ -751,165 +659,8 @@ var Info = function Info(_, ref) {
751
659
  };
752
660
  });
753
661
  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(_x5) {
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, _getCurrentCacheItem$;
906
- return ((_getCurrentCacheItem = getCurrentCacheItem()) === null || _getCurrentCacheItem === void 0 ? 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]);
911
662
  return useMemo(function () {
912
- var _state$service$cacheI10, _state$service9, _state$service9$cache, _state$service9$cache2, _state$service$cacheI11, _state$service$cacheI12, _state$service$cacheI13, _state$service$cacheI14, _state$service$cacheI15, _state$service$cacheI16, _state$service$cacheI17, _state$service$cacheI18, _state$bookingConfig5, _state$bookingConfig6, _state$bookingConfig7, _state$bookingConfig8;
663
+ var _state$service$cacheI10, _state$service6, _state$service6$cache, _state$service6$cache2, _state$service$cacheI11, _state$service$cacheI12, _state$service$cacheI13, _state$service$cacheI14, _state$service$cacheI15, _state$service$cacheI16, _state$service$cacheI17, _state$service$cacheI18, _state$bookingConfig5, _state$bookingConfig6, _state$bookingConfig7, _state$bookingConfig8;
913
664
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Drawer
914
665
  //通过zIndex的方式控制 添加商品 和 编辑服务弹窗的上下层级
915
666
  , {
@@ -917,7 +668,7 @@ var Info = function Info(_, ref) {
917
668
  zIndex: state.service.changeService ? 999 : 1000,
918
669
  forceRender: true,
919
670
  open: state.service.editModal && !((_state$service$cacheI10 = state.service.cacheItem) !== null && _state$service$cacheI10 !== void 0 && _state$service$cacheI10.autoClose),
920
- title: isDayBookingMode ? locales.getText('pisell2.text.edit-select-service') : locales.getText('pisell2.text.edit-service'),
671
+ title: locales.getText('pisell2.text.edit-service'),
921
672
  onClose: function onClose() {
922
673
  dispatch({
923
674
  type: 'setService',
@@ -930,29 +681,10 @@ var Info = function Info(_, ref) {
930
681
  }
931
682
  }, /*#__PURE__*/React.createElement("div", {
932
683
  className: "pisell-lowcode__booking-service-body-edit"
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, {
684
+ }, /*#__PURE__*/React.createElement(Page, null, /*#__PURE__*/React.createElement(Form, {
952
685
  layout: "vertical",
953
686
  form: form,
954
- onFinish: onFinish,
955
- onValuesChange: onValuesChange
687
+ onFinish: onFinish
956
688
  }, /*#__PURE__*/React.createElement(Row, {
957
689
  style: {
958
690
  width: '100%'
@@ -968,9 +700,9 @@ var Info = function Info(_, ref) {
968
700
  className: "current-service-info-name-wrap"
969
701
  }, /*#__PURE__*/React.createElement("div", {
970
702
  className: "current-service-info-name"
971
- }, ((_state$service9 = state.service) === null || _state$service9 === void 0 ? void 0 : (_state$service9$cache = _state$service9.cacheItem) === null || _state$service9$cache === void 0 ? void 0 : (_state$service9$cache2 = _state$service9$cache._extend) === null || _state$service9$cache2 === void 0 ? void 0 : _state$service9$cache2.product_name) || '-'), /*#__PURE__*/React.createElement(Button, {
703
+ }, ((_state$service6 = state.service) === null || _state$service6 === void 0 ? void 0 : (_state$service6$cache = _state$service6.cacheItem) === null || _state$service6$cache === void 0 ? void 0 : (_state$service6$cache2 = _state$service6$cache._extend) === null || _state$service6$cache2 === void 0 ? void 0 : _state$service6$cache2.product_name) || '-'), /*#__PURE__*/React.createElement(Button, {
972
704
  onClick: handleEdit
973
- }, locales.getText('pisell2.text.edit')), !isTerminalBooking && /*#__PURE__*/React.createElement(Button, {
705
+ }, locales.getText('pisell2.text.edit')), !state.isBookingCreatePage && /*#__PURE__*/React.createElement(Button, {
974
706
  onClick: handleChange
975
707
  }, locales.getText('pisell2.text.change'))), /*#__PURE__*/React.createElement(CollapsibleList, {
976
708
  style: {
@@ -1006,15 +738,15 @@ var Info = function Info(_, ref) {
1006
738
  name: "discount_reason"
1007
739
  }, /*#__PURE__*/React.createElement(Input.TextArea, {
1008
740
  size: "large"
1009
- }))) : null, showResource && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Col, {
741
+ }))) : null, state.renderType !== 'eventBooking' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Col, {
1010
742
  span: 12
1011
743
  }, /*#__PURE__*/React.createElement(Form.Item, {
1012
- label: locales.getText(isDayBookingMode ? 'pisell2.text.start_date' : 'pisell2.text.start_time'),
1013
- name: isDayBookingMode ? 'start_date' : 'start_time',
744
+ label: locales.getText('pisell2.text.start_time'),
745
+ name: "start_time",
1014
746
  rules: [{
1015
747
  required: true
1016
748
  }]
1017
- }, isDayBookingMode ? DateCom('start') : SelectTime ? /*#__PURE__*/React.createElement(SelectTime, {
749
+ }, SelectTime ? /*#__PURE__*/React.createElement(SelectTime, {
1018
750
  slice: (_state$bookingConfig5 = state.bookingConfig) === null || _state$bookingConfig5 === void 0 ? void 0 : (_state$bookingConfig6 = _state$bookingConfig5.config) === null || _state$bookingConfig6 === void 0 ? void 0 : (_state$bookingConfig7 = _state$bookingConfig6.basic) === null || _state$bookingConfig7 === void 0 ? void 0 : (_state$bookingConfig8 = _state$bookingConfig7.service_time) === null || _state$bookingConfig8 === void 0 ? void 0 : _state$bookingConfig8.value,
1019
751
  timePickerProps: {
1020
752
  style: {
@@ -1026,15 +758,7 @@ var Info = function Info(_, ref) {
1026
758
  zoom: 0.8
1027
759
  }
1028
760
  }
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, {
761
+ }) : null)), /*#__PURE__*/React.createElement(Col, {
1038
762
  span: 12
1039
763
  }, /*#__PURE__*/React.createElement(Form.Item, {
1040
764
  label: locales.getText('pisell2.text.duration'),
@@ -1044,17 +768,7 @@ var Info = function Info(_, ref) {
1044
768
  }]
1045
769
  }, /*#__PURE__*/React.createElement(Duration, _extends({}, durationProps, {
1046
770
  timeObj: timeObj
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, {
771
+ })))), /*#__PURE__*/React.createElement(Col, {
1058
772
  span: 24
1059
773
  }, /*#__PURE__*/React.createElement(Form.Item, {
1060
774
  required: true,
@@ -1094,29 +808,7 @@ var Info = function Info(_, ref) {
1094
808
  }, /*#__PURE__*/React.createElement(InputNumber, null)), /*#__PURE__*/React.createElement(Form.Item, {
1095
809
  hidden: true,
1096
810
  name: "like_status"
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) {
811
+ }, /*#__PURE__*/React.createElement(Input, null)))))), state.renderType !== 'eventBooking' && errorList.map(function (d, i) {
1120
812
  return /*#__PURE__*/React.createElement(Alert, {
1121
813
  key: d.type,
1122
814
  message: d.label,
@@ -1126,7 +818,7 @@ var Info = function Info(_, ref) {
1126
818
  marginBottom: 12
1127
819
  }
1128
820
  });
1129
- }))), /*#__PURE__*/React.createElement("div", {
821
+ }), /*#__PURE__*/React.createElement("div", {
1130
822
  className: "pisell-lowcode__booking-service-body-edit-footer"
1131
823
  }, /*#__PURE__*/React.createElement("div", {
1132
824
  className: "pisell-lowcode__booking-service-delete-wrap",
@@ -1141,6 +833,6 @@ var Info = function Info(_, ref) {
1141
833
  form.submit();
1142
834
  }
1143
835
  }, locales.getText('pisell2.text.apply'))))));
1144
- }, [state.service.changeService, state.service.editModal, (_state$service$cacheI19 = state.service.cacheItem) === null || _state$service$cacheI19 === void 0 ? void 0 : _state$service$cacheI19.autoClose, locales, (_state$service10 = state.service) === null || _state$service10 === void 0 ? void 0 : (_state$service10$cach = _state$service10.cacheItem) === null || _state$service10$cach === void 0 ? void 0 : (_state$service10$cach2 = _state$service10$cach._extend) === null || _state$service10$cach2 === void 0 ? void 0 : _state$service10$cach2.product_name, bundles, state.amountSymbol, state.channelDisabledEdit, (_state$service$cacheI20 = state.service.cacheItem) === null || _state$service$cacheI20 === void 0 ? void 0 : (_state$service$cacheI21 = _state$service$cacheI20._extend) === null || _state$service$cacheI21 === void 0 ? void 0 : _state$service$cacheI21.origin_total, isDiscount, isReason, state.renderType, (_state$bookingConfig9 = state.bookingConfig) === null || _state$bookingConfig9 === void 0 ? void 0 : (_state$bookingConfig10 = _state$bookingConfig9.config) === null || _state$bookingConfig10 === void 0 ? void 0 : (_state$bookingConfig11 = _state$bookingConfig10.basic) === null || _state$bookingConfig11 === void 0 ? void 0 : (_state$bookingConfig12 = _state$bookingConfig11.service_time) === null || _state$bookingConfig12 === void 0 ? void 0 : _state$bookingConfig12.value, SelectTime, durationProps, timeObj, useResource, useLikeStatus, resourceLoading, selectOpen, state.service.resources, errorList, useTotal, useStartDate, useEndDate, showResource, holderLists, multiDayPrices, currentTab, items, isEventBookingMode]);
836
+ }, [state.service.changeService, state.service.editModal, (_state$service$cacheI19 = state.service.cacheItem) === null || _state$service$cacheI19 === void 0 ? void 0 : _state$service$cacheI19.autoClose, locales, (_state$service7 = state.service) === null || _state$service7 === void 0 ? void 0 : (_state$service7$cache = _state$service7.cacheItem) === null || _state$service7$cache === void 0 ? void 0 : (_state$service7$cache2 = _state$service7$cache._extend) === null || _state$service7$cache2 === void 0 ? void 0 : _state$service7$cache2.product_name, bundles, state.amountSymbol, state.channelDisabledEdit, (_state$service$cacheI20 = state.service.cacheItem) === null || _state$service$cacheI20 === void 0 ? void 0 : (_state$service$cacheI21 = _state$service$cacheI20._extend) === null || _state$service$cacheI21 === void 0 ? void 0 : _state$service$cacheI21.origin_total, isDiscount, isReason, state.renderType, (_state$bookingConfig9 = state.bookingConfig) === null || _state$bookingConfig9 === void 0 ? void 0 : (_state$bookingConfig10 = _state$bookingConfig9.config) === null || _state$bookingConfig10 === void 0 ? void 0 : (_state$bookingConfig11 = _state$bookingConfig10.basic) === null || _state$bookingConfig11 === void 0 ? void 0 : (_state$bookingConfig12 = _state$bookingConfig11.service_time) === null || _state$bookingConfig12 === void 0 ? void 0 : _state$bookingConfig12.value, SelectTime, durationProps, timeObj, useResource, useLikeStatus, resourceLoading, selectOpen, state.service.resources, errorList, useTotal]);
1145
837
  };
1146
838
  export default /*#__PURE__*/forwardRef(Info);