@pisell/private-materials 6.0.25 → 6.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1287) 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/businessModel/SalesModel/Sales/index.js +37 -4
  12. package/es/businessModel/SalesModel/index.d.ts +0 -1
  13. package/es/components/Sales/Cart/index.js +26 -13
  14. package/es/components/Sales/Cart/types.d.ts +12 -0
  15. package/es/components/Sales/Cart/utils.d.ts +23 -0
  16. package/es/components/Sales/Cart/utils.js +161 -0
  17. package/es/components/Sales/Checkout/utils.d.ts +9 -1
  18. package/es/components/Sales/Checkout/utils.js +25 -3
  19. package/es/components/Sales/Customer/index.js +3 -1
  20. package/es/components/Sales/Event/Detail.d.ts +2 -0
  21. package/es/components/Sales/Event/Detail.js +60 -13
  22. package/es/components/Sales/Event/index.js +7 -7
  23. package/es/components/Sales/Event/serve.d.ts +13 -0
  24. package/es/components/Sales/Event/serve.js +26 -1
  25. package/es/components/Sales/Init/index.d.ts +1 -0
  26. package/es/components/Sales/Init/index.js +3 -2
  27. package/es/components/Sales/Resource/index.js +2 -2
  28. package/es/components/Sales/Resource/serve.d.ts +7 -0
  29. package/es/components/Sales/Resource/serve.js +10 -0
  30. package/es/components/Sales/Step/index.d.ts +2 -0
  31. package/es/components/Sales/Step/index.js +13 -4
  32. package/es/components/Sales/Summary/utils.d.ts +1 -1
  33. package/es/components/Sales/Summary/utils.js +1 -0
  34. package/es/components/appointmentBooking/assets/alert-circle.png +0 -0
  35. package/es/components/appointmentBooking/assets/calendar-heart.svg +5 -0
  36. package/es/components/appointmentBooking/assets/compass.svg +13 -0
  37. package/es/components/appointmentBooking/assets/guests.svg +1 -0
  38. package/es/components/appointmentBooking/assets/image.svg +5 -0
  39. package/es/components/appointmentBooking/assets/phone.svg +5 -0
  40. package/es/components/appointmentBooking/assets/resource.svg +1 -0
  41. package/es/components/appointmentBooking/assets/shopping-cart.svg +10 -0
  42. package/es/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +7 -0
  43. package/es/components/appointmentBooking/components/Cart/ContinueButton/index.js +152 -0
  44. package/es/components/appointmentBooking/components/Cart/ContinueButton/index.less +0 -0
  45. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +3 -0
  46. package/es/components/appointmentBooking/components/Cart/Item/Total.js +45 -0
  47. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
  48. package/es/components/appointmentBooking/components/Cart/Item/index.js +261 -0
  49. package/es/components/appointmentBooking/components/Cart/Item/index.less +108 -0
  50. package/es/components/appointmentBooking/components/Cart/index.d.ts +3 -0
  51. package/es/components/appointmentBooking/components/Cart/index.js +29 -0
  52. package/es/components/appointmentBooking/components/Cart/index.less +2 -0
  53. package/es/components/appointmentBooking/components/Cart/utils.d.ts +56 -0
  54. package/es/components/appointmentBooking/components/Cart/utils.js +170 -0
  55. package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +4 -0
  56. package/es/components/appointmentBooking/components/ConfirmInformation/index.js +277 -0
  57. package/es/components/appointmentBooking/components/ConfirmInformation/index.less +35 -0
  58. package/es/components/appointmentBooking/components/ConfirmInformation/utils.d.ts +12 -0
  59. package/es/components/appointmentBooking/components/ConfirmInformation/utils.js +17 -0
  60. package/es/components/appointmentBooking/components/Content/index.d.ts +3 -0
  61. package/es/components/appointmentBooking/components/Content/index.js +243 -0
  62. package/es/components/appointmentBooking/components/Content/index.less +113 -0
  63. package/es/components/appointmentBooking/components/Date/index.d.ts +4 -0
  64. package/es/components/appointmentBooking/components/Date/index.js +403 -0
  65. package/es/components/appointmentBooking/components/Date/index.less +142 -0
  66. package/es/components/appointmentBooking/components/Date/state.d.ts +63 -0
  67. package/es/components/appointmentBooking/components/Date/state.js +223 -0
  68. package/es/components/appointmentBooking/components/Deposit/index.d.ts +3 -0
  69. package/es/components/appointmentBooking/components/Deposit/index.js +30 -0
  70. package/es/components/appointmentBooking/components/Deposit/index.less +17 -0
  71. package/es/components/appointmentBooking/components/Footer/index.d.ts +3 -0
  72. package/es/components/appointmentBooking/components/Footer/index.js +63 -0
  73. package/es/components/appointmentBooking/components/Footer/index.less +64 -0
  74. package/es/components/appointmentBooking/components/Form/index.d.ts +4 -0
  75. package/es/components/appointmentBooking/components/Form/index.js +157 -0
  76. package/es/components/appointmentBooking/components/Form/index.less +3 -0
  77. package/es/components/appointmentBooking/components/Form/utils.d.ts +8 -0
  78. package/es/components/appointmentBooking/components/Form/utils.js +36 -0
  79. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +3 -0
  80. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.js +50 -0
  81. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.less +28 -0
  82. package/es/components/appointmentBooking/components/Guest/index.d.ts +4 -0
  83. package/es/components/appointmentBooking/components/Guest/index.js +185 -0
  84. package/es/components/appointmentBooking/components/Guest/index.less +92 -0
  85. package/es/components/appointmentBooking/components/Header/index.d.ts +3 -0
  86. package/es/components/appointmentBooking/components/Header/index.js +199 -0
  87. package/es/components/appointmentBooking/components/Header/index.less +0 -0
  88. package/es/components/appointmentBooking/components/Resource/index.d.ts +7 -0
  89. package/es/components/appointmentBooking/components/Resource/index.js +285 -0
  90. package/es/components/appointmentBooking/components/Resource/index.less +10 -0
  91. package/es/components/appointmentBooking/components/Resource/utils.d.ts +5 -0
  92. package/es/components/appointmentBooking/components/Resource/utils.js +16 -0
  93. package/es/components/appointmentBooking/components/Services/index.d.ts +4 -0
  94. package/es/components/appointmentBooking/components/Services/index.js +257 -0
  95. package/es/components/appointmentBooking/components/Services/index.less +3 -0
  96. package/es/components/appointmentBooking/components/TimeSlicing/index.d.ts +4 -0
  97. package/es/components/appointmentBooking/components/TimeSlicing/index.js +118 -0
  98. package/es/components/appointmentBooking/components/TimeSlicing/index.less +33 -0
  99. package/es/components/appointmentBooking/components/Voucher/index.d.ts +4 -0
  100. package/es/components/appointmentBooking/components/Voucher/index.js +267 -0
  101. package/es/components/appointmentBooking/components/Voucher/index.less +116 -0
  102. package/es/components/appointmentBooking/context.d.ts +35 -0
  103. package/es/components/appointmentBooking/context.js +241 -0
  104. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  105. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +134 -0
  106. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.less +18 -0
  107. package/es/components/appointmentBooking/deposit/index.d.ts +3 -0
  108. package/es/components/appointmentBooking/deposit/index.js +101 -0
  109. package/es/components/appointmentBooking/deposit/index.less +57 -0
  110. package/es/components/appointmentBooking/hooks.d.ts +106 -0
  111. package/es/components/appointmentBooking/hooks.js +976 -0
  112. package/es/components/appointmentBooking/index.d.ts +3 -0
  113. package/es/components/appointmentBooking/index.js +48 -0
  114. package/es/components/appointmentBooking/index.less +23 -0
  115. package/es/components/appointmentBooking/locales.d.ts +360 -0
  116. package/es/components/appointmentBooking/locales.js +413 -0
  117. package/es/components/appointmentBooking/mock.d.ts +627 -0
  118. package/es/components/appointmentBooking/mock.js +1172 -0
  119. package/es/components/appointmentBooking/status.d.ts +21 -0
  120. package/es/components/appointmentBooking/status.js +51 -0
  121. package/es/components/appointmentBooking/type.d.ts +17 -0
  122. package/es/components/appointmentBooking/type.js +1 -0
  123. package/es/components/appointmentBooking/utils.d.ts +203 -0
  124. package/es/components/appointmentBooking/utils.js +768 -0
  125. package/es/components/booking/addons/index.js +56 -35
  126. package/es/components/booking/addons/model.js +5 -0
  127. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  128. package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  129. package/es/components/booking/components/TabProduct/productItem/index.js +14 -2
  130. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  131. package/es/components/booking/components/TabProduct/selectProductItem/index.js +3 -1
  132. package/es/components/booking/components/TabProduct/selectProductItem/index.less +6 -0
  133. package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
  134. package/es/components/booking/components/browserSelect/index.js +1 -1
  135. package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
  136. package/es/components/booking/components/customSelect/index.js +3 -0
  137. package/es/components/booking/components/drawer/index.js +4 -2
  138. package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
  139. package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  140. package/es/components/booking/components/footer/amount.d.ts +1 -0
  141. package/es/components/booking/components/footer/amount.js +5 -4
  142. package/es/components/booking/components/footer/index.d.ts +0 -1
  143. package/es/components/booking/components/footer/index.js +227 -123
  144. package/es/components/booking/components/footer/index.less +6 -1
  145. package/es/components/booking/components/footer/utils.d.ts +22 -0
  146. package/es/components/booking/components/footer/utils.js +213 -62
  147. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  148. package/es/components/booking/components/voucher/index.d.ts +3 -0
  149. package/es/components/booking/components/voucher/index.js +319 -0
  150. package/es/components/booking/components/voucher/index.less +87 -0
  151. package/es/components/booking/components/voucher/utils.d.ts +4 -0
  152. package/es/components/booking/components/voucher/utils.js +15 -0
  153. package/es/components/booking/deposit/DepositItem/index.js +1 -0
  154. package/es/components/booking/deposit/index.d.ts +0 -1
  155. package/es/components/booking/deposit/index.js +5 -3
  156. package/es/components/booking/editBookingModal/index.d.ts +5 -0
  157. package/es/components/booking/editBookingModal/index.js +386 -0
  158. package/es/components/booking/editBookingModal/index.less +8 -0
  159. package/es/components/booking/editBookingModal/locales.d.ts +21 -0
  160. package/es/components/booking/editBookingModal/locales.js +20 -0
  161. package/es/components/booking/editBookingModal/mock.d.ts +807 -0
  162. package/es/components/booking/editBookingModal/mock.js +2993 -0
  163. package/es/components/booking/editBookingModal/serve.d.ts +51 -0
  164. package/es/components/booking/editBookingModal/serve.js +288 -0
  165. package/es/components/booking/editBookingModal/type.d.ts +12 -0
  166. package/es/components/booking/editBookingModal/type.js +1 -0
  167. package/es/components/booking/editBookingModal/utils.d.ts +12 -0
  168. package/es/components/booking/editBookingModal/utils.js +157 -0
  169. package/es/components/booking/forms/footer.d.ts +6 -0
  170. package/es/components/booking/forms/footer.js +88 -0
  171. package/es/components/booking/forms/forms.d.ts +4 -0
  172. package/es/components/booking/forms/forms.js +15 -3
  173. package/es/components/booking/forms/index.d.ts +1 -1
  174. package/es/components/booking/forms/index.js +25 -20
  175. package/es/components/booking/forms/index.less +7 -0
  176. package/es/components/booking/forms/model.js +5 -5
  177. package/es/components/booking/forms/sendModal/index.d.ts +27 -0
  178. package/es/components/booking/forms/sendModal/index.js +82 -0
  179. package/es/components/booking/forms/sendModal/index.less +9 -0
  180. package/es/components/booking/forms/sendModal/useSendModal.d.ts +9 -0
  181. package/es/components/booking/forms/sendModal/useSendModal.js +79 -0
  182. package/es/components/booking/forms/serve.d.ts +9 -0
  183. package/es/components/booking/forms/serve.js +20 -0
  184. package/es/components/booking/forms/single/index.d.ts +1 -2
  185. package/es/components/booking/forms/single/index.js +83 -27
  186. package/es/components/booking/forms/table/index.d.ts +0 -1
  187. package/es/components/booking/hooks/useClearCart.js +11 -8
  188. package/es/components/booking/hooks/useCreateBookingPageHeader.js +3 -0
  189. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  190. package/es/components/booking/hooks/useIsBooking4Shop.js +10 -0
  191. package/es/components/booking/hooks/useQuotation.d.ts +5 -0
  192. package/es/components/booking/hooks/useQuotation.js +266 -0
  193. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  194. package/es/components/booking/info/addServiceVariant/index.js +2 -2
  195. package/es/components/booking/info/client/index.js +43 -10
  196. package/es/components/booking/info/client/index.less +39 -0
  197. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  198. package/es/components/booking/info/clientVariant/hooks/useClientFn.js +10 -1
  199. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  200. package/es/components/booking/info/clientVariant/utils.d.ts +1 -0
  201. package/es/components/booking/info/clientVariant/utils.js +6 -0
  202. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +17 -2
  203. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.less +17 -0
  204. package/es/components/booking/info/clientVariant/vertical/index.js +33 -7
  205. package/es/components/booking/info/clientVariant/vertical/index.less +18 -0
  206. package/es/components/booking/info/date/index.d.ts +0 -1
  207. package/es/components/booking/info/header/index.d.ts +0 -1
  208. package/es/components/booking/info/hooks/useAddHolder.d.ts +9 -0
  209. package/es/components/booking/info/hooks/useAddHolder.js +171 -0
  210. package/es/components/booking/info/hooks/useGetHolderList.d.ts +2 -0
  211. package/es/components/booking/info/hooks/useGetHolderList.js +48 -0
  212. package/es/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
  213. package/es/components/booking/info/hooks/useHolderConfig.js +40 -0
  214. package/es/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
  215. package/es/components/booking/info/hooks/useInfoHolder.js +76 -0
  216. package/es/components/booking/info/index.d.ts +0 -1
  217. package/es/components/booking/info/index.js +16 -2
  218. package/es/components/booking/info/main.js +1 -1
  219. package/es/components/booking/info/model.js +5 -0
  220. package/es/components/booking/info/notes/index.d.ts +0 -1
  221. package/es/components/booking/info/pet/index.js +107 -25
  222. package/es/components/booking/info/pet/serve.d.ts +1 -0
  223. package/es/components/booking/info/pet/serve.js +27 -0
  224. package/es/components/booking/info/service/Lists.d.ts +2 -0
  225. package/es/components/booking/info/service/Lists.js +131 -0
  226. package/es/components/booking/info/service/actions/index.d.ts +0 -1
  227. package/es/components/booking/info/service/addService/index.js +35 -33
  228. package/es/components/booking/info/service/editService/index.d.ts +1 -1
  229. package/es/components/booking/info/service/editService/index.js +115 -61
  230. package/es/components/booking/info/service/index.js +8 -5
  231. package/es/components/booking/info/service/like/index.d.ts +0 -1
  232. package/es/components/booking/info/service/like/index.js +1 -1
  233. package/es/components/booking/info/service/serve.d.ts +9 -0
  234. package/es/components/booking/info/service/serve.js +21 -0
  235. package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
  236. package/es/components/booking/info/service/serviceList/index.js +1 -0
  237. package/es/components/booking/info/service/serviceManager/index.js +12 -7
  238. package/es/components/booking/info/service2/Group/utils.js +3 -2
  239. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  240. package/es/components/booking/info/service2/hooks/useSelectPet.js +13 -5
  241. package/es/components/booking/info/service2/index.js +6 -3
  242. package/es/components/booking/info/service2/utils.d.ts +14 -7
  243. package/es/components/booking/info/service2/utils.js +421 -112
  244. package/es/components/booking/info/utils.d.ts +6 -0
  245. package/es/components/booking/info/utils.js +62 -1
  246. package/es/components/booking/info2/index.js +19 -11
  247. package/es/components/booking/info2/serve.d.ts +2 -2
  248. package/es/components/booking/info2/serve.js +9 -12
  249. package/es/components/booking/info2/service/actions/index.d.ts +0 -1
  250. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  251. package/es/components/booking/info2/service/addService/index.js +81 -37
  252. package/es/components/booking/info2/service/addService/utils.d.ts +30 -3
  253. package/es/components/booking/info2/service/addService/utils.js +198 -78
  254. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  255. package/es/components/booking/info2/service/addTimeModal/index.js +7 -5
  256. package/es/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.js +2 -4
  257. package/es/components/booking/info2/service/editService/Resources/index.js +49 -11
  258. package/es/components/booking/info2/service/editService/Resources/index.less +6 -0
  259. package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
  260. package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +26 -0
  261. package/es/components/booking/info2/service/editService/ResourcesV2/index.d.ts +10 -0
  262. package/es/components/booking/info2/service/editService/ResourcesV2/index.js +308 -0
  263. package/es/components/booking/info2/service/editService/ResourcesV2/index.less +44 -0
  264. package/es/components/booking/info2/service/editService/index.js +338 -161
  265. package/es/components/booking/info2/service/editService/utils.d.ts +4 -2
  266. package/es/components/booking/info2/service/editService/utils.js +18 -0
  267. package/es/components/booking/info2/service/index.js +30 -42
  268. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
  269. package/es/components/booking/info2/utils.d.ts +4 -0
  270. package/es/components/booking/info2/utils.js +45 -0
  271. package/es/components/booking/info2/utilsByBooking.d.ts +2 -1
  272. package/es/components/booking/info2/utilsByBooking.js +54 -15
  273. package/es/components/booking/locales.d.ts +90 -0
  274. package/es/components/booking/locales.js +111 -3
  275. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  276. package/es/components/booking/materiels/duration/index.d.ts +0 -1
  277. package/es/components/booking/materiels/duration/index.js +9 -2
  278. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  279. package/es/components/booking/materiels/holder/index.js +2 -2
  280. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  281. package/es/components/booking/materiels/startTime/index.js +1 -1
  282. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  283. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  284. package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
  285. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  286. package/es/components/booking/notes/addNote/index.d.ts +0 -1
  287. package/es/components/booking/notes/addNote/index.js +1 -1
  288. package/es/components/booking/notes/addNote/index.less +3 -0
  289. package/es/components/booking/notes/model.js +5 -5
  290. package/es/components/booking/payments/index.js +2 -1
  291. package/es/components/booking/payments/model.js +5 -5
  292. package/es/components/booking/utils.d.ts +3 -0
  293. package/es/components/booking/utils.js +66 -21
  294. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  295. package/es/components/eftpos/form/index.d.ts +0 -1
  296. package/es/components/eftpos/group/index.d.ts +0 -1
  297. package/es/components/eftpos/hooks.d.ts +0 -1
  298. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  299. package/es/components/eftpos/icon/device.d.ts +0 -1
  300. package/es/components/eftpos/index.d.ts +0 -1
  301. package/es/components/eftpos/pos.d.ts +0 -1
  302. package/es/components/eftpos/receipt/index.d.ts +0 -1
  303. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  304. package/es/components/eftposPay/amount.d.ts +1 -2
  305. package/es/components/eftposPay/app.d.ts +0 -1
  306. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  307. package/es/components/eftposPay/component/fail/network.d.ts +0 -1
  308. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  309. package/es/components/eftposPay/component/manual/index.d.ts +0 -1
  310. package/es/components/eftposPay/component/signature/index.d.ts +0 -1
  311. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  312. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  313. package/es/components/eftposPay/device.d.ts +1 -2
  314. package/es/components/eftposPay/hooks.d.ts +2 -2
  315. package/es/components/eftposPay/payo/config.js +44 -6
  316. package/es/components/eftposPay/payo/hooks.js +12 -1
  317. package/es/components/eftposPay/store/index.d.ts +4 -4
  318. package/es/components/eftposPay/tip.d.ts +0 -1
  319. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  320. package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  321. package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
  322. package/es/components/eftposPay/windcave/windcave.js +12 -2
  323. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +292 -49
  324. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  325. package/es/components/eventBooking/components/Provider/Event/index.js +32 -7
  326. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  327. package/es/components/eventBooking/components/Provider/Resource/index.js +26 -5
  328. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  329. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  330. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -1
  331. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  332. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  333. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -1
  334. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  335. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +2 -2
  336. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +1 -1
  337. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +3 -1
  338. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.js +30 -8
  339. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  340. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  341. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.js +6 -3
  342. package/es/components/eventBooking/components/bookingDetailModal/index.js +89 -16
  343. package/es/components/eventBooking/components/progressBar/index.js +17 -1
  344. package/es/components/eventBooking/components/resourceDisplay/index.js +2 -2
  345. package/es/components/eventBooking/components/resourceDisplay/index.less +1 -0
  346. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  347. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  348. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.js +7 -2
  349. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +3 -0
  350. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.js +60 -0
  351. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.less +63 -0
  352. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.d.ts +9 -0
  353. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.js +59 -0
  354. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.less +7 -0
  355. package/es/components/eventBooking/components/scheduleCalendar/index.d.ts +1 -0
  356. package/es/components/eventBooking/components/scheduleCalendar/index.js +30 -21
  357. package/es/components/eventBooking/components/scheduleCalendar/index.less +2 -0
  358. package/es/components/eventBooking/components/timeResourceSelector/index.less +0 -1
  359. package/es/components/eventBooking/index.d.ts +0 -1
  360. package/es/components/eventBooking/index.js +23 -9
  361. package/es/components/eventBooking/locales.d.ts +6 -0
  362. package/es/components/eventBooking/locales.js +172 -166
  363. package/es/components/eventBooking/utils.js +8 -8
  364. package/es/components/index.d.ts +4 -1
  365. package/es/components/index.js +4 -1
  366. package/es/components/listComponent/index.js +5 -5
  367. package/es/components/login/index.d.ts +0 -1
  368. package/es/components/pay/toB/components/Cache/index.d.ts +10 -0
  369. package/es/components/pay/toB/components/Cache/index.js +94 -0
  370. package/es/components/pay/toB/components/Cache/index.less +41 -0
  371. package/es/components/pay/toB/components/Card/index.d.ts +7 -0
  372. package/es/components/pay/toB/components/Card/index.js +32 -0
  373. package/es/components/pay/toB/components/Card/index.less +26 -0
  374. package/es/components/pay/toB/components/CardGroup/index.d.ts +7 -0
  375. package/es/components/pay/toB/components/CardGroup/index.js +22 -0
  376. package/es/components/pay/toB/components/CardGroup/index.less +18 -0
  377. package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +6 -0
  378. package/es/components/pay/toB/components/ConfirmedPayment/index.js +67 -0
  379. package/es/components/pay/toB/components/ConfirmedPayment/index.less +69 -0
  380. package/es/components/pay/toB/components/Content/Footer.d.ts +7 -0
  381. package/es/components/pay/toB/components/Content/Footer.js +36 -0
  382. package/es/components/pay/toB/components/Content/Header.d.ts +4 -0
  383. package/es/components/pay/toB/components/Content/Header.js +12 -0
  384. package/es/components/pay/toB/components/Content/index.d.ts +4 -0
  385. package/es/components/pay/toB/components/Content/index.js +260 -0
  386. package/es/components/pay/toB/components/Content/index.less +9 -0
  387. package/es/components/pay/toB/components/Content/utils.d.ts +16 -0
  388. package/es/components/pay/toB/components/Content/utils.js +76 -0
  389. package/es/components/pay/toB/components/index.d.ts +5 -0
  390. package/es/components/pay/toB/components/index.js +5 -0
  391. package/es/components/pay/toB/hooks.d.ts +12 -0
  392. package/es/components/pay/toB/hooks.js +30 -0
  393. package/es/components/pay/toB/index.d.ts +3 -0
  394. package/es/components/pay/toB/index.js +24 -0
  395. package/es/components/pay/toB/locales.d.ts +54 -0
  396. package/es/components/pay/toB/locales.js +65 -0
  397. package/es/components/pay/toB/store/context.d.ts +3 -0
  398. package/es/components/pay/toB/store/context.js +2 -0
  399. package/es/components/pay/toB/store/hooks.d.ts +15 -0
  400. package/es/components/pay/toB/store/hooks.js +89 -0
  401. package/es/components/pay/toB/store/index.d.ts +3 -0
  402. package/es/components/pay/toB/store/index.js +3 -0
  403. package/es/components/pay/toB/store/provider.d.ts +4 -0
  404. package/es/components/pay/toB/store/provider.js +78 -0
  405. package/es/components/pay/toB/store/utils.d.ts +13 -0
  406. package/es/components/pay/toB/store/utils.js +66 -0
  407. package/es/components/pay/toB/types/index.d.ts +1 -0
  408. package/es/components/pay/toB/types/index.js +1 -0
  409. package/es/components/pay/toB/types/storeTypes.d.ts +143 -0
  410. package/es/components/pay/toB/types/storeTypes.js +24 -0
  411. package/es/components/pay/toC/PaymentList/index.js +10 -4
  412. package/es/components/pay/toC/PaymentList/serve.d.ts +1 -1
  413. package/es/components/pay/toC/PaymentList/serve.js +9 -3
  414. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  415. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  416. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  417. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  418. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  419. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  420. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  421. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +30 -13
  422. package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.js +30 -13
  423. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +3 -0
  424. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +3 -2
  425. package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
  426. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +73 -20
  427. package/es/components/pay/toC/PaymentMethods/WalletPass/index.less +30 -0
  428. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +2 -0
  429. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -1
  430. package/es/components/pay/toC/PaymentMethods/index.js +29 -2
  431. package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.d.ts +16 -0
  432. package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.js +60 -0
  433. package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.less +38 -0
  434. package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.d.ts +17 -0
  435. package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.js +98 -0
  436. package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.less +133 -0
  437. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +7 -0
  438. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.js +34 -0
  439. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.less +23 -0
  440. package/es/components/pay/toC/WalletPassBlock/index.d.ts +9 -2
  441. package/es/components/pay/toC/WalletPassBlock/index.js +119 -21
  442. package/es/components/pay/toC/WalletPassBlock/index.less +86 -13
  443. package/es/components/pay/toC/index.js +173 -116
  444. package/es/components/pay/toC/locales.d.ts +69 -3
  445. package/es/components/pay/toC/locales.js +132 -6
  446. package/es/components/pay/toC/model.d.ts +4 -0
  447. package/es/components/pay/toC/model.js +9 -0
  448. package/es/components/pay/toC/serve.d.ts +23 -0
  449. package/es/components/pay/toC/serve.js +36 -4
  450. package/es/components/pay/toC/utils.d.ts +9 -1
  451. package/es/components/pay/toC/utils.js +29 -3
  452. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  453. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  454. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  455. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.js +4 -1
  456. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  457. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  458. package/es/components/productExtension/card/index.js +3 -3
  459. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  460. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  461. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  462. package/es/components/productExtension/fields/Forms/index.js +12 -12
  463. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -2
  464. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.js +18 -6
  465. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  466. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  467. package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  468. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  469. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  470. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  471. package/es/components/productExtension/index.d.ts +0 -1
  472. package/es/components/productExtension/server.js +2 -2
  473. package/es/components/productSelect/components/TabProduct/index.d.ts +2 -0
  474. package/es/components/productSelect/components/TabProduct/index.js +196 -0
  475. package/es/components/productSelect/components/TabProduct/tabs/index.d.ts +21 -0
  476. package/es/components/productSelect/components/TabProduct/tabs/index.js +243 -0
  477. package/es/components/productSelect/components/TabProduct/tabs/index.less +126 -0
  478. package/es/components/productSelect/components/gridLayout/index.d.ts +9 -0
  479. package/es/components/productSelect/components/gridLayout/index.js +28 -0
  480. package/es/components/productSelect/components/gridLayout/index.less +6 -0
  481. package/es/components/productSelect/components/pisellPriceText/index.d.ts +11 -0
  482. package/es/components/productSelect/components/pisellPriceText/index.js +44 -0
  483. package/es/components/productSelect/components/productGroup/index.d.ts +38 -0
  484. package/es/components/productSelect/components/productGroup/index.js +171 -0
  485. package/es/components/productSelect/components/productGroup/index.less +227 -0
  486. package/es/components/productSelect/hooks/useToken.d.ts +18 -0
  487. package/es/components/productSelect/hooks/useToken.js +35 -0
  488. package/es/components/productSelect/index.d.ts +24 -0
  489. package/es/components/productSelect/index.js +107 -0
  490. package/es/components/productSelect/index.less +75 -0
  491. package/es/components/productSelect/locales.d.ts +18 -0
  492. package/es/components/productSelect/locales.js +17 -0
  493. package/es/components/productSelect/mock.d.ts +134 -0
  494. package/es/components/productSelect/mock.js +202 -0
  495. package/es/components/productSelect/theme/token.d.ts +17 -0
  496. package/es/components/productSelect/theme/token.js +19 -0
  497. package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  498. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  499. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  500. package/es/components/schedules/calendar/index.d.ts +0 -1
  501. package/es/components/schedules/calendar/index.js +4 -4
  502. package/es/components/schedules/calendar/index.less +158 -152
  503. package/es/components/schedules/calendar/serve.js +2 -2
  504. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  505. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  506. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  507. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  508. package/es/components/schedules/components/ResourceList/index.js +1 -1
  509. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  510. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  511. package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
  512. package/es/components/schedules/components/Search/index.js +5 -5
  513. package/es/components/schedules/model.js +5 -5
  514. package/es/components/schedules/openHours/index.js +1 -1
  515. package/es/components/schedules/openHours/serve.js +2 -2
  516. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  517. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  518. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  519. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  520. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  521. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  522. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  523. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  524. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  525. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  526. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  527. package/es/components/schedules/products/index.d.ts +0 -1
  528. package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  529. package/es/components/schedules/products/list/index.d.ts +0 -1
  530. package/es/components/schedules/products/serve.js +2 -2
  531. package/es/components/schedules/products/utils.js +5 -5
  532. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  533. package/es/components/schedules/resources/detail/index.js +10 -10
  534. package/es/components/schedules/resources/index.d.ts +0 -1
  535. package/es/components/schedules/resources/list/index.d.ts +0 -1
  536. package/es/components/schedules/resources/list/index.js +2 -2
  537. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  538. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  539. package/es/components/schedules/resources/serve.js +2 -2
  540. package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  541. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  542. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  543. package/es/components/schedules/schedules/index.d.ts +0 -1
  544. package/es/components/schedules/schedules/utils.js +1 -1
  545. package/es/components/schedules/utils.js +4 -4
  546. package/es/components/selectModal/index.js +2 -2
  547. package/es/components/shoppingCart/Provider.d.ts +1 -1
  548. package/es/components/shoppingCart/Provider.js +3 -2
  549. package/es/components/shoppingCart/components/Cart/Product.js +63 -32
  550. package/es/components/shoppingCart/components/Cart/index.js +21 -18
  551. package/es/components/shoppingCart/components/Cart/index.less +15 -15
  552. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  553. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  554. package/es/components/shoppingCart/components/Render/index.js +0 -1
  555. package/es/components/shoppingCart/components/Render/index.less +15 -0
  556. package/es/components/shoppingCart/hooks/useAddService.js +7 -1
  557. package/es/components/shoppingCart/hooks/useClearCart.js +3 -4
  558. package/es/components/shoppingCart/index.d.ts +1 -2
  559. package/es/components/shoppingCart/index.js +3 -1
  560. package/es/components/shoppingCart/status.js +5 -1
  561. package/es/components/shoppingCart/type.d.ts +8 -0
  562. package/es/components/stepController/components/Content/index.d.ts +7 -0
  563. package/es/components/stepController/components/Content/index.js +9 -0
  564. package/es/components/stepController/components/Content/index.less +8 -0
  565. package/es/components/stepController/components/Footer/index.d.ts +8 -0
  566. package/es/components/stepController/components/Footer/index.js +15 -0
  567. package/es/components/stepController/components/Footer/index.less +39 -0
  568. package/es/components/stepController/components/Header/index.d.ts +20 -0
  569. package/es/components/stepController/components/Header/index.js +97 -0
  570. package/es/components/stepController/components/Header/index.less +21 -0
  571. package/es/components/stepController/index.d.ts +5 -0
  572. package/es/components/stepController/index.js +64 -0
  573. package/es/components/stepController/index.less +11 -0
  574. package/es/components/stepController/locales.d.ts +27 -0
  575. package/es/components/stepController/locales.js +32 -0
  576. package/es/components/stepController/types.d.ts +23 -0
  577. package/es/components/stepController/types.js +1 -0
  578. package/es/components/subTotal/index.d.ts +22 -0
  579. package/es/components/subTotal/index.js +234 -0
  580. package/es/components/subTotal/index.less +70 -0
  581. package/es/components/subTotal/locales.d.ts +42 -0
  582. package/es/components/subTotal/locales.js +41 -0
  583. package/es/components/taxSelect/index.d.ts +0 -1
  584. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  585. package/es/components/ticketBooking/components/addServiceVariant/addService.js +508 -0
  586. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +6 -0
  587. package/es/components/ticketBooking/components/addServiceVariant/index.js +28 -0
  588. package/es/components/ticketBooking/components/addServiceVariant/index.less +10 -0
  589. package/es/components/ticketBooking/components/menuBar/index.d.ts +3 -0
  590. package/es/components/ticketBooking/components/menuBar/index.js +54 -0
  591. package/es/components/ticketBooking/components/menuBar/index.less +83 -0
  592. package/es/components/ticketBooking/components/notAvailable/index.d.ts +3 -0
  593. package/es/components/ticketBooking/components/notAvailable/index.js +39 -0
  594. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
  595. package/es/components/ticketBooking/components/ticketBooking/index.js +955 -0
  596. package/es/components/ticketBooking/components/ticketBooking/index.less +16 -0
  597. package/es/components/ticketBooking/components/timeBar/index.d.ts +12 -0
  598. package/es/components/ticketBooking/components/timeBar/index.js +115 -0
  599. package/es/components/ticketBooking/components/timeBar/index.less +22 -0
  600. package/es/components/ticketBooking/data.d.ts +58 -0
  601. package/es/components/ticketBooking/data.js +82 -0
  602. package/es/components/ticketBooking/hooks/useNetworkStatus.d.ts +11 -0
  603. package/es/components/ticketBooking/hooks/useNetworkStatus.js +52 -0
  604. package/es/components/ticketBooking/index.d.ts +7 -0
  605. package/es/components/ticketBooking/index.js +156 -0
  606. package/es/components/ticketBooking/index.less +4 -0
  607. package/es/components/ticketBooking/locales.d.ts +171 -0
  608. package/es/components/ticketBooking/locales.js +206 -0
  609. package/es/components/ticketBooking/miniRedux.d.ts +22 -0
  610. package/es/components/ticketBooking/miniRedux.js +105 -0
  611. package/es/components/ticketBooking/serve.d.ts +288 -0
  612. package/es/components/ticketBooking/serve.js +1016 -0
  613. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
  614. package/es/components/ticketBooking/utils/formatProductMessage.js +62 -0
  615. package/es/components/ticketBooking/utils/formatTime.d.ts +31 -0
  616. package/es/components/ticketBooking/utils/formatTime.js +144 -0
  617. package/es/components/ticketBooking/utils/index.d.ts +23 -0
  618. package/es/components/ticketBooking/utils/index.js +220 -0
  619. package/es/components/wallet/Detail/index.js +21 -15
  620. package/es/components/wallet/DiscountCard/index.less +0 -1
  621. package/es/components/wallet/PointCard/index.less +0 -1
  622. package/es/components/wallet/RechargeableCard/index.less +5 -9
  623. package/es/components/wallet/Voucher/index.js +1 -0
  624. package/es/components/wallet/Voucher/index.less +0 -1
  625. package/es/components/wallet/components/WalletCard.js +2 -2
  626. package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
  627. package/es/components/wallet/index.js +66 -6
  628. package/es/components/wallet/index.less +0 -4
  629. package/es/components/wallet/locales.d.ts +3 -0
  630. package/es/components/wallet/locales.js +3 -0
  631. package/es/components/wallet/model.d.ts +1 -1
  632. package/es/components/wallet/utils/formatUtils.js +1 -1
  633. package/es/components/walletList/index.js +60 -8
  634. package/es/components/walletList/index.less +17 -15
  635. package/es/components/walletList/locales.d.ts +18 -0
  636. package/es/components/walletList/locales.js +17 -0
  637. package/es/components/walletList/serve.d.ts +8 -0
  638. package/es/components/walletList/serve.js +38 -0
  639. package/es/components/walletList/status.d.ts +38 -0
  640. package/es/components/walletList/status.js +47 -0
  641. package/es/components/workSpaceList/components/AppearanceEdit/IconPanel.js +1 -1
  642. package/es/components/workSpaceList/components/AppearanceEdit/constants.js +1 -11
  643. package/es/components/workSpaceList/components/Card/constants.js +1 -2
  644. package/es/components/workSpaceList/components/EditableString/index.js +1 -1
  645. package/es/components/workSpaceList/components/SearchBar/index.js +1 -4
  646. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.js +1 -1
  647. package/es/components/workSpaceList/components/Sort/index.js +1 -1
  648. package/es/components/workSpaceList/components/WorkspaceItem/index.js +1 -1
  649. package/es/hooks/useComponents.js +1 -1
  650. package/es/hooks/useEngineContext.d.ts +1 -0
  651. package/es/hooks/useEngineContext.js +7 -0
  652. package/es/hooks/useLocale.d.ts +2 -0
  653. package/es/hooks/useLocale.js +7 -0
  654. package/es/hooks/useLoginUser.d.ts +2 -0
  655. package/es/hooks/useLoginUser.js +19 -0
  656. package/es/hooks/useWindowSize.d.ts +5 -0
  657. package/es/hooks/useWindowSize.js +26 -0
  658. package/es/index.d.ts +7 -0
  659. package/es/index.js +8 -1
  660. package/es/utils/date.d.ts +11 -0
  661. package/es/utils/date.js +49 -0
  662. package/es/utils/tasks/index.d.ts +16 -0
  663. package/es/utils/tasks/index.js +114 -0
  664. package/es/utils/tasks/type.d.ts +4 -0
  665. package/es/utils/tasks/type.js +1 -0
  666. package/lib/businessModel/SalesModel/Sales/index.js +22 -8
  667. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  668. package/lib/components/Sales/Cart/index.js +30 -18
  669. package/lib/components/Sales/Cart/types.d.ts +12 -0
  670. package/lib/components/Sales/Cart/utils.d.ts +23 -0
  671. package/lib/components/Sales/Cart/utils.js +149 -0
  672. package/lib/components/Sales/Checkout/utils.d.ts +9 -1
  673. package/lib/components/Sales/Checkout/utils.js +18 -4
  674. package/lib/components/Sales/Customer/index.js +3 -1
  675. package/lib/components/Sales/Event/Detail.d.ts +2 -0
  676. package/lib/components/Sales/Event/Detail.js +38 -10
  677. package/lib/components/Sales/Event/index.js +1 -5
  678. package/lib/components/Sales/Event/serve.d.ts +13 -0
  679. package/lib/components/Sales/Event/serve.js +5 -2
  680. package/lib/components/Sales/Init/index.d.ts +1 -0
  681. package/lib/components/Sales/Init/index.js +3 -2
  682. package/lib/components/Sales/Resource/index.js +1 -1
  683. package/lib/components/Sales/Resource/serve.d.ts +7 -0
  684. package/lib/components/Sales/Resource/serve.js +9 -2
  685. package/lib/components/Sales/Step/index.d.ts +2 -0
  686. package/lib/components/Sales/Step/index.js +13 -4
  687. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  688. package/lib/components/Sales/Summary/utils.js +1 -0
  689. package/lib/components/appointmentBooking/assets/alert-circle.png +0 -0
  690. package/lib/components/appointmentBooking/assets/calendar-heart.svg +5 -0
  691. package/lib/components/appointmentBooking/assets/compass.svg +13 -0
  692. package/lib/components/appointmentBooking/assets/guests.svg +1 -0
  693. package/lib/components/appointmentBooking/assets/image.svg +5 -0
  694. package/lib/components/appointmentBooking/assets/phone.svg +5 -0
  695. package/lib/components/appointmentBooking/assets/resource.svg +1 -0
  696. package/lib/components/appointmentBooking/assets/shopping-cart.svg +10 -0
  697. package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +7 -0
  698. package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.js +113 -0
  699. package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.less +0 -0
  700. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +3 -0
  701. package/lib/components/appointmentBooking/components/Cart/Item/Total.js +79 -0
  702. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
  703. package/lib/components/appointmentBooking/components/Cart/Item/index.js +212 -0
  704. package/lib/components/appointmentBooking/components/Cart/Item/index.less +108 -0
  705. package/lib/components/appointmentBooking/components/Cart/index.d.ts +3 -0
  706. package/lib/components/appointmentBooking/components/Cart/index.js +60 -0
  707. package/lib/components/appointmentBooking/components/Cart/index.less +2 -0
  708. package/lib/components/appointmentBooking/components/Cart/utils.d.ts +56 -0
  709. package/lib/components/appointmentBooking/components/Cart/utils.js +125 -0
  710. package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +4 -0
  711. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +155 -0
  712. package/lib/components/appointmentBooking/components/ConfirmInformation/index.less +35 -0
  713. package/lib/components/appointmentBooking/components/ConfirmInformation/utils.d.ts +12 -0
  714. package/lib/components/appointmentBooking/components/ConfirmInformation/utils.js +37 -0
  715. package/lib/components/appointmentBooking/components/Content/index.d.ts +3 -0
  716. package/lib/components/appointmentBooking/components/Content/index.js +221 -0
  717. package/lib/components/appointmentBooking/components/Content/index.less +113 -0
  718. package/lib/components/appointmentBooking/components/Date/index.d.ts +4 -0
  719. package/lib/components/appointmentBooking/components/Date/index.js +247 -0
  720. package/lib/components/appointmentBooking/components/Date/index.less +142 -0
  721. package/lib/components/appointmentBooking/components/Date/state.d.ts +63 -0
  722. package/lib/components/appointmentBooking/components/Date/state.js +202 -0
  723. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +3 -0
  724. package/lib/components/appointmentBooking/components/Deposit/index.js +61 -0
  725. package/lib/components/appointmentBooking/components/Deposit/index.less +17 -0
  726. package/lib/components/appointmentBooking/components/Footer/index.d.ts +3 -0
  727. package/lib/components/appointmentBooking/components/Footer/index.js +78 -0
  728. package/lib/components/appointmentBooking/components/Footer/index.less +64 -0
  729. package/lib/components/appointmentBooking/components/Form/index.d.ts +4 -0
  730. package/lib/components/appointmentBooking/components/Form/index.js +127 -0
  731. package/lib/components/appointmentBooking/components/Form/index.less +3 -0
  732. package/lib/components/appointmentBooking/components/Form/utils.d.ts +8 -0
  733. package/lib/components/appointmentBooking/components/Form/utils.js +49 -0
  734. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +3 -0
  735. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.js +74 -0
  736. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.less +28 -0
  737. package/lib/components/appointmentBooking/components/Guest/index.d.ts +4 -0
  738. package/lib/components/appointmentBooking/components/Guest/index.js +166 -0
  739. package/lib/components/appointmentBooking/components/Guest/index.less +92 -0
  740. package/lib/components/appointmentBooking/components/Header/index.d.ts +3 -0
  741. package/lib/components/appointmentBooking/components/Header/index.js +151 -0
  742. package/lib/components/appointmentBooking/components/Header/index.less +0 -0
  743. package/lib/components/appointmentBooking/components/Resource/index.d.ts +7 -0
  744. package/lib/components/appointmentBooking/components/Resource/index.js +225 -0
  745. package/lib/components/appointmentBooking/components/Resource/index.less +10 -0
  746. package/lib/components/appointmentBooking/components/Resource/utils.d.ts +5 -0
  747. package/lib/components/appointmentBooking/components/Resource/utils.js +36 -0
  748. package/lib/components/appointmentBooking/components/Services/index.d.ts +4 -0
  749. package/lib/components/appointmentBooking/components/Services/index.js +193 -0
  750. package/lib/components/appointmentBooking/components/Services/index.less +3 -0
  751. package/lib/components/appointmentBooking/components/TimeSlicing/index.d.ts +4 -0
  752. package/lib/components/appointmentBooking/components/TimeSlicing/index.js +102 -0
  753. package/lib/components/appointmentBooking/components/TimeSlicing/index.less +33 -0
  754. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +4 -0
  755. package/lib/components/appointmentBooking/components/Voucher/index.js +241 -0
  756. package/lib/components/appointmentBooking/components/Voucher/index.less +116 -0
  757. package/lib/components/appointmentBooking/context.d.ts +35 -0
  758. package/lib/components/appointmentBooking/context.js +192 -0
  759. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  760. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +131 -0
  761. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.less +18 -0
  762. package/lib/components/appointmentBooking/deposit/index.d.ts +3 -0
  763. package/lib/components/appointmentBooking/deposit/index.js +109 -0
  764. package/lib/components/appointmentBooking/deposit/index.less +57 -0
  765. package/lib/components/appointmentBooking/hooks.d.ts +106 -0
  766. package/lib/components/appointmentBooking/hooks.js +559 -0
  767. package/lib/components/appointmentBooking/index.d.ts +3 -0
  768. package/lib/components/appointmentBooking/index.js +80 -0
  769. package/lib/components/appointmentBooking/index.less +23 -0
  770. package/lib/components/appointmentBooking/locales.d.ts +360 -0
  771. package/lib/components/appointmentBooking/locales.js +383 -0
  772. package/lib/components/appointmentBooking/mock.d.ts +627 -0
  773. package/lib/components/appointmentBooking/mock.js +1352 -0
  774. package/lib/components/appointmentBooking/status.d.ts +21 -0
  775. package/lib/components/appointmentBooking/status.js +70 -0
  776. package/lib/components/appointmentBooking/type.d.ts +17 -0
  777. package/lib/components/appointmentBooking/type.js +17 -0
  778. package/lib/components/appointmentBooking/utils.d.ts +203 -0
  779. package/lib/components/appointmentBooking/utils.js +519 -0
  780. package/lib/components/booking/addons/index.js +53 -31
  781. package/lib/components/booking/addons/model.js +3 -0
  782. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  783. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  784. package/lib/components/booking/components/TabProduct/productItem/index.js +8 -1
  785. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  786. package/lib/components/booking/components/TabProduct/selectProductItem/index.js +5 -1
  787. package/lib/components/booking/components/TabProduct/selectProductItem/index.less +6 -0
  788. package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
  789. package/lib/components/booking/components/customSelect/index.js +3 -0
  790. package/lib/components/booking/components/drawer/index.js +2 -2
  791. package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
  792. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  793. package/lib/components/booking/components/footer/amount.d.ts +1 -0
  794. package/lib/components/booking/components/footer/amount.js +5 -2
  795. package/lib/components/booking/components/footer/index.d.ts +0 -1
  796. package/lib/components/booking/components/footer/index.js +208 -71
  797. package/lib/components/booking/components/footer/index.less +6 -1
  798. package/lib/components/booking/components/footer/utils.d.ts +22 -0
  799. package/lib/components/booking/components/footer/utils.js +148 -36
  800. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  801. package/lib/components/booking/components/voucher/index.d.ts +3 -0
  802. package/lib/components/booking/components/voucher/index.js +305 -0
  803. package/lib/components/booking/components/voucher/index.less +87 -0
  804. package/lib/components/booking/components/voucher/utils.d.ts +4 -0
  805. package/lib/components/booking/components/voucher/utils.js +43 -0
  806. package/lib/components/booking/deposit/DepositItem/index.js +1 -0
  807. package/lib/components/booking/deposit/index.d.ts +0 -1
  808. package/lib/components/booking/deposit/index.js +5 -3
  809. package/lib/components/booking/editBookingModal/index.d.ts +5 -0
  810. package/lib/components/booking/editBookingModal/index.js +363 -0
  811. package/lib/components/booking/editBookingModal/index.less +8 -0
  812. package/lib/components/booking/editBookingModal/locales.d.ts +21 -0
  813. package/lib/components/booking/editBookingModal/locales.js +44 -0
  814. package/lib/components/booking/editBookingModal/mock.d.ts +807 -0
  815. package/lib/components/booking/editBookingModal/mock.js +3314 -0
  816. package/lib/components/booking/editBookingModal/serve.d.ts +51 -0
  817. package/lib/components/booking/editBookingModal/serve.js +178 -0
  818. package/lib/components/booking/editBookingModal/type.d.ts +12 -0
  819. package/lib/components/booking/editBookingModal/type.js +17 -0
  820. package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
  821. package/lib/components/booking/editBookingModal/utils.js +158 -0
  822. package/lib/components/booking/forms/footer.d.ts +6 -0
  823. package/lib/components/booking/forms/footer.js +81 -0
  824. package/lib/components/booking/forms/forms.d.ts +4 -0
  825. package/lib/components/booking/forms/forms.js +13 -3
  826. package/lib/components/booking/forms/index.d.ts +1 -1
  827. package/lib/components/booking/forms/index.js +4 -2
  828. package/lib/components/booking/forms/index.less +7 -0
  829. package/lib/components/booking/forms/sendModal/index.d.ts +27 -0
  830. package/lib/components/booking/forms/sendModal/index.js +128 -0
  831. package/lib/components/booking/forms/sendModal/index.less +9 -0
  832. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +9 -0
  833. package/lib/components/booking/forms/sendModal/useSendModal.js +70 -0
  834. package/lib/components/booking/forms/serve.d.ts +9 -0
  835. package/lib/components/booking/forms/serve.js +5 -2
  836. package/lib/components/booking/forms/single/index.d.ts +1 -2
  837. package/lib/components/booking/forms/single/index.js +35 -1
  838. package/lib/components/booking/forms/table/index.d.ts +0 -1
  839. package/lib/components/booking/hooks/useClearCart.js +16 -13
  840. package/lib/components/booking/hooks/useCreateBookingPageHeader.js +3 -0
  841. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  842. package/lib/components/booking/hooks/useIsBooking4Shop.js +51 -0
  843. package/lib/components/booking/hooks/useQuotation.d.ts +5 -0
  844. package/lib/components/booking/hooks/useQuotation.js +214 -0
  845. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  846. package/lib/components/booking/info/addServiceVariant/index.js +3 -3
  847. package/lib/components/booking/info/client/index.js +75 -10
  848. package/lib/components/booking/info/client/index.less +39 -0
  849. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  850. package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +8 -1
  851. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  852. package/lib/components/booking/info/clientVariant/utils.d.ts +1 -0
  853. package/lib/components/booking/info/clientVariant/utils.js +34 -0
  854. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +11 -3
  855. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.less +17 -0
  856. package/lib/components/booking/info/clientVariant/vertical/index.js +32 -7
  857. package/lib/components/booking/info/clientVariant/vertical/index.less +18 -0
  858. package/lib/components/booking/info/date/index.d.ts +0 -1
  859. package/lib/components/booking/info/header/index.d.ts +0 -1
  860. package/lib/components/booking/info/hooks/useAddHolder.d.ts +9 -0
  861. package/lib/components/booking/info/hooks/useAddHolder.js +145 -0
  862. package/lib/components/booking/info/hooks/useGetHolderList.d.ts +2 -0
  863. package/lib/components/booking/info/hooks/useGetHolderList.js +61 -0
  864. package/lib/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
  865. package/lib/components/booking/info/hooks/useHolderConfig.js +59 -0
  866. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
  867. package/lib/components/booking/info/hooks/useInfoHolder.js +93 -0
  868. package/lib/components/booking/info/index.d.ts +0 -1
  869. package/lib/components/booking/info/index.js +9 -5
  870. package/lib/components/booking/info/main.js +1 -1
  871. package/lib/components/booking/info/model.js +3 -0
  872. package/lib/components/booking/info/notes/index.d.ts +0 -1
  873. package/lib/components/booking/info/pet/index.js +66 -12
  874. package/lib/components/booking/info/pet/serve.d.ts +1 -0
  875. package/lib/components/booking/info/pet/serve.js +33 -0
  876. package/lib/components/booking/info/service/Lists.d.ts +2 -0
  877. package/lib/components/booking/info/service/Lists.js +132 -0
  878. package/lib/components/booking/info/service/actions/index.d.ts +0 -1
  879. package/lib/components/booking/info/service/addService/index.js +29 -26
  880. package/lib/components/booking/info/service/editService/index.d.ts +1 -1
  881. package/lib/components/booking/info/service/editService/index.js +71 -27
  882. package/lib/components/booking/info/service/index.js +5 -3
  883. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  884. package/lib/components/booking/info/service/serve.d.ts +9 -0
  885. package/lib/components/booking/info/service/serve.js +3 -0
  886. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
  887. package/lib/components/booking/info/service/serviceList/index.js +1 -0
  888. package/lib/components/booking/info/service/serviceManager/index.js +6 -1
  889. package/lib/components/booking/info/service2/Group/utils.js +4 -3
  890. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  891. package/lib/components/booking/info/service2/hooks/useSelectPet.js +13 -6
  892. package/lib/components/booking/info/service2/index.js +5 -3
  893. package/lib/components/booking/info/service2/utils.d.ts +14 -7
  894. package/lib/components/booking/info/service2/utils.js +373 -60
  895. package/lib/components/booking/info/utils.d.ts +6 -0
  896. package/lib/components/booking/info/utils.js +96 -1
  897. package/lib/components/booking/info2/index.js +12 -4
  898. package/lib/components/booking/info2/serve.d.ts +2 -2
  899. package/lib/components/booking/info2/serve.js +3 -10
  900. package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
  901. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  902. package/lib/components/booking/info2/service/addService/index.js +68 -37
  903. package/lib/components/booking/info2/service/addService/utils.d.ts +30 -3
  904. package/lib/components/booking/info2/service/addService/utils.js +142 -32
  905. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  906. package/lib/components/booking/info2/service/addTimeModal/index.js +8 -6
  907. package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.js +1 -2
  908. package/lib/components/booking/info2/service/editService/Resources/index.js +72 -9
  909. package/lib/components/booking/info2/service/editService/Resources/index.less +6 -0
  910. package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
  911. package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +53 -0
  912. package/lib/components/booking/info2/service/editService/ResourcesV2/index.d.ts +10 -0
  913. package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +311 -0
  914. package/lib/components/booking/info2/service/editService/ResourcesV2/index.less +44 -0
  915. package/lib/components/booking/info2/service/editService/index.js +275 -102
  916. package/lib/components/booking/info2/service/editService/utils.d.ts +4 -2
  917. package/lib/components/booking/info2/service/editService/utils.js +48 -0
  918. package/lib/components/booking/info2/service/index.js +24 -28
  919. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
  920. package/lib/components/booking/info2/utils.d.ts +4 -0
  921. package/lib/components/booking/info2/utils.js +66 -0
  922. package/lib/components/booking/info2/utilsByBooking.d.ts +2 -1
  923. package/lib/components/booking/info2/utilsByBooking.js +35 -14
  924. package/lib/components/booking/locales.d.ts +90 -0
  925. package/lib/components/booking/locales.js +111 -3
  926. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  927. package/lib/components/booking/materiels/duration/index.d.ts +0 -1
  928. package/lib/components/booking/materiels/duration/index.js +7 -2
  929. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  930. package/lib/components/booking/materiels/holder/index.js +2 -2
  931. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  932. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  933. package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
  934. package/lib/components/booking/notes/addNote/index.d.ts +0 -1
  935. package/lib/components/booking/notes/addNote/index.js +1 -1
  936. package/lib/components/booking/notes/addNote/index.less +3 -0
  937. package/lib/components/booking/payments/index.js +2 -2
  938. package/lib/components/booking/utils.d.ts +3 -0
  939. package/lib/components/booking/utils.js +58 -13
  940. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  941. package/lib/components/eftpos/form/index.d.ts +0 -1
  942. package/lib/components/eftpos/group/index.d.ts +0 -1
  943. package/lib/components/eftpos/hooks.d.ts +0 -1
  944. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  945. package/lib/components/eftpos/icon/device.d.ts +0 -1
  946. package/lib/components/eftpos/index.d.ts +0 -1
  947. package/lib/components/eftpos/pos.d.ts +0 -1
  948. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  949. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  950. package/lib/components/eftposPay/amount.d.ts +1 -2
  951. package/lib/components/eftposPay/app.d.ts +0 -1
  952. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  953. package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
  954. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  955. package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
  956. package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
  957. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  958. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  959. package/lib/components/eftposPay/device.d.ts +1 -2
  960. package/lib/components/eftposPay/hooks.d.ts +2 -2
  961. package/lib/components/eftposPay/payo/config.js +34 -3
  962. package/lib/components/eftposPay/payo/hooks.js +10 -0
  963. package/lib/components/eftposPay/store/index.d.ts +4 -4
  964. package/lib/components/eftposPay/tip.d.ts +0 -1
  965. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  966. package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  967. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
  968. package/lib/components/eftposPay/windcave/windcave.js +11 -0
  969. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +149 -12
  970. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  971. package/lib/components/eventBooking/components/Provider/Event/index.js +25 -6
  972. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  973. package/lib/components/eventBooking/components/Provider/Resource/index.js +16 -3
  974. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  975. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  976. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -1
  977. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  978. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  979. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -1
  980. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  981. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +2 -2
  982. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +7 -7
  983. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +3 -1
  984. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.js +25 -10
  985. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  986. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  987. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.js +4 -2
  988. package/lib/components/eventBooking/components/bookingDetailModal/index.js +88 -27
  989. package/lib/components/eventBooking/components/progressBar/index.js +16 -1
  990. package/lib/components/eventBooking/components/resourceDisplay/index.js +2 -2
  991. package/lib/components/eventBooking/components/resourceDisplay/index.less +1 -0
  992. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  993. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  994. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.js +6 -5
  995. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +3 -0
  996. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.js +75 -0
  997. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.less +63 -0
  998. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.d.ts +9 -0
  999. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.js +64 -0
  1000. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.less +7 -0
  1001. package/lib/components/eventBooking/components/scheduleCalendar/index.d.ts +1 -0
  1002. package/lib/components/eventBooking/components/scheduleCalendar/index.js +17 -11
  1003. package/lib/components/eventBooking/components/scheduleCalendar/index.less +2 -0
  1004. package/lib/components/eventBooking/components/timeResourceSelector/index.less +0 -1
  1005. package/lib/components/eventBooking/index.d.ts +0 -1
  1006. package/lib/components/eventBooking/index.js +13 -9
  1007. package/lib/components/eventBooking/locales.d.ts +6 -0
  1008. package/lib/components/eventBooking/locales.js +23 -17
  1009. package/lib/components/eventBooking/utils.js +5 -3
  1010. package/lib/components/index.d.ts +4 -1
  1011. package/lib/components/index.js +9 -0
  1012. package/lib/components/login/index.d.ts +0 -1
  1013. package/lib/components/pay/toB/components/Cache/index.d.ts +10 -0
  1014. package/lib/components/pay/toB/components/Cache/index.js +108 -0
  1015. package/lib/components/pay/toB/components/Cache/index.less +41 -0
  1016. package/lib/components/pay/toB/components/Card/index.d.ts +7 -0
  1017. package/lib/components/pay/toB/components/Card/index.js +66 -0
  1018. package/lib/components/pay/toB/components/Card/index.less +26 -0
  1019. package/lib/components/pay/toB/components/CardGroup/index.d.ts +7 -0
  1020. package/lib/components/pay/toB/components/CardGroup/index.js +43 -0
  1021. package/lib/components/pay/toB/components/CardGroup/index.less +18 -0
  1022. package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +6 -0
  1023. package/lib/components/pay/toB/components/ConfirmedPayment/index.js +77 -0
  1024. package/lib/components/pay/toB/components/ConfirmedPayment/index.less +69 -0
  1025. package/lib/components/pay/toB/components/Content/Footer.d.ts +7 -0
  1026. package/lib/components/pay/toB/components/Content/Footer.js +63 -0
  1027. package/lib/components/pay/toB/components/Content/Header.d.ts +4 -0
  1028. package/lib/components/pay/toB/components/Content/Header.js +40 -0
  1029. package/lib/components/pay/toB/components/Content/index.d.ts +4 -0
  1030. package/lib/components/pay/toB/components/Content/index.js +209 -0
  1031. package/lib/components/pay/toB/components/Content/index.less +9 -0
  1032. package/lib/components/pay/toB/components/Content/utils.d.ts +16 -0
  1033. package/lib/components/pay/toB/components/Content/utils.js +91 -0
  1034. package/lib/components/pay/toB/components/index.d.ts +5 -0
  1035. package/lib/components/pay/toB/components/index.js +51 -0
  1036. package/lib/components/pay/toB/hooks.d.ts +12 -0
  1037. package/lib/components/pay/toB/hooks.js +60 -0
  1038. package/lib/components/pay/toB/index.d.ts +3 -0
  1039. package/lib/components/pay/toB/index.js +54 -0
  1040. package/lib/components/pay/toB/locales.d.ts +54 -0
  1041. package/lib/components/pay/toB/locales.js +77 -0
  1042. package/lib/components/pay/toB/store/context.d.ts +3 -0
  1043. package/lib/components/pay/toB/store/context.js +32 -0
  1044. package/lib/components/pay/toB/store/hooks.d.ts +15 -0
  1045. package/lib/components/pay/toB/store/hooks.js +92 -0
  1046. package/lib/components/pay/toB/store/index.d.ts +3 -0
  1047. package/lib/components/pay/toB/store/index.js +27 -0
  1048. package/lib/components/pay/toB/store/provider.d.ts +4 -0
  1049. package/lib/components/pay/toB/store/provider.js +71 -0
  1050. package/lib/components/pay/toB/store/utils.d.ts +13 -0
  1051. package/lib/components/pay/toB/store/utils.js +72 -0
  1052. package/lib/components/pay/toB/types/index.d.ts +1 -0
  1053. package/lib/components/pay/toB/types/index.js +23 -0
  1054. package/lib/components/pay/toB/types/storeTypes.d.ts +143 -0
  1055. package/lib/components/pay/toB/types/storeTypes.js +36 -0
  1056. package/lib/components/pay/toC/PaymentList/index.js +11 -6
  1057. package/lib/components/pay/toC/PaymentList/serve.d.ts +1 -1
  1058. package/lib/components/pay/toC/PaymentList/serve.js +6 -3
  1059. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  1060. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  1061. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  1062. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  1063. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  1064. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  1065. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  1066. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +10 -1
  1067. package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.js +10 -1
  1068. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +3 -0
  1069. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +2 -2
  1070. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
  1071. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +52 -11
  1072. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.less +30 -0
  1073. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +2 -0
  1074. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -1
  1075. package/lib/components/pay/toC/PaymentMethods/index.js +30 -6
  1076. package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.d.ts +16 -0
  1077. package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.js +87 -0
  1078. package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.less +38 -0
  1079. package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.d.ts +17 -0
  1080. package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.js +103 -0
  1081. package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.less +133 -0
  1082. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +7 -0
  1083. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.js +52 -0
  1084. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.less +23 -0
  1085. package/lib/components/pay/toC/WalletPassBlock/index.d.ts +9 -2
  1086. package/lib/components/pay/toC/WalletPassBlock/index.js +115 -20
  1087. package/lib/components/pay/toC/WalletPassBlock/index.less +86 -13
  1088. package/lib/components/pay/toC/index.js +55 -22
  1089. package/lib/components/pay/toC/locales.d.ts +69 -3
  1090. package/lib/components/pay/toC/locales.js +72 -6
  1091. package/lib/components/pay/toC/model.d.ts +4 -0
  1092. package/lib/components/pay/toC/model.js +10 -0
  1093. package/lib/components/pay/toC/serve.d.ts +23 -0
  1094. package/lib/components/pay/toC/serve.js +13 -7
  1095. package/lib/components/pay/toC/utils.d.ts +9 -1
  1096. package/lib/components/pay/toC/utils.js +23 -3
  1097. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  1098. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  1099. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  1100. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.js +4 -1
  1101. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  1102. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  1103. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  1104. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  1105. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -2
  1106. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.js +8 -1
  1107. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  1108. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  1109. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  1110. package/lib/components/productExtension/index.d.ts +0 -1
  1111. package/lib/components/productSelect/components/TabProduct/index.d.ts +2 -0
  1112. package/lib/components/productSelect/components/TabProduct/index.js +189 -0
  1113. package/lib/components/productSelect/components/TabProduct/tabs/index.d.ts +21 -0
  1114. package/lib/components/productSelect/components/TabProduct/tabs/index.js +202 -0
  1115. package/lib/components/productSelect/components/TabProduct/tabs/index.less +126 -0
  1116. package/lib/components/productSelect/components/gridLayout/index.d.ts +9 -0
  1117. package/lib/components/productSelect/components/gridLayout/index.js +58 -0
  1118. package/lib/components/productSelect/components/gridLayout/index.less +6 -0
  1119. package/lib/components/productSelect/components/pisellPriceText/index.d.ts +11 -0
  1120. package/lib/components/productSelect/components/pisellPriceText/index.js +78 -0
  1121. package/lib/components/productSelect/components/productGroup/index.d.ts +38 -0
  1122. package/lib/components/productSelect/components/productGroup/index.js +144 -0
  1123. package/lib/components/productSelect/components/productGroup/index.less +227 -0
  1124. package/lib/components/productSelect/hooks/useToken.d.ts +18 -0
  1125. package/lib/components/productSelect/hooks/useToken.js +51 -0
  1126. package/lib/components/productSelect/index.d.ts +24 -0
  1127. package/lib/components/productSelect/index.js +133 -0
  1128. package/lib/components/productSelect/index.less +75 -0
  1129. package/lib/components/productSelect/locales.d.ts +18 -0
  1130. package/lib/components/productSelect/locales.js +41 -0
  1131. package/lib/components/productSelect/mock.d.ts +134 -0
  1132. package/lib/components/productSelect/mock.js +276 -0
  1133. package/lib/components/productSelect/theme/token.d.ts +17 -0
  1134. package/lib/components/productSelect/theme/token.js +47 -0
  1135. package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  1136. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  1137. package/lib/components/schedules/calendar/index.d.ts +0 -1
  1138. package/lib/components/schedules/calendar/index.less +158 -152
  1139. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  1140. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  1141. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  1142. package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
  1143. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  1144. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  1145. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  1146. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  1147. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  1148. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  1149. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  1150. package/lib/components/schedules/products/index.d.ts +0 -1
  1151. package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  1152. package/lib/components/schedules/products/list/index.d.ts +0 -1
  1153. package/lib/components/schedules/resources/index.d.ts +0 -1
  1154. package/lib/components/schedules/resources/list/index.d.ts +0 -1
  1155. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  1156. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  1157. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  1158. package/lib/components/schedules/schedules/index.d.ts +0 -1
  1159. package/lib/components/schedules/schedules/utils.js +1 -1
  1160. package/lib/components/schedules/utils.js +1 -1
  1161. package/lib/components/shoppingCart/Provider.d.ts +1 -1
  1162. package/lib/components/shoppingCart/Provider.js +3 -2
  1163. package/lib/components/shoppingCart/components/Cart/Product.js +62 -20
  1164. package/lib/components/shoppingCart/components/Cart/index.js +18 -15
  1165. package/lib/components/shoppingCart/components/Cart/index.less +15 -15
  1166. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  1167. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  1168. package/lib/components/shoppingCart/components/Render/index.js +0 -1
  1169. package/lib/components/shoppingCart/components/Render/index.less +15 -0
  1170. package/lib/components/shoppingCart/hooks/useAddService.js +1 -2
  1171. package/lib/components/shoppingCart/hooks/useClearCart.js +3 -3
  1172. package/lib/components/shoppingCart/index.d.ts +1 -2
  1173. package/lib/components/shoppingCart/index.js +2 -0
  1174. package/lib/components/shoppingCart/status.js +5 -1
  1175. package/lib/components/shoppingCart/type.d.ts +8 -0
  1176. package/lib/components/stepController/components/Content/index.d.ts +7 -0
  1177. package/lib/components/stepController/components/Content/index.js +40 -0
  1178. package/lib/components/stepController/components/Content/index.less +8 -0
  1179. package/lib/components/stepController/components/Footer/index.d.ts +8 -0
  1180. package/lib/components/stepController/components/Footer/index.js +49 -0
  1181. package/lib/components/stepController/components/Footer/index.less +39 -0
  1182. package/lib/components/stepController/components/Header/index.d.ts +20 -0
  1183. package/lib/components/stepController/components/Header/index.js +104 -0
  1184. package/lib/components/stepController/components/Header/index.less +21 -0
  1185. package/lib/components/stepController/index.d.ts +5 -0
  1186. package/lib/components/stepController/index.js +89 -0
  1187. package/lib/components/stepController/index.less +11 -0
  1188. package/lib/components/stepController/locales.d.ts +27 -0
  1189. package/lib/components/stepController/locales.js +50 -0
  1190. package/lib/components/stepController/types.d.ts +23 -0
  1191. package/lib/components/stepController/types.js +17 -0
  1192. package/lib/components/subTotal/index.d.ts +22 -0
  1193. package/lib/components/subTotal/index.js +175 -0
  1194. package/lib/components/subTotal/index.less +70 -0
  1195. package/lib/components/subTotal/locales.d.ts +42 -0
  1196. package/lib/components/subTotal/locales.js +65 -0
  1197. package/lib/components/taxSelect/index.d.ts +0 -1
  1198. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  1199. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +431 -0
  1200. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +6 -0
  1201. package/lib/components/ticketBooking/components/addServiceVariant/index.js +56 -0
  1202. package/lib/components/ticketBooking/components/addServiceVariant/index.less +10 -0
  1203. package/lib/components/ticketBooking/components/menuBar/index.d.ts +3 -0
  1204. package/lib/components/ticketBooking/components/menuBar/index.js +87 -0
  1205. package/lib/components/ticketBooking/components/menuBar/index.less +83 -0
  1206. package/lib/components/ticketBooking/components/notAvailable/index.d.ts +3 -0
  1207. package/lib/components/ticketBooking/components/notAvailable/index.js +61 -0
  1208. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
  1209. package/lib/components/ticketBooking/components/ticketBooking/index.js +915 -0
  1210. package/lib/components/ticketBooking/components/ticketBooking/index.less +16 -0
  1211. package/lib/components/ticketBooking/components/timeBar/index.d.ts +12 -0
  1212. package/lib/components/ticketBooking/components/timeBar/index.js +149 -0
  1213. package/lib/components/ticketBooking/components/timeBar/index.less +22 -0
  1214. package/lib/components/ticketBooking/data.d.ts +58 -0
  1215. package/lib/components/ticketBooking/data.js +0 -0
  1216. package/lib/components/ticketBooking/hooks/useNetworkStatus.d.ts +11 -0
  1217. package/lib/components/ticketBooking/hooks/useNetworkStatus.js +80 -0
  1218. package/lib/components/ticketBooking/index.d.ts +7 -0
  1219. package/lib/components/ticketBooking/index.js +206 -0
  1220. package/lib/components/ticketBooking/index.less +4 -0
  1221. package/lib/components/ticketBooking/locales.d.ts +171 -0
  1222. package/lib/components/ticketBooking/locales.js +194 -0
  1223. package/lib/components/ticketBooking/miniRedux.d.ts +22 -0
  1224. package/lib/components/ticketBooking/miniRedux.js +96 -0
  1225. package/lib/components/ticketBooking/serve.d.ts +288 -0
  1226. package/lib/components/ticketBooking/serve.js +235 -0
  1227. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
  1228. package/lib/components/ticketBooking/utils/formatProductMessage.js +84 -0
  1229. package/lib/components/ticketBooking/utils/formatTime.d.ts +31 -0
  1230. package/lib/components/ticketBooking/utils/formatTime.js +139 -0
  1231. package/lib/components/ticketBooking/utils/index.d.ts +23 -0
  1232. package/lib/components/ticketBooking/utils/index.js +240 -0
  1233. package/lib/components/wallet/Detail/index.js +7 -2
  1234. package/lib/components/wallet/DiscountCard/index.less +0 -1
  1235. package/lib/components/wallet/PointCard/index.less +0 -1
  1236. package/lib/components/wallet/RechargeableCard/index.less +5 -9
  1237. package/lib/components/wallet/Voucher/index.js +1 -0
  1238. package/lib/components/wallet/Voucher/index.less +0 -1
  1239. package/lib/components/wallet/components/WalletCard.js +2 -2
  1240. package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
  1241. package/lib/components/wallet/index.js +41 -2
  1242. package/lib/components/wallet/index.less +0 -4
  1243. package/lib/components/wallet/locales.d.ts +3 -0
  1244. package/lib/components/wallet/locales.js +3 -0
  1245. package/lib/components/wallet/model.d.ts +1 -1
  1246. package/lib/components/wallet/utils/formatUtils.js +1 -1
  1247. package/lib/components/walletList/index.js +48 -16
  1248. package/lib/components/walletList/index.less +17 -15
  1249. package/lib/components/walletList/locales.d.ts +18 -0
  1250. package/lib/components/walletList/locales.js +41 -0
  1251. package/lib/components/walletList/serve.d.ts +8 -0
  1252. package/lib/components/walletList/serve.js +15 -2
  1253. package/lib/components/walletList/status.d.ts +38 -0
  1254. package/lib/components/walletList/status.js +66 -0
  1255. package/lib/components/workSpaceList/components/AppearanceEdit/IconPanel.js +2 -2
  1256. package/lib/components/workSpaceList/components/AppearanceEdit/constants.js +12 -32
  1257. package/lib/components/workSpaceList/components/Card/constants.js +3 -4
  1258. package/lib/components/workSpaceList/components/EditableString/index.js +2 -2
  1259. package/lib/components/workSpaceList/components/SearchBar/index.js +5 -8
  1260. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.js +2 -2
  1261. package/lib/components/workSpaceList/components/Sort/index.js +2 -2
  1262. package/lib/components/workSpaceList/components/WorkspaceItem/index.js +2 -2
  1263. package/lib/hooks/useEngineContext.d.ts +1 -0
  1264. package/lib/hooks/useEngineContext.js +14 -1
  1265. package/lib/hooks/useLocale.d.ts +2 -0
  1266. package/lib/hooks/useLocale.js +41 -0
  1267. package/lib/hooks/useLoginUser.d.ts +2 -0
  1268. package/lib/hooks/useLoginUser.js +50 -0
  1269. package/lib/hooks/useWindowSize.d.ts +5 -0
  1270. package/lib/hooks/useWindowSize.js +51 -0
  1271. package/lib/index.d.ts +7 -0
  1272. package/lib/index.js +21 -0
  1273. package/lib/utils/date.d.ts +11 -0
  1274. package/lib/utils/date.js +57 -0
  1275. package/lib/utils/tasks/index.d.ts +16 -0
  1276. package/lib/utils/tasks/index.js +63 -0
  1277. package/lib/utils/tasks/type.d.ts +4 -0
  1278. package/lib/utils/tasks/type.js +17 -0
  1279. package/lowcode/appointment-deposit/meta.ts +58 -0
  1280. package/lowcode/edit-booking-modal/meta.ts +53 -0
  1281. package/lowcode/parallel-resource-booking/meta.ts +69 -0
  1282. package/lowcode/product-select/meta.ts +201 -0
  1283. package/lowcode/step-controller/meta.ts +88 -0
  1284. package/lowcode/sub-total/meta.ts +134 -0
  1285. package/lowcode/ticket-booking/meta.ts +55 -0
  1286. package/lowcode/tob-pay/meta.ts +44 -0
  1287. package/package.json +4 -4
