@pisell/private-materials 3.3.30 → 3.3.31

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 (311) 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/businessModel/SalesModel/index.d.ts +0 -1
  8. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  9. package/es/components/appointmentBooking/components/Content/index.d.ts +0 -1
  10. package/es/components/appointmentBooking/components/Header/index.d.ts +0 -1
  11. package/es/components/appointmentBooking/index.d.ts +0 -1
  12. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  13. package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  14. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  15. package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
  16. package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
  17. package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  18. package/es/components/booking/components/footer/amount.d.ts +1 -0
  19. package/es/components/booking/components/footer/amount.js +1 -1
  20. package/es/components/booking/components/footer/index.d.ts +0 -1
  21. package/es/components/booking/components/footer/index.js +9 -3
  22. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  23. package/es/components/booking/deposit/index.d.ts +0 -1
  24. package/es/components/booking/forms/forms.js +2 -1
  25. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  26. package/es/components/booking/forms/single/index.d.ts +0 -1
  27. package/es/components/booking/forms/table/index.d.ts +0 -1
  28. package/es/components/booking/hooks/useQuotation.js +5 -14
  29. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  30. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  31. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  32. package/es/components/booking/info/clientVariant/vertical/index.js +6 -5
  33. package/es/components/booking/info/date/index.d.ts +0 -1
  34. package/es/components/booking/info/header/index.d.ts +0 -1
  35. package/es/components/booking/info/hooks/useAddHolder.js +2 -1
  36. package/es/components/booking/info/hooks/useGetHolderList.js +2 -2
  37. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  38. package/es/components/booking/info/notes/index.d.ts +0 -1
  39. package/es/components/booking/info/service/Lists.d.ts +0 -1
  40. package/es/components/booking/info/service/actions/index.d.ts +0 -1
  41. package/es/components/booking/info/service/addService/index.d.ts +0 -1
  42. package/es/components/booking/info/service/like/index.d.ts +0 -1
  43. package/es/components/booking/info/service/serve.d.ts +9 -0
  44. package/es/components/booking/info/service/serve.js +21 -0
  45. package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
  46. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  47. package/es/components/booking/info/service2/utils.d.ts +3 -2
  48. package/es/components/booking/info/service2/utils.js +22 -17
  49. package/es/components/booking/info/utils.js +1 -1
  50. package/es/components/booking/info2/service/actions/index.d.ts +0 -1
  51. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  52. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  53. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
  54. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  55. package/es/components/booking/materiels/duration/index.d.ts +0 -1
  56. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  57. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  58. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  59. package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
  60. package/es/components/booking/notes/addNote/index.d.ts +0 -1
  61. package/es/components/booking/utils.d.ts +2 -2
  62. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  63. package/es/components/eftpos/form/index.d.ts +0 -1
  64. package/es/components/eftpos/group/index.d.ts +0 -1
  65. package/es/components/eftpos/hooks.d.ts +0 -1
  66. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  67. package/es/components/eftpos/icon/device.d.ts +0 -1
  68. package/es/components/eftpos/index.d.ts +0 -1
  69. package/es/components/eftpos/pos.d.ts +0 -1
  70. package/es/components/eftpos/receipt/index.d.ts +0 -1
  71. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  72. package/es/components/eftposPay/amount.d.ts +1 -2
  73. package/es/components/eftposPay/app.d.ts +1 -2
  74. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  75. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  76. package/es/components/eftposPay/component/fail/index.d.ts +0 -1
  77. package/es/components/eftposPay/component/fail/network.d.ts +0 -1
  78. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
  79. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  80. package/es/components/eftposPay/component/manual/index.d.ts +0 -1
  81. package/es/components/eftposPay/component/signature/index.d.ts +0 -1
  82. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  83. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  84. package/es/components/eftposPay/device.d.ts +1 -2
  85. package/es/components/eftposPay/hooks.d.ts +1 -1
  86. package/es/components/eftposPay/index.d.ts +0 -1
  87. package/es/components/eftposPay/pay.d.ts +0 -1
  88. package/es/components/eftposPay/payo/config.d.ts +0 -1
  89. package/es/components/eftposPay/store/index.d.ts +3 -3
  90. package/es/components/eftposPay/tip.d.ts +0 -1
  91. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  92. package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  93. package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
  94. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  95. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  96. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  97. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  98. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  99. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  100. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  101. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  102. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  103. package/es/components/eventBooking/index.d.ts +0 -1
  104. package/es/components/login/index.d.ts +0 -1
  105. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  106. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  107. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  108. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  109. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  110. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  111. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  112. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  113. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  114. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  115. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  116. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  117. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  118. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  119. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  120. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  121. package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  122. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  123. package/es/components/productExtension/index.d.ts +0 -1
  124. package/es/components/ruleSetting/index.d.ts +0 -1
  125. package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  126. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  127. package/es/components/schedules/calendar/index.d.ts +0 -1
  128. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  129. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  130. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  131. package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
  132. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  133. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  134. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  135. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  136. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  137. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  138. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  139. package/es/components/schedules/products/index.d.ts +0 -1
  140. package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  141. package/es/components/schedules/products/list/index.d.ts +0 -1
  142. package/es/components/schedules/resources/index.d.ts +0 -1
  143. package/es/components/schedules/resources/list/index.d.ts +0 -1
  144. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  145. package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  146. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  147. package/es/components/schedules/schedules/index.d.ts +0 -1
  148. package/es/components/schedules/utils.d.ts +1 -1
  149. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  150. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  151. package/es/components/shoppingCart/index.d.ts +0 -1
  152. package/es/components/taxSelect/index.d.ts +0 -1
  153. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  154. package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -1
  155. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  156. package/es/components/ticketBooking/index.d.ts +0 -1
  157. package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
  158. package/es/utils/index.d.ts +1 -1
  159. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  160. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  161. package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -1
  162. package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -1
  163. package/lib/components/appointmentBooking/index.d.ts +0 -1
  164. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  165. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  166. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  167. package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
  168. package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
  169. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  170. package/lib/components/booking/components/footer/amount.d.ts +1 -0
  171. package/lib/components/booking/components/footer/amount.js +2 -0
  172. package/lib/components/booking/components/footer/index.d.ts +0 -1
  173. package/lib/components/booking/components/footer/index.js +1 -0
  174. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  175. package/lib/components/booking/deposit/index.d.ts +0 -1
  176. package/lib/components/booking/forms/forms.js +1 -1
  177. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  178. package/lib/components/booking/forms/single/index.d.ts +0 -1
  179. package/lib/components/booking/forms/table/index.d.ts +0 -1
  180. package/lib/components/booking/hooks/useQuotation.js +5 -20
  181. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  182. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  183. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  184. package/lib/components/booking/info/clientVariant/vertical/index.js +2 -2
  185. package/lib/components/booking/info/date/index.d.ts +0 -1
  186. package/lib/components/booking/info/header/index.d.ts +0 -1
  187. package/lib/components/booking/info/hooks/useAddHolder.js +1 -1
  188. package/lib/components/booking/info/hooks/useGetHolderList.js +3 -3
  189. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  190. package/lib/components/booking/info/notes/index.d.ts +0 -1
  191. package/lib/components/booking/info/service/Lists.d.ts +0 -1
  192. package/lib/components/booking/info/service/actions/index.d.ts +0 -1
  193. package/lib/components/booking/info/service/addService/index.d.ts +0 -1
  194. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  195. package/lib/components/booking/info/service/serve.d.ts +9 -0
  196. package/lib/components/booking/info/service/serve.js +3 -0
  197. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
  198. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  199. package/lib/components/booking/info/service2/utils.d.ts +3 -2
  200. package/lib/components/booking/info/service2/utils.js +16 -11
  201. package/lib/components/booking/info/utils.js +1 -1
  202. package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
  203. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  204. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  205. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
  206. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  207. package/lib/components/booking/materiels/duration/index.d.ts +0 -1
  208. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  209. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  210. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  211. package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
  212. package/lib/components/booking/notes/addNote/index.d.ts +0 -1
  213. package/lib/components/booking/utils.d.ts +2 -2
  214. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  215. package/lib/components/eftpos/form/index.d.ts +0 -1
  216. package/lib/components/eftpos/group/index.d.ts +0 -1
  217. package/lib/components/eftpos/hooks.d.ts +0 -1
  218. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  219. package/lib/components/eftpos/icon/device.d.ts +0 -1
  220. package/lib/components/eftpos/index.d.ts +0 -1
  221. package/lib/components/eftpos/pos.d.ts +0 -1
  222. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  223. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  224. package/lib/components/eftposPay/amount.d.ts +1 -2
  225. package/lib/components/eftposPay/app.d.ts +1 -2
  226. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  227. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  228. package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
  229. package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
  230. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  231. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  232. package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
  233. package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
  234. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  235. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  236. package/lib/components/eftposPay/device.d.ts +1 -2
  237. package/lib/components/eftposPay/hooks.d.ts +1 -1
  238. package/lib/components/eftposPay/index.d.ts +0 -1
  239. package/lib/components/eftposPay/pay.d.ts +0 -1
  240. package/lib/components/eftposPay/payo/config.d.ts +0 -1
  241. package/lib/components/eftposPay/store/index.d.ts +3 -3
  242. package/lib/components/eftposPay/tip.d.ts +0 -1
  243. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  244. package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  245. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
  246. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  247. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  248. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  249. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  250. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  251. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  252. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  253. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  254. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  255. package/lib/components/eventBooking/index.d.ts +0 -1
  256. package/lib/components/login/index.d.ts +0 -1
  257. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  258. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  259. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  260. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  261. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  262. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  263. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  264. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  265. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  266. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  267. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  268. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  269. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  270. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  271. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  272. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  273. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  274. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  275. package/lib/components/productExtension/index.d.ts +0 -1
  276. package/lib/components/ruleSetting/index.d.ts +0 -1
  277. package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  278. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  279. package/lib/components/schedules/calendar/index.d.ts +0 -1
  280. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  281. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  282. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  283. package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
  284. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  285. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  286. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  287. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  288. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  289. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  290. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  291. package/lib/components/schedules/products/index.d.ts +0 -1
  292. package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  293. package/lib/components/schedules/products/list/index.d.ts +0 -1
  294. package/lib/components/schedules/resources/index.d.ts +0 -1
  295. package/lib/components/schedules/resources/list/index.d.ts +0 -1
  296. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  297. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  298. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  299. package/lib/components/schedules/schedules/index.d.ts +0 -1
  300. package/lib/components/schedules/utils.d.ts +1 -1
  301. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  302. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  303. package/lib/components/shoppingCart/index.d.ts +0 -1
  304. package/lib/components/taxSelect/index.d.ts +0 -1
  305. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  306. package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -1
  307. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  308. package/lib/components/ticketBooking/index.d.ts +0 -1
  309. package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
  310. package/lib/utils/index.d.ts +1 -1
  311. package/package.json +4 -4
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const SalesModel: ({ children, hooks, config }: any) => JSX.Element;
3
2
  export * from './Sales';
