@pisell/private-materials 6.0.25 → 6.1.1

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 (1107) 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 +148 -144
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +9 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/components/Sales/Cart/index.js +26 -13
  12. package/es/components/Sales/Cart/types.d.ts +12 -0
  13. package/es/components/Sales/Cart/utils.d.ts +23 -0
  14. package/es/components/Sales/Cart/utils.js +161 -0
  15. package/es/components/Sales/Checkout/utils.d.ts +9 -1
  16. package/es/components/Sales/Checkout/utils.js +25 -3
  17. package/es/components/Sales/Customer/index.js +3 -1
  18. package/es/components/Sales/Event/Detail.d.ts +2 -0
  19. package/es/components/Sales/Event/Detail.js +60 -13
  20. package/es/components/Sales/Event/index.js +7 -7
  21. package/es/components/Sales/Event/serve.d.ts +13 -0
  22. package/es/components/Sales/Event/serve.js +26 -1
  23. package/es/components/Sales/Init/index.d.ts +1 -0
  24. package/es/components/Sales/Init/index.js +3 -2
  25. package/es/components/Sales/Step/index.d.ts +2 -0
  26. package/es/components/Sales/Step/index.js +13 -4
  27. package/es/components/Sales/Summary/utils.d.ts +1 -1
  28. package/es/components/Sales/Summary/utils.js +1 -0
  29. package/es/components/appointmentBooking/assets/alert-circle.png +0 -0
  30. package/es/components/appointmentBooking/assets/calendar-heart.svg +5 -0
  31. package/es/components/appointmentBooking/assets/compass.svg +13 -0
  32. package/es/components/appointmentBooking/assets/guests.svg +1 -0
  33. package/es/components/appointmentBooking/assets/image.svg +5 -0
  34. package/es/components/appointmentBooking/assets/phone.svg +5 -0
  35. package/es/components/appointmentBooking/assets/resource.svg +1 -0
  36. package/es/components/appointmentBooking/assets/shopping-cart.svg +10 -0
  37. package/es/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +7 -0
  38. package/es/components/appointmentBooking/components/Cart/ContinueButton/index.js +152 -0
  39. package/es/components/appointmentBooking/components/Cart/ContinueButton/index.less +0 -0
  40. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +3 -0
  41. package/es/components/appointmentBooking/components/Cart/Item/Total.js +45 -0
  42. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
  43. package/es/components/appointmentBooking/components/Cart/Item/index.js +261 -0
  44. package/es/components/appointmentBooking/components/Cart/Item/index.less +108 -0
  45. package/es/components/appointmentBooking/components/Cart/index.d.ts +3 -0
  46. package/es/components/appointmentBooking/components/Cart/index.js +29 -0
  47. package/es/components/appointmentBooking/components/Cart/index.less +2 -0
  48. package/es/components/appointmentBooking/components/Cart/utils.d.ts +56 -0
  49. package/es/components/appointmentBooking/components/Cart/utils.js +170 -0
  50. package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +4 -0
  51. package/es/components/appointmentBooking/components/ConfirmInformation/index.js +277 -0
  52. package/es/components/appointmentBooking/components/ConfirmInformation/index.less +35 -0
  53. package/es/components/appointmentBooking/components/ConfirmInformation/utils.d.ts +12 -0
  54. package/es/components/appointmentBooking/components/ConfirmInformation/utils.js +17 -0
  55. package/es/components/appointmentBooking/components/Content/index.d.ts +3 -0
  56. package/es/components/appointmentBooking/components/Content/index.js +243 -0
  57. package/es/components/appointmentBooking/components/Content/index.less +113 -0
  58. package/es/components/appointmentBooking/components/Date/index.d.ts +4 -0
  59. package/es/components/appointmentBooking/components/Date/index.js +403 -0
  60. package/es/components/appointmentBooking/components/Date/index.less +142 -0
  61. package/es/components/appointmentBooking/components/Date/state.d.ts +63 -0
  62. package/es/components/appointmentBooking/components/Date/state.js +223 -0
  63. package/es/components/appointmentBooking/components/Deposit/index.d.ts +3 -0
  64. package/es/components/appointmentBooking/components/Deposit/index.js +30 -0
  65. package/es/components/appointmentBooking/components/Deposit/index.less +17 -0
  66. package/es/components/appointmentBooking/components/Footer/index.d.ts +3 -0
  67. package/es/components/appointmentBooking/components/Footer/index.js +63 -0
  68. package/es/components/appointmentBooking/components/Footer/index.less +64 -0
  69. package/es/components/appointmentBooking/components/Form/index.d.ts +4 -0
  70. package/es/components/appointmentBooking/components/Form/index.js +157 -0
  71. package/es/components/appointmentBooking/components/Form/index.less +3 -0
  72. package/es/components/appointmentBooking/components/Form/utils.d.ts +8 -0
  73. package/es/components/appointmentBooking/components/Form/utils.js +36 -0
  74. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +3 -0
  75. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.js +50 -0
  76. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.less +28 -0
  77. package/es/components/appointmentBooking/components/Guest/index.d.ts +4 -0
  78. package/es/components/appointmentBooking/components/Guest/index.js +185 -0
  79. package/es/components/appointmentBooking/components/Guest/index.less +92 -0
  80. package/es/components/appointmentBooking/components/Header/index.d.ts +3 -0
  81. package/es/components/appointmentBooking/components/Header/index.js +199 -0
  82. package/es/components/appointmentBooking/components/Header/index.less +0 -0
  83. package/es/components/appointmentBooking/components/Resource/index.d.ts +7 -0
  84. package/es/components/appointmentBooking/components/Resource/index.js +285 -0
  85. package/es/components/appointmentBooking/components/Resource/index.less +10 -0
  86. package/es/components/appointmentBooking/components/Resource/utils.d.ts +5 -0
  87. package/es/components/appointmentBooking/components/Resource/utils.js +16 -0
  88. package/es/components/appointmentBooking/components/Services/index.d.ts +4 -0
  89. package/es/components/appointmentBooking/components/Services/index.js +257 -0
  90. package/es/components/appointmentBooking/components/Services/index.less +3 -0
  91. package/es/components/appointmentBooking/components/TimeSlicing/index.d.ts +4 -0
  92. package/es/components/appointmentBooking/components/TimeSlicing/index.js +118 -0
  93. package/es/components/appointmentBooking/components/TimeSlicing/index.less +33 -0
  94. package/es/components/appointmentBooking/components/Voucher/index.d.ts +4 -0
  95. package/es/components/appointmentBooking/components/Voucher/index.js +267 -0
  96. package/es/components/appointmentBooking/components/Voucher/index.less +116 -0
  97. package/es/components/appointmentBooking/context.d.ts +35 -0
  98. package/es/components/appointmentBooking/context.js +241 -0
  99. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  100. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +134 -0
  101. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.less +18 -0
  102. package/es/components/appointmentBooking/deposit/index.d.ts +3 -0
  103. package/es/components/appointmentBooking/deposit/index.js +101 -0
  104. package/es/components/appointmentBooking/deposit/index.less +57 -0
  105. package/es/components/appointmentBooking/hooks.d.ts +106 -0
  106. package/es/components/appointmentBooking/hooks.js +976 -0
  107. package/es/components/appointmentBooking/index.d.ts +3 -0
  108. package/es/components/appointmentBooking/index.js +48 -0
  109. package/es/components/appointmentBooking/index.less +23 -0
  110. package/es/components/appointmentBooking/locales.d.ts +360 -0
  111. package/es/components/appointmentBooking/locales.js +413 -0
  112. package/es/components/appointmentBooking/mock.d.ts +627 -0
  113. package/es/components/appointmentBooking/mock.js +1172 -0
  114. package/es/components/appointmentBooking/status.d.ts +21 -0
  115. package/es/components/appointmentBooking/status.js +51 -0
  116. package/es/components/appointmentBooking/type.d.ts +17 -0
  117. package/es/components/appointmentBooking/type.js +1 -0
  118. package/es/components/appointmentBooking/utils.d.ts +203 -0
  119. package/es/components/appointmentBooking/utils.js +768 -0
  120. package/es/components/booking/addons/index.js +56 -35
  121. package/es/components/booking/addons/model.js +5 -0
  122. package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  123. package/es/components/booking/components/TabProduct/productItem/index.js +14 -2
  124. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  125. package/es/components/booking/components/TabProduct/selectProductItem/index.js +3 -1
  126. package/es/components/booking/components/TabProduct/selectProductItem/index.less +6 -0
  127. package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
  128. package/es/components/booking/components/browserSelect/index.js +1 -1
  129. package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
  130. package/es/components/booking/components/customSelect/index.js +2 -0
  131. package/es/components/booking/components/drawer/index.js +4 -2
  132. package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
  133. package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  134. package/es/components/booking/components/footer/amount.d.ts +1 -0
  135. package/es/components/booking/components/footer/amount.js +5 -4
  136. package/es/components/booking/components/footer/index.d.ts +0 -1
  137. package/es/components/booking/components/footer/index.js +227 -123
  138. package/es/components/booking/components/footer/index.less +6 -1
  139. package/es/components/booking/components/footer/utils.d.ts +21 -0
  140. package/es/components/booking/components/footer/utils.js +184 -62
  141. package/es/components/booking/components/voucher/index.d.ts +3 -0
  142. package/es/components/booking/components/voucher/index.js +319 -0
  143. package/es/components/booking/components/voucher/index.less +87 -0
  144. package/es/components/booking/components/voucher/utils.d.ts +4 -0
  145. package/es/components/booking/components/voucher/utils.js +15 -0
  146. package/es/components/booking/deposit/DepositItem/index.js +1 -0
  147. package/es/components/booking/deposit/index.d.ts +0 -1
  148. package/es/components/booking/deposit/index.js +5 -3
  149. package/es/components/booking/forms/footer.d.ts +6 -0
  150. package/es/components/booking/forms/footer.js +88 -0
  151. package/es/components/booking/forms/forms.d.ts +4 -0
  152. package/es/components/booking/forms/forms.js +15 -3
  153. package/es/components/booking/forms/index.d.ts +1 -1
  154. package/es/components/booking/forms/index.js +25 -20
  155. package/es/components/booking/forms/index.less +7 -0
  156. package/es/components/booking/forms/model.js +5 -5
  157. package/es/components/booking/forms/sendModal/index.d.ts +27 -0
  158. package/es/components/booking/forms/sendModal/index.js +82 -0
  159. package/es/components/booking/forms/sendModal/index.less +9 -0
  160. package/es/components/booking/forms/sendModal/useSendModal.d.ts +9 -0
  161. package/es/components/booking/forms/sendModal/useSendModal.js +79 -0
  162. package/es/components/booking/forms/serve.d.ts +9 -0
  163. package/es/components/booking/forms/serve.js +20 -0
  164. package/es/components/booking/forms/single/index.d.ts +1 -2
  165. package/es/components/booking/forms/single/index.js +83 -27
  166. package/es/components/booking/hooks/useCreateBookingPageHeader.js +3 -0
  167. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  168. package/es/components/booking/hooks/useIsBooking4Shop.js +10 -0
  169. package/es/components/booking/hooks/useQuotation.d.ts +5 -0
  170. package/es/components/booking/hooks/useQuotation.js +266 -0
  171. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  172. package/es/components/booking/info/addServiceVariant/index.js +2 -2
  173. package/es/components/booking/info/client/index.js +41 -9
  174. package/es/components/booking/info/client/index.less +39 -0
  175. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  176. package/es/components/booking/info/clientVariant/hooks/useClientFn.js +10 -1
  177. package/es/components/booking/info/clientVariant/utils.d.ts +1 -0
  178. package/es/components/booking/info/clientVariant/utils.js +6 -0
  179. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +17 -2
  180. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.less +17 -0
  181. package/es/components/booking/info/clientVariant/vertical/index.js +33 -7
  182. package/es/components/booking/info/clientVariant/vertical/index.less +18 -0
  183. package/es/components/booking/info/date/index.d.ts +0 -1
  184. package/es/components/booking/info/header/index.d.ts +0 -1
  185. package/es/components/booking/info/hooks/useAddHolder.d.ts +9 -0
  186. package/es/components/booking/info/hooks/useAddHolder.js +171 -0
  187. package/es/components/booking/info/hooks/useGetHolderList.d.ts +2 -0
  188. package/es/components/booking/info/hooks/useGetHolderList.js +48 -0
  189. package/es/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
  190. package/es/components/booking/info/hooks/useHolderConfig.js +40 -0
  191. package/es/components/booking/info/hooks/useInfoHolder.d.ts +10 -0
  192. package/es/components/booking/info/hooks/useInfoHolder.js +62 -0
  193. package/es/components/booking/info/index.d.ts +0 -1
  194. package/es/components/booking/info/index.js +16 -2
  195. package/es/components/booking/info/main.js +1 -1
  196. package/es/components/booking/info/notes/index.d.ts +0 -1
  197. package/es/components/booking/info/pet/index.js +107 -25
  198. package/es/components/booking/info/pet/serve.d.ts +1 -0
  199. package/es/components/booking/info/pet/serve.js +27 -0
  200. package/es/components/booking/info/service/Lists.d.ts +2 -0
  201. package/es/components/booking/info/service/Lists.js +121 -0
  202. package/es/components/booking/info/service/actions/index.d.ts +0 -1
  203. package/es/components/booking/info/service/addService/index.js +35 -33
  204. package/es/components/booking/info/service/editService/index.d.ts +1 -1
  205. package/es/components/booking/info/service/editService/index.js +115 -61
  206. package/es/components/booking/info/service/index.js +8 -5
  207. package/es/components/booking/info/service/like/index.js +1 -1
  208. package/es/components/booking/info/service/serve.d.ts +9 -0
  209. package/es/components/booking/info/service/serve.js +21 -0
  210. package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
  211. package/es/components/booking/info/service/serviceList/index.js +1 -0
  212. package/es/components/booking/info/service/serviceManager/index.js +12 -7
  213. package/es/components/booking/info/service2/Group/utils.js +3 -2
  214. package/es/components/booking/info/service2/hooks/useSelectPet.js +13 -5
  215. package/es/components/booking/info/service2/index.js +6 -3
  216. package/es/components/booking/info/service2/utils.d.ts +14 -7
  217. package/es/components/booking/info/service2/utils.js +401 -93
  218. package/es/components/booking/info/utils.d.ts +6 -0
  219. package/es/components/booking/info/utils.js +62 -1
  220. package/es/components/booking/info2/index.js +19 -11
  221. package/es/components/booking/info2/serve.d.ts +2 -2
  222. package/es/components/booking/info2/serve.js +9 -12
  223. package/es/components/booking/info2/service/actions/index.d.ts +0 -1
  224. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  225. package/es/components/booking/info2/service/addService/index.js +81 -37
  226. package/es/components/booking/info2/service/addService/utils.d.ts +20 -3
  227. package/es/components/booking/info2/service/addService/utils.js +154 -71
  228. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  229. package/es/components/booking/info2/service/addTimeModal/index.js +4 -5
  230. package/es/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.js +2 -4
  231. package/es/components/booking/info2/service/editService/Resources/index.js +26 -7
  232. package/es/components/booking/info2/service/editService/index.js +134 -35
  233. package/es/components/booking/info2/service/editService/utils.d.ts +4 -2
  234. package/es/components/booking/info2/service/editService/utils.js +18 -0
  235. package/es/components/booking/info2/service/index.js +22 -38
  236. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
  237. package/es/components/booking/info2/utils.d.ts +4 -0
  238. package/es/components/booking/info2/utils.js +45 -0
  239. package/es/components/booking/info2/utilsByBooking.d.ts +2 -1
  240. package/es/components/booking/info2/utilsByBooking.js +45 -15
  241. package/es/components/booking/locales.d.ts +87 -0
  242. package/es/components/booking/locales.js +108 -3
  243. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  244. package/es/components/booking/materiels/duration/index.d.ts +0 -1
  245. package/es/components/booking/materiels/holder/index.js +2 -2
  246. package/es/components/booking/materiels/startTime/index.js +1 -1
  247. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  248. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  249. package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
  250. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  251. package/es/components/booking/notes/addNote/index.d.ts +0 -1
  252. package/es/components/booking/notes/addNote/index.js +1 -1
  253. package/es/components/booking/notes/addNote/index.less +3 -0
  254. package/es/components/booking/notes/model.js +5 -5
  255. package/es/components/booking/payments/index.js +2 -1
  256. package/es/components/booking/payments/model.js +5 -5
  257. package/es/components/booking/utils.d.ts +5 -2
  258. package/es/components/booking/utils.js +66 -21
  259. package/es/components/eftpos/index.d.ts +0 -1
  260. package/es/components/eftpos/pos.d.ts +0 -1
  261. package/es/components/eftposPay/amount.d.ts +1 -2
  262. package/es/components/eftposPay/app.d.ts +0 -1
  263. package/es/components/eftposPay/component/fail/network.d.ts +0 -1
  264. package/es/components/eftposPay/component/manual/index.d.ts +0 -1
  265. package/es/components/eftposPay/component/signature/index.d.ts +0 -1
  266. package/es/components/eftposPay/device.d.ts +1 -2
  267. package/es/components/eftposPay/hooks.d.ts +2 -2
  268. package/es/components/eftposPay/payo/config.js +14 -3
  269. package/es/components/eftposPay/payo/hooks.js +12 -1
  270. package/es/components/eftposPay/store/index.d.ts +6 -6
  271. package/es/components/eftposPay/tip.d.ts +0 -1
  272. package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  273. package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
  274. package/es/components/eftposPay/windcave/windcave.js +12 -2
  275. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +292 -49
  276. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  277. package/es/components/eventBooking/components/Provider/Event/index.js +20 -4
  278. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  279. package/es/components/eventBooking/components/Provider/Resource/index.js +26 -5
  280. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  281. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -1
  282. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -1
  283. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +2 -2
  284. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +1 -1
  285. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +3 -1
  286. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.js +30 -8
  287. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  288. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  289. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.js +6 -3
  290. package/es/components/eventBooking/components/bookingDetailModal/index.js +70 -13
  291. package/es/components/eventBooking/components/progressBar/index.js +17 -1
  292. package/es/components/eventBooking/components/resourceDisplay/index.js +2 -2
  293. package/es/components/eventBooking/components/resourceDisplay/index.less +1 -0
  294. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  295. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  296. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.js +7 -2
  297. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +3 -0
  298. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.js +60 -0
  299. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.less +63 -0
  300. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.d.ts +9 -0
  301. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.js +59 -0
  302. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.less +7 -0
  303. package/es/components/eventBooking/components/scheduleCalendar/index.d.ts +1 -0
  304. package/es/components/eventBooking/components/scheduleCalendar/index.js +30 -21
  305. package/es/components/eventBooking/components/scheduleCalendar/index.less +2 -0
  306. package/es/components/eventBooking/components/timeResourceSelector/index.less +0 -1
  307. package/es/components/eventBooking/index.d.ts +0 -1
  308. package/es/components/eventBooking/index.js +2 -2
  309. package/es/components/eventBooking/locales.d.ts +6 -0
  310. package/es/components/eventBooking/locales.js +172 -166
  311. package/es/components/eventBooking/utils.js +8 -8
  312. package/es/components/index.d.ts +2 -1
  313. package/es/components/index.js +2 -1
  314. package/es/components/listComponent/index.js +5 -5
  315. package/es/components/login/index.d.ts +0 -1
  316. package/es/components/pay/toB/components/Cache/index.d.ts +10 -0
  317. package/es/components/pay/toB/components/Cache/index.js +94 -0
  318. package/es/components/pay/toB/components/Cache/index.less +41 -0
  319. package/es/components/pay/toB/components/Card/index.d.ts +7 -0
  320. package/es/components/pay/toB/components/Card/index.js +32 -0
  321. package/es/components/pay/toB/components/Card/index.less +26 -0
  322. package/es/components/pay/toB/components/CardGroup/index.d.ts +7 -0
  323. package/es/components/pay/toB/components/CardGroup/index.js +22 -0
  324. package/es/components/pay/toB/components/CardGroup/index.less +18 -0
  325. package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +6 -0
  326. package/es/components/pay/toB/components/ConfirmedPayment/index.js +67 -0
  327. package/es/components/pay/toB/components/ConfirmedPayment/index.less +69 -0
  328. package/es/components/pay/toB/components/Content/Footer.d.ts +7 -0
  329. package/es/components/pay/toB/components/Content/Footer.js +36 -0
  330. package/es/components/pay/toB/components/Content/Header.d.ts +4 -0
  331. package/es/components/pay/toB/components/Content/Header.js +12 -0
  332. package/es/components/pay/toB/components/Content/index.d.ts +4 -0
  333. package/es/components/pay/toB/components/Content/index.js +277 -0
  334. package/es/components/pay/toB/components/Content/index.less +9 -0
  335. package/es/components/pay/toB/components/Content/utils.d.ts +16 -0
  336. package/es/components/pay/toB/components/Content/utils.js +76 -0
  337. package/es/components/pay/toB/components/index.d.ts +5 -0
  338. package/es/components/pay/toB/components/index.js +5 -0
  339. package/es/components/pay/toB/hooks.d.ts +12 -0
  340. package/es/components/pay/toB/hooks.js +30 -0
  341. package/es/components/pay/toB/index.d.ts +3 -0
  342. package/es/components/pay/toB/index.js +24 -0
  343. package/es/components/pay/toB/locales.d.ts +54 -0
  344. package/es/components/pay/toB/locales.js +65 -0
  345. package/es/components/pay/toB/store/context.d.ts +3 -0
  346. package/es/components/pay/toB/store/context.js +2 -0
  347. package/es/components/pay/toB/store/hooks.d.ts +15 -0
  348. package/es/components/pay/toB/store/hooks.js +80 -0
  349. package/es/components/pay/toB/store/index.d.ts +3 -0
  350. package/es/components/pay/toB/store/index.js +3 -0
  351. package/es/components/pay/toB/store/provider.d.ts +4 -0
  352. package/es/components/pay/toB/store/provider.js +77 -0
  353. package/es/components/pay/toB/store/utils.d.ts +13 -0
  354. package/es/components/pay/toB/store/utils.js +66 -0
  355. package/es/components/pay/toB/types/index.d.ts +1 -0
  356. package/es/components/pay/toB/types/index.js +1 -0
  357. package/es/components/pay/toB/types/storeTypes.d.ts +141 -0
  358. package/es/components/pay/toB/types/storeTypes.js +24 -0
  359. package/es/components/pay/toC/PaymentList/index.js +10 -4
  360. package/es/components/pay/toC/PaymentList/serve.d.ts +1 -1
  361. package/es/components/pay/toC/PaymentList/serve.js +9 -3
  362. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  363. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +30 -13
  364. package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.js +30 -13
  365. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +3 -0
  366. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +3 -2
  367. package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
  368. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +73 -20
  369. package/es/components/pay/toC/PaymentMethods/WalletPass/index.less +30 -0
  370. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +2 -0
  371. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -1
  372. package/es/components/pay/toC/PaymentMethods/index.js +29 -2
  373. package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.d.ts +16 -0
  374. package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.js +60 -0
  375. package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.less +38 -0
  376. package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.d.ts +17 -0
  377. package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.js +98 -0
  378. package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.less +133 -0
  379. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +7 -0
  380. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.js +34 -0
  381. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.less +23 -0
  382. package/es/components/pay/toC/WalletPassBlock/index.d.ts +9 -2
  383. package/es/components/pay/toC/WalletPassBlock/index.js +119 -21
  384. package/es/components/pay/toC/WalletPassBlock/index.less +86 -13
  385. package/es/components/pay/toC/index.js +173 -116
  386. package/es/components/pay/toC/locales.d.ts +69 -3
  387. package/es/components/pay/toC/locales.js +132 -6
  388. package/es/components/pay/toC/model.d.ts +4 -0
  389. package/es/components/pay/toC/model.js +9 -0
  390. package/es/components/pay/toC/serve.d.ts +23 -0
  391. package/es/components/pay/toC/serve.js +36 -4
  392. package/es/components/pay/toC/utils.d.ts +9 -1
  393. package/es/components/pay/toC/utils.js +29 -3
  394. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  395. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  396. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.js +4 -1
  397. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  398. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  399. package/es/components/productExtension/card/index.js +3 -3
  400. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  401. package/es/components/productExtension/fields/Forms/index.js +12 -12
  402. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -2
  403. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.js +18 -6
  404. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  405. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  406. package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  407. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  408. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  409. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  410. package/es/components/productExtension/index.d.ts +0 -1
  411. package/es/components/productExtension/server.js +2 -2
  412. package/es/components/productSelect/components/TabProduct/index.d.ts +2 -0
  413. package/es/components/productSelect/components/TabProduct/index.js +196 -0
  414. package/es/components/productSelect/components/TabProduct/tabs/index.d.ts +21 -0
  415. package/es/components/productSelect/components/TabProduct/tabs/index.js +243 -0
  416. package/es/components/productSelect/components/TabProduct/tabs/index.less +126 -0
  417. package/es/components/productSelect/components/gridLayout/index.d.ts +9 -0
  418. package/es/components/productSelect/components/gridLayout/index.js +28 -0
  419. package/es/components/productSelect/components/gridLayout/index.less +6 -0
  420. package/es/components/productSelect/components/pisellPriceText/index.d.ts +11 -0
  421. package/es/components/productSelect/components/pisellPriceText/index.js +44 -0
  422. package/es/components/productSelect/components/productGroup/index.d.ts +38 -0
  423. package/es/components/productSelect/components/productGroup/index.js +171 -0
  424. package/es/components/productSelect/components/productGroup/index.less +227 -0
  425. package/es/components/productSelect/hooks/useToken.d.ts +18 -0
  426. package/es/components/productSelect/hooks/useToken.js +35 -0
  427. package/es/components/productSelect/index.d.ts +24 -0
  428. package/es/components/productSelect/index.js +107 -0
  429. package/es/components/productSelect/index.less +75 -0
  430. package/es/components/productSelect/locales.d.ts +18 -0
  431. package/es/components/productSelect/locales.js +17 -0
  432. package/es/components/productSelect/mock.d.ts +134 -0
  433. package/es/components/productSelect/mock.js +202 -0
  434. package/es/components/productSelect/theme/token.d.ts +17 -0
  435. package/es/components/productSelect/theme/token.js +19 -0
  436. package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  437. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  438. package/es/components/schedules/calendar/index.d.ts +0 -1
  439. package/es/components/schedules/calendar/index.js +4 -4
  440. package/es/components/schedules/calendar/index.less +158 -152
  441. package/es/components/schedules/calendar/serve.js +2 -2
  442. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  443. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  444. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  445. package/es/components/schedules/components/ResourceList/index.js +1 -1
  446. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  447. package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
  448. package/es/components/schedules/components/Search/index.js +5 -5
  449. package/es/components/schedules/model.js +5 -5
  450. package/es/components/schedules/openHours/index.js +1 -1
  451. package/es/components/schedules/openHours/serve.js +2 -2
  452. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  453. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  454. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  455. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  456. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  457. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  458. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  459. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  460. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  461. package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  462. package/es/components/schedules/products/list/index.d.ts +0 -1
  463. package/es/components/schedules/products/serve.js +2 -2
  464. package/es/components/schedules/products/utils.js +5 -5
  465. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  466. package/es/components/schedules/resources/detail/index.js +10 -10
  467. package/es/components/schedules/resources/index.d.ts +0 -1
  468. package/es/components/schedules/resources/list/index.d.ts +0 -1
  469. package/es/components/schedules/resources/list/index.js +2 -2
  470. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  471. package/es/components/schedules/resources/serve.js +2 -2
  472. package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  473. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  474. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  475. package/es/components/schedules/schedules/index.d.ts +0 -1
  476. package/es/components/schedules/schedules/utils.js +1 -1
  477. package/es/components/schedules/utils.js +4 -4
  478. package/es/components/selectModal/index.js +2 -2
  479. package/es/components/shoppingCart/Provider.d.ts +1 -1
  480. package/es/components/shoppingCart/Provider.js +3 -2
  481. package/es/components/shoppingCart/components/Cart/Product.js +27 -3
  482. package/es/components/shoppingCart/components/Cart/index.less +15 -15
  483. package/es/components/shoppingCart/components/Render/index.js +0 -1
  484. package/es/components/shoppingCart/components/Render/index.less +15 -0
  485. package/es/components/shoppingCart/hooks/useAddService.js +7 -1
  486. package/es/components/shoppingCart/hooks/useClearCart.js +3 -4
  487. package/es/components/shoppingCart/index.d.ts +1 -2
  488. package/es/components/shoppingCart/index.js +3 -1
  489. package/es/components/shoppingCart/status.js +5 -1
  490. package/es/components/shoppingCart/type.d.ts +8 -0
  491. package/es/components/subTotal/index.d.ts +22 -0
  492. package/es/components/subTotal/index.js +234 -0
  493. package/es/components/subTotal/index.less +70 -0
  494. package/es/components/subTotal/locales.d.ts +42 -0
  495. package/es/components/subTotal/locales.js +41 -0
  496. package/es/components/taxSelect/index.d.ts +0 -1
  497. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  498. package/es/components/ticketBooking/components/addServiceVariant/addService.js +508 -0
  499. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +7 -0
  500. package/es/components/ticketBooking/components/addServiceVariant/index.js +28 -0
  501. package/es/components/ticketBooking/components/addServiceVariant/index.less +10 -0
  502. package/es/components/ticketBooking/components/menuBar/index.d.ts +4 -0
  503. package/es/components/ticketBooking/components/menuBar/index.js +54 -0
  504. package/es/components/ticketBooking/components/menuBar/index.less +83 -0
  505. package/es/components/ticketBooking/components/notAvailable/index.d.ts +3 -0
  506. package/es/components/ticketBooking/components/notAvailable/index.js +39 -0
  507. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +3 -0
  508. package/es/components/ticketBooking/components/ticketBooking/index.js +955 -0
  509. package/es/components/ticketBooking/components/ticketBooking/index.less +16 -0
  510. package/es/components/ticketBooking/components/timeBar/index.d.ts +12 -0
  511. package/es/components/ticketBooking/components/timeBar/index.js +115 -0
  512. package/es/components/ticketBooking/components/timeBar/index.less +22 -0
  513. package/es/components/ticketBooking/data.d.ts +58 -0
  514. package/es/components/ticketBooking/data.js +82 -0
  515. package/es/components/ticketBooking/hooks/useNetworkStatus.d.ts +11 -0
  516. package/es/components/ticketBooking/hooks/useNetworkStatus.js +52 -0
  517. package/es/components/ticketBooking/index.d.ts +7 -0
  518. package/es/components/ticketBooking/index.js +156 -0
  519. package/es/components/ticketBooking/index.less +4 -0
  520. package/es/components/ticketBooking/locales.d.ts +171 -0
  521. package/es/components/ticketBooking/locales.js +206 -0
  522. package/es/components/ticketBooking/miniRedux.d.ts +22 -0
  523. package/es/components/ticketBooking/miniRedux.js +105 -0
  524. package/es/components/ticketBooking/serve.d.ts +288 -0
  525. package/es/components/ticketBooking/serve.js +1016 -0
  526. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
  527. package/es/components/ticketBooking/utils/formatProductMessage.js +62 -0
  528. package/es/components/ticketBooking/utils/formatTime.d.ts +31 -0
  529. package/es/components/ticketBooking/utils/formatTime.js +144 -0
  530. package/es/components/ticketBooking/utils/index.d.ts +23 -0
  531. package/es/components/ticketBooking/utils/index.js +219 -0
  532. package/es/components/wallet/Detail/index.js +21 -15
  533. package/es/components/wallet/DiscountCard/index.less +0 -1
  534. package/es/components/wallet/PointCard/index.less +0 -1
  535. package/es/components/wallet/RechargeableCard/index.less +5 -9
  536. package/es/components/wallet/Voucher/index.js +1 -0
  537. package/es/components/wallet/Voucher/index.less +0 -1
  538. package/es/components/wallet/components/WalletCard.js +2 -2
  539. package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
  540. package/es/components/wallet/index.js +66 -6
  541. package/es/components/wallet/index.less +0 -4
  542. package/es/components/wallet/locales.d.ts +3 -0
  543. package/es/components/wallet/locales.js +3 -0
  544. package/es/components/wallet/model.d.ts +1 -1
  545. package/es/components/wallet/utils/formatUtils.js +1 -1
  546. package/es/components/walletList/index.js +60 -8
  547. package/es/components/walletList/index.less +17 -15
  548. package/es/components/walletList/locales.d.ts +18 -0
  549. package/es/components/walletList/locales.js +17 -0
  550. package/es/components/walletList/serve.d.ts +8 -0
  551. package/es/components/walletList/serve.js +38 -0
  552. package/es/components/walletList/status.d.ts +38 -0
  553. package/es/components/walletList/status.js +47 -0
  554. package/es/components/workSpaceList/components/AppearanceEdit/IconPanel.js +1 -1
  555. package/es/components/workSpaceList/components/AppearanceEdit/constants.js +1 -11
  556. package/es/components/workSpaceList/components/Card/constants.js +1 -2
  557. package/es/components/workSpaceList/components/EditableString/index.js +1 -1
  558. package/es/components/workSpaceList/components/SearchBar/index.js +1 -4
  559. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.js +1 -1
  560. package/es/components/workSpaceList/components/Sort/index.js +1 -1
  561. package/es/components/workSpaceList/components/WorkspaceItem/index.js +1 -1
  562. package/es/hooks/useComponents.js +1 -1
  563. package/es/hooks/useEngineContext.d.ts +1 -0
  564. package/es/hooks/useEngineContext.js +7 -0
  565. package/es/hooks/useLocale.d.ts +2 -0
  566. package/es/hooks/useLocale.js +7 -0
  567. package/es/hooks/useLoginUser.d.ts +2 -0
  568. package/es/hooks/useLoginUser.js +19 -0
  569. package/es/index.d.ts +5 -0
  570. package/es/index.js +6 -1
  571. package/es/utils/date.d.ts +11 -0
  572. package/es/utils/date.js +49 -0
  573. package/es/utils/tasks/index.d.ts +16 -0
  574. package/es/utils/tasks/index.js +114 -0
  575. package/es/utils/tasks/type.d.ts +4 -0
  576. package/es/utils/tasks/type.js +1 -0
  577. package/lib/components/Sales/Cart/index.js +30 -18
  578. package/lib/components/Sales/Cart/types.d.ts +12 -0
  579. package/lib/components/Sales/Cart/utils.d.ts +23 -0
  580. package/lib/components/Sales/Cart/utils.js +149 -0
  581. package/lib/components/Sales/Checkout/utils.d.ts +9 -1
  582. package/lib/components/Sales/Checkout/utils.js +18 -4
  583. package/lib/components/Sales/Customer/index.js +3 -1
  584. package/lib/components/Sales/Event/Detail.d.ts +2 -0
  585. package/lib/components/Sales/Event/Detail.js +38 -10
  586. package/lib/components/Sales/Event/index.js +1 -5
  587. package/lib/components/Sales/Event/serve.d.ts +13 -0
  588. package/lib/components/Sales/Event/serve.js +5 -2
  589. package/lib/components/Sales/Init/index.d.ts +1 -0
  590. package/lib/components/Sales/Init/index.js +3 -2
  591. package/lib/components/Sales/Step/index.d.ts +2 -0
  592. package/lib/components/Sales/Step/index.js +13 -4
  593. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  594. package/lib/components/Sales/Summary/utils.js +1 -0
  595. package/lib/components/appointmentBooking/assets/alert-circle.png +0 -0
  596. package/lib/components/appointmentBooking/assets/calendar-heart.svg +5 -0
  597. package/lib/components/appointmentBooking/assets/compass.svg +13 -0
  598. package/lib/components/appointmentBooking/assets/guests.svg +1 -0
  599. package/lib/components/appointmentBooking/assets/image.svg +5 -0
  600. package/lib/components/appointmentBooking/assets/phone.svg +5 -0
  601. package/lib/components/appointmentBooking/assets/resource.svg +1 -0
  602. package/lib/components/appointmentBooking/assets/shopping-cart.svg +10 -0
  603. package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +7 -0
  604. package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.js +113 -0
  605. package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.less +0 -0
  606. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +3 -0
  607. package/lib/components/appointmentBooking/components/Cart/Item/Total.js +79 -0
  608. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
  609. package/lib/components/appointmentBooking/components/Cart/Item/index.js +212 -0
  610. package/lib/components/appointmentBooking/components/Cart/Item/index.less +108 -0
  611. package/lib/components/appointmentBooking/components/Cart/index.d.ts +3 -0
  612. package/lib/components/appointmentBooking/components/Cart/index.js +60 -0
  613. package/lib/components/appointmentBooking/components/Cart/index.less +2 -0
  614. package/lib/components/appointmentBooking/components/Cart/utils.d.ts +56 -0
  615. package/lib/components/appointmentBooking/components/Cart/utils.js +125 -0
  616. package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +4 -0
  617. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +155 -0
  618. package/lib/components/appointmentBooking/components/ConfirmInformation/index.less +35 -0
  619. package/lib/components/appointmentBooking/components/ConfirmInformation/utils.d.ts +12 -0
  620. package/lib/components/appointmentBooking/components/ConfirmInformation/utils.js +37 -0
  621. package/lib/components/appointmentBooking/components/Content/index.d.ts +3 -0
  622. package/lib/components/appointmentBooking/components/Content/index.js +221 -0
  623. package/lib/components/appointmentBooking/components/Content/index.less +113 -0
  624. package/lib/components/appointmentBooking/components/Date/index.d.ts +4 -0
  625. package/lib/components/appointmentBooking/components/Date/index.js +247 -0
  626. package/lib/components/appointmentBooking/components/Date/index.less +142 -0
  627. package/lib/components/appointmentBooking/components/Date/state.d.ts +63 -0
  628. package/lib/components/appointmentBooking/components/Date/state.js +202 -0
  629. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +3 -0
  630. package/lib/components/appointmentBooking/components/Deposit/index.js +61 -0
  631. package/lib/components/appointmentBooking/components/Deposit/index.less +17 -0
  632. package/lib/components/appointmentBooking/components/Footer/index.d.ts +3 -0
  633. package/lib/components/appointmentBooking/components/Footer/index.js +78 -0
  634. package/lib/components/appointmentBooking/components/Footer/index.less +64 -0
  635. package/lib/components/appointmentBooking/components/Form/index.d.ts +4 -0
  636. package/lib/components/appointmentBooking/components/Form/index.js +127 -0
  637. package/lib/components/appointmentBooking/components/Form/index.less +3 -0
  638. package/lib/components/appointmentBooking/components/Form/utils.d.ts +8 -0
  639. package/lib/components/appointmentBooking/components/Form/utils.js +49 -0
  640. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +3 -0
  641. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.js +74 -0
  642. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.less +28 -0
  643. package/lib/components/appointmentBooking/components/Guest/index.d.ts +4 -0
  644. package/lib/components/appointmentBooking/components/Guest/index.js +166 -0
  645. package/lib/components/appointmentBooking/components/Guest/index.less +92 -0
  646. package/lib/components/appointmentBooking/components/Header/index.d.ts +3 -0
  647. package/lib/components/appointmentBooking/components/Header/index.js +151 -0
  648. package/lib/components/appointmentBooking/components/Header/index.less +0 -0
  649. package/lib/components/appointmentBooking/components/Resource/index.d.ts +7 -0
  650. package/lib/components/appointmentBooking/components/Resource/index.js +225 -0
  651. package/lib/components/appointmentBooking/components/Resource/index.less +10 -0
  652. package/lib/components/appointmentBooking/components/Resource/utils.d.ts +5 -0
  653. package/lib/components/appointmentBooking/components/Resource/utils.js +36 -0
  654. package/lib/components/appointmentBooking/components/Services/index.d.ts +4 -0
  655. package/lib/components/appointmentBooking/components/Services/index.js +193 -0
  656. package/lib/components/appointmentBooking/components/Services/index.less +3 -0
  657. package/lib/components/appointmentBooking/components/TimeSlicing/index.d.ts +4 -0
  658. package/lib/components/appointmentBooking/components/TimeSlicing/index.js +102 -0
  659. package/lib/components/appointmentBooking/components/TimeSlicing/index.less +33 -0
  660. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +4 -0
  661. package/lib/components/appointmentBooking/components/Voucher/index.js +241 -0
  662. package/lib/components/appointmentBooking/components/Voucher/index.less +116 -0
  663. package/lib/components/appointmentBooking/context.d.ts +35 -0
  664. package/lib/components/appointmentBooking/context.js +192 -0
  665. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  666. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +131 -0
  667. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.less +18 -0
  668. package/lib/components/appointmentBooking/deposit/index.d.ts +3 -0
  669. package/lib/components/appointmentBooking/deposit/index.js +109 -0
  670. package/lib/components/appointmentBooking/deposit/index.less +57 -0
  671. package/lib/components/appointmentBooking/hooks.d.ts +106 -0
  672. package/lib/components/appointmentBooking/hooks.js +559 -0
  673. package/lib/components/appointmentBooking/index.d.ts +3 -0
  674. package/lib/components/appointmentBooking/index.js +80 -0
  675. package/lib/components/appointmentBooking/index.less +23 -0
  676. package/lib/components/appointmentBooking/locales.d.ts +360 -0
  677. package/lib/components/appointmentBooking/locales.js +383 -0
  678. package/lib/components/appointmentBooking/mock.d.ts +627 -0
  679. package/lib/components/appointmentBooking/mock.js +1352 -0
  680. package/lib/components/appointmentBooking/status.d.ts +21 -0
  681. package/lib/components/appointmentBooking/status.js +70 -0
  682. package/lib/components/appointmentBooking/type.d.ts +17 -0
  683. package/lib/components/appointmentBooking/type.js +17 -0
  684. package/lib/components/appointmentBooking/utils.d.ts +203 -0
  685. package/lib/components/appointmentBooking/utils.js +519 -0
  686. package/lib/components/booking/addons/index.js +53 -31
  687. package/lib/components/booking/addons/model.js +3 -0
  688. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  689. package/lib/components/booking/components/TabProduct/productItem/index.js +8 -1
  690. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  691. package/lib/components/booking/components/TabProduct/selectProductItem/index.js +5 -1
  692. package/lib/components/booking/components/TabProduct/selectProductItem/index.less +6 -0
  693. package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
  694. package/lib/components/booking/components/customSelect/index.js +2 -0
  695. package/lib/components/booking/components/drawer/index.js +2 -2
  696. package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
  697. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  698. package/lib/components/booking/components/footer/amount.d.ts +1 -0
  699. package/lib/components/booking/components/footer/amount.js +5 -2
  700. package/lib/components/booking/components/footer/index.d.ts +0 -1
  701. package/lib/components/booking/components/footer/index.js +208 -71
  702. package/lib/components/booking/components/footer/index.less +6 -1
  703. package/lib/components/booking/components/footer/utils.d.ts +21 -0
  704. package/lib/components/booking/components/footer/utils.js +130 -38
  705. package/lib/components/booking/components/voucher/index.d.ts +3 -0
  706. package/lib/components/booking/components/voucher/index.js +305 -0
  707. package/lib/components/booking/components/voucher/index.less +87 -0
  708. package/lib/components/booking/components/voucher/utils.d.ts +4 -0
  709. package/lib/components/booking/components/voucher/utils.js +43 -0
  710. package/lib/components/booking/deposit/DepositItem/index.js +1 -0
  711. package/lib/components/booking/deposit/index.d.ts +0 -1
  712. package/lib/components/booking/deposit/index.js +5 -3
  713. package/lib/components/booking/forms/footer.d.ts +6 -0
  714. package/lib/components/booking/forms/footer.js +81 -0
  715. package/lib/components/booking/forms/forms.d.ts +4 -0
  716. package/lib/components/booking/forms/forms.js +13 -3
  717. package/lib/components/booking/forms/index.d.ts +1 -1
  718. package/lib/components/booking/forms/index.js +4 -2
  719. package/lib/components/booking/forms/index.less +7 -0
  720. package/lib/components/booking/forms/sendModal/index.d.ts +27 -0
  721. package/lib/components/booking/forms/sendModal/index.js +128 -0
  722. package/lib/components/booking/forms/sendModal/index.less +9 -0
  723. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +9 -0
  724. package/lib/components/booking/forms/sendModal/useSendModal.js +70 -0
  725. package/lib/components/booking/forms/serve.d.ts +9 -0
  726. package/lib/components/booking/forms/serve.js +5 -2
  727. package/lib/components/booking/forms/single/index.d.ts +1 -2
  728. package/lib/components/booking/forms/single/index.js +35 -1
  729. package/lib/components/booking/hooks/useCreateBookingPageHeader.js +3 -0
  730. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  731. package/lib/components/booking/hooks/useIsBooking4Shop.js +51 -0
  732. package/lib/components/booking/hooks/useQuotation.d.ts +5 -0
  733. package/lib/components/booking/hooks/useQuotation.js +214 -0
  734. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  735. package/lib/components/booking/info/addServiceVariant/index.js +3 -3
  736. package/lib/components/booking/info/client/index.js +72 -8
  737. package/lib/components/booking/info/client/index.less +39 -0
  738. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  739. package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +8 -1
  740. package/lib/components/booking/info/clientVariant/utils.d.ts +1 -0
  741. package/lib/components/booking/info/clientVariant/utils.js +34 -0
  742. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +11 -3
  743. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.less +17 -0
  744. package/lib/components/booking/info/clientVariant/vertical/index.js +32 -7
  745. package/lib/components/booking/info/clientVariant/vertical/index.less +18 -0
  746. package/lib/components/booking/info/date/index.d.ts +0 -1
  747. package/lib/components/booking/info/header/index.d.ts +0 -1
  748. package/lib/components/booking/info/hooks/useAddHolder.d.ts +9 -0
  749. package/lib/components/booking/info/hooks/useAddHolder.js +145 -0
  750. package/lib/components/booking/info/hooks/useGetHolderList.d.ts +2 -0
  751. package/lib/components/booking/info/hooks/useGetHolderList.js +61 -0
  752. package/lib/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
  753. package/lib/components/booking/info/hooks/useHolderConfig.js +59 -0
  754. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +10 -0
  755. package/lib/components/booking/info/hooks/useInfoHolder.js +87 -0
  756. package/lib/components/booking/info/index.d.ts +0 -1
  757. package/lib/components/booking/info/index.js +9 -5
  758. package/lib/components/booking/info/main.js +1 -1
  759. package/lib/components/booking/info/notes/index.d.ts +0 -1
  760. package/lib/components/booking/info/pet/index.js +66 -12
  761. package/lib/components/booking/info/pet/serve.d.ts +1 -0
  762. package/lib/components/booking/info/pet/serve.js +33 -0
  763. package/lib/components/booking/info/service/Lists.d.ts +2 -0
  764. package/lib/components/booking/info/service/Lists.js +120 -0
  765. package/lib/components/booking/info/service/actions/index.d.ts +0 -1
  766. package/lib/components/booking/info/service/addService/index.js +29 -26
  767. package/lib/components/booking/info/service/editService/index.d.ts +1 -1
  768. package/lib/components/booking/info/service/editService/index.js +71 -27
  769. package/lib/components/booking/info/service/index.js +5 -3
  770. package/lib/components/booking/info/service/serve.d.ts +9 -0
  771. package/lib/components/booking/info/service/serve.js +3 -0
  772. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
  773. package/lib/components/booking/info/service/serviceList/index.js +1 -0
  774. package/lib/components/booking/info/service/serviceManager/index.js +6 -1
  775. package/lib/components/booking/info/service2/Group/utils.js +4 -3
  776. package/lib/components/booking/info/service2/hooks/useSelectPet.js +13 -6
  777. package/lib/components/booking/info/service2/index.js +5 -3
  778. package/lib/components/booking/info/service2/utils.d.ts +14 -7
  779. package/lib/components/booking/info/service2/utils.js +353 -41
  780. package/lib/components/booking/info/utils.d.ts +6 -0
  781. package/lib/components/booking/info/utils.js +96 -1
  782. package/lib/components/booking/info2/index.js +12 -4
  783. package/lib/components/booking/info2/serve.d.ts +2 -2
  784. package/lib/components/booking/info2/serve.js +3 -10
  785. package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
  786. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  787. package/lib/components/booking/info2/service/addService/index.js +68 -37
  788. package/lib/components/booking/info2/service/addService/utils.d.ts +20 -3
  789. package/lib/components/booking/info2/service/addService/utils.js +108 -27
  790. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  791. package/lib/components/booking/info2/service/addTimeModal/index.js +5 -6
  792. package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.js +1 -2
  793. package/lib/components/booking/info2/service/editService/Resources/index.js +21 -4
  794. package/lib/components/booking/info2/service/editService/index.js +152 -51
  795. package/lib/components/booking/info2/service/editService/utils.d.ts +4 -2
  796. package/lib/components/booking/info2/service/editService/utils.js +48 -0
  797. package/lib/components/booking/info2/service/index.js +20 -28
  798. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
  799. package/lib/components/booking/info2/utils.d.ts +4 -0
  800. package/lib/components/booking/info2/utils.js +66 -0
  801. package/lib/components/booking/info2/utilsByBooking.d.ts +2 -1
  802. package/lib/components/booking/info2/utilsByBooking.js +29 -14
  803. package/lib/components/booking/locales.d.ts +87 -0
  804. package/lib/components/booking/locales.js +108 -3
  805. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  806. package/lib/components/booking/materiels/duration/index.d.ts +0 -1
  807. package/lib/components/booking/materiels/holder/index.js +2 -2
  808. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  809. package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
  810. package/lib/components/booking/notes/addNote/index.d.ts +0 -1
  811. package/lib/components/booking/notes/addNote/index.js +1 -1
  812. package/lib/components/booking/notes/addNote/index.less +3 -0
  813. package/lib/components/booking/payments/index.js +2 -2
  814. package/lib/components/booking/utils.d.ts +5 -2
  815. package/lib/components/booking/utils.js +58 -13
  816. package/lib/components/eftpos/index.d.ts +0 -1
  817. package/lib/components/eftpos/pos.d.ts +0 -1
  818. package/lib/components/eftposPay/amount.d.ts +1 -2
  819. package/lib/components/eftposPay/app.d.ts +0 -1
  820. package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
  821. package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
  822. package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
  823. package/lib/components/eftposPay/device.d.ts +1 -2
  824. package/lib/components/eftposPay/hooks.d.ts +2 -2
  825. package/lib/components/eftposPay/payo/config.js +12 -1
  826. package/lib/components/eftposPay/payo/hooks.js +10 -0
  827. package/lib/components/eftposPay/store/index.d.ts +6 -6
  828. package/lib/components/eftposPay/tip.d.ts +0 -1
  829. package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  830. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
  831. package/lib/components/eftposPay/windcave/windcave.js +11 -0
  832. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +149 -12
  833. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  834. package/lib/components/eventBooking/components/Provider/Event/index.js +15 -3
  835. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  836. package/lib/components/eventBooking/components/Provider/Resource/index.js +16 -3
  837. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  838. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -1
  839. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -1
  840. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +2 -2
  841. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +7 -7
  842. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +3 -1
  843. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.js +25 -10
  844. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  845. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  846. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.js +4 -2
  847. package/lib/components/eventBooking/components/bookingDetailModal/index.js +79 -24
  848. package/lib/components/eventBooking/components/progressBar/index.js +16 -1
  849. package/lib/components/eventBooking/components/resourceDisplay/index.js +2 -2
  850. package/lib/components/eventBooking/components/resourceDisplay/index.less +1 -0
  851. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  852. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  853. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.js +6 -5
  854. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +3 -0
  855. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.js +75 -0
  856. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.less +63 -0
  857. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.d.ts +9 -0
  858. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.js +64 -0
  859. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.less +7 -0
  860. package/lib/components/eventBooking/components/scheduleCalendar/index.d.ts +1 -0
  861. package/lib/components/eventBooking/components/scheduleCalendar/index.js +17 -11
  862. package/lib/components/eventBooking/components/scheduleCalendar/index.less +2 -0
  863. package/lib/components/eventBooking/components/timeResourceSelector/index.less +0 -1
  864. package/lib/components/eventBooking/index.d.ts +0 -1
  865. package/lib/components/eventBooking/index.js +2 -2
  866. package/lib/components/eventBooking/locales.d.ts +6 -0
  867. package/lib/components/eventBooking/locales.js +20 -14
  868. package/lib/components/eventBooking/utils.js +5 -3
  869. package/lib/components/index.d.ts +2 -1
  870. package/lib/components/index.js +3 -0
  871. package/lib/components/login/index.d.ts +0 -1
  872. package/lib/components/pay/toB/components/Cache/index.d.ts +10 -0
  873. package/lib/components/pay/toB/components/Cache/index.js +108 -0
  874. package/lib/components/pay/toB/components/Cache/index.less +41 -0
  875. package/lib/components/pay/toB/components/Card/index.d.ts +7 -0
  876. package/lib/components/pay/toB/components/Card/index.js +66 -0
  877. package/lib/components/pay/toB/components/Card/index.less +26 -0
  878. package/lib/components/pay/toB/components/CardGroup/index.d.ts +7 -0
  879. package/lib/components/pay/toB/components/CardGroup/index.js +43 -0
  880. package/lib/components/pay/toB/components/CardGroup/index.less +18 -0
  881. package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +6 -0
  882. package/lib/components/pay/toB/components/ConfirmedPayment/index.js +77 -0
  883. package/lib/components/pay/toB/components/ConfirmedPayment/index.less +69 -0
  884. package/lib/components/pay/toB/components/Content/Footer.d.ts +7 -0
  885. package/lib/components/pay/toB/components/Content/Footer.js +63 -0
  886. package/lib/components/pay/toB/components/Content/Header.d.ts +4 -0
  887. package/lib/components/pay/toB/components/Content/Header.js +40 -0
  888. package/lib/components/pay/toB/components/Content/index.d.ts +4 -0
  889. package/lib/components/pay/toB/components/Content/index.js +209 -0
  890. package/lib/components/pay/toB/components/Content/index.less +9 -0
  891. package/lib/components/pay/toB/components/Content/utils.d.ts +16 -0
  892. package/lib/components/pay/toB/components/Content/utils.js +91 -0
  893. package/lib/components/pay/toB/components/index.d.ts +5 -0
  894. package/lib/components/pay/toB/components/index.js +51 -0
  895. package/lib/components/pay/toB/hooks.d.ts +12 -0
  896. package/lib/components/pay/toB/hooks.js +60 -0
  897. package/lib/components/pay/toB/index.d.ts +3 -0
  898. package/lib/components/pay/toB/index.js +54 -0
  899. package/lib/components/pay/toB/locales.d.ts +54 -0
  900. package/lib/components/pay/toB/locales.js +77 -0
  901. package/lib/components/pay/toB/store/context.d.ts +3 -0
  902. package/lib/components/pay/toB/store/context.js +32 -0
  903. package/lib/components/pay/toB/store/hooks.d.ts +15 -0
  904. package/lib/components/pay/toB/store/hooks.js +85 -0
  905. package/lib/components/pay/toB/store/index.d.ts +3 -0
  906. package/lib/components/pay/toB/store/index.js +27 -0
  907. package/lib/components/pay/toB/store/provider.d.ts +4 -0
  908. package/lib/components/pay/toB/store/provider.js +70 -0
  909. package/lib/components/pay/toB/store/utils.d.ts +13 -0
  910. package/lib/components/pay/toB/store/utils.js +72 -0
  911. package/lib/components/pay/toB/types/index.d.ts +1 -0
  912. package/lib/components/pay/toB/types/index.js +23 -0
  913. package/lib/components/pay/toB/types/storeTypes.d.ts +141 -0
  914. package/lib/components/pay/toB/types/storeTypes.js +36 -0
  915. package/lib/components/pay/toC/PaymentList/index.js +11 -6
  916. package/lib/components/pay/toC/PaymentList/serve.d.ts +1 -1
  917. package/lib/components/pay/toC/PaymentList/serve.js +6 -3
  918. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  919. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +10 -1
  920. package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.js +10 -1
  921. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +3 -0
  922. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +2 -2
  923. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
  924. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +52 -11
  925. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.less +30 -0
  926. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +2 -0
  927. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -1
  928. package/lib/components/pay/toC/PaymentMethods/index.js +30 -6
  929. package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.d.ts +16 -0
  930. package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.js +87 -0
  931. package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.less +38 -0
  932. package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.d.ts +17 -0
  933. package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.js +103 -0
  934. package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.less +133 -0
  935. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +7 -0
  936. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.js +52 -0
  937. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.less +23 -0
  938. package/lib/components/pay/toC/WalletPassBlock/index.d.ts +9 -2
  939. package/lib/components/pay/toC/WalletPassBlock/index.js +115 -20
  940. package/lib/components/pay/toC/WalletPassBlock/index.less +86 -13
  941. package/lib/components/pay/toC/index.js +55 -22
  942. package/lib/components/pay/toC/locales.d.ts +69 -3
  943. package/lib/components/pay/toC/locales.js +72 -6
  944. package/lib/components/pay/toC/model.d.ts +4 -0
  945. package/lib/components/pay/toC/model.js +10 -0
  946. package/lib/components/pay/toC/serve.d.ts +23 -0
  947. package/lib/components/pay/toC/serve.js +13 -7
  948. package/lib/components/pay/toC/utils.d.ts +9 -1
  949. package/lib/components/pay/toC/utils.js +23 -3
  950. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  951. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  952. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.js +4 -1
  953. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  954. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  955. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -2
  956. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.js +8 -1
  957. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  958. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  959. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  960. package/lib/components/productExtension/index.d.ts +0 -1
  961. package/lib/components/productSelect/components/TabProduct/index.d.ts +2 -0
  962. package/lib/components/productSelect/components/TabProduct/index.js +189 -0
  963. package/lib/components/productSelect/components/TabProduct/tabs/index.d.ts +21 -0
  964. package/lib/components/productSelect/components/TabProduct/tabs/index.js +202 -0
  965. package/lib/components/productSelect/components/TabProduct/tabs/index.less +126 -0
  966. package/lib/components/productSelect/components/gridLayout/index.d.ts +9 -0
  967. package/lib/components/productSelect/components/gridLayout/index.js +58 -0
  968. package/lib/components/productSelect/components/gridLayout/index.less +6 -0
  969. package/lib/components/productSelect/components/pisellPriceText/index.d.ts +11 -0
  970. package/lib/components/productSelect/components/pisellPriceText/index.js +78 -0
  971. package/lib/components/productSelect/components/productGroup/index.d.ts +38 -0
  972. package/lib/components/productSelect/components/productGroup/index.js +144 -0
  973. package/lib/components/productSelect/components/productGroup/index.less +227 -0
  974. package/lib/components/productSelect/hooks/useToken.d.ts +18 -0
  975. package/lib/components/productSelect/hooks/useToken.js +51 -0
  976. package/lib/components/productSelect/index.d.ts +24 -0
  977. package/lib/components/productSelect/index.js +133 -0
  978. package/lib/components/productSelect/index.less +75 -0
  979. package/lib/components/productSelect/locales.d.ts +18 -0
  980. package/lib/components/productSelect/locales.js +41 -0
  981. package/lib/components/productSelect/mock.d.ts +134 -0
  982. package/lib/components/productSelect/mock.js +276 -0
  983. package/lib/components/productSelect/theme/token.d.ts +17 -0
  984. package/lib/components/productSelect/theme/token.js +47 -0
  985. package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  986. package/lib/components/schedules/calendar/index.d.ts +0 -1
  987. package/lib/components/schedules/calendar/index.less +158 -152
  988. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  989. package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
  990. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  991. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  992. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  993. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  994. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  995. package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  996. package/lib/components/schedules/products/list/index.d.ts +0 -1
  997. package/lib/components/schedules/resources/index.d.ts +0 -1
  998. package/lib/components/schedules/resources/list/index.d.ts +0 -1
  999. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  1000. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  1001. package/lib/components/schedules/schedules/index.d.ts +0 -1
  1002. package/lib/components/schedules/schedules/utils.js +1 -1
  1003. package/lib/components/schedules/utils.js +1 -1
  1004. package/lib/components/shoppingCart/Provider.d.ts +1 -1
  1005. package/lib/components/shoppingCart/Provider.js +3 -2
  1006. package/lib/components/shoppingCart/components/Cart/Product.js +35 -3
  1007. package/lib/components/shoppingCart/components/Cart/index.less +15 -15
  1008. package/lib/components/shoppingCart/components/Render/index.js +0 -1
  1009. package/lib/components/shoppingCart/components/Render/index.less +15 -0
  1010. package/lib/components/shoppingCart/hooks/useAddService.js +1 -2
  1011. package/lib/components/shoppingCart/hooks/useClearCart.js +3 -3
  1012. package/lib/components/shoppingCart/index.d.ts +1 -2
  1013. package/lib/components/shoppingCart/index.js +2 -0
  1014. package/lib/components/shoppingCart/status.js +5 -1
  1015. package/lib/components/shoppingCart/type.d.ts +8 -0
  1016. package/lib/components/subTotal/index.d.ts +22 -0
  1017. package/lib/components/subTotal/index.js +175 -0
  1018. package/lib/components/subTotal/index.less +70 -0
  1019. package/lib/components/subTotal/locales.d.ts +42 -0
  1020. package/lib/components/subTotal/locales.js +65 -0
  1021. package/lib/components/taxSelect/index.d.ts +0 -1
  1022. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  1023. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +432 -0
  1024. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +7 -0
  1025. package/lib/components/ticketBooking/components/addServiceVariant/index.js +56 -0
  1026. package/lib/components/ticketBooking/components/addServiceVariant/index.less +10 -0
  1027. package/lib/components/ticketBooking/components/menuBar/index.d.ts +4 -0
  1028. package/lib/components/ticketBooking/components/menuBar/index.js +87 -0
  1029. package/lib/components/ticketBooking/components/menuBar/index.less +83 -0
  1030. package/lib/components/ticketBooking/components/notAvailable/index.d.ts +3 -0
  1031. package/lib/components/ticketBooking/components/notAvailable/index.js +61 -0
  1032. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +3 -0
  1033. package/lib/components/ticketBooking/components/ticketBooking/index.js +910 -0
  1034. package/lib/components/ticketBooking/components/ticketBooking/index.less +16 -0
  1035. package/lib/components/ticketBooking/components/timeBar/index.d.ts +12 -0
  1036. package/lib/components/ticketBooking/components/timeBar/index.js +149 -0
  1037. package/lib/components/ticketBooking/components/timeBar/index.less +22 -0
  1038. package/lib/components/ticketBooking/data.d.ts +58 -0
  1039. package/lib/components/ticketBooking/data.js +0 -0
  1040. package/lib/components/ticketBooking/hooks/useNetworkStatus.d.ts +11 -0
  1041. package/lib/components/ticketBooking/hooks/useNetworkStatus.js +80 -0
  1042. package/lib/components/ticketBooking/index.d.ts +7 -0
  1043. package/lib/components/ticketBooking/index.js +206 -0
  1044. package/lib/components/ticketBooking/index.less +4 -0
  1045. package/lib/components/ticketBooking/locales.d.ts +171 -0
  1046. package/lib/components/ticketBooking/locales.js +194 -0
  1047. package/lib/components/ticketBooking/miniRedux.d.ts +22 -0
  1048. package/lib/components/ticketBooking/miniRedux.js +96 -0
  1049. package/lib/components/ticketBooking/serve.d.ts +288 -0
  1050. package/lib/components/ticketBooking/serve.js +235 -0
  1051. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
  1052. package/lib/components/ticketBooking/utils/formatProductMessage.js +84 -0
  1053. package/lib/components/ticketBooking/utils/formatTime.d.ts +31 -0
  1054. package/lib/components/ticketBooking/utils/formatTime.js +139 -0
  1055. package/lib/components/ticketBooking/utils/index.d.ts +23 -0
  1056. package/lib/components/ticketBooking/utils/index.js +239 -0
  1057. package/lib/components/wallet/Detail/index.js +7 -2
  1058. package/lib/components/wallet/DiscountCard/index.less +0 -1
  1059. package/lib/components/wallet/PointCard/index.less +0 -1
  1060. package/lib/components/wallet/RechargeableCard/index.less +5 -9
  1061. package/lib/components/wallet/Voucher/index.js +1 -0
  1062. package/lib/components/wallet/Voucher/index.less +0 -1
  1063. package/lib/components/wallet/components/WalletCard.js +2 -2
  1064. package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
  1065. package/lib/components/wallet/index.js +41 -2
  1066. package/lib/components/wallet/index.less +0 -4
  1067. package/lib/components/wallet/locales.d.ts +3 -0
  1068. package/lib/components/wallet/locales.js +3 -0
  1069. package/lib/components/wallet/model.d.ts +1 -1
  1070. package/lib/components/wallet/utils/formatUtils.js +1 -1
  1071. package/lib/components/walletList/index.js +48 -16
  1072. package/lib/components/walletList/index.less +17 -15
  1073. package/lib/components/walletList/locales.d.ts +18 -0
  1074. package/lib/components/walletList/locales.js +41 -0
  1075. package/lib/components/walletList/serve.d.ts +8 -0
  1076. package/lib/components/walletList/serve.js +15 -2
  1077. package/lib/components/walletList/status.d.ts +38 -0
  1078. package/lib/components/walletList/status.js +66 -0
  1079. package/lib/components/workSpaceList/components/AppearanceEdit/IconPanel.js +2 -2
  1080. package/lib/components/workSpaceList/components/AppearanceEdit/constants.js +12 -32
  1081. package/lib/components/workSpaceList/components/Card/constants.js +3 -4
  1082. package/lib/components/workSpaceList/components/EditableString/index.js +2 -2
  1083. package/lib/components/workSpaceList/components/SearchBar/index.js +5 -8
  1084. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.js +2 -2
  1085. package/lib/components/workSpaceList/components/Sort/index.js +2 -2
  1086. package/lib/components/workSpaceList/components/WorkspaceItem/index.js +2 -2
  1087. package/lib/hooks/useEngineContext.d.ts +1 -0
  1088. package/lib/hooks/useEngineContext.js +14 -1
  1089. package/lib/hooks/useLocale.d.ts +2 -0
  1090. package/lib/hooks/useLocale.js +41 -0
  1091. package/lib/hooks/useLoginUser.d.ts +2 -0
  1092. package/lib/hooks/useLoginUser.js +50 -0
  1093. package/lib/index.d.ts +5 -0
  1094. package/lib/index.js +15 -0
  1095. package/lib/utils/date.d.ts +11 -0
  1096. package/lib/utils/date.js +57 -0
  1097. package/lib/utils/tasks/index.d.ts +16 -0
  1098. package/lib/utils/tasks/index.js +63 -0
  1099. package/lib/utils/tasks/type.d.ts +4 -0
  1100. package/lib/utils/tasks/type.js +17 -0
  1101. package/lowcode/appointment-deposit/meta.ts +58 -0
  1102. package/lowcode/parallel-resource-booking/meta.ts +69 -0
  1103. package/lowcode/product-select/meta.ts +201 -0
  1104. package/lowcode/sub-total/meta.ts +134 -0
  1105. package/lowcode/ticket-booking/meta.ts +55 -0
  1106. package/lowcode/tob-pay/meta.ts +44 -0
  1107. package/package.json +4 -4
