@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
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const SalesModel: ({ children, hooks, config }: any) => JSX.Element;
2
3
  export * from './Sales';
3
4
  export default SalesModel;
@@ -22,7 +22,7 @@ import { checkBeforeAddToCartApi } from "./serve";
22
22
  import { useCustomer } from "../Customer";
23
23
  import { useRequest } from 'ahooks';
24
24
  import { formatValues } from "../Checkout/utils";
25
- import { handleCartItemOrigin, handleProductInfo } from "./utils";
25
+ import { handleCartItemOrigin, handleProductDeposit, handleProductInfo } from "./utils";
26
26
  var defaultState = {
27
27
  cartItems: [],
28
28
  currentCartItem: null
@@ -31,6 +31,7 @@ export var CartContext = /*#__PURE__*/createContext(undefined);
31
31
  export var CartProvider = function CartProvider(_ref) {
32
32
  var children = _ref.children;
33
33
  var _useCustomer = useCustomer(),
34
+ appContext = _useCustomer.appContext,
34
35
  appUtils = _useCustomer.appUtils,
35
36
  getUserInfo = _useCustomer.getUserInfo;
36
37
  var _useSales = useSales(),
@@ -228,12 +229,16 @@ export var CartProvider = function CartProvider(_ref) {
228
229
  */
229
230
  var checkBeforeAddToCart = function checkBeforeAddToCart() {
230
231
  return new Promise(function (resolve) {
232
+ var _appContext$appHelper;
231
233
  var _cartData = getCurrentData().cartData;
232
234
  var newCartItem = createCartItemData() || {};
233
235
  var params = formatValues({
234
- cartData: {
235
- cartItems: [].concat(_toConsumableArray(_cartData.cartItems || []), [newCartItem])
236
- }
236
+ state: {
237
+ cartData: {
238
+ cartItems: [].concat(_toConsumableArray(_cartData.cartItems || []), [newCartItem])
239
+ }
240
+ },
241
+ platform: appContext === null || appContext === void 0 || (_appContext$appHelper = appContext.appHelper) === null || _appContext$appHelper === void 0 || (_appContext$appHelper = _appContext$appHelper.constants) === null || _appContext$appHelper === void 0 ? void 0 : _appContext$appHelper.platform
237
242
  });
238
243
  checkRef.current = {
239
244
  callback: function callback(res) {
@@ -324,6 +329,10 @@ export var CartProvider = function CartProvider(_ref) {
324
329
  }),
325
330
  _productDetail: eventDetail.productDetail
326
331
  };
332
+
333
+ // 处理定金
334
+ newCartItem.deposit = handleProductDeposit(newCartItem, eventDetail, num);
335
+ // 处理提交给接口的数据
327
336
  var originData = handleCartItemOrigin(newCartItem, eventDetail);
328
337
  newCartItem._originData = originData;
329
338
  if (_holderItem !== null && _holderItem !== void 0 && _holderItem._originData) {
@@ -499,6 +508,7 @@ export var CartProvider = function CartProvider(_ref) {
499
508
  var productId = (_item$_originData = item._originData) === null || _item$_originData === void 0 || (_item$_originData = _item$_originData.product) === null || _item$_originData === void 0 ? void 0 : _item$_originData.product_id;
500
509
  var relationId = (_item$_originData2 = item._originData) === null || _item$_originData2 === void 0 ? void 0 : _item$_originData2.relation_id;
501
510
  var eventUniqueIdentifier = (_item$_originData3 = item._originData) === null || _item$_originData3 === void 0 ? void 0 : _item$_originData3.event_unique_identifier;
511
+ debugger;
502
512
  // 根据检测项过滤检测结果
503
513
  return list.find(function (res) {
504
514
  var _res$details;
@@ -1,3 +1,4 @@
1
+ import Decimal from 'decimal.js';
1
2
  import { ICalculatePriceParams } from './types';
2
3
  export declare const handleProductInfo: (eventDetail: any, num: number) => {
3
4
  totalPrice: number;
@@ -21,3 +22,42 @@ export declare const getOriginTotalPrice: (params: ICalculatePriceParams) => num
21
22
  export declare const handleCartItemOrigin: (cartItem: any, eventDetail: any) => any;
22
23
  export declare const formatBundleToOrigin: (bundle: any) => any;
23
24
  export declare const formatOptionsToOrigin: (options: any) => any;
25
+ export declare const handleProductDeposit: (cartItem: any, eventDetail: any, num: number) => {
26
+ total: number;
27
+ protocols: any;
28
+ } | null;
29
+ /**
30
+ * 获取商品定金
31
+ * @description 定金基于商品售价来算,最终乘商品数量
32
+ * 1、如果套餐主商品有定金规则,则定金为:(套餐商品总售价 * 定金百分比 + 定金固定金额)* 商品数量
33
+ * 2、如果套餐主商品没有定金规则,子商品有定金规则,则定金为:(套餐子商品售价 * 套餐子商品定金百分比 + 套餐子商品定金固定金额)* 商品数量,最终将所有子商品定金相加
34
+ * 3、普通商品/单规格商品/组合规则商品,定金规则:(商品总售价 * 定金百分比 + 定金固定金额)* 商品数量
35
+ * @param params 参数
36
+ * @returns 商品定金
37
+ */
38
+ export declare const getProductDeposit: (params: {
39
+ cartItem: any;
40
+ product: any;
41
+ bundle?: any;
42
+ options?: any;
43
+ num?: number;
44
+ }) => {
45
+ total: number;
46
+ protocols: any;
47
+ } | null;
48
+ /**
49
+ * 计算商品定金
50
+ * @param params 参数
51
+ * @returns 商品定金
52
+ */
53
+ export declare const calculateProductDeposit: (params: {
54
+ depositData: {
55
+ deposit_fixed?: string;
56
+ deposit_percentage?: string;
57
+ };
58
+ total: string | number;
59
+ num: number;
60
+ }) => {
61
+ result: boolean;
62
+ depositTotal: Decimal;
63
+ };
@@ -1,3 +1,10 @@
1
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
2
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
+ function _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 _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
5
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
6
+ function _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; }
7
+ import Decimal from 'decimal.js';
1
8
  export var handleProductInfo = function handleProductInfo(eventDetail, num) {
2
9
  var productDetail = eventDetail.productDetail,
3
10
  bookingOptionItem = eventDetail.bookingOptionItem;
@@ -158,4 +165,184 @@ export var formatOptionsToOrigin = function formatOptionsToOrigin(options) {
158
165
  option_group_id: d.option_group_id
159
166
  };
160
167
  });
168
+ };
169
+ export var handleProductDeposit = function handleProductDeposit(cartItem, eventDetail, num) {
170
+ var _origin$custom_deposi;
171
+ var productDetail = eventDetail.productDetail,
172
+ bookingOptionItem = eventDetail.bookingOptionItem;
173
+
174
+ // 如果是普通商品
175
+ var normalProduct = bookingOptionItem === null || bookingOptionItem === void 0 ? void 0 : bookingOptionItem._originData;
176
+ if (!productDetail && normalProduct) {
177
+ var custom_deposit_data = normalProduct.custom_deposit_data;
178
+ if ((custom_deposit_data === null || custom_deposit_data === void 0 ? void 0 : custom_deposit_data.has_deposit) == 1) {
179
+ return getProductDeposit({
180
+ cartItem: cartItem,
181
+ product: normalProduct,
182
+ num: num
183
+ });
184
+ } else {
185
+ return null;
186
+ }
187
+ }
188
+ if (!productDetail) {
189
+ return null;
190
+ }
191
+ var _ref = productDetail || {},
192
+ origin = _ref.origin,
193
+ bundle = _ref.bundle,
194
+ options = _ref.options,
195
+ product_variant_id = _ref.product_variant_id;
196
+ var deposit = null;
197
+ var product = origin;
198
+ if (product_variant_id) {
199
+ product.product_variant_id = product_variant_id;
200
+ }
201
+ if ((origin === null || origin === void 0 || (_origin$custom_deposi = origin.custom_deposit_data) === null || _origin$custom_deposi === void 0 ? void 0 : _origin$custom_deposi.has_deposit) == 1) {
202
+ deposit = getProductDeposit({
203
+ cartItem: cartItem,
204
+ product: product,
205
+ bundle: bundle,
206
+ options: options,
207
+ num: num
208
+ });
209
+ }
210
+ return deposit;
211
+ };
212
+
213
+ /**
214
+ * 获取商品定金
215
+ * @description 定金基于商品售价来算,最终乘商品数量
216
+ * 1、如果套餐主商品有定金规则,则定金为:(套餐商品总售价 * 定金百分比 + 定金固定金额)* 商品数量
217
+ * 2、如果套餐主商品没有定金规则,子商品有定金规则,则定金为:(套餐子商品售价 * 套餐子商品定金百分比 + 套餐子商品定金固定金额)* 商品数量,最终将所有子商品定金相加
218
+ * 3、普通商品/单规格商品/组合规则商品,定金规则:(商品总售价 * 定金百分比 + 定金固定金额)* 商品数量
219
+ * @param params 参数
220
+ * @returns 商品定金
221
+ */
222
+ export var getProductDeposit = function getProductDeposit(params) {
223
+ var _product$custom_depos;
224
+ var cartItem = params.cartItem,
225
+ product = params.product,
226
+ bundle = params.bundle,
227
+ options = params.options;
228
+ var num = (params === null || params === void 0 ? void 0 : params.num) || 1;
229
+
230
+ // 判定商品是否有定金规则
231
+ if ((product === null || product === void 0 || (_product$custom_depos = product.custom_deposit_data) === null || _product$custom_depos === void 0 ? void 0 : _product$custom_depos.has_deposit) == 1) {
232
+ var total = new Decimal(0);
233
+ var _ref2 = (product === null || product === void 0 ? void 0 : product.custom_deposit_data) || {},
234
+ deposit_fixed = _ref2.deposit_fixed,
235
+ deposit_percentage = _ref2.deposit_percentage,
236
+ deposit_policy_data = _ref2.deposit_policy_data,
237
+ self_deposit_policy_ids = _ref2.self_deposit_policy_ids;
238
+ // 所有协议数据
239
+ var allProtocols = deposit_policy_data || [];
240
+ // 是否存在定金,主商品has_deposit为1,但是自身没有定金设置,需要判定子商品是否存在定金,如果不存在最终判定也是不存在定金
241
+ var productHasDeposit = false;
242
+ // 关联的定金协议id
243
+ var protocolIds = [];
244
+
245
+ // 判断主商品是否有定金规则
246
+ if (typeof deposit_fixed === 'string' && typeof deposit_percentage === 'string') {
247
+ var _calculateProductDepo = calculateProductDeposit({
248
+ depositData: product === null || product === void 0 ? void 0 : product.custom_deposit_data,
249
+ total: (cartItem === null || cartItem === void 0 ? void 0 : cartItem.total) || 0,
250
+ num: num
251
+ }),
252
+ depositTotal = _calculateProductDepo.depositTotal,
253
+ result = _calculateProductDepo.result;
254
+ if (result) {
255
+ total = depositTotal;
256
+ protocolIds.push.apply(protocolIds, _toConsumableArray(self_deposit_policy_ids || []));
257
+ productHasDeposit = true;
258
+ }
259
+ } else {
260
+ // 组合规格商品
261
+ if (product !== null && product !== void 0 && product.product_variant_id) {
262
+ var _product$variant;
263
+ var variantProduct = product === null || product === void 0 || (_product$variant = product.variant) === null || _product$variant === void 0 ? void 0 : _product$variant.find(function (item) {
264
+ return (item === null || item === void 0 ? void 0 : item.id) === (product === null || product === void 0 ? void 0 : product.product_variant_id);
265
+ });
266
+ if (variantProduct) {
267
+ var depositData = variantProduct === null || variantProduct === void 0 ? void 0 : variantProduct.custom_deposit_data;
268
+ var _calculateProductDepo2 = calculateProductDeposit({
269
+ depositData: depositData,
270
+ total: (cartItem === null || cartItem === void 0 ? void 0 : cartItem.total) || 0,
271
+ num: num
272
+ }),
273
+ _depositTotal = _calculateProductDepo2.depositTotal,
274
+ _result = _calculateProductDepo2.result;
275
+ if (_result) {
276
+ total = _depositTotal;
277
+ protocolIds.push.apply(protocolIds, _toConsumableArray((depositData === null || depositData === void 0 ? void 0 : depositData.self_deposit_policy_ids) || []));
278
+ productHasDeposit = true;
279
+ }
280
+ }
281
+ }
282
+ if (bundle !== null && bundle !== void 0 && bundle.length) {
283
+ total = bundle.reduce(function (accumulator, currBundleProduct) {
284
+ var depositData = currBundleProduct === null || currBundleProduct === void 0 ? void 0 : currBundleProduct.custom_deposit_data;
285
+ var _calculateProductDepo3 = calculateProductDeposit({
286
+ depositData: depositData,
287
+ total: currBundleProduct === null || currBundleProduct === void 0 ? void 0 : currBundleProduct.price,
288
+ num: (currBundleProduct === null || currBundleProduct === void 0 ? void 0 : currBundleProduct.num) || 1
289
+ }),
290
+ depositTotal = _calculateProductDepo3.depositTotal,
291
+ result = _calculateProductDepo3.result;
292
+ if (result) {
293
+ protocolIds.push.apply(protocolIds, _toConsumableArray((depositData === null || depositData === void 0 ? void 0 : depositData.self_deposit_policy_ids) || []));
294
+ productHasDeposit = true;
295
+ return accumulator.plus(depositTotal);
296
+ }
297
+ return accumulator;
298
+ }, new Decimal(0));
299
+ }
300
+ }
301
+ if (productHasDeposit) {
302
+ var ids = new Set(protocolIds);
303
+ var protocols = allProtocols.filter(function (item) {
304
+ return ids.has(item.id);
305
+ });
306
+ return {
307
+ total: total.toNumber(),
308
+ protocols: protocols
309
+ };
310
+ }
311
+ return null;
312
+ }
313
+ return null;
314
+ };
315
+
316
+ /**
317
+ * 计算商品定金
318
+ * @param params 参数
319
+ * @returns 商品定金
320
+ */
321
+ export var calculateProductDeposit = function calculateProductDeposit(params) {
322
+ var depositData = params.depositData,
323
+ total = params.total,
324
+ num = params.num;
325
+ if (!depositData) {
326
+ return {
327
+ result: false,
328
+ depositTotal: new Decimal(0)
329
+ };
330
+ }
331
+ var _ref3 = depositData || {},
332
+ deposit_fixed = _ref3.deposit_fixed,
333
+ deposit_percentage = _ref3.deposit_percentage;
334
+ if (typeof deposit_fixed === 'string' && typeof deposit_percentage === 'string') {
335
+ var depositFixed = new Decimal(deposit_fixed || 0);
336
+ var depositPercent = new Decimal(deposit_percentage || 0);
337
+ var productTotalPrice = new Decimal(total || 0);
338
+ var deposit = depositFixed.plus(depositPercent.times(productTotalPrice));
339
+ return {
340
+ depositTotal: deposit.times(num),
341
+ result: true
342
+ };
343
+ }
344
+ return {
345
+ result: false,
346
+ depositTotal: new Decimal(0)
347
+ };
161
348
  };
@@ -5,6 +5,9 @@ interface PayProps {
5
5
  order_id: string;
6
6
  amount: number;
7
7
  sale_channel?: string;
8
+ is_deposit?: number;
9
+ deposit_amount?: number;
10
+ total_amount?: number;
8
11
  }
9
12
  interface CheckoutContextType {
10
13
  onCheckBeforeBooking: (data: any) => Promise<{
@@ -15,6 +18,7 @@ interface CheckoutContextType {
15
18
  onPay: (payProps: PayProps) => void;
16
19
  createBooking: any;
17
20
  checkBeforeBooking: any;
21
+ freePay: any;
18
22
  }
19
23
  interface CheckoutProviderProps {
20
24
  children: React.ReactNode;
@@ -1,4 +1,9 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
2
7
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
3
8
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
9
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
@@ -6,8 +11,9 @@ import React, { createContext, useRef } from 'react';
6
11
  import { useSales } from "../../../businessModel/SalesModel";
7
12
  import useEngineContext from "../../../hooks/useEngineContext";
8
13
  import { useRequest } from 'ahooks';
9
- import { checkBeforeBookingApi, createBookingApi } from "./serve";
14
+ import { checkBeforeBookingApi, createBookingApi, freePayApi } from "./serve";
10
15
  import { useCart } from "../Cart";
16
+ import { Toast } from "../../appointmentBooking/utils";
11
17
 
12
18
  // 定义上下文接口
13
19
 
@@ -27,6 +33,7 @@ export var CheckoutProvider = function CheckoutProvider(_ref) {
27
33
  updateDisabledCartItem = _useCart.updateDisabledCartItem;
28
34
  var checkoutCallback = useRef(null);
29
35
  var checkRef = useRef(null);
36
+ var payRef = useRef(null);
30
37
  var checkBeforeBooking = useRequest(checkBeforeBookingApi, {
31
38
  manual: true,
32
39
  onSuccess: function onSuccess(res) {
@@ -61,6 +68,17 @@ export var CheckoutProvider = function CheckoutProvider(_ref) {
61
68
  });
62
69
  }
63
70
  });
71
+ var freePay = useRequest(freePayApi, {
72
+ manual: true,
73
+ onSuccess: function onSuccess(res) {
74
+ if (res !== null && res !== void 0 && res.status) {
75
+ var _payRef$current, _payRef$current2;
76
+ goPaymentFinish((_payRef$current = payRef.current) === null || _payRef$current === void 0 ? void 0 : _payRef$current.order_id, (_payRef$current2 = payRef.current) === null || _payRef$current2 === void 0 ? void 0 : _payRef$current2.total_amount);
77
+ } else {
78
+ Toast(res === null || res === void 0 ? void 0 : res.message);
79
+ }
80
+ }
81
+ });
64
82
 
65
83
  /**
66
84
  * @title: 下单前校验
@@ -106,6 +124,11 @@ export var CheckoutProvider = function CheckoutProvider(_ref) {
106
124
  return _ref2.apply(this, arguments);
107
125
  };
108
126
  }();
127
+ var goPaymentFinish = function goPaymentFinish(order_id, amount) {
128
+ var _utils$history;
129
+ var url = "/payment-finish/success?order_id=".concat(order_id, "&amount=").concat(Number(amount));
130
+ utils === null || utils === void 0 || (_utils$history = utils.history) === null || _utils$history === void 0 || _utils$history.replace(url);
131
+ };
109
132
 
110
133
  /**
111
134
  * @title: 支付
@@ -115,20 +138,41 @@ export var CheckoutProvider = function CheckoutProvider(_ref) {
115
138
  * @Author: zhiwei.Wang
116
139
  */
117
140
  var onPay = function onPay(payProps) {
118
- utils.action({
119
- type: 'pisell1.payment',
120
- data: payProps,
121
- callback: function callback(e) {
122
- checkoutCallback.current && checkoutCallback.current(e);
141
+ payRef.current = payProps;
142
+ var is_deposit = payProps.is_deposit,
143
+ deposit_amount = payProps.deposit_amount,
144
+ total_amount = payProps.total_amount;
145
+
146
+ // 如果有定金,则支付定金金额,否则订单金额
147
+ var _total = is_deposit ? deposit_amount || 0 : total_amount || 0;
148
+ if (_total > 0) {
149
+ utils.action({
150
+ type: 'pisell1.payment',
151
+ data: _objectSpread(_objectSpread({}, payProps), {}, {
152
+ total_amount: _total
153
+ }),
154
+ callback: function callback(e) {
155
+ checkoutCallback.current && checkoutCallback.current(e);
156
+ }
157
+ });
158
+ } else {
159
+ // 定金为0则直接跳转结果页面
160
+ if (is_deposit) {
161
+ goPaymentFinish(payProps.order_id, _total);
162
+ return;
123
163
  }
124
- });
164
+
165
+ // 金额为0则需要调用免费支付接口,接口调用成功后跳转结果页面
166
+ freePay.runAsync(payProps.order_id);
167
+ }
125
168
  };
126
169
  var contextValue = {
127
170
  onCheckBeforeBooking: onCheckBeforeBooking,
128
171
  onCheckout: onCheckout,
129
172
  onPay: onPay,
130
173
  createBooking: createBooking,
131
- checkBeforeBooking: checkBeforeBooking
174
+ checkBeforeBooking: checkBeforeBooking,
175
+ freePay: freePay
132
176
  };
133
177
  return /*#__PURE__*/React.createElement(CheckoutContext.Provider, {
134
178
  value: contextValue
@@ -1,2 +1,15 @@
1
+ /**
2
+ * @title: 下单前置校验接口
3
+ * @param {any} data
4
+ */
1
5
  export declare const checkBeforeBookingApi: (data: any) => Promise<any>;
6
+ /**
7
+ * @title: 创建订单
8
+ * @param {any} data
9
+ */
2
10
  export declare const createBookingApi: (data: any) => Promise<any>;
11
+ /**
12
+ * @title: 免费支付
13
+ * @param {string} orderId
14
+ */
15
+ export declare const freePayApi: (orderId: string) => Promise<any>;
@@ -1,11 +1,25 @@
1
1
  import { request } from "../../../utils";
2
2
 
3
- // 下单前置校验接口
3
+ /**
4
+ * @title: 下单前置校验接口
5
+ * @param {any} data
6
+ */
4
7
  export var checkBeforeBookingApi = function checkBeforeBookingApi(data) {
5
8
  return request.getRequest().post('/h5/eventbookingv2/order/check-config', data);
6
9
  };
7
10
 
8
- // 创建
11
+ /**
12
+ * @title: 创建订单
13
+ * @param {any} data
14
+ */
9
15
  export var createBookingApi = function createBookingApi(data) {
10
16
  return request.getRequest().post('/h5/eventbookingv2/order', data);
17
+ };
18
+
19
+ /**
20
+ * @title: 免费支付
21
+ * @param {string} orderId
22
+ */
23
+ export var freePayApi = function freePayApi(orderId) {
24
+ return request.getRequest().post("/h5/pay/order/free-pay/".concat(orderId), {});
11
25
  };
@@ -24,7 +24,13 @@ export declare const formatProductBundle: (bundle: any) => any;
24
24
  * @Author: xiangfeng.xue
25
25
  * @Date: 2025-01-21 17:57
26
26
  */
27
- export declare const formatValues: (state: any, excludeDisabled?: boolean, otherValue?: Record<string, any>) => any;
27
+ export declare const formatValues: (params: {
28
+ state: any;
29
+ platform: 'h5' | 'pc';
30
+ excludeDisabled?: boolean;
31
+ extra?: Record<string, any>;
32
+ otherValue?: Record<string, any>;
33
+ }) => any;
28
34
  /**
29
35
  * @title: 获取拉开表单弹窗参数
30
36
  * @param state
@@ -84,16 +84,22 @@ var formatBookings = function formatBookings(list) {
84
84
  * @Author: xiangfeng.xue
85
85
  * @Date: 2025-01-21 17:57
86
86
  */
87
- export var formatValues = function formatValues(state, excludeDisabled, otherValue) {
88
- var values = _objectSpread({
87
+ export var formatValues = function formatValues(params) {
88
+ var state = params.state,
89
+ otherValue = params.otherValue,
90
+ platform = params.platform,
91
+ excludeDisabled = params.excludeDisabled,
92
+ extra = params.extra;
93
+ var values = _objectSpread(_objectSpread({
89
94
  type: 'event_booking_v2',
90
- platform: 'H5',
95
+ platform: platform === 'pc' ? 'PC' : 'H5',
91
96
  sales_channel: 'my_pisel',
92
97
  order_sales_channel: 'online_store',
93
98
  bookings: [],
94
99
  shop_note: '',
95
100
  schedule_date: ''
96
- }, otherValue || {});
101
+ }, extra || {}), otherValue || {});
102
+ console.log('values', values);
97
103
  var data = [];
98
104
  if (excludeDisabled) {
99
105
  var _state$cartData$cartI, _state$cartData$cartI2;
@@ -104,6 +110,12 @@ export var formatValues = function formatValues(state, excludeDisabled, otherVal
104
110
  data = state.cartData.cartItems;
105
111
  }
106
112
 
113
+ // 定金
114
+ var is_deposit = data.find(function (v) {
115
+ return v.deposit;
116
+ }) ? 1 : 0;
117
+ values.is_deposit = is_deposit;
118
+
107
119
  // 服务
108
120
  values.bookings = formatBookings(data);
109
121
  return values;
@@ -121,6 +133,6 @@ export var getFormParams = function getFormParams(state) {
121
133
  });
122
134
  return {
123
135
  product_id: product_id,
124
- appointment_type: "event_booking_v2"
136
+ appointment_type: 'event_booking_v2'
125
137
  };
126
138
  };
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  interface CustomerData {
3
3
  }
4
4
  interface CustomerContextType {
5
+ appContext: any;
5
6
  appUtils: any;
6
7
  isLogin: () => boolean;
7
8
  openLoginModal: (params: any) => void;
@@ -34,6 +34,7 @@ export var CustomerProvider = function CustomerProvider(_ref) {
34
34
  return userInfo !== null && userInfo !== void 0 && userInfo.id ? userInfo : localUserInfo;
35
35
  };
36
36
  var contextValue = {
37
+ appContext: context,
37
38
  appUtils: utils,
38
39
  isLogin: isLogin,
39
40
  openLoginModal: openLoginModal,
@@ -14,6 +14,7 @@ interface EventDetailContextType {
14
14
  currentBookingOption: any;
15
15
  selectEventDetailProductDetail: (productDetail: any) => void;
16
16
  checkBeforeSelectEventDetail: () => boolean;
17
+ getProductDetailRequest: any;
17
18
  }
18
19
  interface EventDetailProviderProps {
19
20
  children: React.ReactNode;