@pisell/private-materials 6.1.7 → 6.1.9

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 (1057) 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 +9 -1
  6. package/build/lowcode/preview.js +146 -146
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +12 -12
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +12 -12
  11. package/es/businessModel/SalesModel/index.d.ts +1 -0
  12. package/es/components/Sales/Cart/index.js +14 -4
  13. package/es/components/Sales/Cart/utils.d.ts +40 -0
  14. package/es/components/Sales/Cart/utils.js +187 -0
  15. package/es/components/Sales/Checkout/index.d.ts +4 -0
  16. package/es/components/Sales/Checkout/index.js +52 -8
  17. package/es/components/Sales/Checkout/serve.d.ts +13 -0
  18. package/es/components/Sales/Checkout/serve.js +16 -2
  19. package/es/components/Sales/Checkout/utils.d.ts +7 -1
  20. package/es/components/Sales/Checkout/utils.js +17 -5
  21. package/es/components/Sales/Customer/index.d.ts +1 -0
  22. package/es/components/Sales/Customer/index.js +1 -0
  23. package/es/components/Sales/Event/Detail.d.ts +1 -0
  24. package/es/components/Sales/Event/Detail.js +45 -11
  25. package/es/components/Sales/Event/serve.d.ts +10 -0
  26. package/es/components/Sales/Event/serve.js +25 -0
  27. package/es/components/Sales/Summary/index.d.ts +10 -0
  28. package/es/components/Sales/Summary/index.js +17 -2
  29. package/es/components/Sales/Summary/serve.d.ts +1 -0
  30. package/es/components/Sales/Summary/serve.js +6 -0
  31. package/es/components/Sales/Summary/utils.d.ts +16 -1
  32. package/es/components/Sales/Summary/utils.js +43 -1
  33. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  34. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  35. package/es/components/appointmentBooking/components/Cart/Item/index.js +1 -0
  36. package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  37. package/es/components/appointmentBooking/components/Cart/utils.js +8 -13
  38. package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
  39. package/es/components/appointmentBooking/components/Content/index.js +120 -20
  40. package/es/components/appointmentBooking/components/Deposit/index.d.ts +7 -0
  41. package/es/components/appointmentBooking/components/Deposit/index.js +27 -7
  42. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  43. package/es/components/appointmentBooking/components/Form/index.js +1 -1
  44. package/es/components/appointmentBooking/components/Form/utils.d.ts +1 -1
  45. package/es/components/appointmentBooking/components/Form/utils.js +17 -15
  46. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  47. package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
  48. package/es/components/appointmentBooking/components/Header/index.js +2 -1
  49. package/es/components/appointmentBooking/components/Resource/index.js +1 -0
  50. package/es/components/appointmentBooking/components/Services/index.js +7 -2
  51. package/es/components/appointmentBooking/components/TimeSlicing/index.js +7 -3
  52. package/es/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  53. package/es/components/appointmentBooking/components/Voucher/index.js +10 -10
  54. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  55. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +25 -20
  56. package/es/components/appointmentBooking/deposit/index.d.ts +1 -0
  57. package/es/components/appointmentBooking/deposit/index.js +4 -2
  58. package/es/components/appointmentBooking/hooks.js +28 -30
  59. package/es/components/appointmentBooking/index.d.ts +1 -0
  60. package/es/components/booking/addons/index.js +4 -1
  61. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  62. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  63. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  64. package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
  65. package/es/components/booking/components/actionButtons/index.d.ts +29 -0
  66. package/es/components/booking/components/actionButtons/index.js +395 -0
  67. package/es/components/booking/components/actionButtons/index.less +148 -0
  68. package/es/components/booking/components/browserSelect/index.js +1 -1
  69. package/es/components/booking/components/clearCartModal/index.d.ts +10 -0
  70. package/es/components/booking/components/clearCartModal/index.js +50 -0
  71. package/es/components/booking/components/clearCartModal/index.less +109 -0
  72. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  73. package/es/components/booking/components/customiseItemModal/index.d.ts +28 -0
  74. package/es/components/booking/components/customiseItemModal/index.js +287 -0
  75. package/es/components/booking/components/customiseItemModal/index.less +593 -0
  76. package/es/components/booking/components/drawer/index.d.ts +19 -0
  77. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  78. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  79. package/es/components/booking/components/footer/amount.d.ts +1 -0
  80. package/es/components/booking/components/footer/amount.js +15 -3
  81. package/es/components/booking/components/footer/index.d.ts +1 -0
  82. package/es/components/booking/components/footer/index.js +137 -62
  83. package/es/components/booking/components/footer/utils.js +52 -24
  84. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  85. package/es/components/booking/components/reloadResourceModal/index.d.ts +9 -0
  86. package/es/components/booking/components/reloadResourceModal/index.js +73 -0
  87. package/es/components/booking/components/reloadResourceModal/index.less +6 -0
  88. package/es/components/booking/components/tabPane/index.js +86 -5
  89. package/es/components/booking/components/tabPane/index.less +75 -1
  90. package/es/components/booking/components/voucher/index.d.ts +1 -0
  91. package/es/components/booking/components/voucher/index.js +21 -10
  92. package/es/components/booking/components/voucher/index.less +1 -1
  93. package/es/components/booking/dashboard/index.d.ts +1 -1
  94. package/es/components/booking/dashboard/index.js +10 -3
  95. package/es/components/booking/deposit/index.d.ts +1 -0
  96. package/es/components/booking/editBookingModal/index.js +58 -29
  97. package/es/components/booking/editBookingModal/serve.d.ts +1 -0
  98. package/es/components/booking/editBookingModal/serve.js +19 -11
  99. package/es/components/booking/forms/footer.d.ts +1 -0
  100. package/es/components/booking/forms/model.js +5 -5
  101. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  102. package/es/components/booking/forms/single/index.d.ts +1 -0
  103. package/es/components/booking/forms/table/index.d.ts +1 -0
  104. package/es/components/booking/hooks/useClearCart.d.ts +1 -0
  105. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -1
  106. package/es/components/booking/hooks/useIsBooking4Shop.js +4 -3
  107. package/es/components/booking/hooks/useQuotation.js +17 -7
  108. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  109. package/es/components/booking/info/addServiceVariant/index.js +2 -2
  110. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  111. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  112. package/es/components/booking/info/date/index.d.ts +1 -0
  113. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  114. package/es/components/booking/info/header/index.d.ts +1 -0
  115. package/es/components/booking/info/hooks/useInfoHolder.d.ts +2 -0
  116. package/es/components/booking/info/hooks/useInfoHolder.js +15 -14
  117. package/es/components/booking/info/index.d.ts +1 -0
  118. package/es/components/booking/info/index.js +3 -4
  119. package/es/components/booking/info/index.less +18 -2
  120. package/es/components/booking/info/main.js +14 -15
  121. package/es/components/booking/info/notes/index.d.ts +1 -0
  122. package/es/components/booking/info/service/Lists.d.ts +1 -0
  123. package/es/components/booking/info/service/Lists.js +5 -2
  124. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  125. package/es/components/booking/info/service/addService/index.d.ts +1 -0
  126. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  127. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  128. package/es/components/booking/info/service/editService/index.js +1 -1
  129. package/es/components/booking/info/service/like/index.d.ts +1 -0
  130. package/es/components/booking/info/service/like/index.js +1 -1
  131. package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
  132. package/es/components/booking/info/service/serviceItem/index.js +2 -2
  133. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  134. package/es/components/booking/info/service/serviceManager/index.js +4 -4
  135. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  136. package/es/components/booking/info/service2/utils.d.ts +5 -1
  137. package/es/components/booking/info/service2/utils.js +12 -2
  138. package/es/components/booking/info/utils.d.ts +1 -1
  139. package/es/components/booking/info/utils.js +5 -3
  140. package/es/components/booking/info2/cartClientCard/index.d.ts +6 -0
  141. package/es/components/booking/info2/cartClientCard/index.js +343 -0
  142. package/es/components/booking/info2/cartClientCard/index.less +6 -0
  143. package/es/components/booking/info2/cartClientCard/locales.d.ts +21 -0
  144. package/es/components/booking/info2/cartClientCard/locales.js +26 -0
  145. package/es/components/booking/info2/cartClientCard/types.d.ts +13 -0
  146. package/es/components/booking/info2/cartClientCard/types.js +1 -0
  147. package/es/components/booking/info2/cartClientCard/utils.d.ts +3 -0
  148. package/es/components/booking/info2/cartClientCard/utils.js +7 -0
  149. package/es/components/booking/info2/index.js +104 -32
  150. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  151. package/es/components/booking/info2/service/addService/index.d.ts +1 -0
  152. package/es/components/booking/info2/service/addService/index.js +21 -8
  153. package/es/components/booking/info2/service/addService/utils.d.ts +98 -0
  154. package/es/components/booking/info2/service/addService/utils.js +38 -9
  155. package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  156. package/es/components/booking/info2/service/addTimeModal/index.js +33 -9
  157. package/es/components/booking/info2/service/editNormalService/index.d.ts +3 -0
  158. package/es/components/booking/info2/service/editNormalService/index.js +67 -0
  159. package/es/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  160. package/es/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
  161. package/es/components/booking/info2/service/editService/index.js +6 -7
  162. package/es/components/booking/info2/service/index.js +12 -6
  163. package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  164. package/es/components/booking/info2/service/serviceItem/index.js +2 -2
  165. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  166. package/es/components/booking/info2/utils.js +13 -16
  167. package/es/components/booking/info2/utilsByBooking.d.ts +1 -0
  168. package/es/components/booking/info2/utilsByBooking.js +36 -7
  169. package/es/components/booking/locales.d.ts +84 -0
  170. package/es/components/booking/locales.js +108 -3
  171. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  172. package/es/components/booking/materiels/duration/index.d.ts +14 -0
  173. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  174. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  175. package/es/components/booking/materiels/startTime/index.js +1 -1
  176. package/es/components/booking/model.d.ts +1 -0
  177. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  178. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  179. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  180. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  181. package/es/components/booking/notes/addNote/index.d.ts +2 -1
  182. package/es/components/booking/notes/addNote/index.js +52 -32
  183. package/es/components/booking/notes/addNote/index.less +53 -0
  184. package/es/components/booking/notes/model.js +5 -5
  185. package/es/components/booking/payments/model.js +5 -5
  186. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  187. package/es/components/eftpos/form/index.d.ts +1 -0
  188. package/es/components/eftpos/group/index.d.ts +1 -0
  189. package/es/components/eftpos/hooks.d.ts +1 -0
  190. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  191. package/es/components/eftpos/icon/device.d.ts +1 -0
  192. package/es/components/eftpos/index.d.ts +1 -0
  193. package/es/components/eftpos/pos.d.ts +1 -0
  194. package/es/components/eftpos/receipt/index.d.ts +1 -0
  195. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  196. package/es/components/eftposPay/amount.d.ts +1 -0
  197. package/es/components/eftposPay/app.d.ts +1 -0
  198. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  199. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  200. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  201. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  202. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  203. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  204. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  205. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  206. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  207. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  208. package/es/components/eftposPay/const.d.ts +4 -1
  209. package/es/components/eftposPay/const.js +3 -1
  210. package/es/components/eftposPay/device.d.ts +1 -0
  211. package/es/components/eftposPay/hooks.d.ts +2 -2
  212. package/es/components/eftposPay/hooks.js +3 -1
  213. package/es/components/eftposPay/index.d.ts +1 -0
  214. package/es/components/eftposPay/index.js +1 -1
  215. package/es/components/eftposPay/linkly/const.d.ts +23 -0
  216. package/es/components/eftposPay/linkly/const.js +82 -0
  217. package/es/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  218. package/es/components/eftposPay/linkly/hooks/index.js +2 -0
  219. package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  220. package/es/components/eftposPay/linkly/hooks/normal.js +321 -0
  221. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  222. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +273 -0
  223. package/es/components/eftposPay/linkly/index.d.ts +3 -0
  224. package/es/components/eftposPay/linkly/index.js +197 -0
  225. package/es/components/eftposPay/linkly/service.d.ts +32 -0
  226. package/es/components/eftposPay/linkly/service.js +81 -0
  227. package/es/components/eftposPay/manufacturer.d.ts +1 -0
  228. package/es/components/eftposPay/manufacturer.js +4 -0
  229. package/es/components/eftposPay/pay.d.ts +2 -1
  230. package/es/components/eftposPay/pay.js +6 -2
  231. package/es/components/eftposPay/payo/config.d.ts +1 -0
  232. package/es/components/eftposPay/store/index.d.ts +5 -5
  233. package/es/components/eftposPay/tip.d.ts +1 -0
  234. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  235. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  236. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  237. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  238. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  239. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +40 -19
  240. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +3 -0
  241. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +17 -0
  242. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  243. package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +10 -6
  244. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  245. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
  246. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  247. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  248. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  249. package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  250. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  251. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  252. package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  253. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  254. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  255. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  256. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  257. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  258. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  259. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  260. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  261. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  262. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  263. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  264. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  265. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  266. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  267. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  268. package/es/components/eventBooking/components/bookingDetailModal/index.js +6 -3
  269. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  270. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  271. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  272. package/es/components/eventBooking/index.d.ts +1 -0
  273. package/es/components/eventBooking/index.js +14 -0
  274. package/es/components/eventBooking/index.less +1 -1
  275. package/es/components/eventBooking/locales.d.ts +24 -0
  276. package/es/components/eventBooking/locales.js +27 -3
  277. package/es/components/listComponent/index.js +5 -5
  278. package/es/components/login/index.d.ts +1 -0
  279. package/es/components/pay/toB/components/Cache/index.d.ts +1 -0
  280. package/es/components/pay/toB/components/Card/index.d.ts +1 -0
  281. package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  282. package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -0
  283. package/es/components/pay/toB/components/Content/Footer.d.ts +1 -0
  284. package/es/components/pay/toB/components/Content/Header.d.ts +1 -0
  285. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +18 -3
  286. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +2 -1
  287. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +7 -2
  288. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +8 -0
  289. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +44 -18
  290. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  291. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  292. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  293. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  294. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  295. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  296. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  297. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +18 -3
  298. package/es/components/pay/toC/PaymentMethods/index.js +70 -21
  299. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  300. package/es/components/pay/toC/index.js +46 -14
  301. package/es/components/pay/toC/locales.d.ts +3 -0
  302. package/es/components/pay/toC/locales.js +3 -0
  303. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  304. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  305. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  306. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  307. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  308. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  309. package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
  310. package/es/components/productExtension/card/index.js +3 -3
  311. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  312. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  313. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  314. package/es/components/productExtension/fields/Forms/index.js +12 -12
  315. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  316. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  317. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  318. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  319. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  320. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  321. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  322. package/es/components/productExtension/index.d.ts +1 -0
  323. package/es/components/productExtension/server.js +2 -2
  324. package/es/components/productSelect/components/TabProduct/index.d.ts +1 -0
  325. package/es/components/productSelect/components/TabProduct/index.js +103 -39
  326. package/es/components/productSelect/components/TabProduct/tabs/index.less +1 -0
  327. package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
  328. package/es/components/productSelect/index.d.ts +2 -0
  329. package/es/components/ruleSetting/index.d.ts +1 -0
  330. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  331. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  332. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  333. package/es/components/schedules/calendar/index.d.ts +1 -0
  334. package/es/components/schedules/calendar/index.js +4 -4
  335. package/es/components/schedules/calendar/serve.js +2 -2
  336. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  337. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  338. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  339. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  340. package/es/components/schedules/components/ResourceList/index.js +1 -1
  341. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  342. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  343. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  344. package/es/components/schedules/components/Search/index.js +5 -5
  345. package/es/components/schedules/model.js +5 -5
  346. package/es/components/schedules/openHours/index.js +1 -1
  347. package/es/components/schedules/openHours/serve.js +2 -2
  348. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  349. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  350. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  351. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  352. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  353. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  354. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  355. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  356. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  357. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  358. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  359. package/es/components/schedules/products/index.d.ts +1 -0
  360. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  361. package/es/components/schedules/products/list/index.d.ts +1 -0
  362. package/es/components/schedules/products/serve.js +2 -2
  363. package/es/components/schedules/products/utils.js +5 -5
  364. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  365. package/es/components/schedules/resources/detail/index.js +10 -10
  366. package/es/components/schedules/resources/index.d.ts +1 -0
  367. package/es/components/schedules/resources/list/index.d.ts +1 -0
  368. package/es/components/schedules/resources/list/index.js +2 -2
  369. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  370. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  371. package/es/components/schedules/resources/serve.js +2 -2
  372. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  373. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  374. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  375. package/es/components/schedules/schedules/index.d.ts +1 -0
  376. package/es/components/schedules/utils.js +4 -4
  377. package/es/components/selectModal/index.js +2 -2
  378. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  379. package/es/components/shoppingCart/components/Cart/Product.js +21 -4
  380. package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
  381. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  382. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  383. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  384. package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  385. package/es/components/shoppingCart/index.d.ts +1 -0
  386. package/es/components/shoppingCart/type.d.ts +1 -0
  387. package/es/components/subTotal/index.less +1 -1
  388. package/es/components/taxSelect/index.d.ts +1 -0
  389. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
  390. package/es/components/ticketBooking/components/addServiceVariant/addService.js +157 -212
  391. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  392. package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +8 -0
  393. package/es/components/ticketBooking/components/addServiceVariant/utils.js +190 -0
  394. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -0
  395. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +33 -0
  396. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +5 -0
  397. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +12 -0
  398. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +213 -0
  399. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +69 -0
  400. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
  401. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +79 -0
  402. package/es/components/ticketBooking/components/bookingDataPanel/constants.d.ts +22 -0
  403. package/es/components/ticketBooking/components/bookingDataPanel/constants.js +25 -0
  404. package/es/components/ticketBooking/components/bookingDataPanel/index.d.ts +9 -0
  405. package/es/components/ticketBooking/components/bookingDataPanel/index.js +74 -0
  406. package/es/components/ticketBooking/components/bookingDataPanel/index.less +61 -0
  407. package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +14 -0
  408. package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +71 -0
  409. package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  410. package/es/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
  411. package/es/components/ticketBooking/components/floatButtons/index.d.ts +11 -0
  412. package/es/components/ticketBooking/components/floatButtons/index.js +19 -0
  413. package/es/components/ticketBooking/components/floatButtons/index.less +17 -0
  414. package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  415. package/es/components/ticketBooking/components/menuBar/index.js +50 -1
  416. package/es/components/ticketBooking/components/menuBar/index.less +8 -0
  417. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  418. package/es/components/ticketBooking/components/ticketBooking/index.js +195 -26
  419. package/es/components/ticketBooking/components/ticketBooking/index.less +28 -0
  420. package/es/components/ticketBooking/components/timeBar/index.d.ts +2 -0
  421. package/es/components/ticketBooking/components/timeBar/index.js +20 -16
  422. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +1 -0
  423. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +5 -0
  424. package/es/components/ticketBooking/hooks/pisellos/index.d.ts +3 -0
  425. package/es/components/ticketBooking/hooks/pisellos/index.js +3 -0
  426. package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  427. package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +244 -0
  428. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +12 -0
  429. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +52 -0
  430. package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +5 -0
  431. package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +30 -0
  432. package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +5 -0
  433. package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +29 -0
  434. package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +2 -0
  435. package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +49 -0
  436. package/es/components/ticketBooking/index.d.ts +1 -0
  437. package/es/components/ticketBooking/index.js +22 -3
  438. package/es/components/ticketBooking/locales.d.ts +6 -0
  439. package/es/components/ticketBooking/locales.js +9 -3
  440. package/es/components/ticketBooking/serve.js +11 -11
  441. package/es/components/ticketBooking/utils/index.d.ts +39 -2
  442. package/es/components/ticketBooking/utils/index.js +104 -11
  443. package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
  444. package/es/components/walletList/index.js +4 -4
  445. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  446. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  447. package/es/hooks/useComponents.js +1 -1
  448. package/es/hooks/useToast.d.ts +2 -0
  449. package/es/hooks/useToast.js +9 -0
  450. package/es/hooks/useTranslationOriginal.d.ts +1 -0
  451. package/es/hooks/useTranslationOriginal.js +10 -0
  452. package/es/index.d.ts +4 -0
  453. package/es/index.js +5 -1
  454. package/es/plus/clientCard/index.d.ts +7 -0
  455. package/es/plus/clientCard/index.js +452 -0
  456. package/es/plus/clientCard/index.less +539 -0
  457. package/es/plus/clientCard/line/index.d.ts +9 -0
  458. package/es/plus/clientCard/line/index.js +157 -0
  459. package/es/plus/clientCard/line/index.less +142 -0
  460. package/es/plus/clientCard/locales.d.ts +18 -0
  461. package/es/plus/clientCard/locales.js +17 -0
  462. package/es/plus/clientCard/types.d.ts +126 -0
  463. package/es/plus/clientCard/types.js +1 -0
  464. package/es/plus/clientCard/utils.d.ts +8 -0
  465. package/es/plus/clientCard/utils.js +59 -0
  466. package/es/plus/clientName/index.d.ts +5 -0
  467. package/es/plus/clientName/index.js +18 -0
  468. package/es/plus/clientName/index.less +10 -0
  469. package/es/plus/clientName/type.d.ts +13 -0
  470. package/es/plus/clientName/type.js +1 -0
  471. package/es/plus/clientName/utils.d.ts +2 -0
  472. package/es/plus/clientName/utils.js +18 -0
  473. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +3 -0
  474. package/es/plus/clinetSearch/Add/BirthdayField/index.js +277 -0
  475. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +3 -0
  476. package/es/plus/clinetSearch/Add/GenderField/index.js +18 -0
  477. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +3 -0
  478. package/es/plus/clinetSearch/Add/PhoneField/index.js +52 -0
  479. package/es/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
  480. package/es/plus/clinetSearch/Add/PhoneField/serve.js +166 -0
  481. package/es/plus/clinetSearch/Add/index.d.ts +18 -0
  482. package/es/plus/clinetSearch/Add/index.js +212 -0
  483. package/es/plus/clinetSearch/Add/index.less +30 -0
  484. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
  485. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +265 -0
  486. package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
  487. package/es/plus/clinetSearch/InfiniteScroll/index.js +1 -0
  488. package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
  489. package/es/plus/clinetSearch/InfiniteScroll/types.js +1 -0
  490. package/es/plus/clinetSearch/index.d.ts +18 -0
  491. package/es/plus/clinetSearch/index.js +214 -0
  492. package/es/plus/clinetSearch/index.less +91 -0
  493. package/es/plus/clinetSearch/locales.d.ts +102 -0
  494. package/es/plus/clinetSearch/locales.js +101 -0
  495. package/es/plus/clinetSearch/serve.d.ts +1 -0
  496. package/es/plus/clinetSearch/serve.js +31 -0
  497. package/es/plus/clinetSearch/types.d.ts +49 -0
  498. package/es/plus/clinetSearch/types.js +1 -0
  499. package/es/plus/noteModal/AddTempModal.d.ts +8 -0
  500. package/es/plus/noteModal/AddTempModal.js +64 -0
  501. package/es/plus/noteModal/index.d.ts +4 -0
  502. package/es/plus/noteModal/index.js +199 -0
  503. package/es/plus/noteModal/index.less +168 -0
  504. package/es/plus/noteModal/locales.d.ts +33 -0
  505. package/es/plus/noteModal/locales.js +32 -0
  506. package/es/plus/noteModal/types.d.ts +17 -0
  507. package/es/plus/noteModal/types.js +1 -0
  508. package/es/pro/comprehensiveSearch/camera.svg +4 -0
  509. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
  510. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.js +24 -0
  511. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
  512. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +44 -0
  513. package/es/pro/comprehensiveSearch/index.d.ts +9 -0
  514. package/es/pro/comprehensiveSearch/index.js +342 -0
  515. package/es/pro/comprehensiveSearch/index.less +323 -0
  516. package/es/pro/comprehensiveSearch/locales.d.ts +18 -0
  517. package/es/pro/comprehensiveSearch/locales.js +17 -0
  518. package/es/pro/comprehensiveSearch/types.d.ts +31 -0
  519. package/es/pro/comprehensiveSearch/types.js +1 -0
  520. package/es/pro/numberKeyboard/index.d.ts +28 -0
  521. package/es/pro/numberKeyboard/index.js +155 -0
  522. package/es/pro/numberKeyboard/index.less +25 -0
  523. package/es/pro/numberKeyboard/locales.d.ts +12 -0
  524. package/es/pro/numberKeyboard/locales.js +11 -0
  525. package/es/pro/pisellNumberSelector/example.d.ts +3 -0
  526. package/es/pro/pisellNumberSelector/example.js +68 -0
  527. package/es/pro/pisellNumberSelector/index.d.ts +26 -0
  528. package/es/pro/pisellNumberSelector/index.js +231 -0
  529. package/es/pro/pisellNumberSelector/index.less +193 -0
  530. package/es/pro/pisellPhoneKeyboard/index.d.ts +13 -0
  531. package/es/pro/pisellPhoneKeyboard/index.js +211 -0
  532. package/es/pro/pisellPhoneKeyboard/index.less +157 -0
  533. package/es/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
  534. package/es/pro/pisellPhoneKeyboard/locales.js +11 -0
  535. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +5 -0
  536. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +157 -0
  537. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +9 -0
  538. package/es/pro/pisellPriceKeyboardModal/index.d.ts +2 -0
  539. package/es/pro/pisellPriceKeyboardModal/index.js +1 -0
  540. package/es/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
  541. package/es/pro/pisellPriceKeyboardModal/types.js +1 -0
  542. package/es/pro/pisellPriceRadio/index.d.ts +26 -0
  543. package/es/pro/pisellPriceRadio/index.js +113 -0
  544. package/es/pro/pisellPriceRadio/index.less +158 -0
  545. package/es/pro/skuDetailModal/index.d.ts +5 -0
  546. package/es/pro/skuDetailModal/index.js +352 -0
  547. package/es/pro/skuDetailModal/index.less +236 -0
  548. package/es/pro/skuDetailModal/locales.d.ts +48 -0
  549. package/es/pro/skuDetailModal/locales.js +47 -0
  550. package/es/pro/skuDetailModal/types.d.ts +347 -0
  551. package/es/pro/skuDetailModal/types.js +1 -0
  552. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  553. package/lib/components/Sales/Cart/index.js +10 -4
  554. package/lib/components/Sales/Cart/utils.d.ts +40 -0
  555. package/lib/components/Sales/Cart/utils.js +129 -0
  556. package/lib/components/Sales/Checkout/index.d.ts +4 -0
  557. package/lib/components/Sales/Checkout/index.js +39 -7
  558. package/lib/components/Sales/Checkout/serve.d.ts +13 -0
  559. package/lib/components/Sales/Checkout/serve.js +7 -2
  560. package/lib/components/Sales/Checkout/utils.d.ts +7 -1
  561. package/lib/components/Sales/Checkout/utils.js +7 -2
  562. package/lib/components/Sales/Customer/index.d.ts +1 -0
  563. package/lib/components/Sales/Customer/index.js +1 -0
  564. package/lib/components/Sales/Event/Detail.d.ts +1 -0
  565. package/lib/components/Sales/Event/Detail.js +37 -12
  566. package/lib/components/Sales/Event/serve.d.ts +10 -0
  567. package/lib/components/Sales/Event/serve.js +7 -0
  568. package/lib/components/Sales/Summary/index.d.ts +10 -0
  569. package/lib/components/Sales/Summary/index.js +7 -1
  570. package/lib/components/Sales/Summary/serve.d.ts +1 -0
  571. package/lib/components/Sales/Summary/serve.js +32 -0
  572. package/lib/components/Sales/Summary/utils.d.ts +16 -1
  573. package/lib/components/Sales/Summary/utils.js +30 -1
  574. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  575. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  576. package/lib/components/appointmentBooking/components/Cart/Item/index.js +1 -0
  577. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  578. package/lib/components/appointmentBooking/components/Cart/utils.js +0 -10
  579. package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
  580. package/lib/components/appointmentBooking/components/Content/index.js +55 -8
  581. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +7 -0
  582. package/lib/components/appointmentBooking/components/Deposit/index.js +36 -4
  583. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  584. package/lib/components/appointmentBooking/components/Form/index.js +6 -1
  585. package/lib/components/appointmentBooking/components/Form/utils.d.ts +1 -1
  586. package/lib/components/appointmentBooking/components/Form/utils.js +9 -12
  587. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  588. package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
  589. package/lib/components/appointmentBooking/components/Header/index.js +1 -0
  590. package/lib/components/appointmentBooking/components/Resource/index.js +1 -0
  591. package/lib/components/appointmentBooking/components/Services/index.js +6 -1
  592. package/lib/components/appointmentBooking/components/TimeSlicing/index.js +7 -3
  593. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  594. package/lib/components/appointmentBooking/components/Voucher/index.js +0 -11
  595. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  596. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +8 -4
  597. package/lib/components/appointmentBooking/deposit/index.d.ts +1 -0
  598. package/lib/components/appointmentBooking/deposit/index.js +4 -2
  599. package/lib/components/appointmentBooking/hooks.js +5 -16
  600. package/lib/components/appointmentBooking/index.d.ts +1 -0
  601. package/lib/components/booking/addons/index.js +4 -1
  602. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  603. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  604. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  605. package/lib/components/booking/components/actionButtons/index.d.ts +29 -0
  606. package/lib/components/booking/components/actionButtons/index.js +325 -0
  607. package/lib/components/booking/components/actionButtons/index.less +148 -0
  608. package/lib/components/booking/components/clearCartModal/index.d.ts +10 -0
  609. package/lib/components/booking/components/clearCartModal/index.js +80 -0
  610. package/lib/components/booking/components/clearCartModal/index.less +109 -0
  611. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  612. package/lib/components/booking/components/customiseItemModal/index.d.ts +28 -0
  613. package/lib/components/booking/components/customiseItemModal/index.js +273 -0
  614. package/lib/components/booking/components/customiseItemModal/index.less +593 -0
  615. package/lib/components/booking/components/drawer/index.d.ts +19 -0
  616. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  617. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  618. package/lib/components/booking/components/footer/amount.d.ts +1 -0
  619. package/lib/components/booking/components/footer/amount.js +5 -3
  620. package/lib/components/booking/components/footer/index.d.ts +1 -0
  621. package/lib/components/booking/components/footer/index.js +115 -30
  622. package/lib/components/booking/components/footer/utils.js +38 -13
  623. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  624. package/lib/components/booking/components/reloadResourceModal/index.d.ts +9 -0
  625. package/lib/components/booking/components/reloadResourceModal/index.js +74 -0
  626. package/lib/components/booking/components/reloadResourceModal/index.less +6 -0
  627. package/lib/components/booking/components/tabPane/index.js +78 -4
  628. package/lib/components/booking/components/tabPane/index.less +75 -1
  629. package/lib/components/booking/components/voucher/index.d.ts +1 -0
  630. package/lib/components/booking/components/voucher/index.js +18 -9
  631. package/lib/components/booking/components/voucher/index.less +1 -1
  632. package/lib/components/booking/dashboard/index.d.ts +1 -1
  633. package/lib/components/booking/dashboard/index.js +7 -2
  634. package/lib/components/booking/deposit/index.d.ts +1 -0
  635. package/lib/components/booking/editBookingModal/index.js +56 -21
  636. package/lib/components/booking/editBookingModal/serve.d.ts +1 -0
  637. package/lib/components/booking/editBookingModal/serve.js +12 -6
  638. package/lib/components/booking/forms/footer.d.ts +1 -0
  639. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  640. package/lib/components/booking/forms/single/index.d.ts +1 -0
  641. package/lib/components/booking/forms/table/index.d.ts +1 -0
  642. package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
  643. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -1
  644. package/lib/components/booking/hooks/useIsBooking4Shop.js +6 -4
  645. package/lib/components/booking/hooks/useQuotation.js +3 -1
  646. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  647. package/lib/components/booking/info/addServiceVariant/index.js +3 -2
  648. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  649. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  650. package/lib/components/booking/info/date/index.d.ts +1 -0
  651. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  652. package/lib/components/booking/info/header/index.d.ts +1 -0
  653. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +2 -0
  654. package/lib/components/booking/info/hooks/useInfoHolder.js +14 -8
  655. package/lib/components/booking/info/index.d.ts +1 -0
  656. package/lib/components/booking/info/index.js +7 -4
  657. package/lib/components/booking/info/index.less +18 -2
  658. package/lib/components/booking/info/main.js +12 -5
  659. package/lib/components/booking/info/notes/index.d.ts +1 -0
  660. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  661. package/lib/components/booking/info/service/Lists.js +6 -2
  662. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  663. package/lib/components/booking/info/service/addService/index.d.ts +1 -0
  664. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  665. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  666. package/lib/components/booking/info/service/editService/index.js +1 -0
  667. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  668. package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
  669. package/lib/components/booking/info/service/serviceItem/index.js +2 -2
  670. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  671. package/lib/components/booking/info/service/serviceManager/index.js +3 -3
  672. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  673. package/lib/components/booking/info/service2/utils.d.ts +5 -1
  674. package/lib/components/booking/info/service2/utils.js +14 -2
  675. package/lib/components/booking/info/utils.d.ts +1 -1
  676. package/lib/components/booking/info/utils.js +6 -3
  677. package/lib/components/booking/info2/cartClientCard/index.d.ts +6 -0
  678. package/lib/components/booking/info2/cartClientCard/index.js +298 -0
  679. package/lib/components/booking/info2/cartClientCard/index.less +6 -0
  680. package/lib/components/booking/info2/cartClientCard/locales.d.ts +21 -0
  681. package/lib/components/booking/info2/cartClientCard/locales.js +50 -0
  682. package/lib/components/booking/info2/cartClientCard/types.d.ts +13 -0
  683. package/lib/components/booking/info2/cartClientCard/types.js +17 -0
  684. package/lib/components/booking/info2/cartClientCard/utils.d.ts +3 -0
  685. package/lib/components/booking/info2/cartClientCard/utils.js +37 -0
  686. package/lib/components/booking/info2/index.js +119 -34
  687. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  688. package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
  689. package/lib/components/booking/info2/service/addService/index.js +17 -4
  690. package/lib/components/booking/info2/service/addService/utils.d.ts +98 -0
  691. package/lib/components/booking/info2/service/addService/utils.js +31 -10
  692. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  693. package/lib/components/booking/info2/service/addTimeModal/index.js +28 -10
  694. package/lib/components/booking/info2/service/editNormalService/index.d.ts +3 -0
  695. package/lib/components/booking/info2/service/editNormalService/index.js +100 -0
  696. package/lib/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  697. package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
  698. package/lib/components/booking/info2/service/editService/index.js +5 -10
  699. package/lib/components/booking/info2/service/index.js +6 -6
  700. package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  701. package/lib/components/booking/info2/service/serviceItem/index.js +2 -2
  702. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  703. package/lib/components/booking/info2/utils.js +0 -15
  704. package/lib/components/booking/info2/utilsByBooking.d.ts +1 -0
  705. package/lib/components/booking/info2/utilsByBooking.js +28 -6
  706. package/lib/components/booking/locales.d.ts +84 -0
  707. package/lib/components/booking/locales.js +102 -3
  708. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  709. package/lib/components/booking/materiels/duration/index.d.ts +14 -0
  710. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  711. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  712. package/lib/components/booking/model.d.ts +1 -0
  713. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  714. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  715. package/lib/components/booking/notes/addNote/index.d.ts +2 -1
  716. package/lib/components/booking/notes/addNote/index.js +41 -23
  717. package/lib/components/booking/notes/addNote/index.less +53 -0
  718. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  719. package/lib/components/eftpos/form/index.d.ts +1 -0
  720. package/lib/components/eftpos/group/index.d.ts +1 -0
  721. package/lib/components/eftpos/hooks.d.ts +1 -0
  722. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  723. package/lib/components/eftpos/icon/device.d.ts +1 -0
  724. package/lib/components/eftpos/index.d.ts +1 -0
  725. package/lib/components/eftpos/pos.d.ts +1 -0
  726. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  727. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  728. package/lib/components/eftposPay/amount.d.ts +1 -0
  729. package/lib/components/eftposPay/app.d.ts +1 -0
  730. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  731. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  732. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  733. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  734. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  735. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  736. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  737. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  738. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  739. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  740. package/lib/components/eftposPay/const.d.ts +4 -1
  741. package/lib/components/eftposPay/const.js +2 -0
  742. package/lib/components/eftposPay/device.d.ts +1 -0
  743. package/lib/components/eftposPay/hooks.d.ts +2 -2
  744. package/lib/components/eftposPay/hooks.js +11 -4
  745. package/lib/components/eftposPay/index.d.ts +1 -0
  746. package/lib/components/eftposPay/index.js +1 -1
  747. package/lib/components/eftposPay/linkly/const.d.ts +23 -0
  748. package/lib/components/eftposPay/linkly/const.js +102 -0
  749. package/lib/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  750. package/lib/components/eftposPay/linkly/hooks/index.js +25 -0
  751. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  752. package/lib/components/eftposPay/linkly/hooks/normal.js +242 -0
  753. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  754. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +222 -0
  755. package/lib/components/eftposPay/linkly/index.d.ts +3 -0
  756. package/lib/components/eftposPay/linkly/index.js +208 -0
  757. package/lib/components/eftposPay/linkly/service.d.ts +32 -0
  758. package/lib/components/eftposPay/linkly/service.js +55 -0
  759. package/lib/components/eftposPay/manufacturer.d.ts +1 -0
  760. package/lib/components/eftposPay/manufacturer.js +6 -0
  761. package/lib/components/eftposPay/pay.d.ts +2 -1
  762. package/lib/components/eftposPay/pay.js +13 -2
  763. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  764. package/lib/components/eftposPay/store/index.d.ts +5 -5
  765. package/lib/components/eftposPay/tip.d.ts +1 -0
  766. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  767. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  768. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  769. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  770. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  771. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +29 -8
  772. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +3 -0
  773. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +55 -0
  774. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  775. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +8 -5
  776. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  777. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
  778. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  779. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  780. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  781. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  782. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  783. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  784. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  785. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  786. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  787. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  788. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  789. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  790. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  791. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  792. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  793. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  794. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  795. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  796. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  797. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  798. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  799. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  800. package/lib/components/eventBooking/components/bookingDetailModal/index.js +4 -3
  801. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  802. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  803. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  804. package/lib/components/eventBooking/index.d.ts +1 -0
  805. package/lib/components/eventBooking/index.js +11 -0
  806. package/lib/components/eventBooking/index.less +1 -1
  807. package/lib/components/eventBooking/locales.d.ts +24 -0
  808. package/lib/components/eventBooking/locales.js +27 -3
  809. package/lib/components/login/index.d.ts +1 -0
  810. package/lib/components/pay/toB/components/Cache/index.d.ts +1 -0
  811. package/lib/components/pay/toB/components/Card/index.d.ts +1 -0
  812. package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  813. package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -0
  814. package/lib/components/pay/toB/components/Content/Footer.d.ts +1 -0
  815. package/lib/components/pay/toB/components/Content/Header.d.ts +1 -0
  816. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +13 -1
  817. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +2 -1
  818. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +2 -2
  819. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +8 -0
  820. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +66 -47
  821. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  822. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  823. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  824. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  825. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  826. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  827. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  828. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +13 -1
  829. package/lib/components/pay/toC/PaymentMethods/index.js +30 -2
  830. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  831. package/lib/components/pay/toC/index.js +29 -9
  832. package/lib/components/pay/toC/locales.d.ts +3 -0
  833. package/lib/components/pay/toC/locales.js +3 -0
  834. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  835. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  836. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  837. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  838. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  839. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  840. package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
  841. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  842. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  843. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  844. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  845. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  846. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  847. package/lib/components/productExtension/index.d.ts +1 -0
  848. package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -0
  849. package/lib/components/productSelect/components/TabProduct/index.js +74 -37
  850. package/lib/components/productSelect/components/TabProduct/tabs/index.less +1 -0
  851. package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
  852. package/lib/components/productSelect/index.d.ts +2 -0
  853. package/lib/components/ruleSetting/index.d.ts +1 -0
  854. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  855. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  856. package/lib/components/schedules/calendar/index.d.ts +1 -0
  857. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  858. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  859. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  860. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  861. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  862. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  863. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  864. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  865. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  866. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  867. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  868. package/lib/components/schedules/products/index.d.ts +1 -0
  869. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  870. package/lib/components/schedules/products/list/index.d.ts +1 -0
  871. package/lib/components/schedules/resources/index.d.ts +1 -0
  872. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  873. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  874. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  875. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  876. package/lib/components/schedules/schedules/index.d.ts +1 -0
  877. package/lib/components/schedules/utils.js +1 -1
  878. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  879. package/lib/components/shoppingCart/components/Cart/Product.js +26 -7
  880. package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
  881. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  882. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  883. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  884. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  885. package/lib/components/shoppingCart/index.d.ts +1 -0
  886. package/lib/components/shoppingCart/type.d.ts +1 -0
  887. package/lib/components/subTotal/index.less +1 -1
  888. package/lib/components/taxSelect/index.d.ts +1 -0
  889. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
  890. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +53 -129
  891. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  892. package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +8 -0
  893. package/lib/components/ticketBooking/components/addServiceVariant/utils.js +173 -0
  894. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -0
  895. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +75 -0
  896. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +5 -0
  897. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +12 -0
  898. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +210 -0
  899. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +69 -0
  900. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
  901. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +105 -0
  902. package/lib/components/ticketBooking/components/bookingDataPanel/constants.d.ts +22 -0
  903. package/lib/components/ticketBooking/components/bookingDataPanel/constants.js +57 -0
  904. package/lib/components/ticketBooking/components/bookingDataPanel/index.d.ts +9 -0
  905. package/lib/components/ticketBooking/components/bookingDataPanel/index.js +113 -0
  906. package/lib/components/ticketBooking/components/bookingDataPanel/index.less +61 -0
  907. package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +14 -0
  908. package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +84 -0
  909. package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  910. package/lib/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
  911. package/lib/components/ticketBooking/components/floatButtons/index.d.ts +11 -0
  912. package/lib/components/ticketBooking/components/floatButtons/index.js +52 -0
  913. package/lib/components/ticketBooking/components/floatButtons/index.less +17 -0
  914. package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  915. package/lib/components/ticketBooking/components/menuBar/index.js +63 -1
  916. package/lib/components/ticketBooking/components/menuBar/index.less +8 -0
  917. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  918. package/lib/components/ticketBooking/components/ticketBooking/index.js +227 -74
  919. package/lib/components/ticketBooking/components/ticketBooking/index.less +28 -0
  920. package/lib/components/ticketBooking/components/timeBar/index.d.ts +2 -0
  921. package/lib/components/ticketBooking/components/timeBar/index.js +21 -8
  922. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +1 -0
  923. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +33 -0
  924. package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +3 -0
  925. package/lib/components/ticketBooking/hooks/pisellos/index.js +27 -0
  926. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  927. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +144 -0
  928. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +12 -0
  929. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +47 -0
  930. package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +5 -0
  931. package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +64 -0
  932. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +5 -0
  933. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +65 -0
  934. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +2 -0
  935. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +83 -0
  936. package/lib/components/ticketBooking/index.d.ts +1 -0
  937. package/lib/components/ticketBooking/index.js +19 -3
  938. package/lib/components/ticketBooking/locales.d.ts +6 -0
  939. package/lib/components/ticketBooking/locales.js +9 -3
  940. package/lib/components/ticketBooking/serve.js +11 -11
  941. package/lib/components/ticketBooking/utils/index.d.ts +39 -2
  942. package/lib/components/ticketBooking/utils/index.js +71 -10
  943. package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
  944. package/lib/components/walletList/index.js +3 -3
  945. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  946. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  947. package/lib/hooks/useToast.d.ts +2 -0
  948. package/lib/hooks/useToast.js +42 -0
  949. package/lib/hooks/useTranslationOriginal.d.ts +1 -0
  950. package/lib/hooks/useTranslationOriginal.js +42 -0
  951. package/lib/index.d.ts +4 -0
  952. package/lib/index.js +12 -0
  953. package/lib/plus/clientCard/index.d.ts +7 -0
  954. package/lib/plus/clientCard/index.js +442 -0
  955. package/lib/plus/clientCard/index.less +539 -0
  956. package/lib/plus/clientCard/line/index.d.ts +9 -0
  957. package/lib/plus/clientCard/line/index.js +153 -0
  958. package/lib/plus/clientCard/line/index.less +142 -0
  959. package/lib/plus/clientCard/locales.d.ts +18 -0
  960. package/lib/plus/clientCard/locales.js +41 -0
  961. package/lib/plus/clientCard/types.d.ts +126 -0
  962. package/lib/plus/clientCard/types.js +17 -0
  963. package/lib/plus/clientCard/utils.d.ts +8 -0
  964. package/lib/plus/clientCard/utils.js +75 -0
  965. package/lib/plus/clientName/index.d.ts +5 -0
  966. package/lib/plus/clientName/index.js +53 -0
  967. package/lib/plus/clientName/index.less +10 -0
  968. package/lib/plus/clientName/type.d.ts +13 -0
  969. package/lib/plus/clientName/type.js +17 -0
  970. package/lib/plus/clientName/utils.d.ts +2 -0
  971. package/lib/plus/clientName/utils.js +43 -0
  972. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +3 -0
  973. package/lib/plus/clinetSearch/Add/BirthdayField/index.js +256 -0
  974. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +3 -0
  975. package/lib/plus/clinetSearch/Add/GenderField/index.js +52 -0
  976. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +3 -0
  977. package/lib/plus/clinetSearch/Add/PhoneField/index.js +78 -0
  978. package/lib/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
  979. package/lib/plus/clinetSearch/Add/PhoneField/serve.js +193 -0
  980. package/lib/plus/clinetSearch/Add/index.d.ts +18 -0
  981. package/lib/plus/clinetSearch/Add/index.js +243 -0
  982. package/lib/plus/clinetSearch/Add/index.less +30 -0
  983. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
  984. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +235 -0
  985. package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
  986. package/lib/plus/clinetSearch/InfiniteScroll/index.js +35 -0
  987. package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
  988. package/lib/plus/clinetSearch/InfiniteScroll/types.js +17 -0
  989. package/lib/plus/clinetSearch/index.d.ts +18 -0
  990. package/lib/plus/clinetSearch/index.js +205 -0
  991. package/lib/plus/clinetSearch/index.less +91 -0
  992. package/lib/plus/clinetSearch/locales.d.ts +102 -0
  993. package/lib/plus/clinetSearch/locales.js +125 -0
  994. package/lib/plus/clinetSearch/serve.d.ts +1 -0
  995. package/lib/plus/clinetSearch/serve.js +33 -0
  996. package/lib/plus/clinetSearch/types.d.ts +49 -0
  997. package/lib/plus/clinetSearch/types.js +17 -0
  998. package/lib/plus/noteModal/AddTempModal.d.ts +8 -0
  999. package/lib/plus/noteModal/AddTempModal.js +95 -0
  1000. package/lib/plus/noteModal/index.d.ts +4 -0
  1001. package/lib/plus/noteModal/index.js +199 -0
  1002. package/lib/plus/noteModal/index.less +168 -0
  1003. package/lib/plus/noteModal/locales.d.ts +33 -0
  1004. package/lib/plus/noteModal/locales.js +56 -0
  1005. package/lib/plus/noteModal/types.d.ts +17 -0
  1006. package/lib/plus/noteModal/types.js +17 -0
  1007. package/lib/pro/comprehensiveSearch/camera.svg +4 -0
  1008. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
  1009. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.js +56 -0
  1010. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
  1011. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +70 -0
  1012. package/lib/pro/comprehensiveSearch/index.d.ts +9 -0
  1013. package/lib/pro/comprehensiveSearch/index.js +259 -0
  1014. package/lib/pro/comprehensiveSearch/index.less +323 -0
  1015. package/lib/pro/comprehensiveSearch/locales.d.ts +18 -0
  1016. package/lib/pro/comprehensiveSearch/locales.js +41 -0
  1017. package/lib/pro/comprehensiveSearch/types.d.ts +31 -0
  1018. package/lib/pro/comprehensiveSearch/types.js +17 -0
  1019. package/lib/pro/numberKeyboard/index.d.ts +28 -0
  1020. package/lib/pro/numberKeyboard/index.js +182 -0
  1021. package/lib/pro/numberKeyboard/index.less +25 -0
  1022. package/lib/pro/numberKeyboard/locales.d.ts +12 -0
  1023. package/lib/pro/numberKeyboard/locales.js +35 -0
  1024. package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
  1025. package/lib/pro/pisellNumberSelector/example.js +93 -0
  1026. package/lib/pro/pisellNumberSelector/index.d.ts +26 -0
  1027. package/lib/pro/pisellNumberSelector/index.js +260 -0
  1028. package/lib/pro/pisellNumberSelector/index.less +193 -0
  1029. package/lib/pro/pisellPhoneKeyboard/index.d.ts +13 -0
  1030. package/lib/pro/pisellPhoneKeyboard/index.js +220 -0
  1031. package/lib/pro/pisellPhoneKeyboard/index.less +157 -0
  1032. package/lib/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
  1033. package/lib/pro/pisellPhoneKeyboard/locales.js +35 -0
  1034. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +5 -0
  1035. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +157 -0
  1036. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +9 -0
  1037. package/lib/pro/pisellPriceKeyboardModal/index.d.ts +2 -0
  1038. package/lib/pro/pisellPriceKeyboardModal/index.js +35 -0
  1039. package/lib/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
  1040. package/lib/pro/pisellPriceKeyboardModal/types.js +17 -0
  1041. package/lib/pro/pisellPriceRadio/index.d.ts +26 -0
  1042. package/lib/pro/pisellPriceRadio/index.js +130 -0
  1043. package/lib/pro/pisellPriceRadio/index.less +158 -0
  1044. package/lib/pro/skuDetailModal/index.d.ts +5 -0
  1045. package/lib/pro/skuDetailModal/index.js +311 -0
  1046. package/lib/pro/skuDetailModal/index.less +236 -0
  1047. package/lib/pro/skuDetailModal/locales.d.ts +48 -0
  1048. package/lib/pro/skuDetailModal/locales.js +71 -0
  1049. package/lib/pro/skuDetailModal/types.d.ts +347 -0
  1050. package/lib/pro/skuDetailModal/types.js +17 -0
  1051. package/lowcode/client-card/fragments/cardStyle.ts +63 -0
  1052. package/lowcode/client-card/fragments/nameStyle.ts +34 -0
  1053. package/lowcode/client-card/fragments/pisellAvatar.ts +87 -0
  1054. package/lowcode/client-card/fragments/tagConfig.ts +88 -0
  1055. package/lowcode/client-card/meta.ts +337 -0
  1056. package/lowcode/comprehensive-search/meta.ts +261 -0
  1057. package/package.json +26 -26