@@ -3,12 +3,19 @@ import OpenCard from "../../OpenCard";
3
3
  import { PisellCheckboxGroup, PisellText } from '@pisell/materials';
4
4
  import { locales } from '@pisell/utils';
5
5
  import { useEventDetail } from "../../../../Sales";
6
- var BookingOptions = function BookingOptions() {
6
+ import Decimal from 'decimal.js';
7
+ import PisellPriceText from "../../../../productSelect/components/pisellPriceText";
8
+ var BookingOptions = function BookingOptions(props) {
7
9
  var _detail$bookingOption, _detail$bookingOption2;
8
10
  var _useEventDetail = useEventDetail(),
9
11
  detail = _useEventDetail.detail,
10
12
  currentBookingOption = _useEventDetail.currentBookingOption,
11
13
  selectEventDetailBookingOptions = _useEventDetail.selectEventDetailBookingOptions;
14
+ var onChange = function onChange(value, item) {
15
+ var _props$onChangeBookin;
16
+ selectEventDetailBookingOptions(value);
17
+ props === null || props === void 0 || (_props$onChangeBookin = props.onChangeBookingOption) === null || _props$onChangeBookin === void 0 || _props$onChangeBookin.call(props, item);
18
+ };
12
19
  return /*#__PURE__*/React.createElement(OpenCard, {
13
20
  title: locales.getText('pisell2.event.booking.options'),
14
21
  showBorder: true,
@@ -22,17 +29,32 @@ var BookingOptions = function BookingOptions() {
22
29
  optionClassName: "option-item ".concat((detail === null || detail === void 0 || (_detail$bookingOption2 = detail.bookingOptions) === null || _detail$bookingOption2 === void 0 ? void 0 : _detail$bookingOption2.length) > 1 ? 'option-item-pointer' : ''),
23
30
  value: currentBookingOption,
24
31
  renderOption: function renderOption(option) {
32
+ var _ref = option._originData || {},
33
+ price = _ref.price,
34
+ is_bundle = _ref.is_bundle,
35
+ minimum_markup_price = _ref.minimum_markup_price;
36
+ if (!option._originData || !is_bundle) {
37
+ return /*#__PURE__*/React.createElement("div", {
38
+ className: "item"
39
+ }, /*#__PURE__*/React.createElement("span", null, option.label), /*#__PURE__*/React.createElement(PisellText.Amount, {
40
+ value: option.price,
41
+ showCurrencySymbol: true,
42
+ className: "price"
43
+ }));
44
+ }
45
+ var _price = price;
46
+ if (is_bundle) {
47
+ _price = new Decimal(price).plus(new Decimal(minimum_markup_price)).toFixed(2);
48
+ }
25
49
  return /*#__PURE__*/React.createElement("div", {
26
50
  className: "item"
27
- }, /*#__PURE__*/React.createElement("span", null, option.label), /*#__PURE__*/React.createElement(PisellText.Amount, {
28
- value: option.price,
29
- showCurrencySymbol: true,
30
- className: "price"
51
+ }, /*#__PURE__*/React.createElement("span", null, option.label), /*#__PURE__*/React.createElement(PisellPriceText, {
52
+ className: "price",
53
+ value: _price,
54
+ isMini: true
31
55
  }));
32
56
  },
33
- onChange: function onChange(value) {
34
- return selectEventDetailBookingOptions(value);
35
- }
57
+ onChange: onChange
36
58
  }));
37
59
  };
38
60
  export default BookingOptions;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Resource: (props: any) => JSX.Element;
3
2
  export default Resource;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Schedule: () => JSX.Element;
3
2
  export default Schedule;
@@ -2,9 +2,11 @@ import React from 'react';
2
2
  import OpenCard from "../../OpenCard";
3
3
  import { locales } from '@pisell/utils';
4
4
  import ScheduleCalendar from "../../scheduleCalendar";
5
- import { useEventDetail } from "../../../../Sales";
5
+ import { useEventDetail, useInit } from "../../../../Sales";
6
6
  var Schedule = function Schedule() {
7
7
  var _detail$selectDate;
8
+ var _useInit = useInit(),
9
+ initData = _useInit.initData;
8
10
  var _useEventDetail = useEventDetail(),
9
11
  detail = _useEventDetail.detail,
10
12
  getEventDetailSelectDate = _useEventDetail.getEventDetailSelectDate;
@@ -22,9 +24,10 @@ var Schedule = function Schedule() {
22
24
  if (!id) return;
23
25
  getEventDetailSelectDate.run(id, {
24
26
  days: 366,
25
- start_date: "".concat(e, "-01")
27
+ start_date: "".concat(e, "-01-01")
26
28
  });
27
- }
29
+ },
30
+ type: initData === null || initData === void 0 ? void 0 : initData.scheduleDisplayType
28
31
  }));
