@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,695 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
-
29
- // src/components/booking/info/service2/utils.ts
30
- var utils_exports = {};
31
- __export(utils_exports, {
32
- disabledDate: () => disabledDate,
33
- formItems: () => formItems,
34
- formatActiveKey: () => formatActiveKey,
35
- formatDateTime: () => formatDateTime,
36
- formatDayDate: () => formatDayDate,
37
- formatDayTime: () => formatDayTime,
38
- formatHolderLists: () => formatHolderLists,
39
- formatProducts: () => formatProducts,
40
- getAppointmentService: () => getAppointmentService,
41
- getDayProducts: () => getDayProducts,
42
- getErrorMessage: () => getErrorMessage,
43
- getPets: () => getPets,
44
- getResourceItem: () => getResourceItem,
45
- holderId: () => holderId,
46
- initDate: () => initDate,
47
- isAppointmentProduct: () => isAppointmentProduct,
48
- isBookingProduct: () => isBookingProduct,
49
- isDayBooking: () => isDayBooking,
50
- isDayBookingProduct: () => isDayBookingProduct,
51
- isDaysBooking: () => isDaysBooking,
52
- isEventBooking: () => isEventBooking,
53
- isHasDayAppointmentProduct: () => isHasDayAppointmentProduct,
54
- isOpenDeletePet: () => isOpenDeletePet,
55
- isTerminalDayBooking: () => isTerminalDayBooking,
56
- updateAppointmentServicePrice: () => updateAppointmentServicePrice,
57
- updateNormalBundlePrice: () => updateNormalBundlePrice,
58
- updateServicePrice: () => updateServicePrice,
59
- updateServices: () => updateServices
60
- });
61
- module.exports = __toCommonJS(utils_exports);
62
- var import_mock = require("../../mock");
63
- var import_utils = require("../../utils");
64
- var import_utils2 = require("@pisell/utils");
65
- var import_dayjs = __toESM(require("dayjs"));
66
- var import_status = require("./status");
67
- var import_serve = require("../service/serve");
68
- var import_locales = __toESM(require("../../locales"));
69
- var import_utils3 = require("./Group/utils");
70
- import_utils2.locales.init(import_locales.default, localStorage.getItem("umi_locale") || "en");
71
- var formatActiveKey = (lists, platform, isEdit) => {
72
- var _a;
73
- if (!(lists == null ? void 0 : lists.length))
74
- return [];
75
- if (lists.length === 1 && isEdit) {
76
- return [];
77
- }
78
- if (platform === "shop") {
79
- return [(_a = lists[lists.length - 1]) == null ? void 0 : _a.key];
80
- }
81
- return lists == null ? void 0 : lists.map((cart) => cart == null ? void 0 : cart.key);
82
- };
83
- var getResourceItem = (id, state) => {
84
- var _a;
85
- if (id === 0) {
86
- return (0, import_mock.getNoResource)();
87
- }
88
- return (_a = state.service.resources) == null ? void 0 : _a.find((d) => d.form_record_id === id);
89
- };
90
- var errorTypes = {
91
- product: import_utils2.locales.getText("pisell2.text.status.service-error-1"),
92
- time: import_utils2.locales.getText("pisell2.text.status.service-error-2"),
93
- maxLimit: import_utils2.locales.getText("pisell2.text.status.service-error-3"),
94
- limit: import_utils2.locales.getText("pisell2.text.status.service-error-3")
95
- };
96
- var getErrorMessage = (service, resourceItem, isDay) => {
97
- const errorList = (0, import_utils.getErrorList)(resourceItem, service, isDay);
98
- let errorMessage = "";
99
- if (!service.id) {
100
- return errorList[0].label;
101
- }
102
- if (errorList.length) {
103
- if (errorList.length > 1) {
104
- errorMessage = `${errorList.length} ${import_utils2.locales.getText(
105
- "pisell2.text.warnings"
106
- )}`;
107
- } else {
108
- errorMessage = (resourceItem == null ? void 0 : resourceItem.labelText) + " " + errorTypes[errorList[0].type];
109
- }
110
- }
111
- return errorMessage;
112
- };
113
- var formatHolderLists = (lists) => {
114
- const isOpenGroup = true;
115
- const _lists = lists == null ? void 0 : lists.map((item) => {
116
- return {
117
- ...item,
118
- id: (item == null ? void 0 : item.id) || (item == null ? void 0 : item.form_record_id),
119
- key: (item == null ? void 0 : item.id) || (item == null ? void 0 : item.form_record_id),
120
- label: import_utils2.locales.getText("pisell2.text.cart.of")(item == null ? void 0 : item.main_field)
121
- };
122
- });
123
- if (isOpenGroup) {
124
- const defaults = [
125
- {
126
- key: 0,
127
- id: 0,
128
- label: import_utils2.locales.getText("pisell2.text.open.items"),
129
- main_field: import_utils2.locales.getText("pisell2.text.open.items")
130
- }
131
- ];
132
- return defaults.concat(_lists);
133
- }
134
- return _lists;
135
- };
136
- var getHolderLists = (state) => {
137
- var _a, _b, _c, _d, _e, _f;
138
- const form_id = ((_d = (_c = (_b = (_a = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a.config) == null ? void 0 : _b.basic) == null ? void 0 : _c.appointment_subject) == null ? void 0 : _d.form_id) || 0;
139
- const petLists = ((_f = (_e = state == null ? void 0 : state.pet) == null ? void 0 : _e.value) == null ? void 0 : _f[form_id]) || [];
140
- const _lists = formatHolderLists(petLists);
141
- return _lists;
142
- };
143
- var getHolderName = (state, id) => {
144
- const holderLists = getHolderLists(state);
145
- if (!holderLists.length || !id)
146
- return "";
147
- const resource = holderLists.find((d) => (d == null ? void 0 : d.id) === id);
148
- return resource == null ? void 0 : resource.main_field;
149
- };
150
- var isBookingProduct = (extension_type, bol) => {
151
- return import_status.appointmentTypes.includes(extension_type) || bol;
152
- };
153
- var isDayBookingProduct = (item, state) => {
154
- return isBookingProduct(item == null ? void 0 : item.extension_type) && state.renderType === "dayBooking";
155
- };
156
- var updateServices = (state, currentItem, type, other) => {
157
- var _a;
158
- let products = ((_a = state == null ? void 0 : state.service) == null ? void 0 : _a.value) || [];
159
- const isGroup = (0, import_utils3.isGroupBooking)(currentItem._id);
160
- if (type === "delete") {
161
- let deleteIds = [];
162
- if (isGroup) {
163
- deleteIds = (0, import_utils3.getProductByGroupId)(currentItem._id, products);
164
- } else {
165
- deleteIds = [currentItem._id];
166
- }
167
- products = products == null ? void 0 : products.filter((item) => !deleteIds.includes(item == null ? void 0 : item._id));
168
- }
169
- if (type === "delete_holders") {
170
- products = products == null ? void 0 : products.filter((item) => {
171
- var _a2;
172
- return ((_a2 = item == null ? void 0 : item._extend) == null ? void 0 : _a2.holder_id) !== other;
173
- });
174
- }
175
- if (type === "update_holders") {
176
- products = products == null ? void 0 : products.map((item) => {
177
- var _a2;
178
- const ids = currentItem.map((d) => d._id);
179
- if (ids == null ? void 0 : ids.includes(item == null ? void 0 : item._id)) {
180
- let _extend = item._extend || {};
181
- if (Array.isArray(other)) {
182
- _extend.holder_id = (_a2 = other.find((other2) => (other2 == null ? void 0 : other2._id) === (item == null ? void 0 : item._id))) == null ? void 0 : _a2.holder_id;
183
- } else {
184
- _extend.holder_id = other;
185
- }
186
- return item;
187
- }
188
- return item;
189
- });
190
- } else {
191
- products = products == null ? void 0 : products.map((item) => {
192
- let updateIds = [];
193
- if (isGroup) {
194
- updateIds = (0, import_utils3.getProductByGroupId)(currentItem._id, products);
195
- } else {
196
- updateIds = [currentItem._id];
197
- }
198
- if (updateIds.includes(item._id)) {
199
- if (type === "like") {
200
- let _extend = item._extend || {};
201
- _extend.like_status = other == null ? void 0 : other.like_status;
202
- } else {
203
- item = {
204
- ...item,
205
- ...other
206
- };
207
- }
208
- return item;
209
- }
210
- return item;
211
- });
212
- }
213
- return products;
214
- };
215
- var formatBundle = (bundle) => {
216
- if (!(bundle == null ? void 0 : bundle.length))
217
- return [];
218
- return bundle.map((item) => {
219
- return {
220
- id: item == null ? void 0 : item.id,
221
- title: item == null ? void 0 : item.title,
222
- num: item == null ? void 0 : item.num,
223
- price: item == null ? void 0 : item.price,
224
- total: item == null ? void 0 : item.price,
225
- price_type: item == null ? void 0 : item.price_type,
226
- bundle_sum_price: item == null ? void 0 : item.bundle_sum_price,
227
- bundle_sum_type: item == null ? void 0 : item.bundle_sum_type,
228
- options: formatOptions(item == null ? void 0 : item.option)
229
- };
230
- });
231
- };
232
- var formatOptions = (options) => {
233
- if (!(options == null ? void 0 : options.length))
234
- return [];
235
- return options.map((item) => {
236
- return {
237
- id: item == null ? void 0 : item.id,
238
- name: item == null ? void 0 : item.name,
239
- num: item == null ? void 0 : item.num,
240
- price: item == null ? void 0 : item.price,
241
- total: item == null ? void 0 : item.price,
242
- origin_total: item == null ? void 0 : item.original_price
243
- };
244
- });
245
- };
246
- var formItems = (items) => {
247
- return items.map((d) => {
248
- return {
249
- ...d,
250
- start_date: d._extend.start_date,
251
- end_date: d._extend.end_date,
252
- num: d == null ? void 0 : d._extend.quantity,
253
- total: d._extend.total,
254
- origin_total: d._extend.origin_total
255
- };
256
- });
257
- };
258
- var formatProducts = (lists, state, isRenderGroup = true) => {
259
- if (!(lists == null ? void 0 : lists.length))
260
- return [];
261
- const normalList = [];
262
- const groupList = [];
263
- const formItem = (item) => {
264
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
265
- const _isDayBookingProduct = isDayBookingProduct(item, state);
266
- const clientTitle = getHolderName(state, (_a = item == null ? void 0 : item._extend) == null ? void 0 : _a.holder_id);
267
- const options = formatOptions((_c = (_b = item == null ? void 0 : item._extend) == null ? void 0 : _b.other) == null ? void 0 : _c.option);
268
- const bundle = formatBundle((_e = (_d = item == null ? void 0 : item._extend) == null ? void 0 : _d.other) == null ? void 0 : _e.bundle);
269
- const isNormalProduct = !import_status.appointmentTypes.includes(item == null ? void 0 : item.extension_type) || (state == null ? void 0 : state.renderType) === "eventBooking";
270
- let resourceItem = {};
271
- let errorMessage = "";
272
- if (_isDayBookingProduct) {
273
- resourceItem = getResourceItem((_f = item == null ? void 0 : item._extend) == null ? void 0 : _f.resource, state);
274
- errorMessage = getErrorMessage(item, resourceItem, isDayBooking(state));
275
- }
276
- return {
277
- id: item == null ? void 0 : item.id,
278
- _id: item == null ? void 0 : item._id,
279
- name: item == null ? void 0 : item.title,
280
- price: (_g = item == null ? void 0 : item._extend) == null ? void 0 : _g.price,
281
- total: (_h = item == null ? void 0 : item._extend) == null ? void 0 : _h.total,
282
- origin_total: (_i = item == null ? void 0 : item._extend) == null ? void 0 : _i.origin_total,
283
- num: item == null ? void 0 : item._extend.quantity,
284
- image: item == null ? void 0 : item.cover,
285
- isShowNote: true,
286
- note: item == null ? void 0 : item.note,
287
- like_status: (_j = item == null ? void 0 : item._extend) == null ? void 0 : _j.like_status,
288
- bundle,
289
- options,
290
- errorMessage,
291
- product_option_string: (_l = (_k = item == null ? void 0 : item._extend) == null ? void 0 : _k.other) == null ? void 0 : _l.product_option_string,
292
- discount_reason: (_m = item == null ? void 0 : item._extend) == null ? void 0 : _m.discount_reason,
293
- resource_id: isNormalProduct ? 0 : (_n = item == null ? void 0 : item._extend) == null ? void 0 : _n.resource,
294
- relation_form_name: isNormalProduct ? "" : (resourceItem == null ? void 0 : resourceItem.labelText) || item.relation_form_name,
295
- holder_title: clientTitle,
296
- start_date: !isNormalProduct ? (_o = item == null ? void 0 : item._extend) == null ? void 0 : _o.start_date : "",
297
- end_date: !isNormalProduct ? (_p = item == null ? void 0 : item._extend) == null ? void 0 : _p.end_date : "",
298
- holder_id: ((_q = item == null ? void 0 : item._extend) == null ? void 0 : _q.holder_id) || 0,
299
- isNormalProduct,
300
- locale: state.locale,
301
- symbol: state.amountSymbol,
302
- items: isEventBooking(state) ? [] : formItems(((_r = item == null ? void 0 : item._extend) == null ? void 0 : _r.items) || []),
303
- _origin: item
304
- };
305
- };
306
- lists.forEach((item) => {
307
- var _a;
308
- if (!((_a = item == null ? void 0 : item._extend) == null ? void 0 : _a.groupId)) {
309
- normalList.push(formItem(item));
310
- } else {
311
- groupList.push(item);
312
- }
313
- });
314
- let groups = groupList.reduce((prev, item) => {
315
- var _a;
316
- const groupId = (_a = item == null ? void 0 : item._extend) == null ? void 0 : _a.groupId;
317
- if (!prev[groupId]) {
318
- prev[groupId] = [];
319
- }
320
- prev[groupId].push(item);
321
- return prev;
322
- }, {});
323
- if (isRenderGroup) {
324
- return Object.values(groups).map((d) => formItem((0, import_utils3.concatBookings)(d))).concat(normalList);
325
- } else {
326
- return lists == null ? void 0 : lists.map((item) => formItem(item));
327
- }
328
- };
329
- var disabledDate = (current, position, currentDate) => {
330
- if (!(0, import_dayjs.default)(currentDate).isValid())
331
- return;
332
- if (position === "start") {
333
- return false;
334
- }
335
- if (position === "end" && current.endOf("day") && currentDate) {
336
- const endDisabled = currentDate.add(8, "months").format("YYYY-MM-DD");
337
- return (0, import_dayjs.default)(endDisabled) < current.startOf("day") || current.startOf("day") <= currentDate;
338
- }
339
- return current && current <= currentDate;
340
- };
341
- var isDayBooking = (state) => {
342
- return (state == null ? void 0 : state.renderType) === "dayBooking" || (state == null ? void 0 : state.renderType) === "eventBooking";
343
- };
344
- var isDaysBooking = (state) => {
345
- return (state == null ? void 0 : state.renderType) === "dayBooking";
346
- };
347
- var isEventBooking = (state) => {
348
- return state.renderType === "eventBooking";
349
- };
350
- var isAppointmentProduct = (item) => {
351
- return import_status.appointmentTypes.includes(item.extension_type);
352
- };
353
- var isTerminalDayBooking = (state) => {
354
- return state.isTerminalDayBookingPage;
355
- };
356
- var formatDayDate = (_extend) => {
357
- let startDate = (0, import_dayjs.default)(_extend == null ? void 0 : _extend.start_date).startOf("day");
358
- let endDate = (0, import_dayjs.default)(_extend == null ? void 0 : _extend.end_date).startOf("day");
359
- return {
360
- ..._extend,
361
- start_date: startDate,
362
- end_date: endDate
363
- };
364
- };
365
- var formatDayTime = ({ startDate, endDate }) => {
366
- const shopOpeningTime = localStorage.getItem("shopOpeningHours") || "00:00";
367
- let start_date = (0, import_dayjs.default)(startDate).format("YYYY-MM-DD");
368
- let end_date = (0, import_dayjs.default)(endDate).format("YYYY-MM-DD");
369
- const result = {
370
- startDateTime: (0, import_dayjs.default)(`${start_date}T${shopOpeningTime}:00`),
371
- // 结束日期根据营业日时间减去一分钟
372
- endDateTime: (0, import_dayjs.default)(`${end_date}T${shopOpeningTime}:00`).subtract(1, "minute")
373
- };
374
- return result;
375
- };
376
- var formatDateTime = (start_date, end_date) => {
377
- const _openingTime = (0, import_status.openingTime)();
378
- const startDate = `${start_date} ${_openingTime}`;
379
- let endDate = `${end_date} ${_openingTime}`;
380
- const date = {
381
- value: (0, import_dayjs.default)(startDate),
382
- end_date: (0, import_dayjs.default)(endDate).subtract(1, "minute")
383
- };
384
- return date;
385
- };
386
- var initDate = () => {
387
- const startDate = (0, import_dayjs.default)().format("YYYY-MM-DD");
388
- let endDate = (0, import_dayjs.default)().add(1, "days").format("YYYY-MM-DD");
389
- const date = formatDateTime(startDate, endDate);
390
- return date;
391
- };
392
- var isHasDayAppointmentProduct = (state) => {
393
- var _a, _b, _c, _d, _e, _f, _g;
394
- const form_id = ((_d = (_c = (_b = (_a = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a.config) == null ? void 0 : _b.basic) == null ? void 0 : _c.appointment_subject) == null ? void 0 : _d.form_id) || 0;
395
- const services = ((_e = state.service) == null ? void 0 : _e.value) || [];
396
- const pets = ((_g = (_f = state.pet) == null ? void 0 : _f.value) == null ? void 0 : _g[form_id]) || [];
397
- if (!pets.length)
398
- return true;
399
- const checkType = (extension_type) => {
400
- if (isEventBooking(state)) {
401
- return true;
402
- }
403
- return import_status.appointmentTypes.includes(extension_type);
404
- };
405
- const appointmentServices = services.filter((d) => checkType(d.extension_type));
406
- if (!appointmentServices.length)
407
- return true;
408
- let _pets = pets == null ? void 0 : pets.map((d) => {
409
- return {
410
- ...d,
411
- // 如果该购物车中没选择任何商品,则不需要验证,所以直接用1来填充
412
- // services: !holderProducts?.length ? [1] : holderProducts?.filter((d: any) => appointmentTypes.includes(d.extension_type))
413
- services: services.filter((item) => {
414
- var _a2;
415
- return ((_a2 = item._extend) == null ? void 0 : _a2.holder_id) == d.form_record_id && checkType(item.extension_type);
416
- })
417
- };
418
- });
419
- _pets = _pets.filter((d) => !d.services.length);
420
- return _pets.length > 0;
421
- };
422
- var getDayProducts = (holderId2, lists, isTerminal) => {
423
- let _lists = lists || [];
424
- if (!holderId2 && !isTerminal) {
425
- _lists = _lists.filter((item) => !import_status.appointmentTypes.includes(item == null ? void 0 : item.extension_type));
426
- } else {
427
- _lists = _lists.filter((item) => {
428
- var _a;
429
- return !import_status.appointmentTypes.includes(item == null ? void 0 : item.extension_type) || import_status.appointmentTypes.includes(item == null ? void 0 : item.extension_type) && ((_a = item.duration) == null ? void 0 : _a.type) === "days";
430
- });
431
- }
432
- return _lists;
433
- };
434
- var getPets = (state) => {
435
- var _a, _b, _c, _d, _e, _f;
436
- const form_id = ((_d = (_c = (_b = (_a = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a.config) == null ? void 0 : _b.basic) == null ? void 0 : _c.appointment_subject) == null ? void 0 : _d.form_id) || 0;
437
- const pets = ((_f = (_e = state == null ? void 0 : state.pet) == null ? void 0 : _e.value) == null ? void 0 : _f[form_id]) || [];
438
- return pets;
439
- };
440
- var getAppointmentService = (state) => {
441
- var _a;
442
- const services = ((_a = state.service) == null ? void 0 : _a.value) || [];
443
- let lists = services.filter((item) => import_status.appointmentTypes.includes(item.extension_type));
444
- return lists;
445
- };
446
- var isOpenDeletePet = (state, newVal) => {
447
- var _a, _b, _c, _d, _e, _f;
448
- const form_id = ((_d = (_c = (_b = (_a = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a.config) == null ? void 0 : _b.basic) == null ? void 0 : _c.appointment_subject) == null ? void 0 : _d.form_id) || 0;
449
- const oldPets = ((_f = (_e = state == null ? void 0 : state.pet) == null ? void 0 : _e.value) == null ? void 0 : _f[form_id]) || [];
450
- const newPets = (newVal == null ? void 0 : newVal[form_id]) || [];
451
- const deletePets = oldPets.filter((item) => !newPets.some((newItem) => newItem.form_record_id === item.form_record_id));
452
- const servicePets = deletePets.map((item) => {
453
- var _a2, _b2;
454
- return {
455
- ...item,
456
- services: (_b2 = (_a2 = state.service) == null ? void 0 : _a2.value) == null ? void 0 : _b2.filter((d) => {
457
- var _a3;
458
- return ((_a3 = d._extend) == null ? void 0 : _a3.holder_id) == item.form_record_id;
459
- })
460
- };
461
- });
462
- const lists = servicePets.filter((item) => {
463
- var _a2;
464
- return ((_a2 = item.services) == null ? void 0 : _a2.length) > 0;
465
- });
466
- return {
467
- ids: lists.map((item) => item.form_record_id),
468
- lists
469
- };
470
- };
471
- var holderId = (state) => {
472
- var _a;
473
- return Number(((_a = state == null ? void 0 : state.activeCartId) == null ? void 0 : _a[0]) || 0);
474
- };
475
- function calculateTotalPrice(data) {
476
- const _price = data == null ? void 0 : data.reduce(
477
- (total, item) => total + ((item == null ? void 0 : item.price) || (item == null ? void 0 : item.add_price)) * item.num,
478
- 0
479
- );
480
- return parseFloat(_price);
481
- }
482
- function updateSinglePrice(currentValue, single) {
483
- const _single = [];
484
- for (let index = 0; index < currentValue.length; index++) {
485
- const item = currentValue[index];
486
- const currentIndex = single.findIndex(
487
- (_single2) => _single2.id === item.id
488
- );
489
- if (currentIndex !== -1) {
490
- item.add_price = single[currentIndex].add_price;
491
- item.name = single[currentIndex].name;
492
- _single.push(item);
493
- }
494
- }
495
- return _single;
496
- }
497
- function updateBundlePrice(currentValue, [bundle, single]) {
498
- var _a;
499
- const _bundle = [];
500
- for (let index = 0; index < currentValue.length; index++) {
501
- const item = currentValue[index];
502
- const currentIndex = bundle.findIndex(
503
- (_bundle2) => _bundle2.id === item.id
504
- );
505
- if (currentIndex !== -1 && bundle[currentIndex]) {
506
- item.title = bundle[currentIndex].title;
507
- item.price_type = bundle[currentIndex].price_type;
508
- item._price = bundle[currentIndex].price;
509
- const bundle_sum_price = parseFloat(
510
- bundle[currentIndex].price_type === "markdown" ? bundle[currentIndex].price * -1 : bundle[currentIndex].price
511
- ).toFixed(2);
512
- item.price = bundle_sum_price;
513
- item.bundle_sum_price = bundle_sum_price;
514
- if ((_a = item == null ? void 0 : item.option) == null ? void 0 : _a.length) {
515
- const _option = JSON.parse(JSON.stringify(item.option));
516
- item.option = updateSinglePrice(_option, single);
517
- let optionPrice = 0;
518
- optionPrice = calculateTotalPrice(item.option);
519
- const bundle_sum_price2 = (parseFloat(
520
- bundle[currentIndex].price_type === "markdown" ? bundle[currentIndex].price * -1 : bundle[currentIndex].price
521
- ) + optionPrice).toFixed(2);
522
- item.price = bundle_sum_price2;
523
- item.bundle_sum_price = bundle_sum_price2;
524
- }
525
- _bundle.push(item);
526
- }
527
- }
528
- return _bundle;
529
- }
530
- function flatData(newPackageData) {
531
- var _a, _b, _c;
532
- let bundle = [];
533
- let single = [];
534
- for (const group of newPackageData) {
535
- if ((_a = group == null ? void 0 : group.bundle_item) == null ? void 0 : _a.length) {
536
- for (const item of group.bundle_item) {
537
- bundle.push(item);
538
- }
539
- }
540
- }
541
- for (const bundleItem of bundle) {
542
- if ((_b = bundleItem == null ? void 0 : bundleItem.option_group) == null ? void 0 : _b.length) {
543
- for (const group of bundleItem.option_group) {
544
- if ((_c = group == null ? void 0 : group.option_item) == null ? void 0 : _c.length) {
545
- for (const item of group.option_item) {
546
- single.push(item);
547
- }
548
- }
549
- }
550
- }
551
- }
552
- return [bundle, single];
553
- }
554
- function updateNormalBundlePrice(currentValue, newBundleData) {
555
- const _currentValue = JSON.parse(JSON.stringify(currentValue));
556
- const _flatData = flatData(newBundleData);
557
- const newValue = updateBundlePrice(_currentValue, _flatData);
558
- return newValue;
559
- }
560
- var normalServicePrice = async (ids, state) => {
561
- var _a, _b, _c, _d;
562
- const services = ((_a = state.service) == null ? void 0 : _a.value) || [];
563
- const customerId = ((_c = (_b = state == null ? void 0 : state.client) == null ? void 0 : _b.value) == null ? void 0 : _c.id) || 0;
564
- let data = await state.apis.getServices({
565
- skip: 1,
566
- num: 500,
567
- ids,
568
- customer_id: customerId,
569
- open_quotation: 1,
570
- open_bundle: 1,
571
- with: ["bundleGroup.bundleItem", "optionGroup.optionItem"],
572
- _config: { abort: true }
573
- });
574
- if (!((_d = data == null ? void 0 : data.list) == null ? void 0 : _d.length))
575
- return;
576
- const _lists = services.map((item) => {
577
- var _a2, _b2, _c2, _d2;
578
- let obj = { ...item };
579
- if (!import_status.appointmentTypes.includes(obj.extension_type)) {
580
- const product = data.list.find((p) => p.id === (item == null ? void 0 : item.product_id));
581
- let _extend = (obj == null ? void 0 : obj._extend) || {};
582
- const other = (_extend == null ? void 0 : _extend.other) || {};
583
- if (product) {
584
- if (((_a2 = product == null ? void 0 : product.variant) == null ? void 0 : _a2.length) && (other == null ? void 0 : other.product_variant_id)) {
585
- const _variant = (_b2 = product == null ? void 0 : product.variant) == null ? void 0 : _b2.find((v) => v.id === (other == null ? void 0 : other.product_variant_id));
586
- obj._extend.price = Number(_variant == null ? void 0 : _variant.price);
587
- obj._extend.other.price = Number(_variant == null ? void 0 : _variant.price);
588
- } else {
589
- obj._extend.price = Number(product == null ? void 0 : product.price);
590
- }
591
- if (((_c2 = other == null ? void 0 : other.bundle) == null ? void 0 : _c2.length) && ((_d2 = product == null ? void 0 : product.bundle_group) == null ? void 0 : _d2.length)) {
592
- let _bundle = updateNormalBundlePrice(other.bundle, product == null ? void 0 : product.bundle_group);
593
- obj._extend.other = {
594
- ...other,
595
- bundle: _bundle
596
- };
597
- }
598
- obj._extend.total = (0, import_utils.getProductTotalPrice)(obj);
599
- obj._extend.origin_total = (0, import_utils.getProductTotalPrice)(obj);
600
- }
601
- }
602
- return obj;
603
- });
604
- return _lists;
605
- };
606
- var updateAppointmentServicePrice = async (state, { start_date, end_date, product_id }) => {
607
- var _a, _b, _c, _d, _e, _f, _g, _h;
608
- const defaultReturn = {
609
- multiDayPrices: [],
610
- price: Number((_c = (_b = (_a = state == null ? void 0 : state.service) == null ? void 0 : _a.cacheItem) == null ? void 0 : _b._extend) == null ? void 0 : _c.price) || 0
611
- };
612
- try {
613
- const format = "YYYY-MM-DD";
614
- const customer_id = ((_e = (_d = state == null ? void 0 : state.client) == null ? void 0 : _d.value) == null ? void 0 : _e.id) || 1;
615
- const _product_id = product_id || ((_f = state.service.cacheItem) == null ? void 0 : _f.product_id) || 0;
616
- let multi_day_price = null;
617
- if (!product_id) {
618
- console.log("updateAppointmentServicePrice", product_id);
619
- return defaultReturn;
620
- }
621
- const startDate = (0, import_dayjs.default)(start_date).format(format);
622
- const endDate = (0, import_dayjs.default)(end_date).subtract(1, "days").format(format);
623
- const params = {
624
- customer_id,
625
- multi_day: { start: startDate, end: endDate }
626
- };
627
- const res = await (0, import_serve.postMultiDay)(_product_id, params);
628
- const _prices = ((_g = res == null ? void 0 : res.data) == null ? void 0 : _g.multi_day_price) || [];
629
- multi_day_price = _prices == null ? void 0 : _prices.map((p) => {
630
- var _a2, _b2;
631
- const startDate2 = (0, import_dayjs.default)((_a2 = p == null ? void 0 : p.multi_day) == null ? void 0 : _a2.start);
632
- const endDate2 = (0, import_dayjs.default)((_b2 = p == null ? void 0 : p.multi_day) == null ? void 0 : _b2.end).add(1, "day");
633
- let duration = (endDate2 == null ? void 0 : endDate2.diff(startDate2, "day")) || 1;
634
- return {
635
- total: Number(p == null ? void 0 : p.price),
636
- origin_total: Number(p == null ? void 0 : p.price),
637
- num: duration,
638
- quotation_id: (p == null ? void 0 : p.quotation_id) || 0,
639
- start_date: startDate2 == null ? void 0 : startDate2.format(format),
640
- end_date: endDate2 == null ? void 0 : endDate2.format(format)
641
- };
642
- });
643
- return {
644
- multiDayPrices: multi_day_price,
645
- price: Number((_h = res == null ? void 0 : res.data) == null ? void 0 : _h.price) || 0
646
- };
647
- } catch (error) {
648
- console.log("updateAppointmentServicePrice", error);
649
- }
650
- return defaultReturn;
651
- };
652
- var updateServicePrice = (state) => {
653
- var _a;
654
- let services = ((_a = state.service) == null ? void 0 : _a.value) || [];
655
- let normalServices = services == null ? void 0 : services.filter(
656
- (item) => isEventBooking(state) ? true : !import_status.appointmentTypes.includes(item.extension_type)
657
- );
658
- let newNormalIds = normalServices == null ? void 0 : normalServices.map((item) => (item == null ? void 0 : item.product_id) || (item == null ? void 0 : item.id));
659
- newNormalIds = [...new Set(newNormalIds)];
660
- if (newNormalIds == null ? void 0 : newNormalIds.length) {
661
- return normalServicePrice(newNormalIds, state);
662
- }
663
- return [];
664
- };
665
- // Annotate the CommonJS export names for ESM import in node:
666
- 0 && (module.exports = {
667
- disabledDate,
668
- formItems,
669
- formatActiveKey,
670
- formatDateTime,
671
- formatDayDate,
672
- formatDayTime,
673
- formatHolderLists,
674
- formatProducts,
675
- getAppointmentService,
676
- getDayProducts,
677
- getErrorMessage,
678
- getPets,
679
- getResourceItem,
680
- holderId,
681
- initDate,
682
- isAppointmentProduct,
683
- isBookingProduct,
684
- isDayBooking,
685
- isDayBookingProduct,
686
- isDaysBooking,
687
- isEventBooking,
688
- isHasDayAppointmentProduct,
689
- isOpenDeletePet,
690
- isTerminalDayBooking,
691
- updateAppointmentServicePrice,
692
- updateNormalBundlePrice,
693
- updateServicePrice,
694
- updateServices
695
- });