@@ -15,7 +15,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
15
15
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
16
16
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
17
17
  import React, { createContext, useRef, useState } from 'react';
18
- import { getEventDetailBookingOptionsApi, getEventDetailIntroductionApi, getEventDetailSelectDateApi, getEventDetailTeacherApi } from "./serve";
18
+ import { getEventDetailBookingOptionsApi, getEventDetailIntroductionApi, getEventDetailSelectDateApi, getEventDetailTeacherApi, getProductDetailApi } from "./serve";
19
19
  import { useRequest } from 'ahooks';
20
20
  import { useEvent } from "./index";
21
21
  import { getIamgeFromMedia } from "../utils";
@@ -219,22 +219,55 @@ export var EventDetailProvider = function EventDetailProvider(_ref) {
219
219
  selectEventDetailBookingOptions(current.value);
220
220
  }
221
221
  });
222
+ var getProductDetailRequest = useRequest(getProductDetailApi, {
223
+ manual: true,
224
+ loadingDelay: 200
225
+ });
226
+
227
+ /**
228
+ * @title: 选择活动关联的商品
229
+ * @param id 活动关联的商品id
230
+ */
222
231
  var selectEventDetailBookingOptions = function selectEventDetailBookingOptions(id) {
223
- var _bookingOptions$filte;
232
+ var _bookingOptions$filte, _option$_originData;
224
233
  var _ref2 = detailRef.current || {},
225
234
  introduction = _ref2.introduction,
226
235
  bookingOptions = _ref2.bookingOptions;
227
236
  var option = bookingOptions === null || bookingOptions === void 0 || (_bookingOptions$filte = bookingOptions.filter(function (v) {
228
237
  return v.value === id;
229
238
  })) === null || _bookingOptions$filte === void 0 ? void 0 : _bookingOptions$filte[0];
230
- _setDetail({
231
- introduction: _objectSpread(_objectSpread({}, introduction), {}, {
232
- price: option.price,
233
- origin_price: option.original_price
234
- }),
235
- selectedProduct: option // 选中的活动关联的商品
236
- });
237
- _setCurrentBookingOption(id);
239
+ var setSelectedData = function setSelectedData(data) {
240
+ _setDetail({
241
+ introduction: _objectSpread(_objectSpread({}, introduction), {}, {
242
+ price: data === null || data === void 0 ? void 0 : data.price,
243
+ origin_price: data === null || data === void 0 ? void 0 : data.original_price
244
+ }),
245
+ selectedProduct: data // 选中的活动关联的商品
246
+ });
247
+ _setCurrentBookingOption(id);
248
+ };
249
+
250
+ // 普通商品需要单独查询商品详情
251
+ if ((option === null || option === void 0 || (_option$_originData = option._originData) === null || _option$_originData === void 0 ? void 0 : _option$_originData.is_eject) === 0) {
252
+ var _introduction$_origin;
253
+ getProductDetailRequest.runAsync(id, {
254
+ open_deposit: 1,
255
+ front_end_cache_id: (introduction === null || introduction === void 0 || (_introduction$_origin = introduction._originData) === null || _introduction$_origin === void 0 ? void 0 : _introduction$_origin.id) + '_' + id
256
+ }).then(function (res) {
257
+ var _res$data2;
258
+ // 定金相关信息
259
+ var custom_deposit_data = res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.custom_deposit_data;
260
+ var newOption = _objectSpread({}, option);
261
+ if (custom_deposit_data && newOption._originData) {
262
+ newOption._originData.custom_deposit_data = custom_deposit_data;
263
+ }
264
+ setSelectedData(newOption);
265
+ }).catch(function () {
266
+ setSelectedData(option);
267
+ });
268
+ } else {
269
+ setSelectedData(option);
270
+ }
238
271
  };
