@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,1077 +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 _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
3
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
5
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
6
- 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; }
7
- 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); } }
8
- 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); }); }; }
9
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
10
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
12
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
13
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
14
- 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; } }
15
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
17
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
18
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
20
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
21
- import { getNoResource } from "../../mock";
22
- import { getErrorList, getProductTotalPrice } from "../../utils";
23
- import { locales } from "@pisell/utils";
24
- import dayjs from 'dayjs';
25
- import { appointmentTypes, openingTime } from "./status";
26
- import { postMultiDay } from "../service/serve";
27
- import localeTexts from "../../locales";
28
- import { concatBookings, isGroupBooking, getProductByGroupId } from "./Group/utils";
29
- locales.init(localeTexts, localStorage.getItem('umi_locale') || 'en');
30
- export var formatActiveKey = function formatActiveKey(lists, platform, isEdit) {
31
- if (!(lists !== null && lists !== void 0 && lists.length)) return [];
32
-
33
- // 编辑时,必须有两个holder, 避免闪动问题
34
- if (lists.length === 1 && isEdit) {
35
- return [];
36
- }
37
- // 管理端默认打开最后一个holder
38
- if (platform === 'shop') {
39
- var _lists2;
40
- return [(_lists2 = lists[lists.length - 1]) === null || _lists2 === void 0 ? void 0 : _lists2.key];
41
- }
42
-
43
- // 其他端默认打开所有
44
- return lists === null || lists === void 0 ? void 0 : lists.map(function (cart) {
45
- return cart === null || cart === void 0 ? void 0 : cart.key;
46
- });
47
- };
48
-
49
- /**
50
- * @title: 获取资源名称
51
- * @description:
52
- * @param {any} id
53
- * @param {any} state
54
- * @return {*}
55
- * @Author: WangHan
56
- * @Date: 2024-11-29 18:02
57
- */
58
- export var getResourceItem = function getResourceItem(id, state) {
59
- var _state$service$resour;
60
- if (id === 0) {
61
- return getNoResource();
62
- }
63
- return (_state$service$resour = state.service.resources) === null || _state$service$resour === void 0 ? void 0 : _state$service$resour.find(function (d) {
64
- return d.form_record_id === id;
65
- });
66
- };
67
- var errorTypes = {
68
- product: locales.getText('pisell2.text.status.service-error-1'),
69
- time: locales.getText('pisell2.text.status.service-error-2'),
70
- maxLimit: locales.getText('pisell2.text.status.service-error-3'),
71
- limit: locales.getText('pisell2.text.status.service-error-3')
72
- };
73
-
74
- /**
75
- * @title: 错误提示
76
- * @description:
77
- * @param {any} service
78
- * @param {any} resourceItem
79
- * @return {*}
80
- * @Author: WangHan
81
- * @Date: 2024-11-29 18:41
82
- */
83
- export var getErrorMessage = function getErrorMessage(service, resourceItem, isDay) {
84
- var errorList = getErrorList(resourceItem, service, isDay);
85
- var errorMessage = '';
86
- if (!service.id) {
87
- return errorList[0].label;
88
- }
89
- if (errorList.length) {
90
- if (errorList.length > 1) {
91
- errorMessage = "".concat(errorList.length, " ").concat(locales.getText('pisell2.text.warnings'));
92
- } else {
93
- errorMessage = (resourceItem === null || resourceItem === void 0 ? void 0 : resourceItem.labelText) + ' ' + errorTypes[errorList[0].type];
94
- }
95
- }
96
- return errorMessage;
97
- };
98
-
99
- /**
100
- * @title: 格式化主体列表
101
- * @description:
102
- * @param {any} lists
103
- * @param {boolean} isOpenGroup
104
- * @return {*}
105
- * @Author: WangHan
106
- * @Date: 2024-12-04 11:27
107
- */
108
- export var formatHolderLists = function formatHolderLists(lists) {
109
- var isOpenGroup = true;
110
- var _lists = lists === null || lists === void 0 ? void 0 : lists.map(function (item) {
111
- return _objectSpread(_objectSpread({}, item), {}, {
112
- id: (item === null || item === void 0 ? void 0 : item.id) || (item === null || item === void 0 ? void 0 : item.form_record_id),
113
- key: (item === null || item === void 0 ? void 0 : item.id) || (item === null || item === void 0 ? void 0 : item.form_record_id),
114
- label: locales.getText('pisell2.text.cart.of')(item === null || item === void 0 ? void 0 : item.main_field)
115
- });
116
- });
117
-
118
- // 开启了分组并且是管理端,则增加open items分组
119
- if (isOpenGroup) {
120
- var defaults = [{
121
- key: 0,
122
- id: 0,
123
- label: locales.getText('pisell2.text.open.items'),
124
- main_field: locales.getText('pisell2.text.open.items')
125
- }];
126
- return defaults.concat(_lists);
127
- }
128
- return _lists;
129
- };
130
-
131
- /**
132
- * @title: pets数据加 open items
133
- * @description:
134
- * @param {any} state
135
- * @return {*}
136
- * @Author: WangHan
137
- * @Date: 2024-12-03 11:40
138
- */
139
- var getHolderLists = function getHolderLists(state) {
140
- var _state$bookingConfig, _state$bookingConfig$, _state$bookingConfig$2, _state$bookingConfig$3, _state$pet, _state$pet$value;
141
- var form_id = (state === null || state === void 0 ? void 0 : (_state$bookingConfig = state.bookingConfig) === null || _state$bookingConfig === void 0 ? void 0 : (_state$bookingConfig$ = _state$bookingConfig.config) === null || _state$bookingConfig$ === void 0 ? void 0 : (_state$bookingConfig$2 = _state$bookingConfig$.basic) === null || _state$bookingConfig$2 === void 0 ? void 0 : (_state$bookingConfig$3 = _state$bookingConfig$2.appointment_subject) === null || _state$bookingConfig$3 === void 0 ? void 0 : _state$bookingConfig$3.form_id) || 0;
142
- var petLists = (state === null || state === void 0 ? void 0 : (_state$pet = state.pet) === null || _state$pet === void 0 ? void 0 : (_state$pet$value = _state$pet.value) === null || _state$pet$value === void 0 ? void 0 : _state$pet$value[form_id]) || [];
143
- var _lists = formatHolderLists(petLists);
144
- return _lists;
145
- };
146
-
147
- /**
148
- * @title: 获取pet名称
149
- * @description:
150
- * @param {any} state
151
- * @param {number} id
152
- * @return {*}
153
- * @Author: WangHan
154
- * @Date: 2024-12-03 11:42
155
- */
156
- var getHolderName = function getHolderName(state, id) {
157
- var holderLists = getHolderLists(state);
158
- if (!holderLists.length || !id) return '';
159
- var resource = holderLists.find(function (d) {
160
- return (d === null || d === void 0 ? void 0 : d.id) === id;
161
- });
162
- return resource === null || resource === void 0 ? void 0 : resource.main_field;
163
- };
164
- export var isBookingProduct = function isBookingProduct(extension_type, bol) {
165
- return appointmentTypes.includes(extension_type) || bol;
166
- };
167
-
168
- /**
169
- * @title: 是否是预约商品
170
- * @description:
171
- * @return {*}
172
- * @Author: WangHan
173
- * @Date: 2024-12-06 11:24
174
- */
175
- export var isDayBookingProduct = function isDayBookingProduct(item, state) {
176
- return isBookingProduct(item === null || item === void 0 ? void 0 : item.extension_type) && state.renderType === 'dayBooking';
177
- };
178
-
179
- /**
180
- * @title: 更新商品数据
181
- * @description:
182
- * @param {any} state
183
- * @param {string} type
184
- * @param {any} _id // 商品id
185
- * @param {any} other
186
- * @return {*}
187
- * @Author: WangHan
188
- * @Date: 2025-01-03 15:00
189
- */
190
- export var updateServices = function updateServices(state, currentItem, type, other) {
191
- var _state$service;
192
- var products = (state === null || state === void 0 ? void 0 : (_state$service = state.service) === null || _state$service === void 0 ? void 0 : _state$service.value) || [];
193
- // currentItem 可能是单个 也可能是数组
194
- var isGroup = isGroupBooking(currentItem._id);
195
- // 删除
196
- if (type === 'delete') {
197
- var _products;
198
- var deleteIds = [];
199
- if (isGroup) {
200
- // 删除分组
201
- deleteIds = getProductByGroupId(currentItem._id, products);
202
- } else {
203
- // 删除单个
204
- deleteIds = [currentItem._id];
205
- }
206
- products = (_products = products) === null || _products === void 0 ? void 0 : _products.filter(function (item) {
207
- return !deleteIds.includes(item === null || item === void 0 ? void 0 : item._id);
208
- });
209
- }
210
-
211
- // 删除购物车
212
- if (type === 'delete_holders') {
213
- var _products2;
214
- products = (_products2 = products) === null || _products2 === void 0 ? void 0 : _products2.filter(function (item) {
215
- var _item$_extend;
216
- return (item === null || item === void 0 ? void 0 : (_item$_extend = item._extend) === null || _item$_extend === void 0 ? void 0 : _item$_extend.holder_id) !== other;
217
- });
218
- }
219
-
220
- // 更新商品的holder_id
221
- if (type === 'update_holders') {
222
- var _products3;
223
- products = (_products3 = products) === null || _products3 === void 0 ? void 0 : _products3.map(function (item) {
224
- var ids = currentItem.map(function (d) {
225
- return d._id;
226
- });
227
- if (ids !== null && ids !== void 0 && ids.includes(item === null || item === void 0 ? void 0 : item._id)) {
228
- var _extend = item._extend || {};
229
- // 数组的话则是批量更新
230
- if (Array.isArray(other)) {
231
- var _other$find;
232
- _extend.holder_id = (_other$find = other.find(function (other) {
233
- return (other === null || other === void 0 ? void 0 : other._id) === (item === null || item === void 0 ? void 0 : item._id);
234
- })) === null || _other$find === void 0 ? void 0 : _other$find.holder_id;
235
- } else {
236
- _extend.holder_id = other;
237
- }
238
- return item;
239
- }
240
- return item;
241
- });
242
- } else {
243
- var _products4;
244
- // 更新数据
245
- products = (_products4 = products) === null || _products4 === void 0 ? void 0 : _products4.map(function (item) {
246
- var updateIds = [];
247
- if (isGroup) {
248
- // 更新分组
249
- updateIds = getProductByGroupId(currentItem._id, products);
250
- } else {
251
- // 更新单个
252
- updateIds = [currentItem._id];
253
- }
254
- if (updateIds.includes(item._id)) {
255
- if (type === 'like') {
256
- var _extend = item._extend || {};
257
- _extend.like_status = other === null || other === void 0 ? void 0 : other.like_status;
258
- } else {
259
- item = _objectSpread(_objectSpread({}, item), other);
260
- }
261
- return item;
262
- }
263
- return item;
264
- });
265
- }
266
- return products;
267
- };
268
-
269
- /**
270
- * @title: 格式化套餐
271
- * @description:
272
- * @param {any} bundle
273
- * @return {*}
274
- * @Author: WangHan
275
- * @Date: 2025-01-03 00:03
276
- */
277
- var formatBundle = function formatBundle(bundle) {
278
- if (!(bundle !== null && bundle !== void 0 && bundle.length)) return [];
279
- return bundle.map(function (item) {
280
- return {
281
- id: item === null || item === void 0 ? void 0 : item.id,
282
- title: item === null || item === void 0 ? void 0 : item.title,
283
- num: item === null || item === void 0 ? void 0 : item.num,
284
- price: item === null || item === void 0 ? void 0 : item.price,
285
- total: item === null || item === void 0 ? void 0 : item.price,
286
- price_type: item === null || item === void 0 ? void 0 : item.price_type,
287
- bundle_sum_price: item === null || item === void 0 ? void 0 : item.bundle_sum_price,
288
- bundle_sum_type: item === null || item === void 0 ? void 0 : item.bundle_sum_type,
289
- options: formatOptions(item === null || item === void 0 ? void 0 : item.option)
290
- };
291
- });
292
- };
293
-
294
- /**
295
- * @title: 格式化单规格
296
- * @description:
297
- * @param {any} options
298
- * @return {*}
299
- * @Author: WangHan
300
- * @Date: 2025-01-02 23:58
301
- */
302
- var formatOptions = function formatOptions(options) {
303
- if (!(options !== null && options !== void 0 && options.length)) return [];
304
- return options.map(function (item) {
305
- return {
306
- id: item === null || item === void 0 ? void 0 : item.id,
307
- name: item === null || item === void 0 ? void 0 : item.name,
308
- num: item === null || item === void 0 ? void 0 : item.num,
309
- price: item === null || item === void 0 ? void 0 : item.price,
310
- total: item === null || item === void 0 ? void 0 : item.price,
311
- origin_total: item === null || item === void 0 ? void 0 : item.original_price
312
- };
313
- });
314
- };
315
- export var formItems = function formItems(items) {
316
- return items.map(function (d) {
317
- return _objectSpread(_objectSpread({}, d), {}, {
318
- start_date: d._extend.start_date,
319
- end_date: d._extend.end_date,
320
- num: d === null || d === void 0 ? void 0 : d._extend.quantity,
321
- total: d._extend.total,
322
- origin_total: d._extend.origin_total
323
- });
324
- });
325
- };
326
-
327
- /**
328
- * @title: 格式化商品数据
329
- * @description:
330
- * @param {any} lists
331
- * @return {*}
332
- * @Author: WangHan
333
- * @Date: 2024-11-29 17:36
334
- */
335
- export var formatProducts = function formatProducts(lists, state) {
336
- var isRenderGroup = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
337
- if (!(lists !== null && lists !== void 0 && lists.length)) return [];
338
- var normalList = [];
339
- var groupList = [];
340
- var formItem = function formItem(item) {
341
- var _item$_extend2, _item$_extend3, _item$_extend3$other, _item$_extend4, _item$_extend4$other, _item$_extend6, _item$_extend7, _item$_extend8, _item$_extend9, _item$_extend10, _item$_extend10$other, _item$_extend11, _item$_extend12, _resourceItem, _item$_extend13, _item$_extend14, _item$_extend15, _item$_extend16;
342
- var _isDayBookingProduct = isDayBookingProduct(item, state);
343
- var clientTitle = getHolderName(state, item === null || item === void 0 ? void 0 : (_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.holder_id);
344
- var options = formatOptions(item === null || item === void 0 ? void 0 : (_item$_extend3 = item._extend) === null || _item$_extend3 === void 0 ? void 0 : (_item$_extend3$other = _item$_extend3.other) === null || _item$_extend3$other === void 0 ? void 0 : _item$_extend3$other.option);
345
- var bundle = formatBundle(item === null || item === void 0 ? void 0 : (_item$_extend4 = item._extend) === null || _item$_extend4 === void 0 ? void 0 : (_item$_extend4$other = _item$_extend4.other) === null || _item$_extend4$other === void 0 ? void 0 : _item$_extend4$other.bundle);
346
- // 是否是普通商品
347
- var isNormalProduct = !appointmentTypes.includes(item === null || item === void 0 ? void 0 : item.extension_type) || (state === null || state === void 0 ? void 0 : state.renderType) === 'eventBooking';
348
- var resourceItem = {};
349
- var errorMessage = '';
350
- if (_isDayBookingProduct) {
351
- var _item$_extend5;
352
- resourceItem = getResourceItem(item === null || item === void 0 ? void 0 : (_item$_extend5 = item._extend) === null || _item$_extend5 === void 0 ? void 0 : _item$_extend5.resource, state);
353
- errorMessage = getErrorMessage(item, resourceItem, isDayBooking(state));
354
- }
355
- return {
356
- id: item === null || item === void 0 ? void 0 : item.id,
357
- _id: item === null || item === void 0 ? void 0 : item._id,
358
- name: item === null || item === void 0 ? void 0 : item.title,
359
- price: item === null || item === void 0 ? void 0 : (_item$_extend6 = item._extend) === null || _item$_extend6 === void 0 ? void 0 : _item$_extend6.price,
360
- total: item === null || item === void 0 ? void 0 : (_item$_extend7 = item._extend) === null || _item$_extend7 === void 0 ? void 0 : _item$_extend7.total,
361
- origin_total: item === null || item === void 0 ? void 0 : (_item$_extend8 = item._extend) === null || _item$_extend8 === void 0 ? void 0 : _item$_extend8.origin_total,
362
- num: item === null || item === void 0 ? void 0 : item._extend.quantity,
363
- image: item === null || item === void 0 ? void 0 : item.cover,
364
- isShowNote: true,
365
- note: item === null || item === void 0 ? void 0 : item.note,
366
- like_status: item === null || item === void 0 ? void 0 : (_item$_extend9 = item._extend) === null || _item$_extend9 === void 0 ? void 0 : _item$_extend9.like_status,
367
- bundle: bundle,
368
- options: options,
369
- errorMessage: errorMessage,
370
- product_option_string: item === null || item === void 0 ? void 0 : (_item$_extend10 = item._extend) === null || _item$_extend10 === void 0 ? void 0 : (_item$_extend10$other = _item$_extend10.other) === null || _item$_extend10$other === void 0 ? void 0 : _item$_extend10$other.product_option_string,
371
- discount_reason: item === null || item === void 0 ? void 0 : (_item$_extend11 = item._extend) === null || _item$_extend11 === void 0 ? void 0 : _item$_extend11.discount_reason,
372
- resource_id: isNormalProduct ? 0 : item === null || item === void 0 ? void 0 : (_item$_extend12 = item._extend) === null || _item$_extend12 === void 0 ? void 0 : _item$_extend12.resource,
373
- relation_form_name: isNormalProduct ? '' : ((_resourceItem = resourceItem) === null || _resourceItem === void 0 ? void 0 : _resourceItem.labelText) || item.relation_form_name,
374
- holder_title: clientTitle,
375
- start_date: !isNormalProduct ? item === null || item === void 0 ? void 0 : (_item$_extend13 = item._extend) === null || _item$_extend13 === void 0 ? void 0 : _item$_extend13.start_date : '',
376
- end_date: !isNormalProduct ? item === null || item === void 0 ? void 0 : (_item$_extend14 = item._extend) === null || _item$_extend14 === void 0 ? void 0 : _item$_extend14.end_date : '',
377
- holder_id: (item === null || item === void 0 ? void 0 : (_item$_extend15 = item._extend) === null || _item$_extend15 === void 0 ? void 0 : _item$_extend15.holder_id) || 0,
378
- isNormalProduct: isNormalProduct,
379
- locale: state.locale,
380
- symbol: state.amountSymbol,
381
- items: isEventBooking(state) ? [] : formItems((item === null || item === void 0 ? void 0 : (_item$_extend16 = item._extend) === null || _item$_extend16 === void 0 ? void 0 : _item$_extend16.items) || []),
382
- _origin: item
383
- };
384
- };
385
-
386
- // 将商品分为组商品和非组商品
387
- lists.forEach(function (item) {
388
- var _item$_extend17;
389
- if (!(item !== null && item !== void 0 && (_item$_extend17 = item._extend) !== null && _item$_extend17 !== void 0 && _item$_extend17.groupId)) {
390
- normalList.push(formItem(item));
391
- } else {
392
- groupList.push(item);
393
- }
394
- });
395
-
396
- // 根据item._extend.groupId 进行分组
397
- var groups = groupList.reduce(function (prev, item) {
398
- var _item$_extend18;
399
- var groupId = item === null || item === void 0 ? void 0 : (_item$_extend18 = item._extend) === null || _item$_extend18 === void 0 ? void 0 : _item$_extend18.groupId;
400
- if (!prev[groupId]) {
401
- prev[groupId] = [];
402
- }
403
- prev[groupId].push(item);
404
- return prev;
405
- }, {});
406
- if (isRenderGroup) {
407
- return Object.values(groups).map(function (d) {
408
- return formItem(concatBookings(d));
409
- }).concat(normalList);
410
- } else {
411
- return lists === null || lists === void 0 ? void 0 : lists.map(function (item) {
412
- return formItem(item);
413
- });
414
- }
415
- };
416
-
417
- /**
418
- * @title: 禁用日期
419
- * @description:
420
- * @param {any} current
421
- * @param {string} position
422
- * @param {any} startDate
423
- * @return {*}
424
- * @Author: WangHan
425
- * @Date: 2024-12-03 17:51
426
- */
427
- export var disabledDate = function disabledDate(current, position, currentDate) {
428
- if (!dayjs(currentDate).isValid()) return;
429
- if (position === 'start') {
430
- return false;
431
- }
432
- if (position === 'end' && current.endOf('day') && currentDate) {
433
- // 结束日期最大 = 开始日期 + 8个月
434
- var endDisabled = currentDate.add(8, 'months').format('YYYY-MM-DD');
435
- return dayjs(endDisabled) < current.startOf('day') || current.startOf('day') <= currentDate;
436
- }
437
- return current && current <= currentDate;
438
- };
439
-
440
- /**
441
- * @title: 是否是跨日预约
442
- * @description:
443
- * @param {any} state
444
- * @return {*}
445
- * @Author: WangHan
446
- * @Date: 2024-12-04 09:49
447
- */
448
- export var isDayBooking = function isDayBooking(state) {
449
- return (state === null || state === void 0 ? void 0 : state.renderType) === 'dayBooking' || (state === null || state === void 0 ? void 0 : state.renderType) === 'eventBooking';
450
- };
451
- export var isDaysBooking = function isDaysBooking(state) {
452
- return (state === null || state === void 0 ? void 0 : state.renderType) === 'dayBooking';
453
- };
454
- export var isEventBooking = function isEventBooking(state) {
455
- return state.renderType === 'eventBooking';
456
- };
457
- export var isAppointmentProduct = function isAppointmentProduct(item) {
458
- return appointmentTypes.includes(item.extension_type);
459
- };
460
- /**
461
- * @title: 是否是terminal上的跨日预约
462
- * @description:
463
- * @param {any} state
464
- * @return {*}
465
- * @Author: WangHan
466
- * @Date: 2024-12-04 15:31
467
- */
468
- export var isTerminalDayBooking = function isTerminalDayBooking(state) {
469
- return state.isTerminalDayBookingPage;
470
- };
471
- export var formatDayDate = function formatDayDate(_extend) {
472
- // 默认选择的日期
473
- var startDate = dayjs(_extend === null || _extend === void 0 ? void 0 : _extend.start_date).startOf('day');
474
- var endDate = dayjs(_extend === null || _extend === void 0 ? void 0 : _extend.end_date).startOf('day');
475
- return _objectSpread(_objectSpread({}, _extend), {}, {
476
- start_date: startDate,
477
- end_date: endDate
478
- });
479
- };
480
-
481
- /**
482
- * @title: 根据营业日时间格式化时间
483
- * @description:
484
- * @param {any} state
485
- * @return {*}
486
- * @Author: WangHan
487
- * @Date: 2024-12-04 12:07
488
- */
489
- export var formatDayTime = function formatDayTime(_ref) {
490
- var startDate = _ref.startDate,
491
- endDate = _ref.endDate;
492
- // 营业日时间
493
- var shopOpeningTime = localStorage.getItem('shopOpeningHours') || '00:00';
494
-
495
- // 默认选择的日期
496
- var start_date = dayjs(startDate).format('YYYY-MM-DD');
497
- var end_date = dayjs(endDate).format('YYYY-MM-DD');
498
-
499
- // 更新后的日期
500
- var result = {
501
- startDateTime: dayjs("".concat(start_date, "T").concat(shopOpeningTime, ":00")),
502
- // 结束日期根据营业日时间减去一分钟
503
- endDateTime: dayjs("".concat(end_date, "T").concat(shopOpeningTime, ":00")).subtract(1, 'minute')
504
- };
505
- return result;
506
- };
507
- export var formatDateTime = function formatDateTime(start_date, end_date) {
508
- var _openingTime = openingTime();
509
-
510
- // 开始时间 + 营业日时间
511
- var startDate = "".concat(start_date, " ").concat(_openingTime);
512
- var endDate = "".concat(end_date, " ").concat(_openingTime);
513
- var date = {
514
- value: dayjs(startDate),
515
- end_date: dayjs(endDate).subtract(1, 'minute')
516
- };
517
- return date;
518
- };
519
-
520
- /**
521
- * @title: 初始化日期
522
- * @description:
523
- * @return {*}
524
- * @Author: WangHan
525
- * @Date: 2024-12-06 17:24
526
- */
527
- export var initDate = function initDate() {
528
- var startDate = dayjs().format('YYYY-MM-DD');
529
- var endDate = dayjs().add(1, 'days').format('YYYY-MM-DD');
530
- var date = formatDateTime(startDate, endDate);
531
- return date;
532
- };
533
-
534
- /**
535
- * @title: 是否有预约商品
536
- * @description:
537
- * @return {*}
538
- * @Author: WangHan
539
- * @Date: 2024-12-12 15:47
540
- */
541
- export var isHasDayAppointmentProduct = function isHasDayAppointmentProduct(state) {
542
- var _state$bookingConfig2, _state$bookingConfig3, _state$bookingConfig4, _state$bookingConfig5, _state$service2, _state$pet2, _state$pet2$value;
543
- var form_id = (state === null || state === void 0 ? void 0 : (_state$bookingConfig2 = state.bookingConfig) === null || _state$bookingConfig2 === void 0 ? void 0 : (_state$bookingConfig3 = _state$bookingConfig2.config) === null || _state$bookingConfig3 === void 0 ? void 0 : (_state$bookingConfig4 = _state$bookingConfig3.basic) === null || _state$bookingConfig4 === void 0 ? void 0 : (_state$bookingConfig5 = _state$bookingConfig4.appointment_subject) === null || _state$bookingConfig5 === void 0 ? void 0 : _state$bookingConfig5.form_id) || 0;
544
- var services = ((_state$service2 = state.service) === null || _state$service2 === void 0 ? void 0 : _state$service2.value) || [];
545
- var pets = ((_state$pet2 = state.pet) === null || _state$pet2 === void 0 ? void 0 : (_state$pet2$value = _state$pet2.value) === null || _state$pet2$value === void 0 ? void 0 : _state$pet2$value[form_id]) || [];
546
-
547
- // 没选择表单,则直接提示
548
- if (!pets.length) return true;
549
- var checkType = function checkType(extension_type) {
550
- if (isEventBooking(state)) {
551
- return true;
552
- }
553
- return appointmentTypes.includes(extension_type);
554
- };
555
-
556
- // 没有任何一个预约商品则提示
557
- var appointmentServices = services.filter(function (d) {
558
- return checkType(d.extension_type);
559
- });
560
- if (!appointmentServices.length) return true;
561
- var _pets = pets === null || pets === void 0 ? void 0 : pets.map(function (d) {
562
- // const holderProducts = services.filter((d: any) => d._extend?.holder_id == d.form_record_id)
563
-
564
- return _objectSpread(_objectSpread({}, d), {}, {
565
- // 如果该购物车中没选择任何商品,则不需要验证,所以直接用1来填充
566
- // services: !holderProducts?.length ? [1] : holderProducts?.filter((d: any) => appointmentTypes.includes(d.extension_type))
567
- services: services.filter(function (item) {
568
- var _item$_extend19;
569
- return ((_item$_extend19 = item._extend) === null || _item$_extend19 === void 0 ? void 0 : _item$_extend19.holder_id) == d.form_record_id && checkType(item.extension_type);
570
- })
571
- });
572
- });
573
- _pets = _pets.filter(function (d) {
574
- return !d.services.length;
575
- });
576
- return _pets.length > 0;
577
- };
578
-
579
- /**
580
- * @title: 过滤出如果是预约商品,则只获取跨日的预约商品
581
- * @description:
582
- * @param {any} lists
583
- * @return {*}
584
- * @Author: WangHan
585
- * @Date: 2024-12-13 16:44
586
- */
587
- export var getDayProducts = function getDayProducts(holderId, lists, isTerminal) {
588
- var _lists = lists || [];
589
-
590
- // 普通商品列表, terminal进入页面直接获取了商品列表数据,所以选择了表单之后不会再次触发该方法
591
- if (!holderId && !isTerminal) {
592
- _lists = _lists.filter(function (item) {
593
- return !appointmentTypes.includes(item === null || item === void 0 ? void 0 : item.extension_type);
594
- });
595
- } else {
596
- // 普通商品 + 跨日预约商品列表
597
- _lists = _lists.filter(function (item) {
598
- var _item$duration;
599
- return !appointmentTypes.includes(item === null || item === void 0 ? void 0 : item.extension_type) || appointmentTypes.includes(item === null || item === void 0 ? void 0 : item.extension_type) && ((_item$duration = item.duration) === null || _item$duration === void 0 ? void 0 : _item$duration.type) === 'days';
600
- });
601
- }
602
- return _lists;
603
- };
604
-
605
- /**
606
- * @title: 格式化表单数据
607
- * @description:
608
- * @param {any} state
609
- * @return {*}
610
- * @Author: WangHan
611
- * @Date: 2024-12-30 22:19
612
- */
613
- export var getPets = function getPets(state) {
614
- var _state$bookingConfig6, _state$bookingConfig7, _state$bookingConfig8, _state$bookingConfig9, _state$pet3, _state$pet3$value;
615
- var form_id = (state === null || state === void 0 ? void 0 : (_state$bookingConfig6 = state.bookingConfig) === null || _state$bookingConfig6 === void 0 ? void 0 : (_state$bookingConfig7 = _state$bookingConfig6.config) === null || _state$bookingConfig7 === void 0 ? void 0 : (_state$bookingConfig8 = _state$bookingConfig7.basic) === null || _state$bookingConfig8 === void 0 ? void 0 : (_state$bookingConfig9 = _state$bookingConfig8.appointment_subject) === null || _state$bookingConfig9 === void 0 ? void 0 : _state$bookingConfig9.form_id) || 0;
616
- var pets = (state === null || state === void 0 ? void 0 : (_state$pet3 = state.pet) === null || _state$pet3 === void 0 ? void 0 : (_state$pet3$value = _state$pet3.value) === null || _state$pet3$value === void 0 ? void 0 : _state$pet3$value[form_id]) || [];
617
- return pets;
618
- };
619
-
620
- /**
621
- * @title: 得出预约商品
622
- * @description:
623
- * @param {any} state
624
- * @return {*}
625
- * @Author: WangHan
626
- * @Date: 2024-12-30 22:26
627
- */
628
- export var getAppointmentService = function getAppointmentService(state) {
629
- var _state$service3;
630
- var services = ((_state$service3 = state.service) === null || _state$service3 === void 0 ? void 0 : _state$service3.value) || [];
631
- var lists = services.filter(function (item) {
632
- return appointmentTypes.includes(item.extension_type);
633
- });
634
- return lists;
635
- };
636
-
637
- /**
638
- * @title: 判断是否打开删除宠物弹窗
639
- * @description:
640
- * @param {any} state
641
- * @param {any} newVal
642
- * @return {*}
643
- * @Author: WangHan
644
- * @Date: 2024-12-16 16:12
645
- */
646
- export var isOpenDeletePet = function isOpenDeletePet(state, newVal) {
647
- var _state$bookingConfig10, _state$bookingConfig11, _state$bookingConfig12, _state$bookingConfig13, _state$pet4, _state$pet4$value;
648
- var form_id = (state === null || state === void 0 ? void 0 : (_state$bookingConfig10 = state.bookingConfig) === null || _state$bookingConfig10 === void 0 ? void 0 : (_state$bookingConfig11 = _state$bookingConfig10.config) === null || _state$bookingConfig11 === void 0 ? void 0 : (_state$bookingConfig12 = _state$bookingConfig11.basic) === null || _state$bookingConfig12 === void 0 ? void 0 : (_state$bookingConfig13 = _state$bookingConfig12.appointment_subject) === null || _state$bookingConfig13 === void 0 ? void 0 : _state$bookingConfig13.form_id) || 0;
649
- var oldPets = (state === null || state === void 0 ? void 0 : (_state$pet4 = state.pet) === null || _state$pet4 === void 0 ? void 0 : (_state$pet4$value = _state$pet4.value) === null || _state$pet4$value === void 0 ? void 0 : _state$pet4$value[form_id]) || [];
650
- var newPets = (newVal === null || newVal === void 0 ? void 0 : newVal[form_id]) || [];
651
-
652
- // 被删除的表单
653
- var deletePets = oldPets.filter(function (item) {
654
- return !newPets.some(function (newItem) {
655
- return newItem.form_record_id === item.form_record_id;
656
- });
657
- });
658
-
659
- // 被删除的表单中是否有预约商品
660
- var servicePets = deletePets.map(function (item) {
661
- var _state$service4, _state$service4$value;
662
- return _objectSpread(_objectSpread({}, item), {}, {
663
- services: (_state$service4 = state.service) === null || _state$service4 === void 0 ? void 0 : (_state$service4$value = _state$service4.value) === null || _state$service4$value === void 0 ? void 0 : _state$service4$value.filter(function (d) {
664
- var _d$_extend;
665
- return ((_d$_extend = d._extend) === null || _d$_extend === void 0 ? void 0 : _d$_extend.holder_id) == item.form_record_id;
666
- })
667
- });
668
- });
669
-
670
- // 查找被删除的表单中是否有对应的商品数据
671
- var lists = servicePets.filter(function (item) {
672
- var _item$services;
673
- return ((_item$services = item.services) === null || _item$services === void 0 ? void 0 : _item$services.length) > 0;
674
- });
675
- return {
676
- ids: lists.map(function (item) {
677
- return item.form_record_id;
678
- }),
679
- lists: lists
680
- };
681
- };
682
-
683
- /**
684
- * @title: 当前选中的表单id
685
- * @description:
686
- * @param {any} state
687
- * @return {*}
688
- * @Author: WangHan
689
- * @Date: 2024-12-17 14:40
690
- */
691
- export var holderId = function holderId(state) {
692
- var _state$activeCartId;
693
- return Number((state === null || state === void 0 ? void 0 : (_state$activeCartId = state.activeCartId) === null || _state$activeCartId === void 0 ? void 0 : _state$activeCartId[0]) || 0);
694
- };
695
-
696
- /**
697
- * @title: 计算总价
698
- * @description:
699
- * @param {any} data
700
- * @return {*}
701
- * @Author: WangHan
702
- * @Date: 2024-12-31 15:18
703
- */
704
- function calculateTotalPrice(data) {
705
- var _price = data === null || data === void 0 ? void 0 : data.reduce(function (total, item) {
706
- return total + ((item === null || item === void 0 ? void 0 : item.price) || (item === null || item === void 0 ? void 0 : item.add_price)) * item.num;
707
- }, 0);
708
- return parseFloat(_price);
709
- }
710
-
711
- /**
712
- * @title: 更新单规格价格
713
- * @description:
714
- * @param {any} currentValue
715
- * @param {any} single
716
- * @return {*}
717
- * @Author: WangHan
718
- * @Date: 2024-12-31 15:18
719
- */
720
- function updateSinglePrice(currentValue, single) {
721
- var _single = [];
722
- var _loop = function _loop() {
723
- var item = currentValue[index];
724
- var currentIndex = single.findIndex(function (_single) {
725
- return _single.id === item.id;
726
- });
727
- if (currentIndex !== -1) {
728
- item.add_price = single[currentIndex].add_price;
729
- item.name = single[currentIndex].name;
730
- _single.push(item);
731
- }
732
- };
733
- for (var index = 0; index < currentValue.length; index++) {
734
- _loop();
735
- }
736
- return _single;
737
- }
738
-
739
- /**
740
- * @title: 更新套餐价格
741
- * @description:
742
- * @param {any} currentValue
743
- * @param {any} param2
744
- * @return {*}
745
- * @Author: WangHan
746
- * @Date: 2024-12-31 15:17
747
- */
748
- function updateBundlePrice(currentValue, _ref2) {
749
- var _ref3 = _slicedToArray(_ref2, 2),
750
- bundle = _ref3[0],
751
- single = _ref3[1];
752
- var _bundle = [];
753
- var _loop2 = function _loop2() {
754
- var item = currentValue[index];
755
- var currentIndex = bundle.findIndex(function (_bundle) {
756
- return _bundle.id === item.id;
757
- });
758
- if (currentIndex !== -1 && bundle[currentIndex]) {
759
- var _item$option;
760
- // currentValue.splice(index, 1);
761
- item.title = bundle[currentIndex].title;
762
- item.price_type = bundle[currentIndex].price_type;
763
- item._price = bundle[currentIndex].price;
764
- var bundle_sum_price = parseFloat(bundle[currentIndex].price_type === 'markdown' ? bundle[currentIndex].price * -1 : bundle[currentIndex].price).toFixed(2);
765
- item.price = bundle_sum_price;
766
- item.bundle_sum_price = bundle_sum_price;
767
- // 如果有单规格
768
- if (item !== null && item !== void 0 && (_item$option = item.option) !== null && _item$option !== void 0 && _item$option.length) {
769
- var _option = JSON.parse(JSON.stringify(item.option));
770
- item.option = updateSinglePrice(_option, single);
771
- var optionPrice = 0;
772
- optionPrice = calculateTotalPrice(item.option);
773
- var _bundle_sum_price = (parseFloat(bundle[currentIndex].price_type === 'markdown' ? bundle[currentIndex].price * -1 : bundle[currentIndex].price) + optionPrice).toFixed(2);
774
- item.price = _bundle_sum_price;
775
- item.bundle_sum_price = _bundle_sum_price;
776
- }
777
- _bundle.push(item);
778
- }
779
- };
780
- for (var index = 0; index < currentValue.length; index++) {
781
- _loop2();
782
- }
783
- return _bundle;
784
- }
785
-
786
- /**
787
- * @title: 平铺套餐数据
788
- * @description:
789
- * @param {any} newPackageData
790
- * @return {*}
791
- * @Author: WangHan
792
- * @Date: 2024-12-31 15:17
793
- */
794
- function flatData(newPackageData) {
795
- var bundle = [];
796
- var single = [];
797
- // 获取所有的套餐
798
- var _iterator = _createForOfIteratorHelper(newPackageData),
799
- _step;
800
- try {
801
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
802
- var _group$bundle_item;
803
- var _group = _step.value;
804
- if (_group !== null && _group !== void 0 && (_group$bundle_item = _group.bundle_item) !== null && _group$bundle_item !== void 0 && _group$bundle_item.length) {
805
- var _iterator4 = _createForOfIteratorHelper(_group.bundle_item),
806
- _step4;
807
- try {
808
- for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
809
- var _item = _step4.value;
810
- bundle.push(_item);
811
- }
812
- } catch (err) {
813
- _iterator4.e(err);
814
- } finally {
815
- _iterator4.f();
816
- }
817
- }
818
- }
819
-
820
- // 获取到所有的规格
821
- } catch (err) {
822
- _iterator.e(err);
823
- } finally {
824
- _iterator.f();
825
- }
826
- for (var _i2 = 0, _bundle2 = bundle; _i2 < _bundle2.length; _i2++) {
827
- var _bundleItem$option_gr;
828
- var bundleItem = _bundle2[_i2];
829
- if (bundleItem !== null && bundleItem !== void 0 && (_bundleItem$option_gr = bundleItem.option_group) !== null && _bundleItem$option_gr !== void 0 && _bundleItem$option_gr.length) {
830
- var _iterator2 = _createForOfIteratorHelper(bundleItem.option_group),
831
- _step2;
832
- try {
833
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
834
- var _group$option_item;
835
- var group = _step2.value;
836
- if (group !== null && group !== void 0 && (_group$option_item = group.option_item) !== null && _group$option_item !== void 0 && _group$option_item.length) {
837
- var _iterator3 = _createForOfIteratorHelper(group.option_item),
838
- _step3;
839
- try {
840
- for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
841
- var item = _step3.value;
842
- single.push(item);
843
- }
844
- } catch (err) {
845
- _iterator3.e(err);
846
- } finally {
847
- _iterator3.f();
848
- }
849
- }
850
- }
851
- } catch (err) {
852
- _iterator2.e(err);
853
- } finally {
854
- _iterator2.f();
855
- }
856
- }
857
- }
858
- return [bundle, single];
859
- }
860
-
861
- /**
862
- * @title: 更新套餐的价格
863
- * @description:
864
- * @param {any} currentValue
865
- * @param {any} newBundleData
866
- * @return {*}
867
- * @Author: WangHan
868
- * @Date: 2024-12-31 15:16
869
- */
870
- export function updateNormalBundlePrice(currentValue, newBundleData) {
871
- var _currentValue = JSON.parse(JSON.stringify(currentValue));
872
- var _flatData = flatData(newBundleData);
873
- var newValue = updateBundlePrice(_currentValue, _flatData);
874
- return newValue;
875
- }
876
-
877
- /**
878
- * @title: 更新普通商品价格
879
- * @description:
880
- * @param {any} ids
881
- * @param {any} state
882
- * @return {*}
883
- * @Author: WangHan
884
- * @Date: 2024-12-31 15:15
885
- */
886
- var normalServicePrice = /*#__PURE__*/function () {
887
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(ids, state) {
888
- var _state$service5, _state$client, _state$client$value, _data$list;
889
- var services, customerId, data, _lists;
890
- return _regeneratorRuntime().wrap(function _callee$(_context) {
891
- while (1) switch (_context.prev = _context.next) {
892
- case 0:
893
- services = ((_state$service5 = state.service) === null || _state$service5 === void 0 ? void 0 : _state$service5.value) || [];
894
- customerId = (state === null || state === void 0 ? void 0 : (_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) || 0;
895
- _context.next = 4;
896
- return state.apis.getServices({
897
- skip: 1,
898
- num: 500,
899
- ids: ids,
900
- customer_id: customerId,
901
- open_quotation: 1,
902
- open_bundle: 1,
903
- with: ['bundleGroup.bundleItem', 'optionGroup.optionItem'],
904
- _config: {
905
- abort: true
906
- }
907
- });
908
- case 4:
909
- data = _context.sent;
910
- if (data !== null && data !== void 0 && (_data$list = data.list) !== null && _data$list !== void 0 && _data$list.length) {
911
- _context.next = 7;
912
- break;
913
- }
914
- return _context.abrupt("return");
915
- case 7:
916
- _lists = services.map(function (item) {
917
- var obj = _objectSpread({}, item);
918
- if (!appointmentTypes.includes(obj.extension_type)) {
919
- // 在商品列表中根据商品id找到对应的商品数据
920
- var product = data.list.find(function (p) {
921
- return p.id === (item === null || item === void 0 ? void 0 : item.product_id);
922
- });
923
- var _extend = (obj === null || obj === void 0 ? void 0 : obj._extend) || {};
924
- var other = (_extend === null || _extend === void 0 ? void 0 : _extend.other) || {};
925
- if (product) {
926
- var _product$variant, _other$bundle, _product$bundle_group;
927
- // 如果有多规格的话则更新价格为多规格的价格
928
- if (product !== null && product !== void 0 && (_product$variant = product.variant) !== null && _product$variant !== void 0 && _product$variant.length && other !== null && other !== void 0 && other.product_variant_id) {
929
- var _product$variant2;
930
- var _variant = product === null || product === void 0 ? void 0 : (_product$variant2 = product.variant) === null || _product$variant2 === void 0 ? void 0 : _product$variant2.find(function (v) {
931
- return v.id === (other === null || other === void 0 ? void 0 : other.product_variant_id);
932
- });
933
- obj._extend.price = Number(_variant === null || _variant === void 0 ? void 0 : _variant.price);
934
- obj._extend.other.price = Number(_variant === null || _variant === void 0 ? void 0 : _variant.price);
935
- } else {
936
- obj._extend.price = Number(product === null || product === void 0 ? void 0 : product.price);
937
- }
938
-
939
- // 更新套餐的价格
940
- if (other !== null && other !== void 0 && (_other$bundle = other.bundle) !== null && _other$bundle !== void 0 && _other$bundle.length && product !== null && product !== void 0 && (_product$bundle_group = product.bundle_group) !== null && _product$bundle_group !== void 0 && _product$bundle_group.length) {
941
- var _bundle = updateNormalBundlePrice(other.bundle, product === null || product === void 0 ? void 0 : product.bundle_group);
942
- obj._extend.other = _objectSpread(_objectSpread({}, other), {}, {
943
- bundle: _bundle
944
- });
945
- }
946
-
947
- // 更新总计
948
- obj._extend.total = getProductTotalPrice(obj);
949
- obj._extend.origin_total = getProductTotalPrice(obj);
950
- }
951
- }
952
- return obj;
953
- });
954
- return _context.abrupt("return", _lists);
955
- case 9:
956
- case "end":
957
- return _context.stop();
958
- }
959
- }, _callee);
960
- }));
961
- return function normalServicePrice(_x2, _x3) {
962
- return _ref4.apply(this, arguments);
963
- };
964
- }();
965
-
966
- /**
967
- * @title: 更新预约商品报价单
968
- * @description:
969
- * @param {any} state
970
- * @param {any} cacheItem
971
- * @return {*}
972
- * @Author: WangHan
973
- * @Date: 2024-12-25 16:41
974
- */
975
- export var updateAppointmentServicePrice = /*#__PURE__*/function () {
976
- var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(state, _ref5) {
977
- var _state$service6, _state$service6$cache, _state$service6$cache2;
978
- var start_date, end_date, product_id, defaultReturn, _state$client2, _state$client2$value, _state$service$cacheI, _res$data, _res$data2, format, customer_id, _product_id, multi_day_price, startDate, endDate, params, res, _prices;
979
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
980
- while (1) switch (_context2.prev = _context2.next) {
981
- case 0:
982
- start_date = _ref5.start_date, end_date = _ref5.end_date, product_id = _ref5.product_id;
983
- defaultReturn = {
984
- multiDayPrices: [],
985
- price: Number(state === null || state === void 0 ? void 0 : (_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.price) || 0
986
- };
987
- _context2.prev = 2;
988
- format = 'YYYY-MM-DD';
989
- customer_id = (state === null || state === void 0 ? void 0 : (_state$client2 = state.client) === null || _state$client2 === void 0 ? void 0 : (_state$client2$value = _state$client2.value) === null || _state$client2$value === void 0 ? void 0 : _state$client2$value.id) || 1;
990
- _product_id = product_id || ((_state$service$cacheI = state.service.cacheItem) === null || _state$service$cacheI === void 0 ? void 0 : _state$service$cacheI.product_id) || 0;
991
- multi_day_price = null;
992
- if (product_id) {
993
- _context2.next = 10;
994
- break;
995
- }
996
- console.log('updateAppointmentServicePrice', product_id);
997
- return _context2.abrupt("return", defaultReturn);
998
- case 10:
999
- startDate = dayjs(start_date).format(format);
1000
- endDate = dayjs(end_date).subtract(1, 'days').format(format);
1001
- params = {
1002
- customer_id: customer_id,
1003
- multi_day: {
1004
- start: startDate,
1005
- end: endDate
1006
- }
1007
- };
1008
- _context2.next = 15;
1009
- return postMultiDay(_product_id, params);
1010
- case 15:
1011
- res = _context2.sent;
1012
- _prices = (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.multi_day_price) || []; // 如果接口返回的有报价单,则分割商品数据
1013
- multi_day_price = _prices === null || _prices === void 0 ? void 0 : _prices.map(function (p) {
1014
- var _p$multi_day, _p$multi_day2;
1015
- var startDate = dayjs(p === null || p === void 0 ? void 0 : (_p$multi_day = p.multi_day) === null || _p$multi_day === void 0 ? void 0 : _p$multi_day.start);
1016
- // 将返回的结束日期+1天,(前端计算得出的两个日期之间的天数是按照中间的间隔来计算的,而后端返回的报价单的日期是按照当天来计算的)
1017
- var endDate = dayjs(p === null || p === void 0 ? void 0 : (_p$multi_day2 = p.multi_day) === null || _p$multi_day2 === void 0 ? void 0 : _p$multi_day2.end).add(1, 'day');
1018
- var duration = (endDate === null || endDate === void 0 ? void 0 : endDate.diff(startDate, 'day')) || 1;
1019
- return {
1020
- total: Number(p === null || p === void 0 ? void 0 : p.price),
1021
- origin_total: Number(p === null || p === void 0 ? void 0 : p.price),
1022
- num: duration,
1023
- quotation_id: (p === null || p === void 0 ? void 0 : p.quotation_id) || 0,
1024
- start_date: startDate === null || startDate === void 0 ? void 0 : startDate.format(format),
1025
- end_date: endDate === null || endDate === void 0 ? void 0 : endDate.format(format)
1026
- };
1027
- });
1028
- return _context2.abrupt("return", {
1029
- multiDayPrices: multi_day_price,
1030
- price: Number(res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.price) || 0
1031
- });
1032
- case 21:
1033
- _context2.prev = 21;
1034
- _context2.t0 = _context2["catch"](2);
1035
- console.log('updateAppointmentServicePrice', _context2.t0);
1036
- case 24:
1037
- return _context2.abrupt("return", defaultReturn);
1038
- case 25:
1039
- case "end":
1040
- return _context2.stop();
1041
- }
1042
- }, _callee2, null, [[2, 21]]);
1043
- }));
1044
- return function updateAppointmentServicePrice(_x4, _x5) {
1045
- return _ref6.apply(this, arguments);
1046
- };
1047
- }();
1048
-
1049
- /**
1050
- * @title: 更新普通商品报价单价格
1051
- * @description:
1052
- * @param {any} state
1053
- * @return {*}
1054
- * @Author: WangHan
1055
- * @Date: 2024-12-24 11:32
1056
- */
1057
- export var updateServicePrice = function updateServicePrice(state) {
1058
- var _state$service7, _newNormalIds;
1059
- var services = ((_state$service7 = state.service) === null || _state$service7 === void 0 ? void 0 : _state$service7.value) || [];
1060
-
1061
- // 普通商品
1062
- var normalServices = services === null || services === void 0 ? void 0 : services.filter(function (item) {
1063
- return isEventBooking(state) ? true : !appointmentTypes.includes(item.extension_type);
1064
- });
1065
-
1066
- // 普通商品ids去重
1067
- var newNormalIds = normalServices === null || normalServices === void 0 ? void 0 : normalServices.map(function (item) {
1068
- return (item === null || item === void 0 ? void 0 : item.product_id) || (item === null || item === void 0 ? void 0 : item.id);
1069
- });
1070
-
1071
- // ids去重
1072
- newNormalIds = _toConsumableArray(new Set(newNormalIds));
1073
- if ((_newNormalIds = newNormalIds) !== null && _newNormalIds !== void 0 && _newNormalIds.length) {
1074
- return normalServicePrice(newNormalIds, state);
1075
- }
1076
- return [];
1077
- };