@pisell/private-materials 3.3.46 → 3.3.48

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 (597) 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/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +3 -3
  6. package/build/lowcode/view.js +3 -3
  7. package/es/components/appointmentBooking/components/Cart/Item/index.js +3 -0
  8. package/es/components/appointmentBooking/components/Resource/index.js +19 -7
  9. package/es/components/appointmentBooking/components/Services/index.js +1 -1
  10. package/es/components/appointmentBooking/components/TimeSlicing/index.js +7 -4
  11. package/es/components/appointmentBooking/components/Voucher/index.js +2 -0
  12. package/es/components/appointmentBooking/context.js +7 -3
  13. package/es/components/appointmentBooking/hooks.js +126 -67
  14. package/es/components/appointmentBooking/utils.js +6 -1
  15. package/es/components/booking/addons/index.js +31 -26
  16. package/es/components/booking/components/footer/amount.js +2 -2
  17. package/es/components/booking/components/footer/utils.d.ts +9 -0
  18. package/es/components/booking/components/footer/utils.js +32 -10
  19. package/es/components/booking/info/service/addService/index.js +2 -2
  20. package/es/components/booking/info/service2/utils.d.ts +4 -1
  21. package/es/components/booking/info/service2/utils.js +21 -2
  22. package/es/components/booking/info/utils.js +1 -1
  23. package/es/components/booking/info2/service/addService/index.js +9 -6
  24. package/es/components/booking/info2/service/editService/index.js +56 -18
  25. package/es/components/booking/utils.d.ts +1 -0
  26. package/es/components/booking/utils.js +5 -0
  27. package/es/components/ticketBooking/components/addServiceVariant/addService.js +75 -26
  28. package/es/components/ticketBooking/components/notAvailable/index.js +39 -0
  29. package/es/components/ticketBooking/index.js +1 -1
  30. package/es/components/ticketBooking/locales.d.ts +6 -0
  31. package/es/components/ticketBooking/locales.js +9 -3
  32. package/es/components/ticketBooking/serve.js +98 -92
  33. package/es/components/ticketBooking/utils/index.d.ts +1 -0
  34. package/es/components/ticketBooking/utils/index.js +33 -0
  35. package/lib/components/appointmentBooking/components/Cart/Item/index.js +3 -0
  36. package/lib/components/appointmentBooking/components/Resource/index.js +7 -4
  37. package/lib/components/appointmentBooking/components/Services/index.js +1 -1
  38. package/lib/components/appointmentBooking/components/TimeSlicing/index.js +4 -3
  39. package/lib/components/appointmentBooking/components/Voucher/index.js +2 -0
  40. package/lib/components/appointmentBooking/context.js +7 -3
  41. package/lib/components/appointmentBooking/hooks.js +70 -11
  42. package/lib/components/appointmentBooking/utils.js +2 -0
  43. package/lib/components/booking/addons/index.js +27 -21
  44. package/lib/components/booking/components/footer/amount.js +1 -1
  45. package/lib/components/booking/components/footer/utils.d.ts +9 -0
  46. package/lib/components/booking/components/footer/utils.js +24 -7
  47. package/lib/components/booking/info/service/addService/index.js +1 -1
  48. package/lib/components/booking/info/service2/utils.d.ts +4 -1
  49. package/lib/components/booking/info/service2/utils.js +21 -2
  50. package/lib/components/booking/info/utils.js +1 -1
  51. package/lib/components/booking/info2/service/addService/index.js +8 -5
  52. package/lib/components/booking/info2/service/editService/index.js +59 -23
  53. package/lib/components/booking/utils.d.ts +1 -0
  54. package/lib/components/booking/utils.js +6 -0
  55. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +74 -20
  56. package/lib/components/ticketBooking/components/notAvailable/index.js +61 -0
  57. package/lib/components/ticketBooking/index.js +1 -1
  58. package/lib/components/ticketBooking/locales.d.ts +6 -0
  59. package/lib/components/ticketBooking/locales.js +9 -3
  60. package/lib/components/ticketBooking/serve.js +6 -2
  61. package/lib/components/ticketBooking/utils/index.d.ts +1 -0
  62. package/lib/components/ticketBooking/utils/index.js +33 -0
  63. package/package.json +4 -4
  64. package/es/businessModel/SalesModel/Sales/index.d.ts +0 -24
  65. package/es/businessModel/SalesModel/hooks/index.d.ts +0 -1
  66. package/es/businessModel/SalesModel/index.d.ts +0 -3
  67. package/es/businessModel/index.d.ts +0 -0
  68. package/es/components/Sales/Cart/index.d.ts +0 -53
  69. package/es/components/Sales/Cart/serve.d.ts +0 -2
  70. package/es/components/Sales/Cart/types.d.ts +0 -31
  71. package/es/components/Sales/Cart/utils.d.ts +0 -23
  72. package/es/components/Sales/Checkout/index.d.ts +0 -33
  73. package/es/components/Sales/Checkout/serve.d.ts +0 -2
  74. package/es/components/Sales/Checkout/utils.d.ts +0 -35
  75. package/es/components/Sales/Customer/index.d.ts +0 -24
  76. package/es/components/Sales/Event/Detail.d.ts +0 -29
  77. package/es/components/Sales/Event/index.d.ts +0 -30
  78. package/es/components/Sales/Event/serve.d.ts +0 -39
  79. package/es/components/Sales/Holder/index.d.ts +0 -33
  80. package/es/components/Sales/Holder/serve.d.ts +0 -8
  81. package/es/components/Sales/Init/index.d.ts +0 -25
  82. package/es/components/Sales/Init/serve.d.ts +0 -3
  83. package/es/components/Sales/Resource/index.d.ts +0 -26
  84. package/es/components/Sales/Resource/serve.d.ts +0 -5
  85. package/es/components/Sales/Step/index.d.ts +0 -39
  86. package/es/components/Sales/Summary/index.d.ts +0 -25
  87. package/es/components/Sales/Summary/serve.d.ts +0 -0
  88. package/es/components/Sales/Summary/utils.d.ts +0 -36
  89. package/es/components/Sales/hooks/index.d.ts +0 -1
  90. package/es/components/Sales/index.d.ts +0 -20
  91. package/es/components/Sales/utils/index.d.ts +0 -1
  92. package/es/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +0 -7
  93. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -3
  94. package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -3
  95. package/es/components/appointmentBooking/components/Cart/utils.d.ts +0 -56
  96. package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +0 -4
  97. package/es/components/appointmentBooking/components/ConfirmInformation/utils.d.ts +0 -12
  98. package/es/components/appointmentBooking/components/Content/index.d.ts +0 -3
  99. package/es/components/appointmentBooking/components/Date/index.d.ts +0 -4
  100. package/es/components/appointmentBooking/components/Date/state.d.ts +0 -63
  101. package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -3
  102. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -3
  103. package/es/components/appointmentBooking/components/Form/index.d.ts +0 -4
  104. package/es/components/appointmentBooking/components/Form/utils.d.ts +0 -8
  105. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -3
  106. package/es/components/appointmentBooking/components/Guest/index.d.ts +0 -4
  107. package/es/components/appointmentBooking/components/Header/index.d.ts +0 -3
  108. package/es/components/appointmentBooking/components/Resource/utils.d.ts +0 -5
  109. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
  110. package/es/components/appointmentBooking/deposit/index.d.ts +0 -3
  111. package/es/components/appointmentBooking/index.d.ts +0 -3
  112. package/es/components/appointmentBooking/locales.d.ts +0 -354
  113. package/es/components/appointmentBooking/mock.d.ts +0 -627
  114. package/es/components/appointmentBooking/status.d.ts +0 -21
  115. package/es/components/appointmentBooking/type.d.ts +0 -17
  116. package/es/components/booking/components/customSelect/index.d.ts +0 -38
  117. package/es/components/booking/components/voucher/index.d.ts +0 -3
  118. package/es/components/booking/deposit/DepositItem/index.d.ts +0 -25
  119. package/es/components/booking/forms/footer.d.ts +0 -6
  120. package/es/components/booking/forms/sendModal/index.d.ts +0 -27
  121. package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -9
  122. package/es/components/booking/forms/single/index.d.ts +0 -10
  123. package/es/components/booking/hooks/useCreateBookingPageHeader.d.ts +0 -6
  124. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  125. package/es/components/booking/info/Provider.d.ts +0 -0
  126. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -6
  127. package/es/components/booking/info/clientVariant/utils.d.ts +0 -1
  128. package/es/components/booking/info/hooks/useGetHolderList.d.ts +0 -2
  129. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
  130. package/es/components/booking/info/index.d.ts +0 -3
  131. package/es/components/booking/info/model.d.ts +0 -14
  132. package/es/components/booking/info/pet/ChangePetModal/index.d.ts +0 -4
  133. package/es/components/booking/info/service/editService/EditTabs/index.d.ts +0 -3
  134. package/es/components/booking/info/service/index.d.ts +0 -4
  135. package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
  136. package/es/components/booking/info/service/serviceManager/utils.d.ts +0 -0
  137. package/es/components/booking/info/service2/index.d.ts +0 -6
  138. package/es/components/booking/info/service2/status.d.ts +0 -31
  139. package/es/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +0 -7
  140. package/es/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
  141. package/es/components/booking/info2/service/editService/utils.d.ts +0 -13
  142. package/es/components/booking/info2/service/index.d.ts +0 -4
  143. package/es/components/booking/info2/utils.d.ts +0 -4
  144. package/es/components/booking/locales.d.ts +0 -813
  145. package/es/components/booking/materiels/contacts/index.d.ts +0 -15
  146. package/es/components/booking/materiels/holder/index.d.ts +0 -6
  147. package/es/components/booking/model.d.ts +0 -115
  148. package/es/components/booking/notes/addNote/index.d.ts +0 -3
  149. package/es/components/booking/payments/index.d.ts +0 -9
  150. package/es/components/eftpos/index.d.ts +0 -46
  151. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -3
  152. package/es/components/eftposPay/component/fail/index.d.ts +0 -3
  153. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -9
  154. package/es/components/eftposPay/hooks.d.ts +0 -35
  155. package/es/components/eftposPay/index.d.ts +0 -4
  156. package/es/components/eftposPay/locales.d.ts +0 -330
  157. package/es/components/eftposPay/pay.d.ts +0 -20
  158. package/es/components/eftposPay/payo/config.d.ts +0 -12
  159. package/es/components/eftposPay/payo/hooks.d.ts +0 -10
  160. package/es/components/eftposPay/tyro/index.d.ts +0 -9
  161. package/es/components/eftposPay/windcave/helper.d.ts +0 -23
  162. package/es/components/eftposPay/windcave/windcave.d.ts +0 -6
  163. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -3
  164. package/es/components/eventBooking/components/OpenCard/index.d.ts +0 -4
  165. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -3
  166. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -3
  167. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -3
  168. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -3
  169. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -3
  170. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -3
  171. package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -3
  172. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -3
  173. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -3
  174. package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -3
  175. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -3
  176. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -3
  177. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -2
  178. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -3
  179. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -2
  180. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
  181. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -10
  182. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -3
  183. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -12
  184. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
  185. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
  186. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
  187. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
  188. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
  189. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
  190. package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
  191. package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
  192. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -4
  193. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -2
  194. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -2
  195. package/es/components/eventBooking/components/bookingDetailModal/index.d.ts +0 -7
  196. package/es/components/eventBooking/components/bookingServiceList/index.d.ts +0 -17
  197. package/es/components/eventBooking/components/eventCard/index.d.ts +0 -14
  198. package/es/components/eventBooking/components/productCard/index.d.ts +0 -16
  199. package/es/components/eventBooking/components/progressBar/index.d.ts +0 -16
  200. package/es/components/eventBooking/components/resourceDisplay/index.d.ts +0 -23
  201. package/es/components/eventBooking/components/resourceUsability/index.d.ts +0 -12
  202. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -9
  203. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -12
  204. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -3
  205. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.d.ts +0 -9
  206. package/es/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -14
  207. package/es/components/eventBooking/components/selectHolder/index.d.ts +0 -22
  208. package/es/components/eventBooking/components/timeResourceSelector/index.d.ts +0 -20
  209. package/es/components/eventBooking/index.d.ts +0 -3
  210. package/es/components/eventBooking/locales.d.ts +0 -222
  211. package/es/components/eventBooking/mock.d.ts +0 -627
  212. package/es/components/eventBooking/status.d.ts +0 -21
  213. package/es/components/eventBooking/type.d.ts +0 -17
  214. package/es/components/eventBooking/utils.d.ts +0 -45
  215. package/es/components/index.d.ts +0 -18
  216. package/es/components/login/index.d.ts +0 -8
  217. package/es/components/login/locales.d.ts +0 -24
  218. package/es/components/pay/toC/PaymentList/index.d.ts +0 -19
  219. package/es/components/pay/toC/PaymentList/serve.d.ts +0 -28
  220. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
  221. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +0 -2
  222. package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +0 -10
  223. package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +0 -2
  224. package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +0 -2
  225. package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +0 -10
  226. package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +0 -2
  227. package/es/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +0 -2
  228. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
  229. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +0 -2
  230. package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +0 -10
  231. package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +0 -2
  232. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -18
  233. package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -25
  234. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -113
  235. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +0 -3
  236. package/es/components/pay/toC/PaymentMethods/index.d.ts +0 -9
  237. package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.d.ts +0 -16
  238. package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.d.ts +0 -17
  239. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -7
  240. package/es/components/pay/toC/WalletPassBlock/index.d.ts +0 -21
  241. package/es/components/pay/toC/index.d.ts +0 -3
  242. package/es/components/pay/toC/locales.d.ts +0 -286
  243. package/es/components/pay/toC/model.d.ts +0 -39
  244. package/es/components/pay/toC/serve.d.ts +0 -57
  245. package/es/components/pay/toC/utils.d.ts +0 -51
  246. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
  247. package/es/components/pisellSelectCustomerModal/index.d.ts +0 -15
  248. package/es/components/productExtension/index.d.ts +0 -7
  249. package/es/components/productSelect/components/TabProduct/index.d.ts +0 -2
  250. package/es/components/productSelect/components/gridLayout/index.d.ts +0 -9
  251. package/es/components/productSelect/components/productGroup/index.d.ts +0 -38
  252. package/es/components/productSelect/hooks/useToken.d.ts +0 -18
  253. package/es/components/productSelect/locales.d.ts +0 -18
  254. package/es/components/productSelect/mock.d.ts +0 -134
  255. package/es/components/productSelect/theme/token.d.ts +0 -17
  256. package/es/components/ruleSetting/index.d.ts +0 -9
  257. package/es/components/ruleSetting/server.d.ts +0 -4
  258. package/es/components/schedules/index.d.ts +0 -3
  259. package/es/components/schedules/schedules/utils.d.ts +0 -72
  260. package/es/components/shoppingCart/Provider.d.ts +0 -3
  261. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -3
  262. package/es/components/shoppingCart/components/Cart/index.d.ts +0 -3
  263. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -3
  264. package/es/components/shoppingCart/components/Render/index.d.ts +0 -3
  265. package/es/components/shoppingCart/components/SelectHolderModal/index.d.ts +0 -4
  266. package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -2
  267. package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -2
  268. package/es/components/shoppingCart/hooks/useContext.d.ts +0 -1
  269. package/es/components/shoppingCart/index.d.ts +0 -3
  270. package/es/components/shoppingCart/locales.d.ts +0 -33
  271. package/es/components/shoppingCart/mock.d.ts +0 -40
  272. package/es/components/shoppingCart/status.d.ts +0 -2
  273. package/es/components/shoppingCart/type.d.ts +0 -48
  274. package/es/components/shoppingCart/utils.d.ts +0 -63
  275. package/es/components/subTotal/index.d.ts +0 -22
  276. package/es/components/subTotal/locales.d.ts +0 -42
  277. package/es/components/taxSelect/index.d.ts +0 -11
  278. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
  279. package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -3
  280. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -12
  281. package/es/components/ticketBooking/data.d.ts +0 -58
  282. package/es/components/ticketBooking/hooks/useNetworkStatus.d.ts +0 -11
  283. package/es/components/ticketBooking/miniRedux.d.ts +0 -22
  284. package/es/components/wallet/Detail/index.d.ts +0 -42
  285. package/es/components/wallet/Detail/locales.d.ts +0 -96
  286. package/es/components/wallet/Detail/model.d.ts +0 -13
  287. package/es/components/wallet/Detail/serve.d.ts +0 -39
  288. package/es/components/wallet/DetailContext.d.ts +0 -25
  289. package/es/components/wallet/DiscountCard/index.d.ts +0 -3
  290. package/es/components/wallet/DiscountCard/model.d.ts +0 -14
  291. package/es/components/wallet/PointCard/index.d.ts +0 -3
  292. package/es/components/wallet/PointCard/model.d.ts +0 -13
  293. package/es/components/wallet/RechargeableCard/index.d.ts +0 -13
  294. package/es/components/wallet/RechargeableCard/model.d.ts +0 -29
  295. package/es/components/wallet/RechargeableCard/serve.d.ts +0 -23
  296. package/es/components/wallet/Voucher/index.d.ts +0 -12
  297. package/es/components/wallet/Voucher/locales.d.ts +0 -21
  298. package/es/components/wallet/Voucher/model.d.ts +0 -13
  299. package/es/components/wallet/components/FooterButtons/index.d.ts +0 -18
  300. package/es/components/wallet/components/WalletBar/index.d.ts +0 -8
  301. package/es/components/wallet/components/WalletCard.d.ts +0 -11
  302. package/es/components/wallet/components/index.d.ts +0 -2
  303. package/es/components/wallet/hooks/useWalletCard.d.ts +0 -33
  304. package/es/components/wallet/index.d.ts +0 -10
  305. package/es/components/wallet/locales.d.ts +0 -132
  306. package/es/components/wallet/model.d.ts +0 -37
  307. package/es/components/wallet/serve.d.ts +0 -143
  308. package/es/components/wallet/utils/formatUtils.d.ts +0 -36
  309. package/es/components/walletList/index.d.ts +0 -28
  310. package/es/components/walletList/model.d.ts +0 -6
  311. package/es/components/walletList/serve.d.ts +0 -12
  312. package/es/components/walletList/types/index.d.ts +0 -194
  313. package/es/components/workSpaceList/components/AppearanceEdit/IconPanel.d.ts +0 -11
  314. package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
  315. package/es/components/workSpaceList/components/Card/constants.d.ts +0 -2
  316. package/es/components/workSpaceList/components/EditableString/index.d.ts +0 -21
  317. package/es/components/workSpaceList/components/SearchBar/index.d.ts +0 -17
  318. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -3
  319. package/es/components/workSpaceList/components/Sort/index.d.ts +0 -7
  320. package/es/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
  321. package/es/hooks/useEngineContext.d.ts +0 -10
  322. package/es/hooks/useLocale.d.ts +0 -2
  323. package/es/hooks/useLoginUser.d.ts +0 -2
  324. package/es/index.d.ts +0 -45
  325. package/es/utils/date.d.ts +0 -11
  326. package/es/utils/index.d.ts +0 -23
  327. package/es/utils/locales.d.ts +0 -1
  328. package/es/utils/tasks/index.d.ts +0 -16
  329. package/es/utils/tasks/type.d.ts +0 -4
  330. package/lib/businessModel/SalesModel/Sales/index.d.ts +0 -24
  331. package/lib/businessModel/SalesModel/hooks/index.d.ts +0 -1
  332. package/lib/businessModel/SalesModel/index.d.ts +0 -3
  333. package/lib/businessModel/index.d.ts +0 -0
  334. package/lib/components/Sales/Cart/index.d.ts +0 -53
  335. package/lib/components/Sales/Cart/serve.d.ts +0 -2
  336. package/lib/components/Sales/Cart/types.d.ts +0 -31
  337. package/lib/components/Sales/Cart/utils.d.ts +0 -23
  338. package/lib/components/Sales/Checkout/index.d.ts +0 -33
  339. package/lib/components/Sales/Checkout/serve.d.ts +0 -2
  340. package/lib/components/Sales/Checkout/utils.d.ts +0 -35
  341. package/lib/components/Sales/Customer/index.d.ts +0 -24
  342. package/lib/components/Sales/Event/Detail.d.ts +0 -29
  343. package/lib/components/Sales/Event/index.d.ts +0 -30
  344. package/lib/components/Sales/Event/serve.d.ts +0 -39
  345. package/lib/components/Sales/Holder/index.d.ts +0 -33
  346. package/lib/components/Sales/Holder/serve.d.ts +0 -8
  347. package/lib/components/Sales/Init/index.d.ts +0 -25
  348. package/lib/components/Sales/Init/serve.d.ts +0 -3
  349. package/lib/components/Sales/Resource/index.d.ts +0 -26
  350. package/lib/components/Sales/Resource/serve.d.ts +0 -5
  351. package/lib/components/Sales/Step/index.d.ts +0 -39
  352. package/lib/components/Sales/Summary/index.d.ts +0 -25
  353. package/lib/components/Sales/Summary/serve.d.ts +0 -0
  354. package/lib/components/Sales/Summary/utils.d.ts +0 -36
  355. package/lib/components/Sales/hooks/index.d.ts +0 -1
  356. package/lib/components/Sales/index.d.ts +0 -20
  357. package/lib/components/Sales/utils/index.d.ts +0 -1
  358. package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +0 -7
  359. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -3
  360. package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -3
  361. package/lib/components/appointmentBooking/components/Cart/utils.d.ts +0 -56
  362. package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +0 -4
  363. package/lib/components/appointmentBooking/components/ConfirmInformation/utils.d.ts +0 -12
  364. package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -3
  365. package/lib/components/appointmentBooking/components/Date/index.d.ts +0 -4
  366. package/lib/components/appointmentBooking/components/Date/state.d.ts +0 -63
  367. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -3
  368. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -3
  369. package/lib/components/appointmentBooking/components/Form/index.d.ts +0 -4
  370. package/lib/components/appointmentBooking/components/Form/utils.d.ts +0 -8
  371. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -3
  372. package/lib/components/appointmentBooking/components/Guest/index.d.ts +0 -4
  373. package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -3
  374. package/lib/components/appointmentBooking/components/Resource/utils.d.ts +0 -5
  375. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
  376. package/lib/components/appointmentBooking/deposit/index.d.ts +0 -3
  377. package/lib/components/appointmentBooking/index.d.ts +0 -3
  378. package/lib/components/appointmentBooking/locales.d.ts +0 -354
  379. package/lib/components/appointmentBooking/mock.d.ts +0 -627
  380. package/lib/components/appointmentBooking/status.d.ts +0 -21
  381. package/lib/components/appointmentBooking/type.d.ts +0 -17
  382. package/lib/components/booking/components/customSelect/index.d.ts +0 -38
  383. package/lib/components/booking/components/voucher/index.d.ts +0 -3
  384. package/lib/components/booking/deposit/DepositItem/index.d.ts +0 -25
  385. package/lib/components/booking/forms/footer.d.ts +0 -6
  386. package/lib/components/booking/forms/sendModal/index.d.ts +0 -27
  387. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -9
  388. package/lib/components/booking/forms/single/index.d.ts +0 -10
  389. package/lib/components/booking/hooks/useCreateBookingPageHeader.d.ts +0 -6
  390. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  391. package/lib/components/booking/info/Provider.d.ts +0 -0
  392. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -6
  393. package/lib/components/booking/info/clientVariant/utils.d.ts +0 -1
  394. package/lib/components/booking/info/hooks/useGetHolderList.d.ts +0 -2
  395. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
  396. package/lib/components/booking/info/index.d.ts +0 -3
  397. package/lib/components/booking/info/model.d.ts +0 -14
  398. package/lib/components/booking/info/pet/ChangePetModal/index.d.ts +0 -4
  399. package/lib/components/booking/info/service/editService/EditTabs/index.d.ts +0 -3
  400. package/lib/components/booking/info/service/index.d.ts +0 -4
  401. package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
  402. package/lib/components/booking/info/service/serviceManager/utils.d.ts +0 -0
  403. package/lib/components/booking/info/service2/index.d.ts +0 -6
  404. package/lib/components/booking/info/service2/status.d.ts +0 -31
  405. package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +0 -7
  406. package/lib/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
  407. package/lib/components/booking/info2/service/editService/utils.d.ts +0 -13
  408. package/lib/components/booking/info2/service/index.d.ts +0 -4
  409. package/lib/components/booking/info2/utils.d.ts +0 -4
  410. package/lib/components/booking/locales.d.ts +0 -813
  411. package/lib/components/booking/materiels/contacts/index.d.ts +0 -15
  412. package/lib/components/booking/materiels/holder/index.d.ts +0 -6
  413. package/lib/components/booking/model.d.ts +0 -115
  414. package/lib/components/booking/notes/addNote/index.d.ts +0 -3
  415. package/lib/components/booking/payments/index.d.ts +0 -9
  416. package/lib/components/eftpos/index.d.ts +0 -46
  417. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -3
  418. package/lib/components/eftposPay/component/fail/index.d.ts +0 -3
  419. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -9
  420. package/lib/components/eftposPay/hooks.d.ts +0 -35
  421. package/lib/components/eftposPay/index.d.ts +0 -4
  422. package/lib/components/eftposPay/locales.d.ts +0 -330
  423. package/lib/components/eftposPay/pay.d.ts +0 -20
  424. package/lib/components/eftposPay/payo/config.d.ts +0 -12
  425. package/lib/components/eftposPay/payo/hooks.d.ts +0 -10
  426. package/lib/components/eftposPay/tyro/index.d.ts +0 -9
  427. package/lib/components/eftposPay/windcave/helper.d.ts +0 -23
  428. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -6
  429. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -3
  430. package/lib/components/eventBooking/components/OpenCard/index.d.ts +0 -4
  431. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -3
  432. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -3
  433. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -3
  434. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -3
  435. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -3
  436. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -3
  437. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -3
  438. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -3
  439. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -3
  440. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -3
  441. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -3
  442. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -3
  443. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -2
  444. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -3
  445. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -2
  446. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
  447. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -10
  448. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -3
  449. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -12
  450. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
  451. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
  452. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
  453. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
  454. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
  455. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
  456. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
  457. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
  458. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -4
  459. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -2
  460. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -2
  461. package/lib/components/eventBooking/components/bookingDetailModal/index.d.ts +0 -7
  462. package/lib/components/eventBooking/components/bookingServiceList/index.d.ts +0 -17
  463. package/lib/components/eventBooking/components/eventCard/index.d.ts +0 -14
  464. package/lib/components/eventBooking/components/productCard/index.d.ts +0 -16
  465. package/lib/components/eventBooking/components/progressBar/index.d.ts +0 -16
  466. package/lib/components/eventBooking/components/resourceDisplay/index.d.ts +0 -23
  467. package/lib/components/eventBooking/components/resourceUsability/index.d.ts +0 -12
  468. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -9
  469. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -12
  470. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -3
  471. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.d.ts +0 -9
  472. package/lib/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -14
  473. package/lib/components/eventBooking/components/selectHolder/index.d.ts +0 -22
  474. package/lib/components/eventBooking/components/timeResourceSelector/index.d.ts +0 -20
  475. package/lib/components/eventBooking/index.d.ts +0 -3
  476. package/lib/components/eventBooking/locales.d.ts +0 -222
  477. package/lib/components/eventBooking/mock.d.ts +0 -627
  478. package/lib/components/eventBooking/status.d.ts +0 -21
  479. package/lib/components/eventBooking/type.d.ts +0 -17
  480. package/lib/components/eventBooking/utils.d.ts +0 -45
  481. package/lib/components/index.d.ts +0 -18
  482. package/lib/components/login/index.d.ts +0 -8
  483. package/lib/components/login/locales.d.ts +0 -24
  484. package/lib/components/pay/toC/PaymentList/index.d.ts +0 -19
  485. package/lib/components/pay/toC/PaymentList/serve.d.ts +0 -28
  486. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
  487. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +0 -2
  488. package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +0 -10
  489. package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +0 -2
  490. package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +0 -2
  491. package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +0 -10
  492. package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +0 -2
  493. package/lib/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +0 -2
  494. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
  495. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +0 -2
  496. package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +0 -10
  497. package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +0 -2
  498. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -18
  499. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -25
  500. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -113
  501. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +0 -3
  502. package/lib/components/pay/toC/PaymentMethods/index.d.ts +0 -9
  503. package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.d.ts +0 -16
  504. package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.d.ts +0 -17
  505. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -7
  506. package/lib/components/pay/toC/WalletPassBlock/index.d.ts +0 -21
  507. package/lib/components/pay/toC/index.d.ts +0 -3
  508. package/lib/components/pay/toC/locales.d.ts +0 -286
  509. package/lib/components/pay/toC/model.d.ts +0 -39
  510. package/lib/components/pay/toC/serve.d.ts +0 -57
  511. package/lib/components/pay/toC/utils.d.ts +0 -51
  512. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
  513. package/lib/components/pisellSelectCustomerModal/index.d.ts +0 -15
  514. package/lib/components/productExtension/index.d.ts +0 -7
  515. package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -2
  516. package/lib/components/productSelect/components/gridLayout/index.d.ts +0 -9
  517. package/lib/components/productSelect/components/productGroup/index.d.ts +0 -38
  518. package/lib/components/productSelect/hooks/useToken.d.ts +0 -18
  519. package/lib/components/productSelect/locales.d.ts +0 -18
  520. package/lib/components/productSelect/mock.d.ts +0 -134
  521. package/lib/components/productSelect/theme/token.d.ts +0 -17
  522. package/lib/components/ruleSetting/index.d.ts +0 -9
  523. package/lib/components/ruleSetting/server.d.ts +0 -4
  524. package/lib/components/schedules/index.d.ts +0 -3
  525. package/lib/components/schedules/schedules/utils.d.ts +0 -72
  526. package/lib/components/shoppingCart/Provider.d.ts +0 -3
  527. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -3
  528. package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -3
  529. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -3
  530. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -3
  531. package/lib/components/shoppingCart/components/SelectHolderModal/index.d.ts +0 -4
  532. package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -2
  533. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -2
  534. package/lib/components/shoppingCart/hooks/useContext.d.ts +0 -1
  535. package/lib/components/shoppingCart/index.d.ts +0 -3
  536. package/lib/components/shoppingCart/locales.d.ts +0 -33
  537. package/lib/components/shoppingCart/mock.d.ts +0 -40
  538. package/lib/components/shoppingCart/status.d.ts +0 -2
  539. package/lib/components/shoppingCart/type.d.ts +0 -48
  540. package/lib/components/shoppingCart/utils.d.ts +0 -63
  541. package/lib/components/subTotal/index.d.ts +0 -22
  542. package/lib/components/subTotal/locales.d.ts +0 -42
  543. package/lib/components/taxSelect/index.d.ts +0 -11
  544. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
  545. package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -3
  546. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -12
  547. package/lib/components/ticketBooking/data.d.ts +0 -58
  548. package/lib/components/ticketBooking/hooks/useNetworkStatus.d.ts +0 -11
  549. package/lib/components/ticketBooking/miniRedux.d.ts +0 -22
  550. package/lib/components/wallet/Detail/index.d.ts +0 -42
  551. package/lib/components/wallet/Detail/locales.d.ts +0 -96
  552. package/lib/components/wallet/Detail/model.d.ts +0 -13
  553. package/lib/components/wallet/Detail/serve.d.ts +0 -39
  554. package/lib/components/wallet/DetailContext.d.ts +0 -25
  555. package/lib/components/wallet/DiscountCard/index.d.ts +0 -3
  556. package/lib/components/wallet/DiscountCard/model.d.ts +0 -14
  557. package/lib/components/wallet/PointCard/index.d.ts +0 -3
  558. package/lib/components/wallet/PointCard/model.d.ts +0 -13
  559. package/lib/components/wallet/RechargeableCard/index.d.ts +0 -13
  560. package/lib/components/wallet/RechargeableCard/model.d.ts +0 -29
  561. package/lib/components/wallet/RechargeableCard/serve.d.ts +0 -23
  562. package/lib/components/wallet/Voucher/index.d.ts +0 -12
  563. package/lib/components/wallet/Voucher/locales.d.ts +0 -21
  564. package/lib/components/wallet/Voucher/model.d.ts +0 -13
  565. package/lib/components/wallet/components/FooterButtons/index.d.ts +0 -18
  566. package/lib/components/wallet/components/WalletBar/index.d.ts +0 -8
  567. package/lib/components/wallet/components/WalletCard.d.ts +0 -11
  568. package/lib/components/wallet/components/index.d.ts +0 -2
  569. package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -33
  570. package/lib/components/wallet/index.d.ts +0 -10
  571. package/lib/components/wallet/locales.d.ts +0 -132
  572. package/lib/components/wallet/model.d.ts +0 -37
  573. package/lib/components/wallet/serve.d.ts +0 -143
  574. package/lib/components/wallet/utils/formatUtils.d.ts +0 -36
  575. package/lib/components/walletList/index.d.ts +0 -28
  576. package/lib/components/walletList/model.d.ts +0 -6
  577. package/lib/components/walletList/serve.d.ts +0 -12
  578. package/lib/components/walletList/types/index.d.ts +0 -194
  579. package/lib/components/workSpaceList/components/AppearanceEdit/IconPanel.d.ts +0 -11
  580. package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
  581. package/lib/components/workSpaceList/components/Card/constants.d.ts +0 -2
  582. package/lib/components/workSpaceList/components/EditableString/index.d.ts +0 -21
  583. package/lib/components/workSpaceList/components/SearchBar/index.d.ts +0 -17
  584. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -3
  585. package/lib/components/workSpaceList/components/Sort/index.d.ts +0 -7
  586. package/lib/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
  587. package/lib/hooks/useEngineContext.d.ts +0 -10
  588. package/lib/hooks/useLocale.d.ts +0 -2
  589. package/lib/hooks/useLoginUser.d.ts +0 -2
  590. package/lib/index.d.ts +0 -45
  591. package/lib/utils/date.d.ts +0 -11
  592. package/lib/utils/index.d.ts +0 -23
  593. package/lib/utils/locales.d.ts +0 -1
  594. package/lib/utils/tasks/index.d.ts +0 -16
  595. package/lib/utils/tasks/type.d.ts +0 -4
  596. /package/es/components/{booking/components/footer/AppointmentProductModal → ticketBooking/components/notAvailable}/index.d.ts +0 -0
  597. /package/lib/components/{booking/components/footer/AppointmentProductModal → ticketBooking/components/notAvailable}/index.d.ts +0 -0