4
3
  export default SalesModel;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const CartItem: ({ onNext }: any) => JSX.Element;
4
3
  export default CartItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Layout: () => JSX.Element;
4
3
  export default Layout;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Header: () => JSX.Element;
4
3
  export default Header;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const AppointmentBooking: () => JSX.Element;
4
3
  export default AppointmentBooking;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface TabProductProps {
4
3
  list: any[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
4
3
  export default ProductItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const SelectProductItem: ({ item, onClick, onChangeQuantity, amountSymbol, style, className, disabled, }: any) => JSX.Element;
4
3
  export default SelectProductItem;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const renderBundles: (item: any, amountSymbol: string) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 空状态
4
3
  * @description:
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const FooterMenus: ({ state, menuChange, items }: any) => JSX.Element | null;
4
3
  export default FooterMenus;
@@ -1,3 +1,4 @@
1
+ export declare const getRelationDetailsTotal: (relation_details: any) => number;
1
2
  export declare const is_price_include_tax: (state: any) => any;
2
3
  /**
3
4
  * 总金额
@@ -10,7 +10,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
10
10
  import { getDiscountTime, flexibleObj } from "../../utils";
11
11
  import { formatAmount } from '@pisell/utils';
12
12
  import { isDayBooking, isDayBookingProduct } from "../../info/service2/utils";
13
- var getRelationDetailsTotal = function getRelationDetailsTotal(relation_details) {
13
+ export var getRelationDetailsTotal = function getRelationDetailsTotal(relation_details) {
14
14
  var total = 0;
15
15
  var _iterator = _createForOfIteratorHelper(relation_details),
16
16
  _step;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  /**
4
3
  * @title: 底部
@@ -255,10 +255,16 @@ var Footer = function Footer(props) {
255
255
  return _regeneratorRuntime().wrap(function _callee$(_context) {
256
256
  while (1) switch (_context.prev = _context.next) {
257
257
  case 0:
258
- if (!(isTerminal !== null && isTerminal !== void 0 && isTerminal())) {
258
+ if (order_id) {
259
259
  _context.next = 2;
260
260
  break;
261
261
  }
262
+ return _context.abrupt("return");
263
+ case 2:
264
+ if (!(isTerminal !== null && isTerminal !== void 0 && isTerminal())) {
265
+ _context.next = 4;
266
+ break;
267
+ }
262
268
  return _context.abrupt("return", interaction === null || interaction === void 0 || (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 || (_interaction$utils$po = _interaction$utils.postMessageToApp) === null || _interaction$utils$po === void 0 ? void 0 : _interaction$utils$po.call(_interaction$utils, {
263
269
  module: 'booking',
264
270
  key: 'booking_checkout',
@@ -267,7 +273,7 @@ var Footer = function Footer(props) {
267
273
  callbackType: 'pisell2'
268
274
  }
269
275
  }));
270
- case 2:
276
+ case 4:
271
277
  state.action({
272
278
  type: 'pisell1.handlePayment',
273
279
  data: {
@@ -277,7 +283,7 @@ var Footer = function Footer(props) {
277
283
  state === null || state === void 0 || state.callback();
278
284
  }
279
285
  });
280
- case 3:
286
+ case 5:
281
287
  case "end":
282
288
  return _context.stop();
283
289
  }
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const FormItemChildrenWrap: (props: any) => JSX.Element;
3
2
  export default FormItemChildrenWrap;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Deposit: (props: any) => JSX.Element;
3
2
  export default Deposit;
@@ -59,7 +59,8 @@ var Forms = Provider(function (props) {
59
59
  case 0:
60
60
  _data = {
61
61
  formDataConfig: isMinorAndWaiver ? _objectSpread(_objectSpread({}, waiverForm), {}, {
62
- customer_id: client === null || client === void 0 ? void 0 : client.id
62
+ customer_id: client === null || client === void 0 ? void 0 : client.id,
63
+ is_franchisor: formDataConfig.is_franchisor
63
64
  }) : _objectSpread({}, formDataConfig)
64
65
  };
65
66
  if (formDataConfig.data_range === 'customer' && !isWalkIn(client === null || client === void 0 ? void 0 : client.id)) {
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
4
4
  setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
5
5
  handleOpen: () => void;
6
6
  handleValuesChange: (val: any) => void;
7
- handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
7
+ handleOk: (values: SendModalValues) => Promise<any>;
8
8
  };
9
9
  export default useSendModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  /**
4
3
  * @title: 表单选择器
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Table: ({ value, onChange, field, mode, onAdd }: any) => JSX.Element;
4
3
  export default Table;
@@ -18,6 +18,7 @@ import { getProductTotalPrice } from "../utils";
18
18
  import useEngineContext from "../../../../es/hooks/useEngineContext";
19
19
  import { locales } from "@pisell/utils";
20
20
  import { PisellModal } from "@pisell/materials";
21
+ import { getProductPrice } from "../info/service/serve";
21
22
  var formatBundleItemMap = function formatBundleItemMap(product) {
22
23
  return product.bundle_group.reduce(function (pre, cur) {
23
24
  var curObj = {};
@@ -134,22 +135,12 @@ var useQuotation = function useQuotation(state, dispatch) {
134
135
  return _context.abrupt("return");
135
136
  case 2:
136
137
  _context.next = 4;
137
- return state.apis.getServices({
138
- skip: 1,
139
- num: 500,
140
- extension_type: state.renderType === 'eventBooking' ? undefined : ['product_appointment', 'appointment_ticket', 'service_product', 'session_product', 'session_ticket'],
141
- with: ['category', 'resourceRelation'],
138
+ return getProductPrice({
142
139
  ids: cartValueRef.current.map(function (item) {
143
140
  return item.product_id;
144
141
  }),
145
- open_quotation: 1,
146
- with_schedule: 1,
147
- with_count: ['bundleGroup', 'optionGroup'],
148
- order_by_string: 'sort:desc',
149
- status: 'published',
150
142
  schedule_date: params === null || params === void 0 ? void 0 : params.schedule_date,
151
- customer_id: params === null || params === void 0 ? void 0 : params.customer_id,
152
- open_bundle: 1
143
+ customer_id: params === null || params === void 0 ? void 0 : params.customer_id
153
144
  });
154
145
  case 4:
155
146
  data = _context.sent;
@@ -177,13 +168,13 @@ var useQuotation = function useQuotation(state, dispatch) {
177
168
  return getCartQuotation(params);
178
169
  case 2:
179
170
  data = _context2.sent;
180
- if (data) {
171
+ if (data !== null && data !== void 0 && data.data) {
181
172
  _context2.next = 5;
182
173
  break;
183
174
  }
184
175
  return _context2.abrupt("return");
185
176
  case 5:
186
- _setNewCartValue = setNewCartValue(cartValueRef.current, data.list), isChange = _setNewCartValue.isChange, newCartValue = _setNewCartValue.value, isNotFoundBundle = _setNewCartValue.isNotFoundBundle, notFoundProducts = _setNewCartValue.notFoundProducts;
177
+ _setNewCartValue = setNewCartValue(cartValueRef.current, data.data), isChange = _setNewCartValue.isChange, newCartValue = _setNewCartValue.value, isNotFoundBundle = _setNewCartValue.isNotFoundBundle, notFoundProducts = _setNewCartValue.notFoundProducts;
187
178
  if (!isNotFoundBundle) {
188
179
  _context2.next = 10;
189
180
  break;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface AddServiceVariantProps {
3
2
  globalState: any;
4
3
  setGlobalState: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FormState } from '../../../model';
3
2
  interface useClientFnParams {
4
3
  state: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useIsLowSpeedNetwork: () => import("react").MutableRefObject<boolean>;
3
2
  export default useIsLowSpeedNetwork;
@@ -156,11 +156,12 @@ var VerticalClient = /*#__PURE__*/forwardRef(function (props, ref) {
156
156
  handleOpenClientModal();
157
157
  });
158
158
  var handleAddPet = function handleAddPet(_client, cb) {
159
- var _state$pet$formData;
159
+ var _state$pet$formData, _state$pet$formData2;
160
160
  var _data = {
161
161
  formDataConfig: isMinorAndWaiver ? _objectSpread(_objectSpread({}, waiverForm), {}, {
162
- customer_id: _client.id
163
- }) : _objectSpread({}, ((_state$pet$formData = state.pet.formData) === null || _state$pet$formData === void 0 ? void 0 : _state$pet$formData[0]) || {})
162
+ customer_id: _client.id,
163
+ is_franchisor: (_state$pet$formData = state.pet.formData) === null || _state$pet$formData === void 0 || (_state$pet$formData = _state$pet$formData[0]) === null || _state$pet$formData === void 0 ? void 0 : _state$pet$formData.is_franchisor
164
+ }) : _objectSpread({}, ((_state$pet$formData2 = state.pet.formData) === null || _state$pet$formData2 === void 0 ? void 0 : _state$pet$formData2[0]) || {})
164
165
  };
165
166
  _data.customerId = _client.id;
166
167
  state.action({
@@ -194,7 +195,7 @@ var VerticalClient = /*#__PURE__*/forwardRef(function (props, ref) {
194
195
  });
195
196
  };
196
197
  var previewItemTitleRender = useMemoizedFn(function (value, index, values) {
197
- var _value$customer, _value$customer2, _value$customer3, _value$customer4, _state$pet$formData2;
198
+ var _value$customer, _value$customer2, _value$customer3, _value$customer4, _state$pet$formData3;
198
199
  var title = getNickname(value.customer) || (value === null || value === void 0 || (_value$customer = value.customer) === null || _value$customer === void 0 ? void 0 : _value$customer.email) || (value === null || value === void 0 || (_value$customer2 = value.customer) === null || _value$customer2 === void 0 ? void 0 : _value$customer2.phone) || '';
199
200
  if ((value === null || value === void 0 || (_value$customer3 = value.customer) === null || _value$customer3 === void 0 ? void 0 : _value$customer3.id) === prevCustomerId.current) {
200
201
  if (values.length === index + 1) {
@@ -208,7 +209,7 @@ var VerticalClient = /*#__PURE__*/forwardRef(function (props, ref) {
208
209
  }
209
210
  return /*#__PURE__*/React.createElement("div", {
210
211
  className: "pisell-lowcode__booking-pet-title"
211
- }, title, " ' ", ((_state$pet$formData2 = state.pet.formData) === null || _state$pet$formData2 === void 0 || (_state$pet$formData2 = _state$pet$formData2[0]) === null || _state$pet$formData2 === void 0 ? void 0 : _state$pet$formData2.title) || '');
212
+ }, title, " ' ", ((_state$pet$formData3 = state.pet.formData) === null || _state$pet$formData3 === void 0 || (_state$pet$formData3 = _state$pet$formData3[0]) === null || _state$pet$formData3 === void 0 ? void 0 : _state$pet$formData3.title) || '');
212
213
  });
213
214
  var isShowAddBtn = useMemo(function () {
214
215
  var _state$pet, _state$pet2;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export declare const updateServiceDate: (services: any[], date: any, isTime: boolean) => any[];
4
3
  declare const DateCom: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const header: ({ state, dispatch }: any) => JSX.Element;
4
3
  export default header;
@@ -85,7 +85,8 @@ var useAddHolder = function useAddHolder(state, dispatch) {
85
85
  var _state$client, _state$client2;
86
86
  var _data = {
87
87
  formDataConfig: isMinorAndWaiver ? _objectSpread(_objectSpread({}, waiverForm), {}, {
88
- customer_id: (_state$client = state.client) === null || _state$client === void 0 || (_state$client = _state$client.value) === null || _state$client === void 0 ? void 0 : _state$client.id
88
+ customer_id: (_state$client = state.client) === null || _state$client === void 0 || (_state$client = _state$client.value) === null || _state$client === void 0 ? void 0 : _state$client.id,
89
+ is_franchisor: formDataConfig.is_franchisor
89
90
  }) : _objectSpread({}, formDataConfig)
90
91
  };
91
92
  var isWalkInBol = isWalkIn((_state$client2 = state.client) === null || _state$client2 === void 0 || (_state$client2 = _state$client2.value) === null || _state$client2 === void 0 ? void 0 : _state$client2.id);
@@ -9,7 +9,7 @@ var useGetHolderList = function useGetHolderList(state, dispatch) {
9
9
  holder = _useHolderConfig.holder,
10
10
  appointment_subject = _useHolderConfig.appointment_subject;
11
11
  var getHolders = useMemoizedFn( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
12
- var _state$client, _state$client2;
12
+ var _state$client, _holder$form, _state$client2;
13
13
  var params, data;
14
14
  return _regeneratorRuntime().wrap(function _callee$(_context) {
15
15
  while (1) switch (_context.prev = _context.next) {
@@ -22,7 +22,7 @@ var useGetHolderList = function useGetHolderList(state, dispatch) {
22
22
  case 2:
23
23
  params = {
24
24
  form_id: appointment_subject.form_id,
25
- source_shop_customer: holder === null || holder === void 0 ? void 0 : holder.is_franchisor,
25
+ source_shop_customer: holder === null || holder === void 0 || (_holder$form = holder.form) === null || _holder$form === void 0 ? void 0 : _holder$form.is_franchisor,
26
26
  customer_id: holder.data_range === 'customer' ? (_state$client2 = state.client) === null || _state$client2 === void 0 || (_state$client2 = _state$client2.value) === null || _state$client2 === void 0 ? void 0 : _state$client2.id : undefined,
27
27
  skip: 1,
28
28
  num: 100
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { EditServiceRef } from "../service/editService";
3
2
  declare const useInfoHolder: (state: any, dispatch: any) => {
4
3
  detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Notes: () => JSX.Element | null;
3
2
  export default Notes;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Lists: ({ onEdit, onChange, onAction, isParallelResource }: any) => JSX.Element;
3
2
  export default Lists;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Actions: ({ currentService }: {
4
3
  currentService: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellDrawerProps } from '../../../components/drawer';
3
2
  import './index.less';
4
3
  interface AddServiceProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Like: ({ status, onChange, className, style, }: {
4
3
  style?: any;
@@ -9,3 +9,12 @@ export declare const getProductDetail: (id: string, params: any) => Promise<any>
9
9
  * @Date: 2024-12-23 17:06
10
10
  */
11
11
  export declare const postMultiDay: (id: string, params: any) => Promise<any>;
12
+ /**
13
+ * 批量查询指定商品的最新价格
14
+ * @param params
15
+ */
16
+ export declare const getProductPrice: (params: {
17
+ ids: number[];
18
+ customer_id: number;
19
+ schedule_date: string;
20
+ }) => Promise<any>;
@@ -46,4 +46,25 @@ export var postMultiDay = /*#__PURE__*/function () {
46
46
  return function postMultiDay(_x3, _x4) {
47
47
  return _ref2.apply(this, arguments);
48
48
  };
49
+ }();
50
+
51
+ /**
52
+ * 批量查询指定商品的最新价格
53
+ * @param params
54
+ */
55
+ export var getProductPrice = /*#__PURE__*/function () {
56
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(params) {
57
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
58
+ while (1) switch (_context3.prev = _context3.next) {
59
+ case 0:
60
+ return _context3.abrupt("return", request.getRequest().post("/shop/product/query/price", params));
61
+ case 1:
62
+ case "end":
63
+ return _context3.stop();
64
+ }
65
+ }, _callee3);
66
+ }));
67
+ return function getProductPrice(_x5) {
68
+ return _ref3.apply(this, arguments);
69
+ };
49
70
  }();
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ServiceList: ({ onEdit }: {
4
3
  onEdit: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Lists: ({ onEdit, onChange }: any) => JSX.Element;
3
2
  export default Lists;
@@ -69,8 +69,8 @@ export declare const formatProducts: (lists: any[], state: any, isRenderGroup?:
69
69
  _id: any;
70
70
  name: any;
71
71
  price: any;
72
- total: any;
73
- origin_total: any;
72
+ total: number;
73
+ origin_total: number;
74
74
  num: any;
75
75
  image: any;
76
76
  isShowNote: boolean;
@@ -90,6 +90,7 @@ export declare const formatProducts: (lists: any[], state: any, isRenderGroup?:
90
90
  isNormalProduct: boolean;
91
91
  locale: any;
92
92
  symbol: any;
93
+ relation_products: any;
93
94
  items: any[];
94
95
  }[];
95
96
  /**
@@ -30,6 +30,7 @@ import { isShowAddTime } from "../utils";
30
30
  import { formatResources } from "../service/addService/utils";
31
31
  import { getProductExtend } from "../../info2/service/addService/utils";
32
32
  import { getErrorList as getErrorListInfo2 } from "../../info2/utilsByBooking";
33
+ import { getRelationDetailsTotal } from "../../components/footer/amount";
33
34
  locales.init(localeTexts, localStorage.getItem('umi_locale') || 'en');
34
35
  export var formatActiveKey = function formatActiveKey(lists, platform, isEdit) {
35
36
  if (!(lists !== null && lists !== void 0 && lists.length)) return [];
@@ -598,6 +599,9 @@ var getGeneralParams = function getGeneralParams(item, state, isParallelResource
598
599
  end_date: (item === null || item === void 0 || (_item$_extend7 = item._extend) === null || _item$_extend7 === void 0 ? void 0 : _item$_extend7.endDate) || (item === null || item === void 0 || (_item$_extend8 = item._extend) === null || _item$_extend8 === void 0 ? void 0 : _item$_extend8.end_date)
599
600
  }, parallelResourceOtherParams);
600
601
  };
602
+ var calcAddTimeTotalPrice = function calcAddTimeTotalPrice(total, addTimeProducts) {
603
+ return (Number(total) || 0) + getRelationDetailsTotal(addTimeProducts || []);
604
+ };
601
605
 
602
606
  /**
603
607
  * @title: 格式化商品数据
@@ -615,7 +619,7 @@ export var formatProducts = function formatProducts(lists, state) {
615
619
  var normalList = [];
616
620
  var groupList = [];
617
621
  var formItem = function formItem(item) {
618
- var _item$_extend9, _item$_extend10, _item$_extend11, _item$_extend13, _item$_extend14, _item$_extend15, _item$_extend16, _item$_extend17, _item$_extend18, _item$_extend19, _resourceItem, _item$_extend20, _item$_extend21, _item$_extend22, _item$_extend23;
622
+ var _item$_extend9, _item$_extend10, _item$_extend11, _item$_extend13, _item$_extend14, _item$_extend15, _item$_extend16, _item$_extend17, _item$_extend18, _item$_extend19, _item$_extend20, _item$_extend21, _resourceItem, _item$_extend22, _item$_extend23, _item$_extend24, _item$_extend25, _item$_extend26;
619
623
  var _isDayBookingProduct = isDayBookingProduct(item, state);
620
624
  var clientTitle = getHolderName(state, item === null || item === void 0 || (_item$_extend9 = item._extend) === null || _item$_extend9 === void 0 ? void 0 : _item$_extend9.holder_id);
621
625
  var options = formatOptions(item === null || item === void 0 || (_item$_extend10 = item._extend) === null || _item$_extend10 === void 0 || (_item$_extend10 = _item$_extend10.other) === null || _item$_extend10 === void 0 ? void 0 : _item$_extend10.option);
@@ -635,28 +639,29 @@ export var formatProducts = function formatProducts(lists, state) {
635
639
  _id: item === null || item === void 0 ? void 0 : item._id,
636
640
  name: item === null || item === void 0 ? void 0 : item.title,
637
641
  price: item === null || item === void 0 || (_item$_extend13 = item._extend) === null || _item$_extend13 === void 0 ? void 0 : _item$_extend13.price,
638
- total: item === null || item === void 0 || (_item$_extend14 = item._extend) === null || _item$_extend14 === void 0 ? void 0 : _item$_extend14.total,
639
- origin_total: item === null || item === void 0 || (_item$_extend15 = item._extend) === null || _item$_extend15 === void 0 ? void 0 : _item$_extend15.origin_total,
642
+ total: calcAddTimeTotalPrice(item === null || item === void 0 || (_item$_extend14 = item._extend) === null || _item$_extend14 === void 0 ? void 0 : _item$_extend14.total, item === null || item === void 0 || (_item$_extend15 = item._extend) === null || _item$_extend15 === void 0 ? void 0 : _item$_extend15.relation_details),
643
+ origin_total: calcAddTimeTotalPrice(item === null || item === void 0 || (_item$_extend16 = item._extend) === null || _item$_extend16 === void 0 ? void 0 : _item$_extend16.origin_total, item === null || item === void 0 || (_item$_extend17 = item._extend) === null || _item$_extend17 === void 0 ? void 0 : _item$_extend17.relation_details),
640
644
  num: item === null || item === void 0 ? void 0 : item._extend.quantity,
641
645
  image: item === null || item === void 0 ? void 0 : item.cover,
642
646
  isShowNote: true,
643
647
  note: item === null || item === void 0 ? void 0 : item.note,
644
- like_status: item === null || item === void 0 || (_item$_extend16 = item._extend) === null || _item$_extend16 === void 0 ? void 0 : _item$_extend16.like_status,
648
+ like_status: item === null || item === void 0 || (_item$_extend18 = item._extend) === null || _item$_extend18 === void 0 ? void 0 : _item$_extend18.like_status,
645
649
  bundle: bundle,
646
650
  options: options,
647
651
  errorMessage: errorMessage,
648
- product_option_string: item === null || item === void 0 || (_item$_extend17 = item._extend) === null || _item$_extend17 === void 0 || (_item$_extend17 = _item$_extend17.other) === null || _item$_extend17 === void 0 ? void 0 : _item$_extend17.product_option_string,
649
- discount_reason: item === null || item === void 0 || (_item$_extend18 = item._extend) === null || _item$_extend18 === void 0 ? void 0 : _item$_extend18.discount_reason,
650
- resource_id: isNormalProduct ? 0 : item === null || item === void 0 || (_item$_extend19 = item._extend) === null || _item$_extend19 === void 0 ? void 0 : _item$_extend19.resource,
652
+ product_option_string: item === null || item === void 0 || (_item$_extend19 = item._extend) === null || _item$_extend19 === void 0 || (_item$_extend19 = _item$_extend19.other) === null || _item$_extend19 === void 0 ? void 0 : _item$_extend19.product_option_string,
653
+ discount_reason: item === null || item === void 0 || (_item$_extend20 = item._extend) === null || _item$_extend20 === void 0 ? void 0 : _item$_extend20.discount_reason,
654
+ resource_id: isNormalProduct ? 0 : item === null || item === void 0 || (_item$_extend21 = item._extend) === null || _item$_extend21 === void 0 ? void 0 : _item$_extend21.resource,
651
655
  relation_form_name: isNormalProduct ? '' : ((_resourceItem = resourceItem) === null || _resourceItem === void 0 ? void 0 : _resourceItem.labelText) || item.relation_form_name,
652
656
  holder_title: clientTitle,
653
- start_date: !isNormalProduct ? item === null || item === void 0 || (_item$_extend20 = item._extend) === null || _item$_extend20 === void 0 ? void 0 : _item$_extend20.start_date : '',
654
- end_date: !isNormalProduct ? item === null || item === void 0 || (_item$_extend21 = item._extend) === null || _item$_extend21 === void 0 ? void 0 : _item$_extend21.end_date : '',
655
- holder_id: (item === null || item === void 0 || (_item$_extend22 = item._extend) === null || _item$_extend22 === void 0 ? void 0 : _item$_extend22.holder_id) || 0,
657
+ start_date: !isNormalProduct ? item === null || item === void 0 || (_item$_extend22 = item._extend) === null || _item$_extend22 === void 0 ? void 0 : _item$_extend22.start_date : '',
658
+ end_date: !isNormalProduct ? item === null || item === void 0 || (_item$_extend23 = item._extend) === null || _item$_extend23 === void 0 ? void 0 : _item$_extend23.end_date : '',
659
+ holder_id: (item === null || item === void 0 || (_item$_extend24 = item._extend) === null || _item$_extend24 === void 0 ? void 0 : _item$_extend24.holder_id) || 0,
656
660
  isNormalProduct: isNormalProduct,
657
661
  locale: state.locale,
658
662
  symbol: state.amountSymbol,
659
- items: isEventBooking(state) ? [] : formItems((item === null || item === void 0 || (_item$_extend23 = item._extend) === null || _item$_extend23 === void 0 ? void 0 : _item$_extend23.items) || [])
663
+ relation_products: (item === null || item === void 0 || (_item$_extend25 = item._extend) === null || _item$_extend25 === void 0 ? void 0 : _item$_extend25.relation_details) || [],
664
+ items: isEventBooking(state) ? [] : formItems((item === null || item === void 0 || (_item$_extend26 = item._extend) === null || _item$_extend26 === void 0 ? void 0 : _item$_extend26.items) || [])
660
665
  }, generalParams), {}, {
661
666
  _origin: item
662
667
  });
@@ -664,8 +669,8 @@ export var formatProducts = function formatProducts(lists, state) {
664
669
 
665
670
  // 将商品分为组商品和非组商品
666
671
  lists.forEach(function (item) {
667
- var _item$_extend24;
668
- if (!(item !== null && item !== void 0 && (_item$_extend24 = item._extend) !== null && _item$_extend24 !== void 0 && _item$_extend24.groupId)) {
672
+ var _item$_extend27;
673
+ if (!(item !== null && item !== void 0 && (_item$_extend27 = item._extend) !== null && _item$_extend27 !== void 0 && _item$_extend27.groupId)) {
669
674
  normalList.push(formItem(item));
670
675
  } else {
671
676
  groupList.push(item);
@@ -674,8 +679,8 @@ export var formatProducts = function formatProducts(lists, state) {
674
679
 
675
680
  // 根据item._extend.groupId 进行分组
676
681
  var groups = groupList.reduce(function (prev, item) {
677
- var _item$_extend25;
678
- var groupId = item === null || item === void 0 || (_item$_extend25 = item._extend) === null || _item$_extend25 === void 0 ? void 0 : _item$_extend25.groupId;
682
+ var _item$_extend28;
683
+ var groupId = item === null || item === void 0 || (_item$_extend28 = item._extend) === null || _item$_extend28 === void 0 ? void 0 : _item$_extend28.groupId;
679
684
  if (!prev[groupId]) {
680
685
  prev[groupId] = [];
681
686
  }
@@ -845,8 +850,8 @@ export var isHasDayAppointmentProduct = function isHasDayAppointmentProduct(stat
845
850
  // 如果该购物车中没选择任何商品,则不需要验证,所以直接用1来填充
846
851
  // services: !holderProducts?.length ? [1] : holderProducts?.filter((d: any) => appointmentTypes.includes(d.extension_type))
847
852
  services: services.filter(function (item) {
848
- var _item$_extend26;
849
- return ((_item$_extend26 = item._extend) === null || _item$_extend26 === void 0 ? void 0 : _item$_extend26.holder_id) == d.form_record_id && checkType(item.extension_type);
853
+ var _item$_extend29;
854
+ return ((_item$_extend29 = item._extend) === null || _item$_extend29 === void 0 ? void 0 : _item$_extend29.holder_id) == d.form_record_id && checkType(item.extension_type);
850
855
  })
851
856
  });
852
857
  });
@@ -95,7 +95,7 @@ export var isBooking4Shop = function isBooking4Shop(shopId, renderType) {
95
95
  if (renderType === 'eventBooking') {
96
96
  return false;
97
97
  }
98
- var booking4Shops = [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];
98
+ var 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];
99
99
  return booking4Shops.includes(shopId);
100
100
  };
101
101
  function generateDateRange(start, end) {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '../../../info/service/actions/index.less';
3
2
  declare const Actions: ({ currentService }: {
4
3
  currentService: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellDrawerProps } from '../../../components/drawer';
3
2
  import '../../../info/service/addService/index.less';
4
3
  interface AddServiceProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '../../../info/service/addTimeModal/index.less';
3
2
  declare const AddTimeModal: () => JSX.Element;
4
3
  export default AddTimeModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ServiceList: ({ onEdit }: {
4
3
  onEdit: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare type ContactType = {
4
3
  country_calling_code: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  interface DurationProps extends SelectProps {
4
3
  locale?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  interface HolderProps extends SelectProps {
4
3
  selectProps?: SelectProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from "antd";
3
2
  interface StartTimeProps extends SelectProps {
4
3
  locale?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export interface InfoProps {
4
3
  isEdit: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export interface InfoProps {
4
3
  title?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const AddNote: ({ value, onChange, wait, title, placeholder }: any) => JSX.Element;
4
3
  export default AddNote;