239
272
 
240
273
  /**
@@ -272,7 +305,8 @@ export var EventDetailProvider = function EventDetailProvider(_ref) {
272
305
  getEventDetailSelectDate: getEventDetailSelectDate,
273
306
  currentBookingOption: currentBookingOption,
274
307
  selectEventDetailProductDetail: selectEventDetailProductDetail,
275
- checkBeforeSelectEventDetail: checkBeforeSelectEventDetail
308
+ checkBeforeSelectEventDetail: checkBeforeSelectEventDetail,
309
+ getProductDetailRequest: getProductDetailRequest
276
310
  };
277
311
  return /*#__PURE__*/React.createElement(EventDetailContext.Provider, {
278
312
  value: contextValue
@@ -37,3 +37,13 @@ export declare const getProductPrice: (params: {
37
37
  customer_id: number;
38
38
  schedule_date?: string;
39
39
  }) => Promise<any>;
40
+ /**
41
+ * 获取商品详情
42
+ * @param id 商品id
43
+ * @param params 参数
44
+ * @returns
45
+ */
46
+ export declare const getProductDetailApi: (id: number, params: {
47
+ open_deposit?: string | number;
48
+ front_end_cache_id?: string;
49
+ }) => Promise<any>;
@@ -55,4 +55,29 @@ export var getProductPrice = /*#__PURE__*/function () {
55
55
  return function getProductPrice(_x) {
56
56
  return _ref.apply(this, arguments);
57
57
  };
58
+ }();
59
+
60
+ /**
61
+ * 获取商品详情
62
+ * @param id 商品id
63
+ * @param params 参数
64
+ * @returns
65
+ */
66
+ export var getProductDetailApi = /*#__PURE__*/function () {
67
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(id, params) {
68
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
69
+ while (1) switch (_context2.prev = _context2.next) {
70
+ case 0:
71
+ return _context2.abrupt("return", request.getRequest().get("/h5/product/standard/show/".concat(id), params, {
72
+ useCache: true
73
+ }));
74
+ case 1:
75
+ case "end":
76
+ return _context2.stop();
77
+ }
78
+ }, _callee2);
79
+ }));
80
+ return function getProductDetailApi(_x2, _x3) {
81
+ return _ref2.apply(this, arguments);
82
+ };
58
83
  }();
