@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
@@ -122,7 +122,7 @@ var Services = (0, import_react.forwardRef)((props, ref) => {
122
122
  } else {
123
123
  const resources = ((_b = (_a = data == null ? void 0 : data.origin) == null ? void 0 : _a.product_resource) == null ? void 0 : _b.resources) || [];
124
124
  const activeStatus = resources.find((item2) => item2.status === 1);
125
- if (!activeStatus) {
125
+ if (!activeStatus && !appointmentBooking.isTargetNormalProduct(data == null ? void 0 : data.origin)) {
126
126
  return (0, import_utils2.Toast)(
127
127
  import_utils.locales.getText("pisell2.appointment.no.available.service")
128
128
  );
@@ -69,10 +69,11 @@ var TimeSlicing = (0, import_react.forwardRef)((props, ref) => {
69
69
  };
70
70
  (0, import_react.useEffect)(() => {
71
71
  var _a, _b, _c;
72
- if ((times == null ? void 0 : times.length) > 0 && (carts == null ? void 0 : carts.length) > 0) {
73
- const startTime = ((_a = carts == null ? void 0 : carts[0]) == null ? void 0 : _a.start_time) || ((_b = times == null ? void 0 : times[0]) == null ? void 0 : _b.start_time);
72
+ let appoimentBookingProductCart = carts.filter((item) => !appointmentBooking.isTargetCartIdNormalProduct(item == null ? void 0 : item._id));
73
+ if ((times == null ? void 0 : times.length) > 0 && (appoimentBookingProductCart == null ? void 0 : appoimentBookingProductCart.length) > 0) {
74
+ const startTime = ((_a = appoimentBookingProductCart == null ? void 0 : appoimentBookingProductCart[0]) == null ? void 0 : _a.start_time) || ((_b = times == null ? void 0 : times[0]) == null ? void 0 : _b.start_time);
74
75
  setSelectedResource(startTime);
75
- if ((_c = carts == null ? void 0 : carts[0]) == null ? void 0 : _c.start_time) return;
76
+ if ((_c = appoimentBookingProductCart == null ? void 0 : appoimentBookingProductCart[0]) == null ? void 0 : _c.start_time) return;
76
77
  getAutoSelect(times == null ? void 0 : times[0]);
77
78
  }
78
79
  }, [times, carts]);
@@ -95,6 +95,7 @@ var VoucherCard = (props) => {
95
95
  var _a3, _b2;
96
96
  return {
97
97
  _id: item._id,
98
+ quantity: item.num,
98
99
  bundle: item._bundleOrigin,
99
100
  options: item._optionsOrigin,
100
101
  product: {
@@ -120,6 +121,7 @@ var VoucherCard = (props) => {
120
121
  }
121
122
  );
122
123
  pisellos.effects.on("appointmentBooking_cart:onAddItem", onCartChange);
124
+ pisellos.effects.on("appointmentBooking_cart:onUpdateQuotationPrice", onCartChange);
123
125
  pisellos.effects.on("appointmentBooking_cart:onRemoveItem", onCartChange);
124
126
  pisellos.effects.on(
125
127
  ShopDiscountHooks.onDiscountListChange,
@@ -105,15 +105,19 @@ var AppointmentBookingProvider = ({
105
105
  if (!(carts == null ? void 0 : carts.length) || !(resources == null ? void 0 : resources.length)) {
106
106
  return setCurrentSelectedResources(null);
107
107
  }
108
- const currentSelectedResources2 = carts.map((item) => {
109
- return {
108
+ const currentSelectedResources2 = [];
109
+ carts.forEach((item) => {
110
+ if (appointmentBooking.isTargetCartIdNormalProduct(item == null ? void 0 : item._id)) {
111
+ return;
112
+ }
113
+ currentSelectedResources2.push({
110
114
  _id: item == null ? void 0 : item._id,
111
115
  currentSelectedResource: (0, import_utils.getCartCurrentResourceData)(
112
116
  item,
113
117
  currentStepParams == null ? void 0 : currentStepParams.key,
114
118
  resources
115
119
  )
116
- };
120
+ });
117
121
  });
118
122
  setCurrentSelectedResources(currentSelectedResources2);
119
123
  appointmentBooking.setOtherData(
@@ -119,20 +119,78 @@ var useAppointmentBookingStep = () => {
119
119
  });
120
120
  };
121
121
  const nextStep = () => {
122
- var _a2, _b2, _c2, _d, _e;
122
+ var _a2, _b2, _c2, _d, _e, _f, _g;
123
123
  let stepList2 = appointmentBooking.getStepList() || [];
124
124
  const currentKey = currentStepParams == null ? void 0 : currentStepParams.key;
125
- let nextStep2 = stepList2[(currentStepParams == null ? void 0 : currentStepParams.index) + 1];
126
125
  const currentSelectedResources = appointmentBooking.getOtherData(
127
126
  "current_selected_resources"
128
127
  );
129
- if ((nextStep2 == null ? void 0 : nextStep2.key) === "select-resource") {
128
+ if (!isRetailTemplate && currentKey === "select-service") {
129
+ const { bookingProcess } = ((_a2 = appointmentBooking == null ? void 0 : appointmentBooking.otherParams) == null ? void 0 : _a2.productModuleParams) || {};
130
+ const isDateSelectedFirst = bookingProcess === "date_first";
131
+ const hasResourceStep = stepList2 == null ? void 0 : stepList2.find(
132
+ (item) => (item == null ? void 0 : item.key) === "select-resource"
133
+ );
134
+ const hasSelectGuestStep = (_b2 = stepList2 == null ? void 0 : stepList2.find(
135
+ (item) => (item == null ? void 0 : item.key) === "select-guest"
136
+ )) == null ? void 0 : _b2.key;
137
+ const isAllNormalProduct = appointmentBooking == null ? void 0 : appointmentBooking.isCartAllNormalProducts();
138
+ if (isAllNormalProduct) {
139
+ removeStep("select-resource");
140
+ removeStep("select-time");
141
+ removeStep("fill-form");
142
+ if (!isDateSelectedFirst) {
143
+ removeStep("select-date");
144
+ }
145
+ } else if (!hasResourceStep) {
146
+ let targetKey = hasSelectGuestStep ? hasSelectGuestStep : "select-service";
147
+ const isHasDurationProduct = appointmentBooking == null ? void 0 : appointmentBooking.isCartHasDurationProduct();
148
+ if (isHasDurationProduct) {
149
+ if (!isDateSelectedFirst) {
150
+ appointmentBooking.addStep(
151
+ {
152
+ key: "select-date",
153
+ description: import_utils.locales.getText("pisell2.appointment.select.date")
154
+ },
155
+ targetKey
156
+ );
157
+ targetKey = "select-date";
158
+ }
159
+ appointmentBooking.addStep(
160
+ {
161
+ key: "select-resource",
162
+ description: import_utils.locales.getText("pisell2.appointment.select.resource")
163
+ },
164
+ targetKey
165
+ );
166
+ targetKey = "select-resource";
167
+ appointmentBooking.addStep(
168
+ {
169
+ key: "select-time",
170
+ description: import_utils.locales.getText("pisell2.appointment.select.time")
171
+ },
172
+ targetKey
173
+ );
174
+ } else {
175
+ appointmentBooking.addStep(
176
+ {
177
+ key: "select-resource",
178
+ description: import_utils.locales.getText("pisell2.appointment.select.resource")
179
+ },
180
+ targetKey
181
+ );
182
+ }
183
+ }
184
+ stepList2 = (appointmentBooking == null ? void 0 : appointmentBooking.getStepList()) || [];
185
+ }
186
+ let nextStep2 = stepList2[(currentStepParams == null ? void 0 : currentStepParams.index) + 1];
187
+ if (!isRetailTemplate && (nextStep2 == null ? void 0 : nextStep2.key) === "select-resource") {
130
188
  const result = appointmentBooking.checkResourceListForDate();
131
189
  if (!result) {
132
190
  return (0, import_utils2.Toast)(import_utils.locales.getText("pisell2.appointment.unuse.date"));
133
191
  }
134
192
  }
135
- if (currentKey == null ? void 0 : currentKey.startsWith("select-resource")) {
193
+ if (!isRetailTemplate && (currentKey == null ? void 0 : currentKey.startsWith("select-resource"))) {
136
194
  const { hasError, updatedCartList } = (0, import_utils2.checkAndMarkCartRenderError)(currentSelectedResources, appointmentBooking, utils);
137
195
  if (hasError) {
138
196
  setCurrentSelectedResources(updatedCartList);
@@ -155,9 +213,9 @@ var useAppointmentBookingStep = () => {
155
213
  }
156
214
  });
157
215
  stepList2 = appointmentBooking.getStepList();
158
- const selectedResource = (_a2 = currentSelectedResources == null ? void 0 : currentSelectedResources[0]) == null ? void 0 : _a2.currentSelectedResource;
216
+ const selectedResource = (_c2 = currentSelectedResources == null ? void 0 : currentSelectedResources[0]) == null ? void 0 : _c2.currentSelectedResource;
159
217
  if (selectedResource) {
160
- const originRenderLists = ((_b2 = selectedResource == null ? void 0 : selectedResource.resourceItem) == null ? void 0 : _b2.originRenderLists) || [];
218
+ const originRenderLists = ((_d = selectedResource == null ? void 0 : selectedResource.resourceItem) == null ? void 0 : _d.originRenderLists) || [];
161
219
  const currentResourceIndex = originRenderLists == null ? void 0 : originRenderLists.findIndex((item) => {
162
220
  var _a3;
163
221
  return item.id === ((_a3 = selectedResource == null ? void 0 : selectedResource.renderItem) == null ? void 0 : _a3.form_id);
@@ -165,7 +223,7 @@ var useAppointmentBookingStep = () => {
165
223
  const nextResource = originRenderLists == null ? void 0 : originRenderLists[currentResourceIndex + 1];
166
224
  const resourceKey = `select-resource_@${nextResource == null ? void 0 : nextResource.form_id}-${nextResource == null ? void 0 : nextResource.code}`;
167
225
  if (nextResource) {
168
- const beforeKey = (_c2 = stepList2[stepList2.length - 2]) == null ? void 0 : _c2.key;
226
+ const beforeKey = (_e = stepList2[stepList2.length - 2]) == null ? void 0 : _e.key;
169
227
  appointmentBooking.addStep({ key: resourceKey, description: "" }, beforeKey);
170
228
  } else {
171
229
  appointmentBooking.removeStep(resourceKey);
@@ -174,15 +232,16 @@ var useAppointmentBookingStep = () => {
174
232
  }
175
233
  stepList2 = appointmentBooking.getStepList();
176
234
  nextStep2 = stepList2[(currentStepParams == null ? void 0 : currentStepParams.index) + 1];
177
- if (((_d = nextStep2 == null ? void 0 : nextStep2.key) == null ? void 0 : _d.startsWith("select-resource_")) || (nextStep2 == null ? void 0 : nextStep2.key) === "confirm-information") {
178
- const selectedResource = ((_e = currentSelectedResources == null ? void 0 : currentSelectedResources[0]) == null ? void 0 : _e.currentSelectedResource) || {};
235
+ if (((_f = nextStep2 == null ? void 0 : nextStep2.key) == null ? void 0 : _f.startsWith("select-resource_")) || (nextStep2 == null ? void 0 : nextStep2.key) === "confirm-information") {
236
+ const selectedResource = ((_g = currentSelectedResources == null ? void 0 : currentSelectedResources[0]) == null ? void 0 : _g.currentSelectedResource) || {};
179
237
  const renderItem = (selectedResource == null ? void 0 : selectedResource.renderItem) || {};
180
238
  const checkHolder = () => {
181
239
  setLoading(false);
182
- if (isRetailTemplate) {
240
+ if (isRetailTemplate || (appointmentBooking == null ? void 0 : appointmentBooking.isCartAllNormalProducts())) {
183
241
  return appointmentBooking.next();
184
242
  }
185
- const { hasError } = (0, import_utils2.checkAndGoNext)(isFormSubject, checkAccount, carts);
243
+ const appoimentCarts = carts.filter((n) => !(appointmentBooking == null ? void 0 : appointmentBooking.isTargetCartIdNormalProduct(n._id)));
244
+ const { hasError } = (0, import_utils2.checkAndGoNext)(isFormSubject, checkAccount, appoimentCarts);
186
245
  setIsErrorHolder(hasError);
187
246
  if (hasError) {
188
247
  return;
@@ -370,6 +370,7 @@ var getResourceTitle = (appointmentBooking, code, utils, originResource) => {
370
370
  var checkAndMarkCartRenderError = (carts, appointmentBooking, utils) => {
371
371
  try {
372
372
  let hasError = false;
373
+ carts = carts.filter((n) => !appointmentBooking.isTargetCartIdNormalProduct(n._id));
373
374
  const updatedCartList = carts == null ? void 0 : carts.map((cart) => {
374
375
  const currentResource = cart == null ? void 0 : cart.currentSelectedResource;
375
376
  if (!(currentResource == null ? void 0 : currentResource.renderItem)) {
@@ -394,6 +395,7 @@ var checkAndMarkCartRenderError = (carts, appointmentBooking, utils) => {
394
395
  updatedCartList
395
396
  };
396
397
  } catch (error) {
398
+ console.error(error);
397
399
  return {};
398
400
  }
399
401
  };
@@ -51,12 +51,13 @@ var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext")
51
51
  var formatProducts = (values) => {
52
52
  let arr = [];
53
53
  arr = values.map((item) => {
54
- var _a, _b, _c;
54
+ var _a, _b, _c, _d, _e, _f, _g;
55
55
  return {
56
56
  order_detail_id: item.order_detail_id || 0,
57
57
  num: item._extend.quantity,
58
- price: item._extend.price,
58
+ price: (0, import_utils.formatProductPrice)(item),
59
59
  product_id: item.id,
60
+ discount_list: (item == null ? void 0 : item.discount_list) || [],
60
61
  discount_amount: 0,
61
62
  product_discount_reason: "",
62
63
  is_charge_tax: item.is_charge_tax,
@@ -64,7 +65,9 @@ var formatProducts = (values) => {
64
65
  discountway: "num",
65
66
  discount_type: "discount",
66
67
  bundle_edit: (_a = item._extend) == null ? void 0 : _a.bundle_edit,
67
- product_bundle: (0, import_utils.formatProductBundle)((_c = (_b = item._extend) == null ? void 0 : _b.other) == null ? void 0 : _c.bundle)
68
+ product_bundle: (0, import_utils.formatProductBundle)((_c = (_b = item._extend) == null ? void 0 : _b.other) == null ? void 0 : _c.bundle),
69
+ "product_option_item": (0, import_utils.formatProductOption)((_e = (_d = item._extend) == null ? void 0 : _d.other) == null ? void 0 : _e.option),
70
+ "product_variant_id": ((_g = (_f = item._extend) == null ? void 0 : _f.other) == null ? void 0 : _g.product_variant_id) || 0
68
71
  };
69
72
  });
70
73
  return arr;
@@ -93,7 +96,7 @@ var restoreProductOtherData = (data) => {
93
96
  })
94
97
  };
95
98
  }),
96
- product_variant_id: 0,
99
+ product_variant_id: detail.product_variant_id || 0,
97
100
  quantity: Number(detail.product_quantity)
98
101
  };
99
102
  };
@@ -210,23 +213,23 @@ var Addons = (0, import_model.Provider)((props) => {
210
213
  const handleAddProduct = (item, type) => {
211
214
  let _list = [...state.addons.value];
212
215
  const isSession = (0, import_utils2.isSessionProduct)(item);
213
- const isEject = type === "detail" || item.bundle_group_count > 0 || isSession;
216
+ const isEject = (0, import_utils2.getIsEject)(item, type);
214
217
  state.action({
215
218
  type: "pisell1.handleOpenProductModal",
216
219
  data: {
217
220
  id: item.id,
218
221
  date: state.date.value.format("YYYY-MM-DD"),
219
222
  showConfig: {
220
- option: false,
223
+ option: true,
221
224
  session: isSession,
222
- variant: false,
223
- package: true
225
+ variant: true,
226
+ package: true,
227
+ number: true
224
228
  },
225
229
  is_eject: isEject ? 1 : 0,
226
230
  isOS: isSession
227
231
  },
228
232
  callback: (e, extension_type, detail) => {
229
- console.log("e", e);
230
233
  const _detail = detail || item;
231
234
  let product = {
232
235
  ..._detail,
@@ -235,15 +238,15 @@ var Addons = (0, import_model.Provider)((props) => {
235
238
  _extend: {
236
239
  price: _detail.price,
237
240
  other: e,
238
- quantity: 1
241
+ quantity: (e == null ? void 0 : e.quantity) || 1
239
242
  },
240
- quantity: 1
243
+ quantity: (e == null ? void 0 : e.quantity) || 1
241
244
  };
242
245
  let _total = (0, import_utils2.getProductTotalPrice)(product);
243
246
  product._extend.total = _total;
244
- let _item = _list.find((d) => d._extend.other.key === e.key);
247
+ let _item = _list.find((d) => d._extend.other.rowKey === e.rowKey);
245
248
  if (_item) {
246
- _item._extend.quantity = _item.quantity + 1;
249
+ _item._extend.quantity = _item._extend.quantity + product.quantity;
247
250
  } else {
248
251
  _list.push(product);
249
252
  }
@@ -264,7 +267,7 @@ var Addons = (0, import_model.Provider)((props) => {
264
267
  let quantity = e.target.value;
265
268
  let _list = [...state.addons.value];
266
269
  if (quantity == 0) {
267
- _list = _list.filter((d) => d.id !== item.id);
270
+ _list = _list.filter((d) => d._id !== item._id);
268
271
  } else {
269
272
  let _item = {
270
273
  ...item,
@@ -273,12 +276,10 @@ var Addons = (0, import_model.Provider)((props) => {
273
276
  quantity: Number(e.target.value)
274
277
  }
275
278
  };
276
- let _total = (0, import_utils2.getProductTotalPrice)(_item);
277
- _item._extend.total = _total;
278
279
  if (((_a2 = _item._extend) == null ? void 0 : _a2.bundle_edit) !== void 0) {
279
280
  _item._extend.bundle_edit = 1;
280
281
  }
281
- _list = _list.map((d) => d.id === item.id ? _item : d);
282
+ _list = _list.map((d) => d._id === item._id ? _item : d);
282
283
  }
283
284
  dispatch({
284
285
  type: "setAddons",
@@ -374,10 +375,11 @@ var Addons = (0, import_model.Provider)((props) => {
374
375
  id: item.id,
375
376
  date: state.date.value.format("YYYY-MM-DD"),
376
377
  showConfig: {
377
- option: false,
378
+ option: true,
378
379
  session: isSession,
379
- variant: false,
380
- package: true
380
+ variant: true,
381
+ package: true,
382
+ number: true
381
383
  },
382
384
  value: item._extend.other,
383
385
  isOS: isSession
@@ -386,10 +388,14 @@ var Addons = (0, import_model.Provider)((props) => {
386
388
  var _a2;
387
389
  const _detail = detail || item;
388
390
  let product = {
391
+ ...item,
389
392
  ..._detail,
393
+ // 编辑商品时清除折扣信息
394
+ discount_list: [],
390
395
  _extend: {
391
396
  ...item._extend,
392
- other: e
397
+ other: e,
398
+ quantity: (e == null ? void 0 : e.quantity) || 1
393
399
  }
394
400
  };
395
401
  if (((_a2 = product._extend) == null ? void 0 : _a2.bundle_edit) !== void 0) {
@@ -44,7 +44,7 @@ var getProductAmount = (state, isEdit) => {
44
44
  if (isEdit) {
45
45
  if ((state == null ? void 0 : state.service) || (state == null ? void 0 : state.addons)) {
46
46
  for (let item of state == null ? void 0 : state.service.value) {
47
- if (isDay) {
47
+ if (isDay || (0, import_utils3.isNormalProductByDurationSchedule)(item)) {
48
48
  const quantity = item._extend.quantity || 1;
49
49
  price += Number(item._extend.total) * Number(quantity);
50
50
  const _duration = (0, import_utils3.isDayBookingProduct)(item, state) ? item._extend.duration : 0;
@@ -27,5 +27,14 @@ export interface ResourceItem {
27
27
  * @Author: jinglin.tan
28
28
  */
29
29
  export declare const checkSubResourcesCapacity: (resource: ResourceItem) => void;
30
+ /**
31
+ * @title: 格式化商品单价
32
+ * @description:
33
+ * @param {any} item
34
+ * @return {*}
35
+ * @Author: WangHan
36
+ * @Date: 2024-12-23 12:05
37
+ */
38
+ export declare const formatProductPrice: (item: any) => number;
30
39
  export declare const formatValues: (state: any) => any;
31
40
  export declare const checkHolderIsError: (state: any) => any;
@@ -33,6 +33,7 @@ __export(utils_exports, {
33
33
  checkSubResourcesCapacity: () => checkSubResourcesCapacity,
34
34
  formatProductBundle: () => formatProductBundle,
35
35
  formatProductOption: () => formatProductOption,
36
+ formatProductPrice: () => formatProductPrice,
36
37
  formatValues: () => formatValues
37
38
  });
38
39
  module.exports = __toCommonJS(utils_exports);
@@ -70,7 +71,7 @@ var formatProductOption = (option) => {
70
71
  return option.map((d) => {
71
72
  return {
72
73
  "num": d.num,
73
- "option_group_item_id": d.product_option_item_id,
74
+ "option_group_item_id": d.product_option_item_id || d.option_group_item_id,
74
75
  "option_group_id": d.option_group_id
75
76
  // "add_price": Number(d?.add_price),
76
77
  };
@@ -280,6 +281,9 @@ var formatBookings = (data, values) => {
280
281
  return (_a = d._extend) == null ? void 0 : _a.holder_id;
281
282
  });
282
283
  }
284
+ if (!isDay && !isEvent) {
285
+ list = list.filter((item) => !(0, import_utils4.isNormalProductByDurationSchedule)(item));
286
+ }
283
287
  let dayParams = {};
284
288
  const eventOtherParams = data.eventOtherParams;
285
289
  let bookings = [];
@@ -343,6 +347,16 @@ var formatRelationProducts = (data) => {
343
347
  });
344
348
  return relationProducts || [];
345
349
  };
350
+ var formatNormalProducts = (data) => {
351
+ var _a;
352
+ let list = ((_a = data.service) == null ? void 0 : _a.value) || [];
353
+ list = list.filter((item) => (0, import_utils4.isNormalProductByDurationSchedule)(item));
354
+ let relationProducts = [];
355
+ relationProducts = list.map((item) => {
356
+ return formatProducts(item);
357
+ });
358
+ return relationProducts || [];
359
+ };
346
360
  var formatHolder = (state, values) => {
347
361
  var _a, _b, _c, _d, _e, _f, _g, _h;
348
362
  const form_id = ((_d = (_c = (_b = (_a = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a.config) == null ? void 0 : _b.basic) == null ? void 0 : _c.appointment_subject) == null ? void 0 : _d.form_id) || 0;
@@ -361,7 +375,7 @@ var formatHolder = (state, values) => {
361
375
  return obj;
362
376
  };
363
377
  var formatValues = (state) => {
364
- var _a, _b, _c, _d, _e;
378
+ var _a, _b, _c, _d, _e, _f;
365
379
  let values = {
366
380
  type: state.renderType === "eventBooking" ? "event_booking_v2" : "appointment_booking",
367
381
  platform: "shop",
@@ -391,11 +405,10 @@ var formatValues = (state) => {
391
405
  ...customer
392
406
  };
393
407
  values.holder = formatHolder(state, values);
394
- if (isDay) {
395
- values.relation_products = formatRelationProducts(state);
396
- }
397
- if (isEvent) {
408
+ if (isDay || isEvent) {
398
409
  values.relation_products = formatRelationProducts(state);
410
+ } else {
411
+ values.relation_products = formatNormalProducts(state);
399
412
  }
400
413
  values.bookings = formatBookings(state, values);
401
414
  if (((_c = (_b = values == null ? void 0 : values.bookings) == null ? void 0 : _b[0]) == null ? void 0 : _c.select_date) && !(state == null ? void 0 : state.bookingId)) {
@@ -406,12 +419,15 @@ var formatValues = (state) => {
406
419
  if (isDay) {
407
420
  values.metadata.is_multiday_appointment = 1;
408
421
  }
422
+ if (!((_f = values == null ? void 0 : values.bookings) == null ? void 0 : _f.length)) {
423
+ values.type = "virtual";
424
+ }
409
425
  return values;
410
426
  };
411
427
  var checkHolderIsError = (state) => {
412
428
  var _a, _b;
413
429
  const holderError = state.service.value.some((item) => {
414
- return !item._extend.holder_id;
430
+ return !item._extend.holder_id && !(0, import_utils4.isNormalProductByDurationSchedule)(item);
415
431
  });
416
432
  const clientId = (_b = (_a = state.client) == null ? void 0 : _a.value) == null ? void 0 : _b.id;
417
433
  if (holderError && (!clientId || clientId === 0 || clientId === 1)) {
@@ -427,5 +443,6 @@ var checkHolderIsError = (state) => {
427
443
  checkSubResourcesCapacity,
428
444
  formatProductBundle,
429
445
  formatProductOption,
446
+ formatProductPrice,
430
447
  formatValues
431
448
  });
@@ -228,7 +228,7 @@ var Info = (props) => {
228
228
  const handleSelectProduct = (0, import_ahooks.useMemoizedFn)(
229
229
  (item, type) => {
230
230
  const isSession = (0, import_utils2.isSessionProduct)(item);
231
- let isEject = type === "detail" || item.bundle_group_count > 0 || isSession;
231
+ let isEject = (0, import_utils2.getIsEject)(item, type);
232
232
  if (isDay) {
233
233
  isEject = type === "detail" || item.bundle_group_count > 0 || item.option_group_count > 0 || item.is_variant > 0;
234
234
  }
@@ -55,6 +55,9 @@ export declare const handleChangeHolder: (products: any[], currentItem: any, oth
55
55
  export declare const updateServices: (state: any, currentItem: any, type?: string, other?: any, actions?: any) => any;
56
56
  export declare const formItems: (items: any[]) => any[];
57
57
  export declare const getIsSubjectRequire: (state: any) => boolean;
58
+ export declare const isNormalProductByDurationSchedule: (item: any) => boolean;
59
+ export declare const isAllNormalProduct: (items: any[]) => boolean;
60
+ export declare const isAllNormalProductByState: (state: any) => boolean;
58
61
  /**
59
62
  * @title: 格式化商品数据
60
63
  * @description:
@@ -241,4 +244,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
241
244
  * @Author: WangHan
242
245
  * @Date: 2024-12-24 11:32
243
246
  */
244
- export declare const updateServicePrice: (state: any) => Promise<any> | never[];
247
+ export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
@@ -46,6 +46,8 @@ __export(utils_exports, {
46
46
  handleChangeHolder: () => handleChangeHolder,
47
47
  holderId: () => holderId,
48
48
  initDate: () => initDate,
49
+ isAllNormalProduct: () => isAllNormalProduct,
50
+ isAllNormalProductByState: () => isAllNormalProductByState,
49
51
  isAppointmentProduct: () => isAppointmentProduct,
50
52
  isBookingProduct: () => isBookingProduct,
51
53
  isDayBooking: () => isDayBooking,
@@ -53,6 +55,7 @@ __export(utils_exports, {
53
55
  isDaysBooking: () => isDaysBooking,
54
56
  isEventBooking: () => isEventBooking,
55
57
  isHasDayAppointmentProduct: () => isHasDayAppointmentProduct,
58
+ isNormalProductByDurationSchedule: () => isNormalProductByDurationSchedule,
56
59
  isOpenDeletePet: () => isOpenDeletePet,
57
60
  isTerminalDayBooking: () => isTerminalDayBooking,
58
61
  updateAppointmentServicePrice: () => updateAppointmentServicePrice,
@@ -440,6 +443,16 @@ var getIsSubjectRequire = (state) => {
440
443
  var _a, _b, _c, _d, _e, _f, _g;
441
444
  return ((_d = (_c = (_b = (_a = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a.config) == null ? void 0 : _b.basic) == null ? void 0 : _c.appointment_subject) == null ? void 0 : _d.type) === "form" && ((_g = (_f = (_e = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _e.config) == null ? void 0 : _f.basic) == null ? void 0 : _g.subject_require) === "require";
442
445
  };
446
+ var isNormalProductByDurationSchedule = (item) => {
447
+ var _a, _b;
448
+ return !(item == null ? void 0 : item.duration) && !((_a = item == null ? void 0 : item.schedules) == null ? void 0 : _a.length) && !((_b = item["schedule.ids"]) == null ? void 0 : _b.length);
449
+ };
450
+ var isAllNormalProduct = (items) => {
451
+ return items.every((item) => isNormalProductByDurationSchedule(item));
452
+ };
453
+ var isAllNormalProductByState = (state) => {
454
+ return isAllNormalProduct(state.service.value);
455
+ };
443
456
  var getGeneralParams = (item, state, isParallelResource) => {
444
457
  var _a, _b, _c, _d, _e, _f, _g;
445
458
  const { pet, service } = state;
@@ -489,12 +502,14 @@ var getGeneralParams = (item, state, isParallelResource) => {
489
502
  }
490
503
  ];
491
504
  }
505
+ const isNormalProduct = isNormalProductByDurationSchedule(item);
492
506
  return {
493
507
  format: ["HH:mm", "HH:mm"],
494
508
  show_time: true,
495
509
  duration_type: "minutes",
496
510
  // 当前可选择holder列表
497
511
  holders: formatHolders(holders),
512
+ isShowChangeHolder: !isNormalProduct,
498
513
  isShowAction: (0, import_utils4.isShowAddTime)(state, item),
499
514
  actionText: import_utils2.locales.getText("page.booking.text.add-time"),
500
515
  isMultipleResource: true,
@@ -502,8 +517,8 @@ var getGeneralParams = (item, state, isParallelResource) => {
502
517
  isErrorHolder: getIsSubjectRequire(state),
503
518
  addHolderButtonText: ((_c = (_b = formData == null ? void 0 : formData[0]) == null ? void 0 : _b.form) == null ? void 0 : _c.title) || "",
504
519
  holder_id: (_d = item == null ? void 0 : item._extend) == null ? void 0 : _d.holder_id,
505
- start_date: (_e = item == null ? void 0 : item._extend) == null ? void 0 : _e.startDate,
506
- end_date: ((_f = item == null ? void 0 : item._extend) == null ? void 0 : _f.endDate) || ((_g = item == null ? void 0 : item._extend) == null ? void 0 : _g.end_date),
520
+ start_date: !isNormalProduct ? (_e = item == null ? void 0 : item._extend) == null ? void 0 : _e.startDate : "",
521
+ end_date: !isNormalProduct ? ((_f = item == null ? void 0 : item._extend) == null ? void 0 : _f.endDate) || ((_g = item == null ? void 0 : item._extend) == null ? void 0 : _g.end_date) : "",
507
522
  ...parallelResourceOtherParams
508
523
  };
509
524
  };
@@ -528,6 +543,7 @@ var formatProducts = (lists, state, isRenderGroup = true, isGeneral, isParallelR
528
543
  errorMessage = getErrorMessage(item, resourceItem, isDayBooking(state));
529
544
  }
530
545
  const generalParams = isGeneral ? getGeneralParams(item, state, !!isParallelResource) : {};
546
+ console.log(isNormalProduct, "isNormalProduct");
531
547
  return {
532
548
  id: item == null ? void 0 : item.id,
533
549
  _id: item == null ? void 0 : item._id,
@@ -961,6 +977,8 @@ var updateServicePrice = (state) => {
961
977
  handleChangeHolder,
962
978
  holderId,
963
979
  initDate,
980
+ isAllNormalProduct,
981
+ isAllNormalProductByState,
964
982
  isAppointmentProduct,
965
983
  isBookingProduct,
966
984
  isDayBooking,
@@ -968,6 +986,7 @@ var updateServicePrice = (state) => {
968
986
  isDaysBooking,
969
987
  isEventBooking,
970
988
  isHasDayAppointmentProduct,
989
+ isNormalProductByDurationSchedule,
971
990
  isOpenDeletePet,
972
991
  isTerminalDayBooking,
973
992
  updateAppointmentServicePrice,
@@ -104,7 +104,7 @@ var isBooking4Shop = (shopId, renderType) => {
104
104
  if (renderType === "eventBooking") {
105
105
  return false;
106
106
  }
107
- const booking4Shops = [8390, 1350, 1401, 3013, 7154, 7572, 7007, 8119, 7320, 7362, 6497, 6087, 6303, 6726, 8191, 6812, 6813, 6814, 7651, 8586, 8581, 9, 2155, 8030, 1749, 8194, 2327, 6813, 8609, 8610, 8782, 1285, 6124, 8727, 5538];
107
+ const booking4Shops = [8390, 1350, 1401, 3013, 7154, 7572, 7007, 8119, 7320, 7362, 6497, 6087, 6303, 6726, 8191, 6812, 6813, 6814, 7651, 8586, 8581, 9, 2155, 8030, 1749, 8194, 2327, 6813, 8609, 8610, 8782, 1285, 6124, 8727, 5538, 6988];
108
108
  return booking4Shops.includes(shopId);
109
109
  };
110
110
  function generateDateRange(start, end) {
@@ -47,6 +47,7 @@ var import_utils2 = require("./utils");
47
47
  var import_utils3 = require("../../../utils");
48
48
  var import_utils4 = require("@pisell/utils");
49
49
  var import_ahooks = require("ahooks");
50
+ var import_utils5 = require("../../../info/service2/utils");
50
51
  var shopList = [
51
52
  2886,
52
53
  4422,
@@ -188,7 +189,7 @@ var Info = (props) => {
188
189
  const handleSelectProduct = (item, type) => {
189
190
  var _a2, _b2;
190
191
  const isSession = (0, import_utils3.isSessionProduct)(item);
191
- const isEject = type === "detail" || item.bundle_group_count > 0 || isSession;
192
+ const isEject = (0, import_utils3.getIsEject)(item, type);
192
193
  let lock = false;
193
194
  state.action({
194
195
  type: "pisell1.handleOpenProductModal",
@@ -196,10 +197,11 @@ var Info = (props) => {
196
197
  id: item.id,
197
198
  date: state.date.value.format("YYYY-MM-DD"),
198
199
  showConfig: {
199
- option: false,
200
+ option: true,
200
201
  session: isSession,
201
- variant: false,
202
- package: true
202
+ variant: true,
203
+ package: true,
204
+ number: (0, import_utils5.isNormalProductByDurationSchedule)(item)
203
205
  },
204
206
  is_eject: isEject ? 1 : 0,
205
207
  isOS: isSession,
@@ -224,13 +226,14 @@ var Info = (props) => {
224
226
  _key: e.key,
225
227
  _extend: {
226
228
  start_date: state.date.value,
227
- quantity: 1,
229
+ quantity: (e == null ? void 0 : e.quantity) || 1,
228
230
  price: _detail.price,
229
231
  product_name: item.title,
230
232
  other
231
233
  },
232
234
  new: 1
233
235
  };
236
+ console.log(cacheItem, "cacheItem", e);
234
237
  let _total = (0, import_utils3.getProductTotalPrice)(cacheItem);
235
238
  cacheItem._extend.total = _total;
236
239
  cacheItem._extend.origin_total = _total;