@@ -0,0 +1,51 @@
1
+ import { mockBooking } from './mock';
2
+ import { EditBookingModalParams } from './type';
3
+ /**
4
+ * @title: 获取预约详情
5
+ * @description: 获取预约详细信息
6
+ * @param {number} bookingId
7
+ * @param {any} params
8
+ * @return {*}
9
+ * @Author: cong.shao
10
+ * @Date: 2025-06-17 14:22
11
+ */
12
+ export declare const getBookingDetail: (bookingId: number, params?: any) => Promise<any>;
13
+ /**
14
+ * @title: 获取资源列表
15
+ * @description: 资源列表
16
+ * @param {any} params
17
+ * @return {*}
18
+ * @Author: cong.shao
19
+ * @Date: 2025-06-17 14:22
20
+ */
21
+ export declare const getResources: (params: any) => Promise<any>;
22
+ /**
23
+ * @title: 更新子预约时间及资源
24
+ * @description: 更新预约信息
25
+ * @param {string} orderId
26
+ * @param {any} params
27
+ * @return {*}
28
+ * @Author: cong.shao
29
+ * @Date: 2025-06-17 14:26
30
+ */
31
+ export declare const updateChildBooking: (orderId: string, params: any) => Promise<any>;
32
+ export declare const _getBookingDetail: (bookingId: number) => Promise<typeof mockBooking>;
33
+ export declare const getChildrenBookingById: (bookings: any[], id: number) => any;
34
+ export declare const _getResources: (params: any, bookingId?: number) => Promise<{
35
+ list: any[];
36
+ listMap: any;
37
+ }>;
38
+ export declare const _editBooking: (data: any, values: any) => Promise<void>;
39
+ export declare const updateResourceErrors: (resourceMaps: any, cacheItem: any) => any;
40
+ export declare const init: (params: EditBookingModalParams) => Promise<{
41
+ bookingOrigin: any;
42
+ booking: any;
43
+ childrenBooking: any;
44
+ dataRange: {
45
+ end_date: any;
46
+ start_date: any;
47
+ };
48
+ resourcesOrigin: any[];
49
+ toResource: any;
50
+ }>;
51
+ export declare const createCacheItem: (cacheItem: any, values?: any) => any;
@@ -0,0 +1,288 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ 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; }
3
+ 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; }
4
+ 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; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ 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); }
7
+ 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; }
8
+ 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); } }
9
+ 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); }); }; }
10
+ import { request } from "../../../utils";
11
+ import { _formatBookingDetail } from "../../ticketBooking/components/ticketBooking";
12
+ import dayjs from 'dayjs';
13
+ import { getResourceByIds } from "../info2/service/addService/utils";
14
+ import { getFormatResourceListAndMap } from "../info2/utils";
15
+ import { getErrorList } from "../info2/utilsByBooking";
16
+ /**
17
+ * @title: 获取预约详情
18
+ * @description: 获取预约详细信息
19
+ * @param {number} bookingId
20
+ * @param {any} params
21
+ * @return {*}
22
+ * @Author: cong.shao
23
+ * @Date: 2025-06-17 14:22
24
+ */
25
+ export var getBookingDetail = /*#__PURE__*/function () {
26
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bookingId, params) {
27
+ var _yield$request$getReq, data;
28
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
29
+ while (1) switch (_context.prev = _context.next) {
30
+ case 0:
31
+ _context.next = 2;
32
+ return request.getRequest().get("/shop/order/appointment/".concat(bookingId), params);
33
+ case 2:
34
+ _yield$request$getReq = _context.sent;
35
+ data = _yield$request$getReq.data;
36
+ return _context.abrupt("return", data);
37
+ case 5:
38
+ case "end":
39
+ return _context.stop();
40
+ }
41
+ }, _callee);
42
+ }));
43
+ return function getBookingDetail(_x, _x2) {
44
+ return _ref.apply(this, arguments);
45
+ };
46
+ }();
47
+
48
+ /**
49
+ * @title: 获取资源列表
50
+ * @description: 资源列表
51
+ * @param {any} params
52
+ * @return {*}
53
+ * @Author: cong.shao
54
+ * @Date: 2025-06-17 14:22
55
+ */
56
+ export var getResources = /*#__PURE__*/function () {
57
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(params) {
58
+ var _yield$request$getReq2, data;
59
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
60
+ while (1) switch (_context2.prev = _context2.next) {
61
+ case 0:
62
+ _context2.next = 2;
63
+ return request.getRequest().get("/shop/schedule/resource/list", params);
64
+ case 2:
65
+ _yield$request$getReq2 = _context2.sent;
66
+ data = _yield$request$getReq2.data;
67
+ return _context2.abrupt("return", data);
68
+ case 5:
69
+ case "end":
70
+ return _context2.stop();
71
+ }
72
+ }, _callee2);
73
+ }));
74
+ return function getResources(_x3) {
75
+ return _ref2.apply(this, arguments);
76
+ };
77
+ }();
78
+
79
+ /**
80
+ * @title: 更新子预约时间及资源
81
+ * @description: 更新预约信息
82
+ * @param {string} orderId
83
+ * @param {any} params
84
+ * @return {*}
85
+ * @Author: cong.shao
86
+ * @Date: 2025-06-17 14:26
87
+ */
88
+
89
+ export var updateChildBooking = /*#__PURE__*/function () {
90
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(orderId, params) {
91
+ var _yield$request$getReq3, data;
92
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
93
+ while (1) switch (_context3.prev = _context3.next) {
94
+ case 0:
95
+ _context3.next = 2;
96
+ return request.getRequest().put("/shop/v1.1/order/appointment/child-booking/".concat(orderId), params);
97
+ case 2:
98
+ _yield$request$getReq3 = _context3.sent;
99
+ data = _yield$request$getReq3.data;
100
+ return _context3.abrupt("return", data);
101
+ case 5:
102
+ case "end":
103
+ return _context3.stop();
104
+ }
105
+ }, _callee3);
106
+ }));
107
+ return function updateChildBooking(_x4, _x5) {
108
+ return _ref3.apply(this, arguments);
109
+ };
110
+ }();
111
+ export var _getBookingDetail = /*#__PURE__*/function () {
112
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(bookingId) {
113
+ var data;
114
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
115
+ while (1) switch (_context4.prev = _context4.next) {
116
+ case 0:
117
+ _context4.next = 2;
118
+ return getBookingDetail(bookingId);
119
+ case 2:
120
+ data = _context4.sent;
121
+ return _context4.abrupt("return", data);
122
+ case 4:
123
+ case "end":
124
+ return _context4.stop();
125
+ }
126
+ }, _callee4);
127
+ }));
128
+ return function _getBookingDetail(_x6) {
129
+ return _ref4.apply(this, arguments);
130
+ };
131
+ }();
132
+ export var getChildrenBookingById = function getChildrenBookingById(bookings, id) {
133
+ return bookings.find(function (item) {
134
+ return item.booking_id === id;
135
+ });
136
+ };
137
+ export var _getResources = /*#__PURE__*/function () {
138
+ var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(params, bookingId) {
139
+ var data;
140
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
141
+ while (1) switch (_context5.prev = _context5.next) {
142
+ case 0:
143
+ _context5.next = 2;
144
+ return getResources(params);
145
+ case 2:
146
+ data = _context5.sent;
147
+ return _context5.abrupt("return", getFormatResourceListAndMap(data, bookingId));
148
+ case 4:
149
+ case "end":
150
+ return _context5.stop();
151
+ }
152
+ }, _callee5);
153
+ }));
154
+ return function _getResources(_x7, _x8) {
155
+ return _ref5.apply(this, arguments);
156
+ };
157
+ }();
158
+ export var _editBooking = /*#__PURE__*/function () {
159
+ var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(data, values) {
160
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
161
+ while (1) switch (_context6.prev = _context6.next) {
162
+ case 0:
163
+ console.log('submit data', data);
164
+ console.log('submit values', values);
165
+
166
+ // let { data } = await editBooking('1', params);
167
+ // return data;
168
+ case 2:
169
+ case "end":
170
+ return _context6.stop();
171
+ }
172
+ }, _callee6);
173
+ }));
174
+ return function _editBooking(_x9, _x10) {
175
+ return _ref6.apply(this, arguments);
176
+ };
177
+ }();
178
+ export var updateResourceErrors = function updateResourceErrors(resourceMaps, cacheItem) {
179
+ var _cacheItem$_extend;
180
+ if (cacheItem !== null && cacheItem !== void 0 && (_cacheItem$_extend = cacheItem._extend) !== null && _cacheItem$_extend !== void 0 && _cacheItem$_extend.resource) {
181
+ var _cacheItem$_extend2;
182
+ var _resource = _objectSpread({}, cacheItem === null || cacheItem === void 0 || (_cacheItem$_extend2 = cacheItem._extend) === null || _cacheItem$_extend2 === void 0 ? void 0 : _cacheItem$_extend2.resource);
183
+ // 拿当前value 和 resources
184
+ var _loop = function _loop(form_id) {
185
+ _resource[form_id] = _resource[form_id].map(function (d) {
186
+ var _resourceMaps$form_id;
187
+ return _objectSpread(_objectSpread({}, d), {}, {
188
+ errors: getErrorList(resourceMaps === null || resourceMaps === void 0 || (_resourceMaps$form_id = resourceMaps[form_id]) === null || _resourceMaps$form_id === void 0 || (_resourceMaps$form_id = _resourceMaps$form_id.renderListMaps) === null || _resourceMaps$form_id === void 0 ? void 0 : _resourceMaps$form_id[d === null || d === void 0 ? void 0 : d.relation_id], cacheItem)
189
+ });
190
+ });
191
+ };
192
+ for (var form_id in _resource) {
193
+ _loop(form_id);
194
+ }
195
+ return _resource;
196
+ }
197
+ };
198
+ export var init = /*#__PURE__*/function () {
199
+ var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(params) {
200
+ var toStartDate, toEndDate, event, fromResourceId, toResourceId, bookingOrigin, booking, resources, childrenBooking, extraParams, fromResource, toResource, resourcesOrigin;
201
+ return _regeneratorRuntime().wrap(function _callee7$(_context7) {
202
+ while (1) switch (_context7.prev = _context7.next) {
203
+ case 0:
204
+ toStartDate = params.toStartDate, toEndDate = params.toEndDate, event = params.event, fromResourceId = params.fromResourceId, toResourceId = params.toResourceId; // 根据父id 获取预约详情
205
+ _context7.next = 3;
206
+ return _getBookingDetail(event.order.id);
207
+ case 3:
208
+ bookingOrigin = _context7.sent;
209
+ booking = _formatBookingDetail(bookingOrigin, {}); // 根据所选日期 获取资源列表
210
+ _context7.next = 7;
211
+ return _getResources({
212
+ date: dayjs(toStartDate).format('YYYY-MM-DD')
213
+ });
214
+ case 7:
215
+ resources = _context7.sent;
216
+ // 筛选出当前的子预约
217
+ childrenBooking = getChildrenBookingById(booking.service.value, event.id);
218
+ console.log('childrenBooking', childrenBooking);
219
+
220
+ // 假如移入未绑定的资源中,需要特殊处理
221
+ extraParams = {
222
+ extraResources: []
223
+ };
224
+ fromResource = resources.listMap[fromResourceId];
225
+ toResource = resources.listMap[toResourceId];
226
+ if (fromResource) {
227
+ extraParams.extraResources.push({
228
+ form_id: fromResource.form_id,
229
+ id: fromResource.id
230
+ });
231
+ }
232
+ if (toResource) {
233
+ extraParams.extraResources.push({
234
+ form_id: toResource.form_id,
235
+ id: toResource.id
236
+ });
237
+ }
238
+
239
+ // 将商品关联的资源id还原资源列表
240
+ resourcesOrigin = getResourceByIds(resources.listMap, childrenBooking, extraParams);
241
+ return _context7.abrupt("return", {
242
+ // 原接口数据
243
+ bookingOrigin: bookingOrigin,
244
+ //格式化后的booking数据
245
+ booking: booking,
246
+ // 当前子预约
247
+ childrenBooking: childrenBooking,
248
+ // 时间范围数据
249
+ dataRange: {
250
+ end_date: childrenBooking._extend.end_date,
251
+ start_date: childrenBooking._extend.start_date
252
+ },
253
+ // 总资源列表
254
+ resourcesOrigin: resourcesOrigin,
255
+ // 目标资源
256
+ toResource: toResource
257
+ });
258
+ case 17:
259
+ case "end":
260
+ return _context7.stop();
261
+ }
262
+ }, _callee7);
263
+ }));
264
+ return function init(_x11) {
265
+ return _ref7.apply(this, arguments);
266
+ };
267
+ }();
268
+ export var createCacheItem = function createCacheItem(cacheItem, values) {
269
+ var _values$toDate;
270
+ console.log('values', values);
271
+ if (!values || (values === null || values === void 0 || (_values$toDate = values.toDate) === null || _values$toDate === void 0 ? void 0 : _values$toDate.length) !== 2 || !(values !== null && values !== void 0 && values.resource)) {
272
+ return cacheItem;
273
+ }
274
+ var _ref8 = values || {},
275
+ toDate = _ref8.toDate,
276
+ resource = _ref8.resource;
277
+ return _objectSpread(_objectSpread({}, cacheItem), {}, {
278
+ _extend: _objectSpread(_objectSpread({}, cacheItem._extend), {}, {
279
+ endDate: toDate[1],
280
+ end_date: toDate[1],
281
+ end_time: toDate[1].format('HH:mm'),
282
+ startDate: toDate[0],
283
+ start_date: toDate[0],
284
+ start_time: toDate[0].format('HH:mm'),
285
+ resource: resource
286
+ })
287
+ });
288
+ };
@@ -0,0 +1,12 @@
1
+ export interface EditBookingModalParams {
2
+ toStartDate: string;
3
+ toEndDate: string;
4
+ event: any;
5
+ fromResourceId: string;
6
+ toResourceId: string;
7
+ }
8
+ export interface EditBookingModalProps {
9
+ open: boolean;
10
+ onCancel: () => void;
11
+ onOk: () => void;
12
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ export interface ResourceItem {
2
+ [key: string]: any;
3
+ }
4
+ /**
5
+ * @title: 传入资源,如果有子资源,会根据组合资源的 capacity 计算修改子资源的 capacity
6
+ * @description:
7
+ * @param {object} resource
8
+ * @return {*}
9
+ * @Author: jinglin.tan
10
+ */
11
+ export declare const checkSubResourcesCapacity: (resource: ResourceItem) => void;
12
+ export declare const formatValues: (data: any, values: any) => any;
@@ -0,0 +1,157 @@
1
+ import { getSumCapacity } from "../../info2/utilsByBooking";
2
+ var formatRelationDetails = function formatRelationDetails(list) {
3
+ return (list || []).map(function (item) {
4
+ return {
5
+ num: item.product_quantity,
6
+ price: item.payment_price || 0,
7
+ product_id: item.product_id,
8
+ is_charge_tax: item.is_charge_tax,
9
+ order_detail_id: item.order_detail_id
10
+ };
11
+ });
12
+ };
13
+ /**
14
+ * @title: 传入资源,如果有子资源,会根据组合资源的 capacity 计算修改子资源的 capacity
15
+ * @description:
16
+ * @param {object} resource
17
+ * @return {*}
18
+ * @Author: jinglin.tan
19
+ */
20
+ export var checkSubResourcesCapacity = function checkSubResourcesCapacity(resource) {
21
+ if (resource.children && resource.children.length) {
22
+ var countCapacity = resource.capacity;
23
+ resource.children.forEach(function (child) {
24
+ if (child.capacity <= countCapacity) {
25
+ countCapacity -= child.capacity;
26
+ } else {
27
+ child.capacity = countCapacity;
28
+ countCapacity = 0;
29
+ }
30
+ });
31
+ }
32
+ };
33
+ var checkResourcesFormat = function checkResourcesFormat(resources, service, isChild) {
34
+ return resources.map(function (resource) {
35
+ var _resource$children;
36
+ if (!isChild) {
37
+ resource.capacity = getSumCapacity({
38
+ cacheItem: service
39
+ });
40
+ }
41
+ checkSubResourcesCapacity(resource);
42
+ return {
43
+ children: (_resource$children = resource.children) !== null && _resource$children !== void 0 && _resource$children.length ? checkResourcesFormat(resource.children, service, true) : undefined,
44
+ form_id: resource.form_id,
45
+ relation_type: resource.relation_type || 'form',
46
+ relation_id: resource.relation_id || 0,
47
+ capacity: resource.capacity,
48
+ like_status: resource.like_status || 'common',
49
+ metadata: resource.metadata || {}
50
+ };
51
+ });
52
+ };
53
+ var formatResource = function formatResource(service) {
54
+ if (!service._extend.resource) {
55
+ return undefined;
56
+ }
57
+ try {
58
+ return Object.values(service._extend.resource).reduce(function (pre, cur) {
59
+ var newList = checkResourcesFormat(cur, service);
60
+ pre = pre.concat(newList);
61
+ return pre;
62
+ }, []);
63
+ } catch (err) {
64
+ return undefined;
65
+ }
66
+ };
67
+
68
+ /**
69
+ * @title: 格式化商品数据
70
+ * @description:
71
+ * @param {any} item
72
+ * @return {*}
73
+ * @Author: WangHan
74
+ * @Date: 2024-12-07 14:21
75
+ */
76
+ var formatProducts = function formatProducts(item) {
77
+ return {
78
+ "num": Number(item.detail.quantity),
79
+ "price": Number(item.detail.source_product_price),
80
+ "source_product_price": Number(item.detail.source_product_price),
81
+ "product_id": item.detail.id,
82
+ "discount_amount": item.detail.discount_amount,
83
+ "product_discount_reason": item.detail.product_discount_reason || '',
84
+ "is_charge_tax": item.detail.is_charge_tax,
85
+ "note": item.detail.note,
86
+ "discountway": item.detail.discountway || "num",
87
+ "discount_per": item.detail.discount_per,
88
+ "discount_type": item.detail.discount_type,
89
+ "order_detail_id": item.detail.order_detail_id,
90
+ "product_bundle": item.detail.product_bundle,
91
+ "bundle_edit": 0,
92
+ "product_option_item": [],
93
+ "product_variant_id": item.detail.product_variant_id || 0,
94
+ "discount_list": item.detail.discount_list,
95
+ metadata: item.detail.metadata
96
+ };
97
+ };
98
+
99
+ /**
100
+ * @title: 预约商品信息
101
+ * @description:
102
+ * @param {any} data
103
+ * @return {*}
104
+ * @Author: zhiwei.Wang
105
+ * @Date: 2024-02-19 09:26
106
+ */
107
+ var formatBookings = function formatBookings(data, values) {
108
+ var bookings = [];
109
+ bookings = data.map(function (item) {
110
+ return {
111
+ "product": formatProducts(item),
112
+ "relation_products": formatRelationDetails(item.relation_details),
113
+ 'id': item.id,
114
+ "relation_id": item.relation_id,
115
+ "like_status": item.like_status,
116
+ "relation_type": item.relation_type,
117
+ "is_all": item.is_all,
118
+ "schedule_id": item.schedule_id || 0,
119
+ "end_time": item.end_time,
120
+ "sub_type": item.sub_type,
121
+ "select_date": item.start_date,
122
+ "start_time": item.start_time,
123
+ "end_date": item.end_date,
124
+ "start_date": item.start_date,
125
+ "duration": item.duration,
126
+ "number": item.number,
127
+ "resources": formatResource(item),
128
+ "metadata": item.metadata,
129
+ "holder": item.holder
130
+ };
131
+ });
132
+ return bookings;
133
+ };
134
+ export var formatValues = function formatValues(data, values) {
135
+ var result = {
136
+ type: "appointment_booking",
137
+ platform: data.platform,
138
+ sales_channel: data.platform,
139
+ bookings: [],
140
+ customer_id: data.customer_id,
141
+ holder: data.holder,
142
+ relation_products: data.relation_products,
143
+ metadata: data.metadata,
144
+ shop_note: data.shop_note,
145
+ shop_discount: data.shop_discount,
146
+ shop_discount_reason: data.shop_discount_reason,
147
+ contacts: data.contacts,
148
+ customer_name: data.customer_name,
149
+ email: data.customer_name,
150
+ phone: data.customer_name,
151
+ country_calling_code: data.customer_name
152
+ };
153
+
154
+ // 服务
155
+ result.bookings = formatBookings(data, values);
156
+ return result;
157
+ };
@@ -0,0 +1,6 @@
1
+ interface FooterProps {
2
+ state: any;
3
+ reload: () => void;
4
+ }
5
+ declare const Footer: ({ state, reload }: FooterProps) => JSX.Element | null;
6
+ export default Footer;
@@ -0,0 +1,88 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
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
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
5
+ import React, { useMemo } from 'react';
6
+ import { Button, Tooltip, message } from '@pisell/materials';
7
+ import { ReloadOutlined } from '@ant-design/icons';
8
+ import useSendModal from "./sendModal/useSendModal";
9
+ import SendModal from "./sendModal";
10
+ import { locales } from '@pisell/utils';
11
+ var Footer = function Footer(_ref) {
12
+ var _state$form2, _state$client6, _state$form3, _state$client7;
13
+ var state = _ref.state,
14
+ reload = _ref.reload;
15
+ var _useSendModal = useSendModal(state === null || state === void 0 ? void 0 : state.bookingId),
16
+ open = _useSendModal.open,
17
+ setOpen = _useSendModal.setOpen,
18
+ handleOpen = _useSendModal.handleOpen,
19
+ handleValuesChange = _useSendModal.handleValuesChange,
20
+ handleOk = _useSendModal.handleOk;
21
+ var handleReload = /*#__PURE__*/function () {
22
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
23
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
24
+ while (1) switch (_context.prev = _context.next) {
25
+ case 0:
26
+ _context.next = 2;
27
+ return reload();
28
+ case 2:
29
+ message.success(locales.getText('pisell2.text.send-form-reminder-refresh'));
30
+ case 3:
31
+ case "end":
32
+ return _context.stop();
33
+ }
34
+ }, _callee);
35
+ }));
36
+ return function handleReload() {
37
+ return _ref2.apply(this, arguments);
38
+ };
39
+ }();
40
+
41
+ // 是否都填写完成
42
+ var isAllCompleted = useMemo(function () {
43
+ var _state$form;
44
+ return Object.values((state === null || state === void 0 || (_state$form = state.form) === null || _state$form === void 0 ? void 0 : _state$form.value) || {}).every(function (item) {
45
+ return item.length > 0;
46
+ });
47
+ }, [state === null || state === void 0 || (_state$form2 = state.form) === null || _state$form2 === void 0 ? void 0 : _state$form2.value]);
48
+ var defaultValues = useMemo(function () {
49
+ var _state$client, _state$client2, _state$client3, _state$client4, _state$client5;
50
+ return {
51
+ sendSms: !!((_state$client = state.client) !== null && _state$client !== void 0 && (_state$client = _state$client.value) !== null && _state$client !== void 0 && _state$client.phone),
52
+ sendEmail: !!((_state$client2 = state.client) !== null && _state$client2 !== void 0 && (_state$client2 = _state$client2.value) !== null && _state$client2 !== void 0 && _state$client2.email),
53
+ email: (_state$client3 = state.client) === null || _state$client3 === void 0 || (_state$client3 = _state$client3.value) === null || _state$client3 === void 0 ? void 0 : _state$client3.email,
54
+ phone: {
55
+ code: (_state$client4 = state.client) === null || _state$client4 === void 0 || (_state$client4 = _state$client4.value) === null || _state$client4 === void 0 ? void 0 : _state$client4.country_calling_code,
56
+ phone: (_state$client5 = state.client) === null || _state$client5 === void 0 || (_state$client5 = _state$client5.value) === null || _state$client5 === void 0 ? void 0 : _state$client5.phone
57
+ }
58
+ };
59
+ }, [(_state$client6 = state.client) === null || _state$client6 === void 0 ? void 0 : _state$client6.value]);
60
+ if (!state.bookingId || !(state !== null && state !== void 0 && (_state$form3 = state.form) !== null && _state$form3 !== void 0 && _state$form3.forms.length)) {
61
+ return null;
62
+ }
63
+ return /*#__PURE__*/React.createElement("div", {
64
+ className: "pisell-lowcode__booking-form-footer"
65
+ }, /*#__PURE__*/React.createElement(Tooltip, {
66
+ title: locales.getText('pisell2.text.send-form-reminder-tooltip')
67
+ }, /*#__PURE__*/React.createElement(Button, {
68
+ size: "large",
69
+ icon: /*#__PURE__*/React.createElement(ReloadOutlined, null),
70
+ onClick: handleReload
71
+ })), /*#__PURE__*/React.createElement(Button, {
72
+ size: "large",
73
+ block: true,
74
+ type: "primary",
75
+ onClick: handleOpen,
76
+ disabled: isAllCompleted
77
+ }, !isAllCompleted ? locales.getText('pisell2.text.send-form-reminder') : locales.getText('pisell2.text.send-form-reminder-completed')), /*#__PURE__*/React.createElement(SendModal, {
78
+ refreshKey: (_state$client7 = state.client) === null || _state$client7 === void 0 || (_state$client7 = _state$client7.value) === null || _state$client7 === void 0 ? void 0 : _state$client7.id,
79
+ open: open,
80
+ onCancel: function onCancel() {
81
+ return setOpen(false);
82
+ },
83
+ onOk: handleOk,
84
+ onValuesChange: handleValuesChange,
85
+ defaultValues: defaultValues
86
+ }));
87
+ };
88
+ export default Footer;