@@ -7,6 +7,16 @@ interface SummaryContextType {
7
7
  taxTitle?: string;
8
8
  totalTaxFee?: string;
9
9
  isPriceIncludeTax?: 0 | 1;
10
+ deposit?: {
11
+ total: string;
12
+ protocols: any[];
13
+ hasDeposit: boolean;
14
+ };
15
+ isAgreeDepositPolicy: boolean;
16
+ setIsAgreeDepositPolicy: (value: boolean) => void;
17
+ getDepositProtocol: (params: {
18
+ id: string;
19
+ }) => Promise<any>;
10
20
  }
11
21
  interface SummaryProviderProps {
12
22
  children: React.ReactNode;
@@ -1,7 +1,14 @@
1
- import React, { createContext, useMemo } from 'react';
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ import React, { createContext, useMemo, useState } from 'react';
2
8
  import { useCart } from "../Cart";
3
9
  import { calculatePriceDetails } from "./utils";
4
10
  import { useInit } from "../Init";
11
+ import { getDepositProtocolApi } from "./serve";
5
12
 
6
13
  // 定义上下文接口
7
14
 
@@ -16,6 +23,10 @@ export var SummaryProvider = function SummaryProvider(_ref) {
16
23
  cartData = _useCart.cartData;
17
24
  var _useInit = useInit(),
18
25
  initData = _useInit.initData;
26
+ var _useState = useState(false),
27
+ _useState2 = _slicedToArray(_useState, 2),
28
+ isAgreeDepositPolicy = _useState2[0],
29
+ setIsAgreeDepositPolicy = _useState2[1];
19
30
  var summaryData = useMemo(function () {
20
31
  return calculatePriceDetails((initData === null || initData === void 0 ? void 0 : initData.shop) || {}, cartData.cartItems);
21
32
  }, [cartData.cartItems, initData === null || initData === void 0 ? void 0 : initData.shop]);
@@ -26,7 +37,11 @@ export var SummaryProvider = function SummaryProvider(_ref) {
26
37
  total: summaryData.total,
27
38
  taxTitle: summaryData.taxTitle,
28
39
  totalTaxFee: summaryData.totalTaxFee,
29
- isPriceIncludeTax: summaryData.isPriceIncludeTax
40
+ isPriceIncludeTax: summaryData.isPriceIncludeTax,
41
+ deposit: summaryData.deposit,
42
+ isAgreeDepositPolicy: isAgreeDepositPolicy,
43
+ setIsAgreeDepositPolicy: setIsAgreeDepositPolicy,
44
+ getDepositProtocol: getDepositProtocolApi
30
45
  };
31
46
  return /*#__PURE__*/React.createElement(SummaryContext.Provider, {
32
47
  value: contextValue
@@ -0,0 +1 @@
1
+ export declare const getDepositProtocolApi: (id: string) => Promise<any>;
@@ -0,0 +1,6 @@
1
+ import { request } from "../../../utils";
2
+
3
+ // 获取定金协议
4
+ export var getDepositProtocolApi = function getDepositProtocolApi(id) {
5
+ return request.getRequest().get("/h5/shop-policy/".concat(id), {});
6
+ };
@@ -10,6 +10,11 @@ interface PriceDetail {
10
10
  taxTitle?: string;
11
11
  totalTaxFee?: string;
12
12
  isPriceIncludeTax?: 0 | 1;
13
+ deposit?: {
14
+ total: string;
15
+ protocols: any[];
16
+ hasDeposit: boolean;
17
+ };
13
18
  }
14
19
  /**
15
20
  * 计算商品小计(不含其他费用)
@@ -25,7 +30,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
25
30
  * @return {*}
26
31
  * @Author: xiangfeng.xue
27
32
  */
28
- export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
33
+ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
29
34
  /**
30
35
  * 计算所有价格明细
31
36
  * @param items - 购物车商品数组
@@ -33,4 +38,14 @@ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.0
33
38
  * @returns 价格明细对象
34
39
  */
35
40
  export declare const calculatePriceDetails: (shopInfo: any, items: CartItem[]) => PriceDetail;
41
+ /**
42
+ * @title: 计算定金
43
+ * @param items - 购物车商品数组
44
+ * @returns 定金字符串,保留2位小数
45
+ */
46
+ export declare const calculateDeposit: (items: CartItem[]) => {
47
+ total: string;
48
+ protocols: any[];
49
+ hasDeposit: never;
50
+ } | undefined;
36
51
  export {};
@@ -54,11 +54,53 @@ export var calculatePriceDetails = function calculatePriceDetails(shopInfo, item
54
54
 
55
55
  // 计算总价
56
56
  var total = shopInfo !== null && shopInfo !== void 0 && shopInfo.is_price_include_tax ? subtotal : subtotal.plus(totalTaxFee);
57
+
58
+ // 计算定金
59
+ var deposit = calculateDeposit(items);
57
60
  return {
58
61
  subtotal: subtotal.toFixed(2),
59
62
  total: total.toFixed(2),
60
63
  taxTitle: shopInfo === null || shopInfo === void 0 ? void 0 : shopInfo.tax_title,
61
64
  totalTaxFee: totalTaxFee.toFixed(2),
62
- isPriceIncludeTax: shopInfo === null || shopInfo === void 0 ? void 0 : shopInfo.is_price_include_tax
65
+ isPriceIncludeTax: shopInfo === null || shopInfo === void 0 ? void 0 : shopInfo.is_price_include_tax,
66
+ deposit: deposit
63
67
  };
68
+ };
69
+
70
+ /**
71
+ * @title: 计算定金
72
+ * @param items - 购物车商品数组
73
+ * @returns 定金字符串,保留2位小数
74
+ */
75
+ export var calculateDeposit = function calculateDeposit(items) {
76
+ if (!(items !== null && items !== void 0 && items.length)) {
77
+ return undefined;
78
+ }
79
+ var protocols = [];
80
+ var hasDeposit = false;
81
+ var total = items.reduce(function (sum, item) {
82
+ if (item !== null && item !== void 0 && item.deposit) {
83
+ var _item$deposit, _item$deposit2;
84
+ hasDeposit = true;
85
+ var cartItemTotalPrice = new Decimal((item === null || item === void 0 || (_item$deposit = item.deposit) === null || _item$deposit === void 0 ? void 0 : _item$deposit.total) || 0);
86
+ // 将协议数据去重合并
87
+ item === null || item === void 0 || (_item$deposit2 = item.deposit) === null || _item$deposit2 === void 0 || (_item$deposit2 = _item$deposit2.protocols) === null || _item$deposit2 === void 0 || _item$deposit2.forEach(function (protocol) {
88
+ if (protocols.findIndex(function (p) {
89
+ return p.id === protocol.id;
90
+ }) === -1) {
91
+ protocols.push(protocol);
92
+ }
93
+ });
94
+ return sum.plus(cartItemTotalPrice);
95
+ }
96
+ return sum;
97
+ }, new Decimal(0));
98
+ if (hasDeposit) {
99
+ return {
100
+ total: total.toFixed(2),
101
+ protocols: protocols,
102
+ hasDeposit: hasDeposit
103
+ };
104
+ }
105
+ return undefined;
64
106
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Total: ({ className, isFooter }: any) => JSX.Element;
3
4
  export default Total;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const CartItem: ({ onNext }: any) => JSX.Element;
3
4
  export default CartItem;
@@ -110,6 +110,7 @@ var CartItem = function CartItem(_ref) {
110
110
  setResourceOtherParams(_objectSpread(_objectSpread({}, resourceOtherParams), {}, {
111
111
  errorList: null
112
112
  }));
113
+ val.like_status = 'like';
113
114
 
114
115
  // 更新资源
115
116
  appointmentBooking.updateCart({
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Cart: ({ open, onCancel, onNext }: any) => JSX.Element;
3
4
  export default Cart;
@@ -13,8 +13,6 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
13
13
  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; }
14
14
  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); } }
15
15
  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); }); }; }