29
32
  };
30
33
  export default Schedule;
@@ -2,6 +2,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2
2
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
3
3
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
4
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
5
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
+ 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; }
8
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
9
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5
10
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
6
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."); }
7
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); }
@@ -18,16 +23,22 @@ import Resource from "./components/Resource";
18
23
  import BookingOptions from "./components/BookingOptions";
19
24
  import OrderProductModal from "../Provider/OrderProductModal/index";
20
25
  import "./index.less";
26
+ import useEngineContext from "../../../../hooks/useEngineContext";
21
27
  var BookingDetailModal = function BookingDetailModal(props) {
22
28
  var _detail$introduction2;
23
29
  var modalContentRef = useRef(null);
30
+ var context = useEngineContext();
31
+ var _ref = context.appHelper || {},
32
+ utils = _ref.utils;
24
33
  var tabsRef = useRef();
25
34
  var _props$open = props.open,
26
35
  open = _props$open === void 0 ? false : _props$open;
27
36
  var _useEventDetail = useEventDetail(),
28
37
  detail = _useEventDetail.detail,
29
38
  onCloseEventDetail = _useEventDetail.onCloseEventDetail,
30
- onSelectEventDetail = _useEventDetail.onSelectEventDetail;
39
+ onSelectEventDetail = _useEventDetail.onSelectEventDetail,
40
+ selectEventDetailProductDetail = _useEventDetail.selectEventDetailProductDetail,
41
+ checkBeforeSelectEventDetail = _useEventDetail.checkBeforeSelectEventDetail;
31
42
  var _useCart = useCart(),
32
43
  addToCart = _useCart.addToCart,
33
44
  checkBeforeAddToCart = _useCart.checkBeforeAddToCart,
@@ -184,9 +195,9 @@ var BookingDetailModal = function BookingDetailModal(props) {
184
195
  };
185
196
  }, [anchorOptions, activeTab, isScrolling]);