@@ -197,6 +197,9 @@ var CartItem = function CartItem(_ref) {
197
197
  };
198
198
  var products = useMemo(function () {
199
199
  if (!(carts !== null && carts !== void 0 && carts.length)) return [];
200
+ carts.forEach(function (item) {
201
+ item.isShowChangeHolder = !appointmentBooking.isTargetCartIdNormalProduct(item === null || item === void 0 ? void 0 : item._id);
202
+ });
200
203
  if ((currentSelectedResources === null || currentSelectedResources === void 0 ? void 0 : currentSelectedResources.length) > 0) {
201
204
  var newCarts = carts.map(function (item) {
202
205
  var currentResourceData = currentSelectedResources.find(function (resource) {
@@ -125,8 +125,11 @@ var Resource = /*#__PURE__*/forwardRef(function (props, ref) {
125
125
  return currentAppointmentBoard(currentStepParams.key, resources, appointmentBooking);
126
126
  }, [currentStepParams.key, resources]);
127
127
  var renderLists = useMemo(function () {
128
- // 如果购物车有多个,则不显示左侧内容
129
- if (carts.length > 1 || !(carts !== null && carts !== void 0 && carts.length)) {
128
+ // 如果购物车有多个预约类商品,则不显示左侧内容
129
+ var appointmentCarts = carts.filter(function (n) {
130
+ return !(appointmentBooking !== null && appointmentBooking !== void 0 && appointmentBooking.isTargetCartIdNormalProduct(n._id));
131
+ });
132
+ if (appointmentCarts.length > 1 || !(appointmentCarts !== null && appointmentCarts !== void 0 && appointmentCarts.length)) {
130
133
  return [];
131
134
  }
132
135
  return currentRenderLists(resources, appointmentBoard === null || appointmentBoard === void 0 ? void 0 : appointmentBoard.form_code);
@@ -190,16 +193,25 @@ var Resource = /*#__PURE__*/forwardRef(function (props, ref) {
190
193
  var _onClick = function onClick(e) {
191
194
  setSelectedResource(e.id);
192
195
  if (e.id) {
193
- var _carts$;
196
+ var _carts$index;
197
+ // 能够被点击的情况
198
+ // 1. 购物车里只有一个预约类商品
199
+ // 2. 购物车里有多个商品,但只有一个预约类商品
200
+ var index = carts.findIndex(function (n) {
201
+ return !(appointmentBooking !== null && appointmentBooking !== void 0 && appointmentBooking.isTargetCartIdNormalProduct(n._id));
202
+ });
194
203
  return appointmentBooking.updateCart({
195
- _id: carts === null || carts === void 0 || (_carts$ = carts[0]) === null || _carts$ === void 0 ? void 0 : _carts$._id,
196
- resources: updateCartResources(carts === null || carts === void 0 ? void 0 : carts[0], e)
204
+ _id: carts === null || carts === void 0 || (_carts$index = carts[index]) === null || _carts$index === void 0 ? void 0 : _carts$index._id,
205
+ resources: updateCartResources(carts === null || carts === void 0 ? void 0 : carts[index], e)
197
206
  });
198
207
  }
199
208
  };
200
209
  useEffect(function () {
201
- var _carts$2;
202
- var selectedResource = carts === null || carts === void 0 || (_carts$2 = carts[0]) === null || _carts$2 === void 0 || (_carts$2 = _carts$2._origin) === null || _carts$2 === void 0 || (_carts$2 = _carts$2.resources) === null || _carts$2 === void 0 ? void 0 : _carts$2.find(function (item) {
210
+ var _carts$index2;
211
+ var index = carts.findIndex(function (n) {
212
+ return !(appointmentBooking !== null && appointmentBooking !== void 0 && appointmentBooking.isTargetCartIdNormalProduct(n._id));
213
+ });
214
+ var selectedResource = carts === null || carts === void 0 || (_carts$index2 = carts[index]) === null || _carts$index2 === void 0 || (_carts$index2 = _carts$index2._origin) === null || _carts$index2 === void 0 || (_carts$index2 = _carts$index2.resources) === null || _carts$index2 === void 0 ? void 0 : _carts$index2.find(function (item) {
203
215
  return (item === null || item === void 0 ? void 0 : item.form_id) === (appointmentBoard === null || appointmentBoard === void 0 ? void 0 : appointmentBoard.form_id);
204
216
  });
205
217
  setSelectedResource((selectedResource === null || selectedResource === void 0 ? void 0 : selectedResource.id) || 0);
@@ -162,7 +162,7 @@ var Services = /*#__PURE__*/forwardRef(function (props, ref) {
162
162
  activeStatus = resources.find(function (item) {
163
163
  return item.status === 1;
164
164
  });
165
- if (activeStatus) {
165
+ if (!(!activeStatus && !appointmentBooking.isTargetNormalProduct(data === null || data === void 0 ? void 0 : data.origin))) {
166
166
  _context.next = 24;
167
167
  break;
168
168
  }
@@ -68,11 +68,14 @@ var TimeSlicing = /*#__PURE__*/forwardRef(function (props, ref) {
68
68
  };
69
69
  }();
70
70
  useEffect(function () {
71
- if ((times === null || times === void 0 ? void 0 : times.length) > 0 && (carts === null || carts === void 0 ? void 0 : carts.length) > 0) {
72
- var _carts$, _times$, _carts$2;
73
- var startTime = (carts === null || carts === void 0 || (_carts$ = carts[0]) === null || _carts$ === void 0 ? void 0 : _carts$.start_time) || (times === null || times === void 0 || (_times$ = times[0]) === null || _times$ === void 0 ? void 0 : _times$.start_time);
71
+ var appoimentBookingProductCart = carts.filter(function (item) {
72
+ return !appointmentBooking.isTargetCartIdNormalProduct(item === null || item === void 0 ? void 0 : item._id);
73
+ });
74
+ if ((times === null || times === void 0 ? void 0 : times.length) > 0 && (appoimentBookingProductCart === null || appoimentBookingProductCart === void 0 ? void 0 : appoimentBookingProductCart.length) > 0) {
75
+ var _appoimentBookingProd, _times$, _appoimentBookingProd2;
76
+ var startTime = (appoimentBookingProductCart === null || appoimentBookingProductCart === void 0 || (_appoimentBookingProd = appoimentBookingProductCart[0]) === null || _appoimentBookingProd === void 0 ? void 0 : _appoimentBookingProd.start_time) || (times === null || times === void 0 || (_times$ = times[0]) === null || _times$ === void 0 ? void 0 : _times$.start_time);
74
77
  setSelectedResource(startTime);
75
- if (carts !== null && carts !== void 0 && (_carts$2 = carts[0]) !== null && _carts$2 !== void 0 && _carts$2.start_time) return;
78
+ if (appoimentBookingProductCart !== null && appoimentBookingProductCart !== void 0 && (_appoimentBookingProd2 = appoimentBookingProductCart[0]) !== null && _appoimentBookingProd2 !== void 0 && _appoimentBookingProd2.start_time) return;
76
79
 
77
80
  // 如果没有选择时间,则默认选中第一个时间
78
81
  getAutoSelect(times === null || times === void 0 ? void 0 : times[0]);
@@ -97,6 +97,7 @@ var VoucherCard = function VoucherCard(props) {
97
97
  var _item$_origin;
98
98
  return {
99
99
  _id: item._id,
100
+ quantity: item.num,
100
101
  bundle: item._bundleOrigin,
101
102
  options: item._optionsOrigin,
102
103
  product: _objectSpread({}, item._productOrigin),
@@ -119,6 +120,7 @@ var VoucherCard = function VoucherCard(props) {
119
120
  batchUpdateCart(result.productList);
120
121
  });
121
122
  pisellos.effects.on('appointmentBooking_cart:onAddItem', onCartChange);
123
+ pisellos.effects.on('appointmentBooking_cart:onUpdateQuotationPrice', onCartChange);
122
124
  pisellos.effects.on('appointmentBooking_cart:onRemoveItem', onCartChange);
123
125
  pisellos.effects.on(ShopDiscountHooks.onDiscountListChange, function (discount) {
124
126
  console.log(discount, 'discountChange');
@@ -166,11 +166,15 @@ export var AppointmentBookingProvider = function AppointmentBookingProvider(_ref
166
166
  if (!(carts !== null && carts !== void 0 && carts.length) || !(resources !== null && resources !== void 0 && resources.length)) {
167
167
  return setCurrentSelectedResources(null);
168
168
  }
169
- var _currentSelectedResources = carts.map(function (item) {
170
- return {
169
+ var _currentSelectedResources = [];
170
+ carts.forEach(function (item) {
171
+ if (appointmentBooking.isTargetCartIdNormalProduct(item === null || item === void 0 ? void 0 : item._id)) {
172
+ return;
173
+ }
174
+ _currentSelectedResources.push({
171
175
  _id: item === null || item === void 0 ? void 0 : item._id,
172
176
  currentSelectedResource: getCartCurrentResourceData(item, currentStepParams === null || currentStepParams === void 0 ? void 0 : currentStepParams.key, resources)
173
- };
177
+ });
174
178
  });
175
179
  setCurrentSelectedResources(_currentSelectedResources);
176
180
 
@@ -140,17 +140,74 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
140
140
  var _nextStep, _nextStep2, _nextStep3;
141
141
  var stepList = appointmentBooking.getStepList() || [];
142
142
  var currentKey = currentStepParams === null || currentStepParams === void 0 ? void 0 : currentStepParams.key;
143
- var nextStep = stepList[(currentStepParams === null || currentStepParams === void 0 ? void 0 : currentStepParams.index) + 1];
144
143
  var currentSelectedResources = appointmentBooking.getOtherData('current_selected_resources');
145
144
 
145
+ // 先确定点击时的步骤,如果当前步骤是选择服务
146
+ if (!isRetailTemplate && currentKey === "select-service") {
147
+ var _appointmentBooking$o, _stepList, _stepList2;
148
+ var _ref3 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o = appointmentBooking.otherParams) === null || _appointmentBooking$o === void 0 ? void 0 : _appointmentBooking$o.productModuleParams) || {},
149
+ bookingProcess = _ref3.bookingProcess;
150
+ var isDateSelectedFirst = bookingProcess === "date_first";
151
+ var hasResourceStep = (_stepList = stepList) === null || _stepList === void 0 ? void 0 : _stepList.find(function (item) {
152
+ return (item === null || item === void 0 ? void 0 : item.key) === "select-resource";
153
+ });
154
+ var hasSelectGuestStep = (_stepList2 = stepList) === null || _stepList2 === void 0 || (_stepList2 = _stepList2.find(function (item) {
155
+ return (item === null || item === void 0 ? void 0 : item.key) === "select-guest";
156
+ })) === null || _stepList2 === void 0 ? void 0 : _stepList2.key;
157
+ // 判断购物车里是否全是是普通商品
158
+ var isAllNormalProduct = appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.isCartAllNormalProducts();
159
+ if (isAllNormalProduct) {
160
+ removeStep("select-resource");
161
+ removeStep("select-time");
162
+ removeStep('fill-form');
163
+ if (!isDateSelectedFirst) {
164
+ removeStep("select-date");
165
+ }
166
+ } else if (!hasResourceStep) {
167
+ // 如果不全是普通商品,并且还没有选择资源步骤,证明之前被删除过,要给她加回来
168
+ // 判断当前步骤里有没有添加预约人,如果有的话则应该是在添加预约人之后添加步骤
169
+ var targetKey = hasSelectGuestStep ? hasSelectGuestStep : "select-service";
170
+ var isHasDurationProduct = appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.isCartHasDurationProduct();
171
+ // 如果购物车里有 duration 商品(目前来说,只能是纯 duration 商品)
172
+ if (isHasDurationProduct) {
173
+ // 如果是先选商品,则添加日期、资源、时间步骤
174
+ if (!isDateSelectedFirst) {
175
+ appointmentBooking.addStep({
176
+ key: "select-date",
177
+ description: locales.getText("pisell2.appointment.select.date")
178
+ }, targetKey);
179
+ targetKey = "select-date";
180
+ }
181
+ // 如果是先选日期,则添加资源、时间
182
+ appointmentBooking.addStep({
183
+ key: "select-resource",
184
+ description: locales.getText("pisell2.appointment.select.resource")
185
+ }, targetKey);
186
+ targetKey = "select-resource";
187
+ appointmentBooking.addStep({
188
+ key: "select-time",
189
+ description: locales.getText("pisell2.appointment.select.time")
190
+ }, targetKey);
191
+ } else {
192
+ // 如果购物车里是session 商品,则只添加选择资源步骤
193
+ appointmentBooking.addStep({
194
+ key: "select-resource",
195
+ description: locales.getText("pisell2.appointment.select.resource")
196
+ }, targetKey);
197
+ }
198
+ }
199
+ stepList = (appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.getStepList()) || [];
200
+ }
201
+ var nextStep = stepList[(currentStepParams === null || currentStepParams === void 0 ? void 0 : currentStepParams.index) + 1];
202
+
146
203
  // 判断选定的日期是否存在可用的预约
147
- if (((_nextStep = nextStep) === null || _nextStep === void 0 ? void 0 : _nextStep.key) === 'select-resource') {
204
+ if (!isRetailTemplate && ((_nextStep = nextStep) === null || _nextStep === void 0 ? void 0 : _nextStep.key) === 'select-resource') {
148
205
  var result = appointmentBooking.checkResourceListForDate();
149
206
  if (!result) {
150
207
  return Toast(locales.getText('pisell2.appointment.unuse.date'));
151
208
  }
152
209
  }
153
- if (currentKey !== null && currentKey !== void 0 && currentKey.startsWith('select-resource')) {
210
+ if (!isRetailTemplate && currentKey !== null && currentKey !== void 0 && currentKey.startsWith('select-resource')) {
154
211
  var _currentSelectedResou;
155
212
  // 1. 检测购物车中是否选择了资源
156
213
  var _checkAndMarkCartRend = checkAndMarkCartRenderError(currentSelectedResources, appointmentBooking, utils),
@@ -161,7 +218,6 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
161
218
  scrollToFirstErrorCard();
162
219
  return;
163
220
  }
164
-
165
221
  // 2. 插入表单步骤
166
222
  currentSelectedResources === null || currentSelectedResources === void 0 || currentSelectedResources.forEach(function (cart) {
167
223
  var _selectedResource$ren, _selectedResource$ren2;
@@ -199,8 +255,8 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
199
255
 
200
256
  // 如果有下一个资源数据,则插入下一个资源步骤
201
257
  if (nextResource) {
202
- var _stepList;
203
- var beforeKey = (_stepList = stepList[stepList.length - 2]) === null || _stepList === void 0 ? void 0 : _stepList.key;
258
+ var _stepList3;
259
+ var beforeKey = (_stepList3 = stepList[stepList.length - 2]) === null || _stepList3 === void 0 ? void 0 : _stepList3.key;
204
260
  appointmentBooking.addStep({
205
261
  key: resourceKey,
206
262
  description: ''
@@ -224,10 +280,13 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
224
280
  setLoading(false);
225
281
 
226
282
  // 零售订单不需要验证holder
227
- if (isRetailTemplate) {
283
+ if (isRetailTemplate || appointmentBooking !== null && appointmentBooking !== void 0 && appointmentBooking.isCartAllNormalProducts()) {
228
284
  return appointmentBooking.next();
229
285
  }
230
- var _checkAndGoNext = checkAndGoNext(isFormSubject, checkAccount, carts),
286
+ var appoimentCarts = carts.filter(function (n) {
287
+ return !(appointmentBooking !== null && appointmentBooking !== void 0 && appointmentBooking.isTargetCartIdNormalProduct(n._id));
288
+ });
289
+ var _checkAndGoNext = checkAndGoNext(isFormSubject, checkAccount, appoimentCarts),
231
290
  hasError = _checkAndGoNext.hasError;
232
291
  setIsErrorHolder(hasError);
233
292
  if (hasError) {
@@ -246,7 +305,7 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
246
305
 
247
306
  // 检测是否登录
248
307
  var checkLogin = /*#__PURE__*/function () {
249
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
308
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
250
309
  var accountLists;
251
310
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
252
311
  while (1) switch (_context2.prev = _context2.next) {
@@ -290,7 +349,7 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
290
349
  }, _callee2);
291
350
  }));
292
351
  return function checkLogin() {
293
- return _ref3.apply(this, arguments);
352
+ return _ref4.apply(this, arguments);
294
353
  };
295
354
  }();
296
355
 
@@ -334,17 +393,17 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
334
393
  * @Date: 2025-04-15 11:12
335
394
  */
336
395
  export var useAppointmentBookingProduct = function useAppointmentBookingProduct() {
337
- var _ref4 = useAppointmentBookingContext(),
338
- appointmentBooking = _ref4.appointmentBooking;
339
- var _ref5 = (appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.otherParams) || {},
340
- productModuleParams = _ref5.productModuleParams;
341
- var _ref6 = productModuleParams || {},
342
- bookingProcess = _ref6.bookingProcess;
396
+ var _ref5 = useAppointmentBookingContext(),
397
+ appointmentBooking = _ref5.appointmentBooking;
398
+ var _ref6 = (appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.otherParams) || {},
399
+ productModuleParams = _ref6.productModuleParams;
400
+ var _ref7 = productModuleParams || {},
401
+ bookingProcess = _ref7.bookingProcess;
343
402
 
344
403
  // 获取商品列表
345
404
  var getProducts = /*#__PURE__*/function () {
346
- var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
347
- var _dates$, dates, _ref8, _productModuleParams, _productList, _ref9, productModuleParams, productList;
405
+ var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
406
+ var _dates$, dates, _ref9, _productModuleParams, _productList, _ref10, productModuleParams, productList;
348
407
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
349
408
  while (1) switch (_context3.prev = _context3.next) {
350
409
  case 0:
@@ -362,7 +421,7 @@ export var useAppointmentBookingProduct = function useAppointmentBookingProduct(
362
421
  }
363
422
  return _context3.abrupt("return");
364
423
  case 6:
365
- _ref8 = (appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.otherParams) || {}, _productModuleParams = _ref8.productModuleParams;
424
+ _ref9 = (appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.otherParams) || {}, _productModuleParams = _ref9.productModuleParams;
366
425
  _context3.next = 9;
367
426
  return appointmentBooking.loadProductByScheduleDate(_objectSpread({
368
427
  date: (_dates$ = dates[0]) === null || _dates$ === void 0 ? void 0 : _dates$.date
@@ -372,7 +431,7 @@ export var useAppointmentBookingProduct = function useAppointmentBookingProduct(
372
431
  return _context3.abrupt("return", _productList);
373
432
  case 11:
374
433
  // 先选商品
375
- _ref9 = (appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.otherParams) || {}, productModuleParams = _ref9.productModuleParams;
434
+ _ref10 = (appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.otherParams) || {}, productModuleParams = _ref10.productModuleParams;
376
435
  _context3.next = 14;
377
436
  return appointmentBooking.loadProducts(productModuleParams);
378
437
  case 14:
@@ -385,13 +444,13 @@ export var useAppointmentBookingProduct = function useAppointmentBookingProduct(
385
444
  }, _callee3);
386
445
  }));
387
446
  return function getProducts() {
388
- return _ref7.apply(this, arguments);
447
+ return _ref8.apply(this, arguments);
389
448
  };
390
449
  }();
391
450
 
392
451
  // 检测商品类型
393
452
  var checkProductType = /*#__PURE__*/function () {
394
- var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(productId) {
453
+ var _ref11 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(productId) {
395
454
  var result;
396
455
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
397
456
  while (1) switch (_context4.prev = _context4.next) {
@@ -408,7 +467,7 @@ export var useAppointmentBookingProduct = function useAppointmentBookingProduct(
408
467
  }, _callee4);
409
468
  }));
410
469
  return function checkProductType(_x2) {
411
- return _ref10.apply(this, arguments);
470
+ return _ref11.apply(this, arguments);
412
471
  };
413
472
  }();
414
473
  return {
@@ -425,18 +484,18 @@ export var useAppointmentBookingProduct = function useAppointmentBookingProduct(
425
484
  * @Date: 2025-04-15 11:12
426
485
  */
427
486
  export var useAppointmentBookingCart = function useAppointmentBookingCart() {
428
- var _appointmentBooking$o;
487
+ var _appointmentBooking$o2;
429
488
  var pisellOS = usePisellOS();
430
489
  var utils = contextUtils();
431
- var _ref11 = useAppointmentBookingContext(),
432
- appointmentBooking = _ref11.appointmentBooking,
433
- setCarts = _ref11.setCarts,
434
- setSummary = _ref11.setSummary,
435
- setIsAgreeDepositPolicy = _ref11.setIsAgreeDepositPolicy;
436
- var _ref12 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o = appointmentBooking.otherParams) === null || _appointmentBooking$o === void 0 ? void 0 : _appointmentBooking$o.productModuleParams) || {},
437
- bookingSubject = _ref12.bookingSubject;
490
+ var _ref12 = useAppointmentBookingContext(),
491
+ appointmentBooking = _ref12.appointmentBooking,
492
+ setCarts = _ref12.setCarts,
493
+ setSummary = _ref12.setSummary,
494
+ setIsAgreeDepositPolicy = _ref12.setIsAgreeDepositPolicy;
495
+ var _ref13 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o2 = appointmentBooking.otherParams) === null || _appointmentBooking$o2 === void 0 ? void 0 : _appointmentBooking$o2.productModuleParams) || {},
496
+ bookingSubject = _ref13.bookingSubject;
438
497
  var getCartAndSummary = /*#__PURE__*/function () {
439
- var _ref13 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
498
+ var _ref14 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
440
499
  var _utils$storage2;
441
500
  var locale, symbol, carts, accountLists, newCarts, summary;
442
501
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
@@ -485,7 +544,7 @@ export var useAppointmentBookingCart = function useAppointmentBookingCart() {
485
544
  }, _callee5);
486
545
  }));
487
546
  return function getCartAndSummary() {
488
- return _ref13.apply(this, arguments);
547
+ return _ref14.apply(this, arguments);
489
548
  };
490
549
  }();
491
550
  useEffect(function () {
@@ -516,8 +575,8 @@ export var useAppointmentBookingLogin = function useAppointmentBookingLogin() {
516
575
  var utils = contextUtils();
517
576
  var isLogin = !!(utils !== null && utils !== void 0 && (_utils$token = utils.token) !== null && _utils$token !== void 0 && (_utils$token$get = _utils$token.get) !== null && _utils$token$get !== void 0 && _utils$token$get.call(_utils$token));
518
577
  var openLoginModal = function openLoginModal(params) {
519
- var _ref15 = params || {},
520
- callback = _ref15.callback;
578
+ var _ref16 = params || {},
579
+ callback = _ref16.callback;
521
580
  utils.action({
522
581
  type: 'pisell1.login',
523
582
  data: {
@@ -540,7 +599,7 @@ export var useAppointmentBookingLogin = function useAppointmentBookingLogin() {
540
599
  * @Date: 2025-04-15 11:15
541
600
  */
542
601
  export var useAppointmentBookingAccount = function useAppointmentBookingAccount() {
543
- var _appointmentBooking$o2;
602
+ var _appointmentBooking$o3;
544
603
  var utils = contextUtils();
545
604
  var pisellOS = usePisellOS();
546
605
  var appointmentBooking = useAppointmentBooking();
@@ -548,13 +607,13 @@ export var useAppointmentBookingAccount = function useAppointmentBookingAccount(
548
607
  _useState2 = _slicedToArray(_useState, 2),
549
608
  accountLists = _useState2[0],
550
609
  setAccountLists = _useState2[1];
551
- var _ref16 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o2 = appointmentBooking.otherParams) === null || _appointmentBooking$o2 === void 0 ? void 0 : _appointmentBooking$o2.productModuleParams) || {},
552
- bookingSubject = _ref16.bookingSubject;
610
+ var _ref17 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o3 = appointmentBooking.otherParams) === null || _appointmentBooking$o3 === void 0 ? void 0 : _appointmentBooking$o3.productModuleParams) || {},
611
+ bookingSubject = _ref17.bookingSubject;
553
612
  var form_id = bookingSubject === null || bookingSubject === void 0 ? void 0 : bookingSubject.form_id;
554
613
 
555
614
  // 获取账户列表数据
556
615
  var getAccountLists = /*#__PURE__*/function () {
557
- var _ref17 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
616
+ var _ref18 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
558
617
  var data;
559
618
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
560
619
  while (1) switch (_context7.prev = _context7.next) {
@@ -571,13 +630,13 @@ export var useAppointmentBookingAccount = function useAppointmentBookingAccount(
571
630
  }, _callee7);
572
631
  }));
573
632
  return function getAccountLists() {
574
- return _ref17.apply(this, arguments);
633
+ return _ref18.apply(this, arguments);
575
634
  };
576
635
  }();
577
636
  useEffect(function () {
578
637
  getAccountLists();
579
638
  pisellOS.effects.on('appointmentBooking_accountList:changed', /*#__PURE__*/function () {
580
- var _ref18 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(res) {
639
+ var _ref19 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(res) {
581
640
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
582
641
  while (1) switch (_context8.prev = _context8.next) {
583
642
  case 0:
@@ -591,14 +650,14 @@ export var useAppointmentBookingAccount = function useAppointmentBookingAccount(
591
650
  }, _callee8);
592
651
  }));
593
652
  return function (_x3) {
594
- return _ref18.apply(this, arguments);
653
+ return _ref19.apply(this, arguments);
595
654
  };
596
655
  }());
597
656
  }, []);
598
657
 
599
658
  // 获取表单数据
600
659
  var getHolders = /*#__PURE__*/function () {
601
- var _ref19 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
660
+ var _ref20 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
602
661
  var _utils$getStore$getSt;
603
662
  var shop_id, customer, params, data, newData;
604
663
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
@@ -638,13 +697,13 @@ export var useAppointmentBookingAccount = function useAppointmentBookingAccount(
638
697
  }, _callee9);
639
698
  }));
640
699
  return function getHolders() {
641
- return _ref19.apply(this, arguments);
700
+ return _ref20.apply(this, arguments);
642
701
  };
643
702
  }();
644
703
 
645
704
  // 添加账户
646
705
  var addAccount = /*#__PURE__*/function () {
647
- var _ref20 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(val, type) {
706
+ var _ref21 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(val, type) {
648
707
  var customer, result;
649
708
  return _regeneratorRuntime().wrap(function _callee10$(_context10) {
650
709
  while (1) switch (_context10.prev = _context10.next) {
@@ -665,7 +724,7 @@ export var useAppointmentBookingAccount = function useAppointmentBookingAccount(
665
724
  }, _callee10);
666
725
  }));
667
726
  return function addAccount(_x4, _x5) {
668
- return _ref20.apply(this, arguments);
727
+ return _ref21.apply(this, arguments);
669
728
  };
670
729
  }();
671
730
 
@@ -690,12 +749,12 @@ export var useAppointmentBookingAccount = function useAppointmentBookingAccount(
690
749
  * @Date: 2025-04-15 11:29
691
750
  */
692
751
  export var useAppointmentBookingResource = function useAppointmentBookingResource() {
693
- var _ref21 = useAppointmentBookingContext(),
694
- appointmentBooking = _ref21.appointmentBooking,
695
- setResources = _ref21.setResources,
696
- setTimes = _ref21.setTimes;
697
- var _ref22 = (appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.otherParams) || {},
698
- resourceSort = _ref22.resourceSort;
752
+ var _ref22 = useAppointmentBookingContext(),
753
+ appointmentBooking = _ref22.appointmentBooking,
754
+ setResources = _ref22.setResources,
755
+ setTimes = _ref22.setTimes;
756
+ var _ref23 = (appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.otherParams) || {},
757
+ resourceSort = _ref23.resourceSort;
699
758
 
700
759
  // 设置资源列表
701
760
  var getResourceList = function getResourceList() {
@@ -719,7 +778,7 @@ export var useAppointmentBookingResource = function useAppointmentBookingResourc
719
778
 
720
779
  // 设置时间切片
721
780
  var getResourceTimeSlot = /*#__PURE__*/function () {
722
- var _ref23 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(index) {
781
+ var _ref24 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(index) {
723
782
  var _getResourceList, resourceCodes, code, data;
724
783
  return _regeneratorRuntime().wrap(function _callee11$(_context11) {
725
784
  while (1) switch (_context11.prev = _context11.next) {
@@ -738,7 +797,7 @@ export var useAppointmentBookingResource = function useAppointmentBookingResourc
738
797
  }, _callee11);
739
798
  }));
740
799
  return function getResourceTimeSlot(_x6) {
741
- return _ref23.apply(this, arguments);
800
+ return _ref24.apply(this, arguments);
742
801
  };
743
802
  }();
744
803
  return {
@@ -755,8 +814,8 @@ export var useAppointmentBookingResource = function useAppointmentBookingResourc
755
814
  * @Date: 2025-04-21 11:47
756
815
  */
757
816
  export var useIsSkipResourceStep = function useIsSkipResourceStep() {
758
- var _ref24 = useAppointmentBookingContext(),
759
- currentStepParams = _ref24.currentStepParams;
817
+ var _ref25 = useAppointmentBookingContext(),
818
+ currentStepParams = _ref25.currentStepParams;
760
819
  var _useAppointmentBookin5 = useAppointmentBookingResource(),
761
820
  getResourceList = _useAppointmentBookin5.getResourceList;
762
821
  var _useAppointmentBookin6 = useAppointmentBookingSetting(),
@@ -765,7 +824,7 @@ export var useIsSkipResourceStep = function useIsSkipResourceStep() {
765
824
  var _useAppointmentBookin7 = useAppointmentBookingStep(),
766
825
  nextStep = _useAppointmentBookin7.nextStep;
767
826
  var checkSkipResourceStep = /*#__PURE__*/function () {
768
- var _ref25 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12() {
827
+ var _ref26 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12() {
769
828
  var _getResourceList2, resources, accountLists, _currentAppointmentBo, isSystem, isSkip, form_code, renderLists, _isSkip;
770
829
  return _regeneratorRuntime().wrap(function _callee12$(_context12) {
771
830
  while (1) switch (_context12.prev = _context12.next) {
@@ -821,7 +880,7 @@ export var useIsSkipResourceStep = function useIsSkipResourceStep() {
821
880
  }, _callee12, null, [[0, 22]]);
822
881
  }));
823
882
  return function checkSkipResourceStep() {
824
- return _ref25.apply(this, arguments);
883
+ return _ref26.apply(this, arguments);
825
884
  };
826
885
  }();
827
886
  return {
@@ -837,15 +896,15 @@ export var useIsSkipResourceStep = function useIsSkipResourceStep() {
837
896
  * @Date: 2025-04-24 18:15
838
897
  */
839
898
  export var useAppointmentBookingSetting = function useAppointmentBookingSetting() {
840
- var _appointmentBooking$o3, _appointmentBooking$o4;
899
+ var _appointmentBooking$o4, _appointmentBooking$o5;
841
900
  var utils = contextUtils();
842
- var _ref26 = useAppointmentBookingContext(),
843
- appointmentBooking = _ref26.appointmentBooking;
844
- var _ref27 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o3 = appointmentBooking.otherParams) === null || _appointmentBooking$o3 === void 0 ? void 0 : _appointmentBooking$o3.productModuleParams) || {},
845
- bookingProcess = _ref27.bookingProcess,
846
- bookingSubject = _ref27.bookingSubject,
847
- customPageId = _ref27.customPageId,
848
- channel = _ref27.channel;
901
+ var _ref27 = useAppointmentBookingContext(),
902
+ appointmentBooking = _ref27.appointmentBooking;
903
+ var _ref28 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o4 = appointmentBooking.otherParams) === null || _appointmentBooking$o4 === void 0 ? void 0 : _appointmentBooking$o4.productModuleParams) || {},
904
+ bookingProcess = _ref28.bookingProcess,
905
+ bookingSubject = _ref28.bookingSubject,
906
+ customPageId = _ref28.customPageId,
907
+ channel = _ref28.channel;
849
908
 
850
909
  // 设置缓存
851
910
  var setOtherData = function setOtherData(key, val) {
@@ -865,7 +924,7 @@ export var useAppointmentBookingSetting = function useAppointmentBookingSetting(
865
924
  // 主体是否是表单
866
925
  isFormSubject: (bookingSubject === null || bookingSubject === void 0 ? void 0 : bookingSubject.type) === 'form',
867
926
  // 是否是零售模版
868
- isRetailTemplate: (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o4 = appointmentBooking.otherParams) === null || _appointmentBooking$o4 === void 0 ? void 0 : _appointmentBooking$o4.isRetailTemplate) || false,
927
+ isRetailTemplate: (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o5 = appointmentBooking.otherParams) === null || _appointmentBooking$o5 === void 0 ? void 0 : _appointmentBooking$o5.isRetailTemplate) || false,
869
928
  customPageId: customPageId,
870
929
  channel: channel,
871
930
  bookingSubject: bookingSubject,
@@ -600,8 +600,12 @@ export var getResourceTitle = function getResourceTitle(appointmentBooking, code
600
600
  */
601
601
  export var checkAndMarkCartRenderError = function checkAndMarkCartRenderError(carts, appointmentBooking, utils) {
602
602
  try {
603
+ var _carts;
603
604
  var hasError = false;
604
- var updatedCartList = carts === null || carts === void 0 ? void 0 : carts.map(function (cart) {
605
+ carts = carts.filter(function (n) {
606
+ return !appointmentBooking.isTargetCartIdNormalProduct(n._id);
607
+ });
608
+ var updatedCartList = (_carts = carts) === null || _carts === void 0 ? void 0 : _carts.map(function (cart) {
605
609
  var currentResource = cart === null || cart === void 0 ? void 0 : cart.currentSelectedResource;
606
610
  if (!(currentResource !== null && currentResource !== void 0 && currentResource.renderItem)) {
607
611
  hasError = true;
@@ -623,6 +627,7 @@ export var checkAndMarkCartRenderError = function checkAndMarkCartRenderError(ca
623
627
  updatedCartList: updatedCartList
624
628
  };
625
629
  } catch (error) {
630
+ console.error(error);
626
631
  return {};
627
632
  }
628
633
  };