16
- import { formatCustomer } from "../../utils";
17
-
18
16
  // 类型声明
19
17
 
20
18
  export var checkLogin = /*#__PURE__*/function () {
@@ -31,17 +29,14 @@ export var checkLogin = /*#__PURE__*/function () {
31
29
  openLoginModal({
32
30
  callback: function callback(status) {
33
31
  if (status === 'success') {
34
- if (!isFormSubject) {
35
- var _utils$storage;
36
- var user = JSON.parse((utils === null || utils === void 0 || (_utils$storage = utils.storage) === null || _utils$storage === void 0 ? void 0 : _utils$storage.get('customer')) || '{}');
37
- var currentUser = formatCustomer(user);
38
- var meAccount = accountLists === null || accountLists === void 0 ? void 0 : accountLists.find(function (d) {
39
- return !(d !== null && d !== void 0 && d.isGuest);
40
- });
41
- appointmentBooking.setLoginAccount(meAccount === null || meAccount === void 0 ? void 0 : meAccount.id, currentUser);
42
- } else {
43
- getHolders();
44
- }
32
+ // if (!isFormSubject) {
33
+ // const user = JSON.parse(utils?.storage?.get('customer') || '{}');
34
+ // const currentUser = formatCustomer(user);
35
+ // const meAccount = accountLists?.find((d: any) => !d?.isGuest);
36
+ // appointmentBooking.setLoginAccount(meAccount?.id, currentUser);
37
+ // } else {
38
+ // getHolders();
39
+ // }
45
40
  }
46
41
  }
47
42
  });
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Layout: () => JSX.Element;
3
4
  export default Layout;
@@ -1,9 +1,12 @@
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
1
  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
2
  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
3
  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
4
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
5
  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); }