186
197
  /**
187
- * 处理tab切换
188
- * @param key 切换的标签ID
189
- */
198
+ * 处理tab切换
199
+ * @param key 切换的标签ID
200
+ */
190
201
  var handleTabChange = function handleTabChange(key) {
191
202
  // 设置当前激活的标签
192
203
  setActiveTab(typeof key === 'string' ? key : key.toString());
@@ -257,7 +268,42 @@ var BookingDetailModal = function BookingDetailModal(props) {
257
268
  }, /*#__PURE__*/React.createElement(Resource, null)), /*#__PURE__*/React.createElement("div", {
258
269
  "data-section": "booking_options",
259
270
  className: "content-section"
260
- }, /*#__PURE__*/React.createElement(BookingOptions, null))));
271
+ }, /*#__PURE__*/React.createElement(BookingOptions, {
272
+ onChangeBookingOption: checkToOpenProductDetailModal
273
+ }))));
274
+ };
275
+
276
+ /**
277
+ * @title: 判断是否需要拉起商品详情弹窗
278
+ * @description: 如果是普通商品,则不需要拉起商品详情弹窗
279
+ * @param {any} bookingOption 选中的option
280
+ * @return {void}
281
+ */
282
+ var checkToOpenProductDetailModal = function checkToOpenProductDetailModal(bookingOption) {
283
+ var _bookingOption$_origi;
284
+ console.log('>>>>>>>', bookingOption);
285
+ if ((bookingOption === null || bookingOption === void 0 || (_bookingOption$_origi = bookingOption._originData) === null || _bookingOption$_origi === void 0 ? void 0 : _bookingOption$_origi.is_eject) !== 1) {
286
+ return;
287
+ }
288
+ utils === null || utils === void 0 || utils.action({
289
+ type: 'pisell1.productDetail',
290
+ data: {
291
+ detail: _objectSpread({}, (bookingOption === null || bookingOption === void 0 ? void 0 : bookingOption._originData) || {}),
292
+ isOS: false
293
+ },
294
+ callback: function callback(data) {
295
+ if (data !== null && data !== void 0 && data.isCancel) {
296
+ return;
297
+ }
298
+ console.log('data>>>>>>', data);
299
+ var product = _objectSpread(_objectSpread({}, data), {}, {
300
+ options: (data === null || data === void 0 ? void 0 : data.option) || []
301
+ });
302
+ delete product.option;
303
+ selectEventDetailProductDetail(product);
304
+ handleOk();
305
+ }
306
+ });
261
307
  };
