@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
@@ -1,11 +0,0 @@
1
- import { request } from "../../../utils";
2
-
3
- // 获取资源列表
4
- export var getResourceListApi = function getResourceListApi() {
5
- return request.getRequest().get('/api/resource/list', {});
6
- };
7
-
8
- // 加购物车前置接口
9
- export var checkBeforeAddToCartApi = function checkBeforeAddToCartApi(data) {
10
- return request.getRequest().post('/h5/eventbookingv2/order/check-config', data);
11
- };
@@ -1,19 +0,0 @@
1
- /**
2
- * available_capacity(容量)、deadline_day(截止日期)、future_day(预定天数)
3
- */
4
- export declare type TCartItemUnavailableType = 'available_capacity' | 'deadline_day' | 'future_day';
5
- /**
6
- * 商品不可用原因
7
- */
8
- export interface IUnavailableResult {
9
- event_unique_identifier: number;
10
- relation_id: number;
11
- product_id: number;
12
- details?: Array<{
13
- type: TCartItemUnavailableType;
14
- }>;
15
- }
16
- /**
17
- * 更新失效的购物车商品
18
- */
19
- export declare type TUpdateDisabledCartItem = (list: Array<IUnavailableResult>) => void;
@@ -1 +0,0 @@
1
- export {};
@@ -1,33 +0,0 @@
1
- import React from 'react';
2
- interface CheckoutData {
3
- }
4
- interface PayProps {
5
- order_id: string;
6
- amount: number;
7
- sale_channel?: string;
8
- }
9
- interface CheckoutContextType {
10
- onCheckBeforeBooking: (data: any) => Promise<{
11
- result: boolean;
12
- num: number;
13
- }>;
14
- onCheckout: (data: any) => Promise<any>;
15
- onPay: (payProps: PayProps) => void;
16
- createBooking: any;
17
- checkBeforeBooking: any;
18
- }
19
- interface CheckoutProviderProps {
20
- children: React.ReactNode;
21
- }
22
- export declare const CheckoutContext: React.Context<CheckoutContextType | undefined>;
23
- export declare const CheckoutProvider: React.FC<CheckoutProviderProps>;
24
- /**
25
- * 使用步骤管理的Hook
26
- * @throws {Error} 如果在StepProvider外部使用会抛出错误
27
- * @returns {StepContextType} 步骤管理上下文
28
- */
29
- export declare const useCheckout: () => CheckoutContextType;
30
- declare const _default: {
31
- defaultState: CheckoutData;
32
- };
33
- export default _default;
@@ -1,149 +0,0 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
3
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
5
- import React, { createContext, useRef } from 'react';
6
- import { useSales } from "../../../businessModel/SalesModel";
7
- import useEngineContext from "../../../hooks/useEngineContext";
8
- import { useRequest } from 'ahooks';
9
- import { checkBeforeBookingApi, createBookingApi } from "./serve";
10
- import { useCart } from "../Cart";
11
- // 默认步骤状态
12
- var defaultState = {};
13
-
14
- // 创建步骤上下文
15
- export var CheckoutContext = /*#__PURE__*/createContext(undefined);
16
- export var CheckoutProvider = function CheckoutProvider(_ref) {
17
- var children = _ref.children;
18
- var context = useEngineContext();
19
- var utils = context.appHelper.utils || {};
20
- var _useSales = useSales(),
21
- data = _useSales.data,
22
- setData = _useSales.setData;
23
- var _useCart = useCart(),
24
- updateDisabledCartItem = _useCart.updateDisabledCartItem;
25
- var checkoutCallback = useRef(null);
26
- var checkRef = useRef(null);
27
- var checkBeforeBooking = useRequest(checkBeforeBookingApi, {
28
- manual: true,
29
- onSuccess: function onSuccess(res) {
30
- var _res$data;
31
- if ((_res$data = res.data) !== null && _res$data !== void 0 && _res$data.length) {
32
- var _res$data2;
33
- // 同步更新当前在购物车中不可用的商品数据
34
- updateDisabledCartItem(res.data);
35
- checkRef.current({
36
- result: false,
37
- num: (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.length
38
- });
39
- } else {
40
- checkRef.current({
41
- result: true
42
- });
43
- }
44
- }
45
- });
46
- var createBooking = useRequest(createBookingApi, {
47
- manual: true,
48
- onSuccess: function onSuccess(res) {
49
- onPay(res.data);
50
- checkoutCallback.current({
51
- success: true
52
- });
53
- },
54
- onError: function onError(err) {
55
- checkoutCallback.current({
56
- success: false,
57
- err: err
58
- });
59
- }
60
- });
61
-
62
- /**
63
- * @title: 下单前校验
64
- * @param {any} data
65
- * @return {*}
66
- * @Author: xiangfeng.xue
67
- */
68
- var onCheckBeforeBooking = function onCheckBeforeBooking(data) {
69
- return new Promise(function (resolve) {
70
- checkRef.current = function (res) {
71
- resolve(res);
72
- checkRef.current = null;
73
- };
74
- checkBeforeBooking.runAsync(data);
75
- });
76
- };
77
-
78
- /**
79
- * @title: 下单
80
- * @description:
81
- * @return {*}
82
- * @Author: zhiwei.Wang
83
- */
84
- var onCheckout = /*#__PURE__*/function () {
85
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
86
- return _regeneratorRuntime().wrap(function _callee$(_context) {
87
- while (1) switch (_context.prev = _context.next) {
88
- case 0:
89
- return _context.abrupt("return", new Promise(function (resolve) {
90
- checkoutCallback.current = function (e) {
91
- resolve(e);
92
- checkoutCallback.current = null;
93
- };
94
- createBooking.runAsync(data);
95
- }));
96
- case 1:
97
- case "end":
98
- return _context.stop();
99
- }
100
- }, _callee);
101
- }));
102
- return function onCheckout(_x) {
103
- return _ref2.apply(this, arguments);
104
- };
105
- }();
106
-
107
- /**
108
- * @title: 支付
109
- * @description:
110
- * @param {PayProps} payProps
111
- * @return {*}
112
- * @Author: zhiwei.Wang
113
- */
114
- var onPay = function onPay(payProps) {
115
- utils.action({
116
- type: 'pisell1.payment',
117
- data: payProps,
118
- callback: function callback(e) {
119
- checkoutCallback.current && checkoutCallback.current(e);
120
- }
121
- });
122
- };
123
- var contextValue = {
124
- onCheckBeforeBooking: onCheckBeforeBooking,
125
- onCheckout: onCheckout,
126
- onPay: onPay,
127
- createBooking: createBooking,
128
- checkBeforeBooking: checkBeforeBooking
129
- };
130
- return /*#__PURE__*/React.createElement(CheckoutContext.Provider, {
131
- value: contextValue
132
- }, children);
133
- };
134
-
135
- /**
136
- * 使用步骤管理的Hook
137
- * @throws {Error} 如果在StepProvider外部使用会抛出错误
138
- * @returns {StepContextType} 步骤管理上下文
139
- */
140
- export var useCheckout = function useCheckout() {
141
- var context = React.useContext(CheckoutContext);
142
- if (!context) {
143
- throw new Error('useCheckout must be used within a CheckoutProvider');
144
- }
145
- return context;
146
- };
147
- export default {
148
- defaultState: defaultState
149
- };
@@ -1,2 +0,0 @@
1
- export declare const checkBeforeBookingApi: (data: any) => Promise<any>;
2
- export declare const createBookingApi: (data: any) => Promise<any>;
@@ -1,11 +0,0 @@
1
- import { request } from "../../../utils";
2
-
3
- // 下单前置校验接口
4
- export var checkBeforeBookingApi = function checkBeforeBookingApi(data) {
5
- return request.getRequest().post('/h5/eventbookingv2/order/check-config', data);
6
- };
7
-
8
- // 创建
9
- export var createBookingApi = function createBookingApi(data) {
10
- return request.getRequest().post('/h5/eventbookingv2/order', data);
11
- };
@@ -1,27 +0,0 @@
1
- /**
2
- * @title: 套餐单规格信息
3
- * @description:
4
- * @param {any} option
5
- * @return {*}
6
- * @Author: zhiwei.Wang
7
- * @Date: 2024-02-19 09:26
8
- */
9
- export declare const formatProductOption: (option: any) => any;
10
- /**
11
- * @title: 套餐信息
12
- * @description:
13
- * @param {any} bundle
14
- * @return {*}
15
- * @Author: zhiwei.Wang
16
- * @Date: 2024-02-19 09:26
17
- */
18
- export declare const formatProductBundle: (bundle: any) => any;
19
- /**
20
- * @title: 格式化下单接口数据
21
- * @description:
22
- * @param {any} state saledModel数据源
23
- * @param {boolean} excludeDisabled 是否需要排除购物车中失效商品
24
- * @Author: xiangfeng.xue
25
- * @Date: 2025-01-21 17:57
26
- */
27
- export declare const formatValues: (state: any, excludeDisabled?: boolean) => any;
@@ -1,104 +0,0 @@
1
- /**
2
- * @title: 套餐单规格信息
3
- * @description:
4
- * @param {any} option
5
- * @return {*}
6
- * @Author: zhiwei.Wang
7
- * @Date: 2024-02-19 09:26
8
- */
9
- export var formatProductOption = function formatProductOption(option) {
10
- if (!option) {
11
- return [];
12
- }
13
- return option.map(function (d) {
14
- return {
15
- num: d.num,
16
- option_group_item_id: d.product_option_item_id,
17
- option_group_id: d.option_group_id
18
- };
19
- });
20
- };
21
-
22
- /**
23
- * @title: 套餐信息
24
- * @description:
25
- * @param {any} bundle
26
- * @return {*}
27
- * @Author: zhiwei.Wang
28
- * @Date: 2024-02-19 09:26
29
- */
30
- export var formatProductBundle = function formatProductBundle(bundle) {
31
- if (!bundle) {
32
- return;
33
- }
34
- return bundle.map(function (d) {
35
- return {
36
- bundle_group_id: d.group_id,
37
- bundle_id: d.id,
38
- bundle_product_id: d._bundle_product_id,
39
- bundle_variant_id: d.bundle_variant_id,
40
- num: d.num,
41
- extension_id: d.extension_id,
42
- extension_type: d.extension_type,
43
- option: formatProductOption(d.option)
44
- };
45
- });
46
- };
47
- var getSubType = function getSubType(item) {
48
- var _item$duration;
49
- var _type = (_item$duration = item.duration) === null || _item$duration === void 0 ? void 0 : _item$duration.type;
50
- // 目前不支持跨天
51
- if (_type && _type !== 'days') {
52
- return _type;
53
- }
54
- return 'minutes';
55
- };
56
-
57
- /**
58
- * @title: 预约商品信息
59
- * @description:
60
- * @param {any} data
61
- * @return {*}
62
- * @Author: zhiwei.Wang
63
- * @Date: 2024-02-19 09:26
64
- */
65
- var formatBookings = function formatBookings(list) {
66
- var bookings = [];
67
- bookings = list.map(function (item) {
68
- return item._originData;
69
- });
70
- return bookings;
71
- };
72
-
73
- /**
74
- * @title: 格式化下单接口数据
75
- * @description:
76
- * @param {any} state saledModel数据源
77
- * @param {boolean} excludeDisabled 是否需要排除购物车中失效商品
78
- * @Author: xiangfeng.xue
79
- * @Date: 2025-01-21 17:57
80
- */
81
- export var formatValues = function formatValues(state, excludeDisabled) {
82
- var values = {
83
- type: 'event_booking_v2',
84
- platform: 'H5',
85
- sales_channel: 'my_pisel',
86
- order_sales_channel: 'online_store',
87
- bookings: [],
88
- shop_note: '',
89
- schedule_date: ''
90
- };
91
- var data = [];
92
- if (excludeDisabled) {
93
- var _state$cartData$cartI, _state$cartData$cartI2;
94
- data = (_state$cartData$cartI = state.cartData.cartItems) === null || _state$cartData$cartI === void 0 ? void 0 : (_state$cartData$cartI2 = _state$cartData$cartI.filter) === null || _state$cartData$cartI2 === void 0 ? void 0 : _state$cartData$cartI2.call(_state$cartData$cartI, function (v) {
95
- return v.disabled !== true;
96
- });
97
- } else {
98
- data = state.cartData.cartItems;
99
- }
100
-
101
- // 服务
102
- values.bookings = formatBookings(data);
103
- return values;
104
- };
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- interface CustomerData {
3
- }
4
- interface CustomerContextType {
5
- appUtils: any;
6
- isLogin: () => boolean;
7
- openLoginModal: (params: any) => void;
8
- getUserInfo: () => any;
9
- }
10
- interface CustomerProviderProps {
11
- children: React.ReactNode;
12
- }
13
- export declare const CustomerContext: React.Context<CustomerContextType | undefined>;
14
- export declare const CustomerProvider: React.FC<CustomerProviderProps>;
15
- /**
16
- * 使用步骤管理的Hook
17
- * @throws {Error} 如果在StepProvider外部使用会抛出错误
18
- * @returns {StepContextType} 步骤管理上下文
19
- */
20
- export declare const useCustomer: () => CustomerContextType;
21
- declare const _default: {
22
- defaultState: CustomerData;
23
- };
24
- export default _default;
@@ -1,56 +0,0 @@
1
- import React, { createContext } from 'react';
2
- import useEngineContext from "../../../hooks/useEngineContext";
3
- // 默认步骤状态
4
- var defaultState = {};
5
-
6
- // 创建步骤上下文
7
- export var CustomerContext = /*#__PURE__*/createContext(undefined);
8
- export var CustomerProvider = function CustomerProvider(_ref) {
9
- var children = _ref.children;
10
- var context = useEngineContext();
11
- var utils = context.appHelper.utils || {};
12
- var isLogin = function isLogin() {
13
- var _utils$token, _utils$token$get;
14
- return !!(utils !== null && utils !== void 0 && (_utils$token = utils.token) !== null && _utils$token !== void 0 && (_utils$token$get = _utils$token.get) !== null && _utils$token$get !== void 0 && _utils$token$get.call(_utils$token));
15
- };
16
- var openLoginModal = function openLoginModal(params) {
17
- var _ref2 = params || {},
18
- callback = _ref2.callback;
19
- utils.action({
20
- type: 'pisell1.login',
21
- data: {},
22
- callback: callback
23
- });
24
- };
25
- var getUserInfo = function getUserInfo() {
26
- var _utils$getStore$getSt, _utils$getStore$getSt2;
27
- var userInfo = (_utils$getStore$getSt = utils.getStore().getState()) === null || _utils$getStore$getSt === void 0 ? void 0 : (_utils$getStore$getSt2 = _utils$getStore$getSt.global) === null || _utils$getStore$getSt2 === void 0 ? void 0 : _utils$getStore$getSt2.userInfo;
28
- var localUserInfo = JSON.parse(utils.storage.get('customer') || '{}');
29
- return userInfo !== null && userInfo !== void 0 && userInfo.id ? userInfo : localUserInfo;
30
- };
31
- var contextValue = {
32
- appUtils: utils,
33
- isLogin: isLogin,
34
- openLoginModal: openLoginModal,
35
- getUserInfo: getUserInfo
36
- };
37
- return /*#__PURE__*/React.createElement(CustomerContext.Provider, {
38
- value: contextValue
39
- }, children);
40
- };
41
-
42
- /**
43
- * 使用步骤管理的Hook
44
- * @throws {Error} 如果在StepProvider外部使用会抛出错误
45
- * @returns {StepContextType} 步骤管理上下文
46
- */
47
- export var useCustomer = function useCustomer() {
48
- var context = React.useContext(CustomerContext);
49
- if (!context) {
50
- throw new Error('useCustomer must be used within a CustomerContext');
51
- }
52
- return context;
53
- };
54
- export default {
55
- defaultState: defaultState
56
- };
@@ -1,27 +0,0 @@
1
- import React from 'react';
2
- interface EventDetailContextType {
3
- detail: any;
4
- open: boolean;
5
- onOpenEventDetail: (eventItem: any) => void;
6
- onCloseEventDetail: () => void;
7
- onSelectEventDetail: () => void;
8
- selectEventDetailBookingOptions: (v: any) => void;
9
- getEventDetailSelectDate: {
10
- run: (id: number, params: any) => void;
11
- loading: boolean;
12
- data?: any;
13
- };
14
- currentBookingOption: any;
15
- }
16
- interface EventDetailProviderProps {
17
- children: React.ReactNode;
18
- }
19
- export declare const EventDetailContext: React.Context<EventDetailContextType | undefined>;
20
- export declare const EventDetailProvider: React.FC<EventDetailProviderProps>;
21
- /**
22
- * 使用步骤管理的Hook
23
- * @throws {Error} 如果在StepProvider外部使用会抛出错误
24
- * @returns {StepContextType} 步骤管理上下文
25
- */
26
- export declare const useEventDetail: () => EventDetailContextType;
27
- export {};