6
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return 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; }
7
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
8
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
9
+ function _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); }
7
10
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
11
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
12
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -22,12 +25,21 @@ import TimeSlicing from "../TimeSlicing";
22
25
  import Guest from "../Guest";
23
26
  import Form from "../Form";
24
27
  import ConfirmInformation from "../ConfirmInformation";
28
+
29
+ // 创建一个包装组件,将 forwardRef 组件转换为普通组件
30
+ // const Services = (props: any) => {
31
+ // return <ServicesOriginal {...props} />;
32
+ // };
25
33
  import { useAppointmentBookingContext } from "../../context";
26
34
  import PolicyModal from "../../deposit/components/PolicyModal";
27
- import { useAppointmentBookingCart, useAppointmentBookingStep, useAppointmentBookingSetting, useAppointmentBookingLogin, useAppointmentBookingAccount, useShopDiscount } from "../../hooks";
35
+ import { scrollToFirstErrorCard } from "../Resource/utils";
36
+ import { useAppointmentBookingCart, useAppointmentBookingStep, useAppointmentBookingSetting, useAppointmentBookingLogin, useAppointmentBookingAccount, useShopDiscount, contextUtils } from "../../hooks";
28
37
  import "./index.less";
38
+ import useComponents from "../../../../hooks/useComponents";
39
+ import useEngineContext from "../../../../hooks/useEngineContext";
40
+ import { formatCustomer } from "../../utils";
29
41
  var Layout = function Layout() {
30
- var _currentStep$step, _currentStep$step3, _currentStep$step4, _currentStep$step6, _currentStep$step8;
42
+ var _useEngineContext$eng2, _currentStep$step2, _currentStep$step4, _currentStep$step5, _currentStep$step7, _currentStep$step9;
31
43
  var stepRef = useRef();
32
44
  var _ref = useAppointmentBookingContext(),
33
45
  currentStep = _ref.currentStep,
@@ -52,6 +64,16 @@ var Layout = function Layout() {
52
64
  removeStep = _useAppointmentBookin4.removeStep;
53
65
  var _useShopDiscount = useShopDiscount(),
54
66
  shopDiscount = _useShopDiscount.shopDiscount;
67
+ var _useEngineContext$eng = (_useEngineContext$eng2 = useEngineContext().engine) === null || _useEngineContext$eng2 === void 0 ? void 0 : _useEngineContext$eng2.props,
68
+ customPageData = _useEngineContext$eng.customPageData;
69
+ var _useComponents = useComponents({
70
+ components: ['CustomComponent']
71
+ }),
72
+ _useComponents2 = _slicedToArray(_useComponents, 1),
73
+ CustomComponent = _useComponents2[0];
74
+
75
+ // 调试:检查 CustomComponent 是什么
76
+ console.log('CustomComponent:', CustomComponent, _typeof(CustomComponent), CustomComponent === null || CustomComponent === void 0 ? void 0 : CustomComponent.$$typeof);
55
77
 
56
78
  // 不要删除
57
79
  useAppointmentBookingCart();
@@ -60,6 +82,51 @@ var Layout = function Layout() {
60
82
  _useState2 = _slicedToArray(_useState, 2),
61
83
  params = _useState2[0],
62
84
  setParams = _useState2[1];
85
+ var utils = contextUtils();
86
+ var context = useEngineContext();
87
+ var pubsub = context.appHelper.utils.pubsub;
88
+ useEffect(function () {
89
+ var handleLoginSuccess = /*#__PURE__*/function () {
90
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
91
+ var _utils$storage, user, currentUser, accountLists, meAccount;
92
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
93
+ while (1) switch (_context.prev = _context.next) {
94
+ case 0:
95
+ if (isFormSubject) {
96
+ _context.next = 10;
97
+ break;
98
+ }
99
+ user = JSON.parse((utils === null || utils === void 0 || (_utils$storage = utils.storage) === null || _utils$storage === void 0 ? void 0 : _utils$storage.get('customer')) || '{}');
100
+ currentUser = formatCustomer(user);
101
+ _context.next = 5;
102
+ return appointmentBooking.getAccounts();
103
+ case 5:
104
+ accountLists = _context.sent;
105
+ meAccount = accountLists === null || accountLists === void 0 ? void 0 : accountLists.find(function (d) {
106
+ return !(d !== null && d !== void 0 && d.isGuest);
107
+ });
108
+ appointmentBooking.setLoginAccount(meAccount === null || meAccount === void 0 ? void 0 : meAccount.id, currentUser);
109
+ _context.next = 11;
110
+ break;
111
+ case 10:
112
+ if (!isRetailTemplate) {
113
+ getHolders();
114
+ }
115
+ case 11:
116
+ case "end":
117
+ return _context.stop();
118
+ }
119
+ }, _callee);
120
+ }));
121
+ return function handleLoginSuccess() {
122
+ return _ref2.apply(this, arguments);
123
+ };
124
+ }();
125
+ pubsub.subscribe('pisell1.login.success', handleLoginSuccess);
126
+ return function () {
127
+ pubsub.unsubscribe('pisell1.login.success');
128
+ };
129
+ }, []);
63
130
  useEffect(function () {
64
131
  appointmentBooking.removeStep('fill-form');
65
132
  return function () {
@@ -106,6 +173,7 @@ var Layout = function Layout() {
106
173
  }
107
174
  }, [isFormSubject, isLogin, isRetailTemplate]);
108
175
  useEffect(function () {
176
+ var _currentStep$step;
109
177
  if (!(currentStep !== null && currentStep !== void 0 && currentStep.step)) return;
110
178
 
111
179
  // 清空底部按钮的loading
@@ -120,7 +188,12 @@ var Layout = function Layout() {
120
188
  top: 0,
121
189
  behavior: 'smooth'
122
190
  });
123
- }, [currentStep === null || currentStep === void 0 || (_currentStep$step = currentStep.step) === null || _currentStep$step === void 0 ? void 0 : _currentStep$step.key]);
191
+
192
+ // 在确认页,滚动到第一个错误卡片的位置
193
+ if ((currentStep === null || currentStep === void 0 || (_currentStep$step = currentStep.step) === null || _currentStep$step === void 0 ? void 0 : _currentStep$step.key) === 'confirm-information') {
194
+ scrollToFirstErrorCard('.pisell-lowcode-product-card-error');
195
+ }
196
+ }, [currentStep === null || currentStep === void 0 || (_currentStep$step2 = currentStep.step) === null || _currentStep$step2 === void 0 ? void 0 : _currentStep$step2.key]);
124
197
  var components = {
125
198
  // 选择服务
126
199
  'select-service': Services,
@@ -134,8 +207,8 @@ var Layout = function Layout() {
134
207
  'confirm-information': ConfirmInformation
135
208
  };
136
209
  var Com = useMemo(function () {
137
- var _currentStep$step2;
138
- var key = currentStep === null || currentStep === void 0 || (_currentStep$step2 = currentStep.step) === null || _currentStep$step2 === void 0 ? void 0 : _currentStep$step2.key;
210
+ var _currentStep$step3;
211
+ var key = currentStep === null || currentStep === void 0 || (_currentStep$step3 = currentStep.step) === null || _currentStep$step3 === void 0 ? void 0 : _currentStep$step3.key;
139
212
  if (!key) return null;
140
213
  var Com;
141
214
  if (key.startsWith('select-resource')) {
@@ -147,12 +220,25 @@ var Layout = function Layout() {
147
220
  } else {
148
221
  Com = components[key];
149
222
  }
150
- return /*#__PURE__*/React.createElement(Com, {
151
- onChange: setParams,
152
- params: params,
153
- ref: stepRef
154
- });
155
- }, [currentStep === null || currentStep === void 0 || (_currentStep$step3 = currentStep.step) === null || _currentStep$step3 === void 0 ? void 0 : _currentStep$step3.key]);
223
+ if (key === 'select-service') {
224
+ return /*#__PURE__*/React.createElement(CustomComponent, {
225
+ block: customPageData === null || customPageData === void 0 ? void 0 : customPageData.block,
226
+ customComponents: {
227
+ product_list: /*#__PURE__*/React.createElement(Com, {
228
+ onChange: setParams,
229
+ params: params,
230
+ ref: stepRef
231
+ })
232
+ }
233
+ });
234
+ } else {
235
+ return /*#__PURE__*/React.createElement(Com, {
236
+ onChange: setParams,
237
+ params: params,
238
+ ref: stepRef
239
+ });
240
+ }
241
+ }, [currentStep === null || currentStep === void 0 || (_currentStep$step4 = currentStep.step) === null || _currentStep$step4 === void 0 ? void 0 : _currentStep$step4.key]);
156
242
 