262
308
 
263
309
  /**
@@ -268,35 +314,46 @@ var BookingDetailModal = function BookingDetailModal(props) {
268
314
  * @Date: 2025-01-15 23:08
269
315
  */
270
316
  var handleOk = /*#__PURE__*/function () {
271
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
272
- var checkRes;
317
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
318
+ var result, checkRes;
273
319
  return _regeneratorRuntime().wrap(function _callee$(_context) {
274
320
  while (1) switch (_context.prev = _context.next) {
275
321
  case 0:
322
+ console.log('>>>>>>>', detail);
323
+ // 判断当前选中的option是否是普通商品,如果不是,需要拉起商品详情弹窗
324
+ result = checkBeforeSelectEventDetail();
325
+ if (result) {
326
+ _context.next = 5;
327
+ break;
328
+ }
329
+ // 拉起商品详情弹窗
330
+ checkToOpenProductDetailModal(detail === null || detail === void 0 ? void 0 : detail.selectedProduct);
331
+ return _context.abrupt("return");
332
+ case 5:
276
333
  onSelectEventDetail();
277
334
 
278
335
  // 检测商品是否可以下单
279
- _context.next = 3;
336
+ _context.next = 8;
280
337
  return checkBeforeAddToCart();
281
- case 3:
338
+ case 8:
282
339
  checkRes = _context.sent;
283
340
  if (!((checkRes === null || checkRes === void 0 ? void 0 : checkRes.result) === false)) {
284
- _context.next = 7;
341
+ _context.next = 12;
285
342
  break;
286
343
  }
287
344
  setOpenCheckout(true);
288
345
  return _context.abrupt("return");
289
- case 7:
346
+ case 12:
290
347
  // 加入购物车
291
348
  addToCart();
292
- case 8:
349
+ case 13:
293
350
  case "end":
294
351
  return _context.stop();
295
352
  }
296
353
  }, _callee);
297
354
  }));