157
243
  /**
158
244
  * @title: 动态计算中间内容区域的高度
@@ -176,10 +262,10 @@ var Layout = function Layout() {
176
262
  content.style.overflowY = 'auto';
177
263
  }
178
264
  }
179
- }, [currentStep === null || currentStep === void 0 || (_currentStep$step4 = currentStep.step) === null || _currentStep$step4 === void 0 ? void 0 : _currentStep$step4.key]);
265
+ }, [currentStep === null || currentStep === void 0 || (_currentStep$step5 = currentStep.step) === null || _currentStep$step5 === void 0 ? void 0 : _currentStep$step5.key]);
180
266
  var isShowCartCom = useMemo(function () {
181
- var _currentStep$step5;
182
- var key = currentStep === null || currentStep === void 0 || (_currentStep$step5 = currentStep.step) === null || _currentStep$step5 === void 0 ? void 0 : _currentStep$step5.key;
267
+ var _currentStep$step6;
268
+ var key = currentStep === null || currentStep === void 0 || (_currentStep$step6 = currentStep.step) === null || _currentStep$step6 === void 0 ? void 0 : _currentStep$step6.key;
183
269
  if (isMobile()) return null;
184
270
 
185
271
  // 先选择日期,并且当前步骤是选择日期,则不显示购物车
@@ -194,7 +280,7 @@ var Layout = function Layout() {
194
280
  return stepRef === null || stepRef === void 0 || (_stepRef$current = stepRef.current) === null || _stepRef$current === void 0 || (_stepRef$current$next = _stepRef$current.next) === null || _stepRef$current$next === void 0 ? void 0 : _stepRef$current$next.call(_stepRef$current);
195
281
  }
196
282
  }));
197
- }, [isDateSelectedFirst, currentStep === null || currentStep === void 0 || (_currentStep$step6 = currentStep.step) === null || _currentStep$step6 === void 0 ? void 0 : _currentStep$step6.key]);
283
+ }, [isDateSelectedFirst, currentStep === null || currentStep === void 0 || (_currentStep$step7 = currentStep.step) === null || _currentStep$step7 === void 0 ? void 0 : _currentStep$step7.key]);
198
284
 
199
285
  /**
200
286
  * @title: 是否显示底部
@@ -205,14 +291,27 @@ var Layout = function Layout() {
205
291
  * @Date: 2025-05-10 17:42
206
292
  */
207
293
  var isFooter = useMemo(function () {
208
- var _currentStep$step7;
294
+ var _currentStep$step8;
209
295
  if (!isMobile()) return false;
210
- var key = currentStep === null || currentStep === void 0 || (_currentStep$step7 = currentStep.step) === null || _currentStep$step7 === void 0 ? void 0 : _currentStep$step7.key;
296
+ var key = currentStep === null || currentStep === void 0 || (_currentStep$step8 = currentStep.step) === null || _currentStep$step8 === void 0 ? void 0 : _currentStep$step8.key;
211
297
 
212
298
  // 先选日期并且当前步骤是选择日期,则不显示底部
213
299
  if (isDateSelectedFirst && key === 'select-date') return false;
214
300
  return key !== 'confirm-information';
215
- }, [isDateSelectedFirst, currentStep === null || currentStep === void 0 || (_currentStep$step8 = currentStep.step) === null || _currentStep$step8 === void 0 ? void 0 : _currentStep$step8.key]);
301
+ }, [isDateSelectedFirst, currentStep === null || currentStep === void 0 || (_currentStep$step9 = currentStep.step) === null || _currentStep$step9 === void 0 ? void 0 : _currentStep$step9.key]);
302
+
303
+ /**
304
+ * @title: 获取协议方法需要在组件中定义才能传递给子组件,子组件无法获取到context中的方法
305
+ * @description:
306
+ * @param {string} id
307
+ * @return {*}
308
+ * @Author: WangHan
309
+ * @Date: 2025-07-07 10:06
310
+ */
311
+ var depositProtocolRequest = function depositProtocolRequest(id) {
312
+ var _appointmentBooking$g;
313
+ return appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$g = appointmentBooking.getProtocol) === null || _appointmentBooking$g === void 0 ? void 0 : _appointmentBooking$g.call(appointmentBooking, id);
314
+ };
216
315
  return /*#__PURE__*/React.createElement(React.Fragment, null, !isRetailTemplate ? /*#__PURE__*/React.createElement(Header, null) : null, /*#__PURE__*/React.createElement("div", {
217
316
  className: "parallel-content-wrap ".concat(isMobile() ? 'parallel-content-mobile-wrap' : '', " ").concat(isRetailTemplate ? 'parallel-content-retail-wrap' : '')
218
317
  }, /*#__PURE__*/React.createElement("div", {
@@ -237,7 +336,8 @@ var Layout = function Layout() {
237
336
  onChange: function onChange() {
238
337
  return setLoading(false);
239
338
  },
240
- isHideCheckout: false
339
+ isHideCheckout: false,
340
+ depositProtocolRequest: depositProtocolRequest
241
341
  }) : null);
242
342
  };
243
343
  export default Layout;