298
355
  return function handleOk() {
299
- return _ref.apply(this, arguments);
356
+ return _ref2.apply(this, arguments);
300
357
  };
301
358
  }();
302
359
 
@@ -9,7 +9,9 @@ import { PisellHeaderProgressBar, PisellModal } from '@pisell/materials';
9
9
  import { useSales } from "../../../Sales";
10
10
  import { locales } from '@pisell/utils';
11
11
  import "./index.less";
12
+ import useEngineContext from "../../../../hooks/useEngineContext";
12
13
  var ProgressBar = function ProgressBar(_ref) {
14
+ var _context$appHelper;
13
15
  var title = _ref.title,
14
16
  description = _ref.description,
15
17
  _ref$showClose = _ref.showClose,
@@ -29,6 +31,9 @@ var ProgressBar = function ProgressBar(_ref) {
29
31
  setOpen = _useState2[1];
30
32
  var _useSales = useSales(),
31
33
  removeSessionStorage = _useSales.removeSessionStorage;
34
+ var context = useEngineContext();
35
+ var _ref2 = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {},
36
+ interaction = _ref2.interaction;
32
37
 
33
38
  /**
34
39
  * @title: 点击关闭
@@ -54,10 +59,21 @@ var ProgressBar = function ProgressBar(_ref) {
54
59
  * @Date: 2025-02-10 17:46
55
60
  */
56
61
  var handleOk = function handleOk() {
62
+ var _interaction$utils, _interaction$utils$is;
63
+ if (interaction !== null && interaction !== void 0 && (_interaction$utils = interaction.utils) !== null && _interaction$utils !== void 0 && (_interaction$utils$is = _interaction$utils.isAppEnv) !== null && _interaction$utils$is !== void 0 && _interaction$utils$is.call(_interaction$utils)) {
64
+ interaction.utils.postMessageToApp({
65
+ module: 'global',
66
+ key: 'paymentResultAction',
67
+ data: {
68
+ actionType: 'backHome'
69
+ }
70
+ });
71
+ return;
72
+ }
57
73
  onClose === null || onClose === void 0 || onClose();
58
74
  setOpen(false);
59
75
  // 清空数据
60
- removeSessionStorage();
76
+ removeSessionStorage === null || removeSessionStorage === void 0 || removeSessionStorage();
61
77
  };
62
78
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PisellHeaderProgressBar, {
63
79
  className: "event-progress-bar",
@@ -55,11 +55,11 @@ var PisellResourceCard = function PisellResourceCard(_ref) {
55
55
  var renderAvatar = function renderAvatar() {
56
56
  if (!showImage) return null;
57
57
  return /*#__PURE__*/React.createElement(PisellAvatar, {
58
- src: image,
58
+ src: image || undefined,
59
59
  shape: shape,
60
60
  size: size,
61
61
  useTextAvatar: !image,
62
- children: /*#__PURE__*/React.createElement(Image, {
62
+ children: (rest === null || rest === void 0 ? void 0 : rest.children) || /*#__PURE__*/React.createElement(Image, {
63
63
  src: defaultImage,
64
64
  preview: false
65
65
  }),
@@ -1,5 +1,6 @@
1
1
  .pisell-resource-card {
2
2
  box-shadow: none;
3
+ height: 100%;
3
4
  &-content {
4
5
  display: flex;
5
6
  gap: 16px;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type Item = any;
4
3
  interface ProductItemProps {
@@ -6,6 +6,7 @@ declare type CalendarItemProps = {
6
6
  onSelect: (date: string, item?: CalendarDataItem) => void;
7
7
  onChange: (date: string, type: string) => void;
8
8
  isEdit: boolean;
9
+ type?: 'calendarView' | 'textList';
9
10
  };
10
11
  declare const CalendarItem: (props: CalendarItemProps) => JSX.Element;
11
12
  export default CalendarItem;
@@ -6,6 +6,7 @@ import { formatBackgroundColors, formatMonthDisplay } from "../../utils";
6
6
  import useEngineContext from "../../../../hooks/useEngineContext";
7
7
  import zhCN from 'antd/es/date-picker/locale/zh_CN';
8
8
  import enUS from 'antd/es/date-picker/locale/en_US';
9
+ import ScheduleTimes from "./components/ScheduleTimes";
9
10
  var CalendarItem = function CalendarItem(props) {
10
11
  var _utils$storage;
11
12
  var month = props.month,
@@ -13,7 +14,8 @@ var CalendarItem = function CalendarItem(props) {
13
14
  selectDate = props.selectDate,
14
15
  onSelect = props.onSelect,
15
16
  isEdit = props.isEdit,
16
- onChange = props.onChange;
17
+ onChange = props.onChange,
18
+ type = props.type;
17
19
  var context = useEngineContext();
18
20
  var utils = context.appHelper.utils || {};
19
21
  var locale = utils !== null && utils !== void 0 && (_utils$storage = utils.storage) !== null && _utils$storage !== void 0 && (_utils$storage = _utils$storage.get('umi_locale')) !== null && _utils$storage !== void 0 && _utils$storage.includes('zh') ? zhCN : enUS;
@@ -60,7 +62,10 @@ var CalendarItem = function CalendarItem(props) {
60
62
  className: "calendar-month-icon"
61
63
  }, /*#__PURE__*/React.createElement(Iconfont, {
62
64
  type: "pisell2-chevron-right"
63
- }))), /*#__PURE__*/React.createElement(Calendar, {
65
+ }))), type === 'textList' ? /*#__PURE__*/React.createElement(ScheduleTimes, {
66
+ month: month,
67
+ schedulesData: schedulesData
68
+ }) : /*#__PURE__*/React.createElement(Calendar, {
64
69
  locale: locale,
65
70
  headerRender: function headerRender() {
66
71
  return null;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const ScheduleTimeItem: ({ timeList }: any) => JSX.Element;
3
+ export default ScheduleTimeItem;
@@ -0,0 +1,60 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+ 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."); }
3
+ 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); }
4
+ 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; }
5
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ import React, { useEffect, useState } from 'react';
8
+ import { Iconfont, PisellEmpty } from '@pisell/materials';
9
+ import { isMobile, locales } from '@pisell/utils';
10
+ import dayjs from 'dayjs';
11
+ import "./index.less";
12
+ var ScheduleTimeItem = function ScheduleTimeItem(_ref) {
13
+ var timeList = _ref.timeList;
14
+ var _useState = useState([]),
15
+ _useState2 = _slicedToArray(_useState, 2),
16
+ times = _useState2[0],
17
+ setTimes = _useState2[1];
18
+ var _useState3 = useState(false),
19
+ _useState4 = _slicedToArray(_useState3, 2),
20
+ isExpand = _useState4[0],
21
+ setIsExpand = _useState4[1];
22
+ useEffect(function () {
23
+ // 如果times的长度大于4,则只取前4个,然后显示折叠按钮
24
+ if ((timeList === null || timeList === void 0 ? void 0 : timeList.length) > 4) {
25
+ setTimes(timeList === null || timeList === void 0 ? void 0 : timeList.slice(0, 4));
26
+ } else {
27
+ setTimes(timeList);
28
+ }
29
+ }, [timeList]);
30
+ var handleExpand = function handleExpand() {
31
+ var nextExpandStatus = !isExpand;
32
+ if (nextExpandStatus) {
33
+ setTimes(timeList);
34
+ } else {
35
+ setTimes(timeList === null || timeList === void 0 ? void 0 : timeList.slice(0, 4));
36
+ }
37
+ setIsExpand(nextExpandStatus);
38
+ };
39
+ return /*#__PURE__*/React.createElement("div", {
40
+ className: "schedule-time-item"
41
+ }, /*#__PURE__*/React.createElement("div", {
42
+ className: "schedule-time-item-content-wrapper"
43
+ }, (times === null || times === void 0 ? void 0 : times.length) > 0 ? times === null || times === void 0 ? void 0 : times.map(function (item) {
44
+ return /*#__PURE__*/React.createElement("div", {
45
+ className: isMobile() ? 'schedule-time-item-content-mobile' : 'schedule-time-item-content',
46
+ key: (item.start_at || '') + (item.end_at || '')
47
+ }, /*#__PURE__*/React.createElement("div", {
48
+ className: "schedule-time-item-content-time"
49
+ }, (item === null || item === void 0 ? void 0 : item.start_date) || ''), /*#__PURE__*/React.createElement("div", {
50
+ className: "schedule-time-item-content-time"
51
+ }, dayjs((item === null || item === void 0 ? void 0 : item.start_at) || '').format('HH:mm'), ' - ', dayjs((item === null || item === void 0 ? void 0 : item.end_at) || '').format('HH:mm')));
52
+ }) : /*#__PURE__*/React.createElement(PisellEmpty, null)), (timeList === null || timeList === void 0 ? void 0 : timeList.length) > 4 && /*#__PURE__*/React.createElement("div", {
53
+ className: "schedule-time-item-expand-btn",
54
+ onClick: handleExpand
55
+ }, isExpand ? locales.getText('pisell2.event.schedule.item.collapse') : locales.getText('pisell2.event.schedule.item.expand'), /*#__PURE__*/React.createElement(Iconfont, {
56
+ type: isExpand ? 'pisell2-chevron-up-double' : 'pisell2-chevron-down-double',
57
+ className: "schedule-time-item-expand-btn-icon"
58
+ })));
59
+ };
60
+ export default ScheduleTimeItem;
@@ -0,0 +1,63 @@
1
+ .schedule-time-item {
2
+ width: 100%;
3
+ display: flex;
4
+ flex-direction: column;
5
+ gap: 16px;
6
+
7
+ .schedule-time-item-content-wrapper {
8
+ display: flex;
9
+ flex-wrap: wrap;
10
+ gap: 16px;
11
+ }
12
+
13
+ .schedule-time-item-content-mobile {
14
+ width: 100%;
15
+ padding: 14px 16px;
16
+ display: flex;
17
+ flex-direction: row;
18
+ align-items: center;
19
+ justify-content: flex-start;
20
+ border-radius: 8px;
21
+ border: 1px solid #f5f5f5;
22
+ background: #fff;
23
+ gap: 8px;
24
+ }
25
+
26
+ .schedule-time-item-content {
27
+ width: calc(50% - 8px);
28
+ padding: 14px 16px;
29
+ display: flex;
30
+ flex-direction: column;
31
+ align-items: center;
32
+ justify-content: center;
33
+ border-radius: 8px;
34
+ border: 1px solid #f5f5f5;
35
+ background: #fff;
36
+
37
+ .schedule-time-item-content-time {
38
+ color: #141414;
39
+ text-align: center;
40
+ font-size: 14px;
41
+ font-weight: 600;
42
+ }
43
+ }
44
+
45
+ .schedule-time-item-expand-btn {
46
+ display: flex;
47
+ flex: 1 0 0;
48
+ height: 48px;
49
+ padding: 14px 16px;
50
+ justify-content: center;
51
+ align-items: center;
52
+ gap: 8px;
53
+ border-radius: 8px;
54
+ border: 1px solid #f5f5f5;
55
+ background: #fff;
56
+ cursor: pointer;
57
+
58
+ .schedule-time-item-expand-btn-icon {
59
+ margin-top: 2px;
60
+ font-size: 20px;
61
+ }
62
+ }
63
+ }
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ import { CalendarDataItem } from '../../../../type';
4
+ interface ScheduleTimesProps {
5
+ month: string;
6
+ schedulesData: CalendarDataItem[];
7
+ }
8
+ declare const ScheduleTimes: React.FC<ScheduleTimesProps>;
9
+ export default ScheduleTimes;
@@ -0,0 +1,59 @@
1
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
2
+ 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."); }
3
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
4
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
5
+ 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(_e) { throw _e; }, 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(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
6
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
7
+ 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."); }
8
+ 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); }
9
+ 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; }
10
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
11
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12
+ import React, { useEffect, useState } from 'react';
13
+ import dayjs from 'dayjs';
14
+ import { PisellEmpty } from '@pisell/materials';
15
+ import "./index.less";
16
+ import ScheduleTimeItem from "../ScheduleTimeItem";
17
+ var ScheduleTimes = function ScheduleTimes(_ref) {
18
+ var month = _ref.month,
19
+ schedulesData = _ref.schedulesData;
20
+ var _useState = useState([]),
21
+ _useState2 = _slicedToArray(_useState, 2),
22
+ timeList = _useState2[0],
23
+ setTimeList = _useState2[1];
24
+ useEffect(function () {
25
+ // 根据month获取schedulesData中对应的日期数据,使用dayjs对date进行格式化,只比较年月
26
+ var timeList = [];
27
+ var _iterator = _createForOfIteratorHelper(schedulesData),
28
+ _step;
29
+ try {
30
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
31
+ var item = _step.value;
32
+ // 如果date在month对应的月份后面则停止循环,提升性能
33
+ var date = dayjs(item.date);
34
+ if (date.isAfter(month, 'month')) {
35
+ break;
36
+ }
37
+ if (date.isSame(month, 'month')) {
38
+ timeList.push.apply(timeList, _toConsumableArray((item === null || item === void 0 ? void 0 : item.times) || []));
39
+ }
40
+ }
41
+ } catch (err) {
42
+ _iterator.e(err);
43
+ } finally {
44
+ _iterator.f();
45
+ }
46
+ if ((timeList === null || timeList === void 0 ? void 0 : timeList.length) > 0) {
47
+ setTimeList(timeList);
48
+ } else {
49
+ setTimeList([]);
50
+ }
51
+ }, [month, schedulesData]);
52
+ return /*#__PURE__*/React.createElement("div", {
53
+ className: "schedule-times-container"
54
+ }, (timeList === null || timeList === void 0 ? void 0 : timeList.length) > 0 ? /*#__PURE__*/React.createElement(ScheduleTimeItem, {
55
+ key: month,
56
+ timeList: timeList
57
+ }) : /*#__PURE__*/React.createElement(PisellEmpty, null));
58
+ };
59
+ export default ScheduleTimes;
@@ -0,0 +1,7 @@
1
+ .schedule-times-container {
2
+ width: 100%;
3
+ padding-top: 14px;
4
+ display: flex;
5
+ flex-direction: column;
6
+ gap: 24px;
7
+ }
@@ -8,6 +8,7 @@ export interface EventResourceUsabilityProps {
8
8
  className?: string;
9
9
  style?: React.CSSProperties;
10
10
  onChange?: (e: number) => void;
11
+ type?: 'calendarView' | 'textList';
11
12
  }
12
13
  declare const EventScheduleCalendar: React.FC<EventResourceUsabilityProps>;
13
14
  export default EventScheduleCalendar;