@pisell/private-materials 3.3.46 → 3.3.47

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 (414) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/render/default/view.js +5 -5
  7. package/build/lowcode/view.js +5 -5
  8. package/es/businessModel/SalesModel/index.d.ts +1 -0
  9. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  10. package/es/components/appointmentBooking/components/Cart/Item/index.js +3 -0
  11. package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
  13. package/es/components/appointmentBooking/components/Resource/index.js +19 -7
  14. package/es/components/appointmentBooking/components/Services/index.js +1 -1
  15. package/es/components/appointmentBooking/components/TimeSlicing/index.js +7 -4
  16. package/es/components/appointmentBooking/components/Voucher/index.js +1 -0
  17. package/es/components/appointmentBooking/context.js +7 -3
  18. package/es/components/appointmentBooking/hooks.js +126 -67
  19. package/es/components/appointmentBooking/index.d.ts +1 -0
  20. package/es/components/appointmentBooking/utils.js +6 -1
  21. package/es/components/booking/addons/index.js +31 -26
  22. package/es/components/booking/addons/model.d.ts +1 -10
  23. package/es/components/booking/addons/model.js +5 -5
  24. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  25. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  26. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  27. package/es/components/booking/components/TabProduct/selectProductItem/index.js +4 -4
  28. package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
  29. package/es/components/booking/components/browserSelect/index.js +1 -1
  30. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  31. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  32. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  33. package/es/components/booking/components/footer/amount.js +2 -2
  34. package/es/components/booking/components/footer/index.d.ts +1 -0
  35. package/es/components/booking/components/footer/utils.d.ts +9 -0
  36. package/es/components/booking/components/footer/utils.js +32 -10
  37. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  38. package/es/components/booking/deposit/index.d.ts +1 -0
  39. package/es/components/booking/forms/model.d.ts +1 -10
  40. package/es/components/booking/forms/model.js +5 -5
  41. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  42. package/es/components/booking/forms/single/index.d.ts +1 -0
  43. package/es/components/booking/forms/table/index.d.ts +1 -0
  44. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  45. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  46. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  47. package/es/components/booking/info/date/index.d.ts +1 -0
  48. package/es/components/booking/info/header/index.d.ts +1 -0
  49. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  50. package/es/components/booking/info/model.d.ts +1 -10
  51. package/es/components/booking/info/notes/index.d.ts +1 -0
  52. package/es/components/booking/info/service/Lists.d.ts +1 -0
  53. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  54. package/es/components/booking/info/service/addService/index.d.ts +1 -0
  55. package/es/components/booking/info/service/addService/index.js +2 -2
  56. package/es/components/booking/info/service/like/index.d.ts +1 -0
  57. package/es/components/booking/info/service/like/index.js +1 -1
  58. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  59. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  60. package/es/components/booking/info/service2/utils.d.ts +4 -1
  61. package/es/components/booking/info/service2/utils.js +21 -2
  62. package/es/components/booking/info/utils.js +1 -1
  63. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  64. package/es/components/booking/info2/service/addService/index.d.ts +1 -0
  65. package/es/components/booking/info2/service/addService/index.js +9 -6
  66. package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  67. package/es/components/booking/info2/service/editService/index.js +56 -18
  68. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  69. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  70. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  71. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  72. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  73. package/es/components/booking/materiels/startTime/index.js +1 -1
  74. package/es/components/booking/model.d.ts +1 -9
  75. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  76. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  77. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  78. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  79. package/es/components/booking/notes/addNote/index.d.ts +1 -0
  80. package/es/components/booking/notes/model.d.ts +1 -10
  81. package/es/components/booking/notes/model.js +5 -5
  82. package/es/components/booking/payments/model.d.ts +1 -10
  83. package/es/components/booking/payments/model.js +5 -5
  84. package/es/components/booking/utils.d.ts +1 -0
  85. package/es/components/booking/utils.js +5 -0
  86. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  87. package/es/components/eftpos/form/index.d.ts +1 -0
  88. package/es/components/eftpos/group/index.d.ts +1 -0
  89. package/es/components/eftpos/hooks.d.ts +1 -0
  90. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  91. package/es/components/eftpos/icon/device.d.ts +1 -0
  92. package/es/components/eftpos/index.d.ts +1 -0
  93. package/es/components/eftpos/pos.d.ts +1 -0
  94. package/es/components/eftpos/receipt/index.d.ts +1 -0
  95. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  96. package/es/components/eftposPay/amount.d.ts +2 -1
  97. package/es/components/eftposPay/app.d.ts +1 -0
  98. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  99. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  100. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  101. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  102. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  103. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  104. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  105. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  106. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  107. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  108. package/es/components/eftposPay/device.d.ts +2 -1
  109. package/es/components/eftposPay/hooks.d.ts +2 -2
  110. package/es/components/eftposPay/index.d.ts +1 -0
  111. package/es/components/eftposPay/pay.d.ts +1 -0
  112. package/es/components/eftposPay/payo/config.d.ts +1 -0
  113. package/es/components/eftposPay/store/index.d.ts +6 -6
  114. package/es/components/eftposPay/tip.d.ts +1 -0
  115. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  116. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  117. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  118. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  119. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  120. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  121. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  122. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  123. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  124. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  125. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  126. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  127. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  128. package/es/components/eventBooking/index.d.ts +1 -0
  129. package/es/components/listComponent/index.js +5 -5
  130. package/es/components/login/index.d.ts +1 -0
  131. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  132. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  133. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  134. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  135. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  136. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  137. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  138. package/es/components/pay/toC/model.d.ts +1 -9
  139. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  140. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  141. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  142. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  143. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  144. package/es/components/productExtension/card/index.js +3 -3
  145. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  146. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  147. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  148. package/es/components/productExtension/fields/Forms/index.js +12 -12
  149. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  150. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  151. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  152. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  153. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  154. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  155. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  156. package/es/components/productExtension/index.d.ts +1 -0
  157. package/es/components/productExtension/server.js +2 -2
  158. package/es/components/ruleSetting/index.d.ts +1 -0
  159. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  160. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  161. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  162. package/es/components/schedules/calendar/index.d.ts +1 -0
  163. package/es/components/schedules/calendar/index.js +4 -4
  164. package/es/components/schedules/calendar/serve.js +2 -2
  165. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  166. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  167. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  168. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  169. package/es/components/schedules/components/ResourceList/index.js +1 -1
  170. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  171. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  172. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  173. package/es/components/schedules/components/Search/index.js +5 -5
  174. package/es/components/schedules/model.d.ts +1 -9
  175. package/es/components/schedules/model.js +5 -5
  176. package/es/components/schedules/openHours/index.js +1 -1
  177. package/es/components/schedules/openHours/serve.js +2 -2
  178. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  179. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  180. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  181. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  182. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  183. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  184. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  185. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  186. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  187. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  188. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  189. package/es/components/schedules/products/index.d.ts +1 -0
  190. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  191. package/es/components/schedules/products/list/index.d.ts +1 -0
  192. package/es/components/schedules/products/serve.js +2 -2
  193. package/es/components/schedules/products/utils.js +5 -5
  194. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  195. package/es/components/schedules/resources/detail/index.js +10 -10
  196. package/es/components/schedules/resources/index.d.ts +1 -0
  197. package/es/components/schedules/resources/list/index.d.ts +1 -0
  198. package/es/components/schedules/resources/list/index.js +2 -2
  199. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  200. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  201. package/es/components/schedules/resources/serve.js +2 -2
  202. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  203. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  204. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  205. package/es/components/schedules/schedules/index.d.ts +1 -0
  206. package/es/components/schedules/utils.js +4 -4
  207. package/es/components/selectModal/index.js +2 -2
  208. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  209. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  210. package/es/components/shoppingCart/index.d.ts +1 -0
  211. package/es/components/taxSelect/index.d.ts +1 -0
  212. package/es/components/ticketBooking/components/addServiceVariant/addService.js +75 -26
  213. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  214. package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  215. package/es/components/ticketBooking/components/notAvailable/index.d.ts +3 -0
  216. package/es/components/ticketBooking/components/notAvailable/index.js +39 -0
  217. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  218. package/es/components/ticketBooking/index.d.ts +1 -0
  219. package/es/components/ticketBooking/index.js +1 -1
  220. package/es/components/ticketBooking/locales.d.ts +6 -0
  221. package/es/components/ticketBooking/locales.js +9 -3
  222. package/es/components/ticketBooking/serve.js +98 -92
  223. package/es/components/ticketBooking/utils/index.d.ts +1 -0
  224. package/es/components/ticketBooking/utils/index.js +33 -0
  225. package/es/components/wallet/Detail/model.d.ts +1 -13
  226. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  227. package/es/components/wallet/PointCard/model.d.ts +1 -13
  228. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  229. package/es/components/wallet/Voucher/model.d.ts +1 -13
  230. package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
  231. package/es/components/wallet/model.d.ts +1 -9
  232. package/es/hooks/useComponents.js +1 -1
  233. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  234. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  235. package/lib/components/appointmentBooking/components/Cart/Item/index.js +3 -0
  236. package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
  237. package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
  238. package/lib/components/appointmentBooking/components/Resource/index.js +7 -4
  239. package/lib/components/appointmentBooking/components/Services/index.js +1 -1
  240. package/lib/components/appointmentBooking/components/TimeSlicing/index.js +4 -3
  241. package/lib/components/appointmentBooking/components/Voucher/index.js +1 -0
  242. package/lib/components/appointmentBooking/context.js +7 -3
  243. package/lib/components/appointmentBooking/hooks.js +70 -11
  244. package/lib/components/appointmentBooking/index.d.ts +1 -0
  245. package/lib/components/appointmentBooking/utils.js +2 -0
  246. package/lib/components/booking/addons/index.js +27 -21
  247. package/lib/components/booking/addons/model.d.ts +1 -10
  248. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  249. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  250. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  251. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  252. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  253. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  254. package/lib/components/booking/components/footer/amount.js +1 -1
  255. package/lib/components/booking/components/footer/index.d.ts +1 -0
  256. package/lib/components/booking/components/footer/utils.d.ts +9 -0
  257. package/lib/components/booking/components/footer/utils.js +24 -7
  258. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  259. package/lib/components/booking/deposit/index.d.ts +1 -0
  260. package/lib/components/booking/forms/model.d.ts +1 -10
  261. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  262. package/lib/components/booking/forms/single/index.d.ts +1 -0
  263. package/lib/components/booking/forms/table/index.d.ts +1 -0
  264. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  265. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  266. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  267. package/lib/components/booking/info/date/index.d.ts +1 -0
  268. package/lib/components/booking/info/header/index.d.ts +1 -0
  269. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  270. package/lib/components/booking/info/model.d.ts +1 -10
  271. package/lib/components/booking/info/notes/index.d.ts +1 -0
  272. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  273. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  274. package/lib/components/booking/info/service/addService/index.d.ts +1 -0
  275. package/lib/components/booking/info/service/addService/index.js +1 -1
  276. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  277. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  278. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  279. package/lib/components/booking/info/service2/utils.d.ts +4 -1
  280. package/lib/components/booking/info/service2/utils.js +21 -2
  281. package/lib/components/booking/info/utils.js +1 -1
  282. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  283. package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
  284. package/lib/components/booking/info2/service/addService/index.js +8 -5
  285. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  286. package/lib/components/booking/info2/service/editService/index.js +59 -23
  287. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  288. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  289. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  290. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  291. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  292. package/lib/components/booking/model.d.ts +1 -9
  293. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  294. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  295. package/lib/components/booking/notes/addNote/index.d.ts +1 -0
  296. package/lib/components/booking/notes/model.d.ts +1 -10
  297. package/lib/components/booking/payments/model.d.ts +1 -10
  298. package/lib/components/booking/utils.d.ts +1 -0
  299. package/lib/components/booking/utils.js +6 -0
  300. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  301. package/lib/components/eftpos/form/index.d.ts +1 -0
  302. package/lib/components/eftpos/group/index.d.ts +1 -0
  303. package/lib/components/eftpos/hooks.d.ts +1 -0
  304. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  305. package/lib/components/eftpos/icon/device.d.ts +1 -0
  306. package/lib/components/eftpos/index.d.ts +1 -0
  307. package/lib/components/eftpos/pos.d.ts +1 -0
  308. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  309. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  310. package/lib/components/eftposPay/amount.d.ts +2 -1
  311. package/lib/components/eftposPay/app.d.ts +1 -0
  312. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  313. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  314. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  315. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  316. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  317. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  318. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  319. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  320. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  321. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  322. package/lib/components/eftposPay/device.d.ts +2 -1
  323. package/lib/components/eftposPay/hooks.d.ts +2 -2
  324. package/lib/components/eftposPay/index.d.ts +1 -0
  325. package/lib/components/eftposPay/pay.d.ts +1 -0
  326. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  327. package/lib/components/eftposPay/store/index.d.ts +6 -6
  328. package/lib/components/eftposPay/tip.d.ts +1 -0
  329. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  330. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  331. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  332. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  333. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  334. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  335. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  336. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  337. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  338. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  339. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  340. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  341. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  342. package/lib/components/eventBooking/index.d.ts +1 -0
  343. package/lib/components/login/index.d.ts +1 -0
  344. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  345. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  346. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  347. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  348. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  349. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  350. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  351. package/lib/components/pay/toC/model.d.ts +1 -9
  352. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  353. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  354. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  355. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  356. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  357. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  358. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  359. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  360. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  361. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  362. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  363. package/lib/components/productExtension/index.d.ts +1 -0
  364. package/lib/components/ruleSetting/index.d.ts +1 -0
  365. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  366. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  367. package/lib/components/schedules/calendar/index.d.ts +1 -0
  368. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  369. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  370. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  371. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  372. package/lib/components/schedules/model.d.ts +1 -9
  373. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  374. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  375. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  376. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  377. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  378. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  379. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  380. package/lib/components/schedules/products/index.d.ts +1 -0
  381. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  382. package/lib/components/schedules/products/list/index.d.ts +1 -0
  383. package/lib/components/schedules/resources/index.d.ts +1 -0
  384. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  385. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  386. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  387. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  388. package/lib/components/schedules/schedules/index.d.ts +1 -0
  389. package/lib/components/schedules/utils.js +1 -1
  390. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  391. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  392. package/lib/components/shoppingCart/index.d.ts +1 -0
  393. package/lib/components/taxSelect/index.d.ts +1 -0
  394. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +74 -20
  395. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  396. package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  397. package/lib/components/ticketBooking/components/notAvailable/index.d.ts +3 -0
  398. package/lib/components/ticketBooking/components/notAvailable/index.js +61 -0
  399. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  400. package/lib/components/ticketBooking/index.d.ts +1 -0
  401. package/lib/components/ticketBooking/index.js +1 -1
  402. package/lib/components/ticketBooking/locales.d.ts +6 -0
  403. package/lib/components/ticketBooking/locales.js +9 -3
  404. package/lib/components/ticketBooking/serve.js +6 -2
  405. package/lib/components/ticketBooking/utils/index.d.ts +1 -0
  406. package/lib/components/ticketBooking/utils/index.js +33 -0
  407. package/lib/components/wallet/Detail/model.d.ts +1 -13
  408. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  409. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  410. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  411. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  412. package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
  413. package/lib/components/wallet/model.d.ts +1 -9
  414. package/package.json +4 -4
@@ -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
  });
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const FormItemChildrenWrap: (props: any) => JSX.Element;
2
3
  export default FormItemChildrenWrap;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Deposit: (props: any) => JSX.Element;
2
3
  export default Deposit;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -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<any>;
7
+ handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
8
8
  };
9
9
  export default useSendModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  /**
3
4
  * @title: 表单选择器
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Table: ({ value, onChange, field, mode, onAdd }: any) => JSX.Element;
3
4
  export default Table;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface AddServiceVariantProps {
2
3
  globalState: any;
3
4
  setGlobalState: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormState } from '../../../model';
2
3
  interface useClientFnParams {
3
4
  state: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const useIsLowSpeedNetwork: () => import("react").MutableRefObject<boolean>;
2
3
  export default useIsLowSpeedNetwork;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  export declare const updateServiceDate: (services: any[], date: any, isTime: boolean) => any[];
3
4
  declare const DateCom: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const header: ({ state, dispatch }: any) => JSX.Element;
3
4
  export default header;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { EditServiceRef } from "../service/editService";
2
3
  declare const useInfoHolder: (state: any, dispatch: any) => {
3
4
  detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
@@ -1,14 +1,5 @@
1
- /// <reference types="react" />
2
- import { FormState } from '../model';
3
1
  export declare const walkInData: {
4
2
  id: number;
5
3
  nickname: string;
6
4
  };
7
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
- state: FormState;
9
- } & {
10
- dispatch: (params: {
11
- type: string;
12
- payload: any;
13
- }) => void;
14
- }>;
5
+ export declare const Provider: any, Context: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Notes: () => JSX.Element | null;
2
3
  export default Notes;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Lists: ({ onEdit, onChange, onAction, isParallelResource }: any) => JSX.Element;
2
3
  export default Lists;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Actions: ({ currentService }: {
3
4
  currentService: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellDrawerProps } from '../../../components/drawer';
2
3
  import './index.less';
3
4
  interface AddServiceProps {
@@ -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
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Like: ({ status, onChange, className, style, }: {
3
4
  style?: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceList: ({ onEdit }: {
3
4
  onEdit: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Lists: ({ onEdit, onChange }: any) => JSX.Element;
2
3
  export default Lists;
@@ -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) {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../../../info/service/actions/index.less';
2
3
  declare const Actions: ({ currentService }: {
3
4
  currentService: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellDrawerProps } from '../../../components/drawer';
2
3
  import '../../../info/service/addService/index.less';
3
4
  interface AddServiceProps {
@@ -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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../../../info/service/addTimeModal/index.less';
2
3
  declare const AddTimeModal: () => JSX.Element;
3
4
  export default AddTimeModal;
@@ -50,9 +50,10 @@ var import_utilsByBooking = require("../../utilsByBooking");
50
50
  var import_utils4 = require("../addService/utils");
51
51
  var import_materials = require("@pisell/materials");
52
52
  var import_utils5 = require("../../../info/utils");
53
+ var import_utils6 = require("../../../info/service2/utils");
53
54
  var submitLock = false;
54
55
  var Info = (_, ref) => {
55
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E;
56
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F;
56
57
  const [form] = import_antd.Form.useForm();
57
58
  const useTotal = import_antd.Form.useWatch("total", form);
58
59
  const useResource = import_antd.Form.useWatch("resource", form);
@@ -61,6 +62,10 @@ var Info = (_, ref) => {
61
62
  const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
62
63
  const resourcesRef = (0, import_react.useRef)(null);
63
64
  const isChangeTotal = (0, import_react.useRef)(false);
65
+ const isNormalProduct = (0, import_react.useMemo)(() => {
66
+ var _a2, _b2;
67
+ return ((_a2 = state == null ? void 0 : state.service) == null ? void 0 : _a2.cacheItem) && (0, import_utils6.isNormalProductByDurationSchedule)((_b2 = state == null ? void 0 : state.service) == null ? void 0 : _b2.cacheItem);
68
+ }, [(_a = state == null ? void 0 : state.service) == null ? void 0 : _a.cacheItem]);
64
69
  const getCurrentCacheItem = (_cacheItem) => {
65
70
  let values = form.getFieldsValue();
66
71
  let _item = _cacheItem || state.service.cacheItem;
@@ -89,7 +94,7 @@ var Info = (_, ref) => {
89
94
  state.service.cacheItem,
90
95
  useStartTime,
91
96
  useResource,
92
- (_c = (_b = (_a = state.bookingConfig) == null ? void 0 : _a.config) == null ? void 0 : _b.basic) == null ? void 0 : _c.service_time
97
+ (_d = (_c = (_b = state.bookingConfig) == null ? void 0 : _b.config) == null ? void 0 : _c.basic) == null ? void 0 : _d.service_time
93
98
  ]);
94
99
  const flexibleOption = (0, import_react.useMemo)(() => {
95
100
  return (0, import_utils4.getFlexibleOption)({
@@ -155,7 +160,7 @@ var Info = (_, ref) => {
155
160
  const onFinish = (values) => {
156
161
  var _a2;
157
162
  let isSuccess = (_a2 = resourcesRef.current) == null ? void 0 : _a2.check();
158
- if (!isSuccess) {
163
+ if (isShowTimeAndResource && !isSuccess) {
159
164
  return;
160
165
  }
161
166
  if (submitLock) {
@@ -225,7 +230,7 @@ var Info = (_, ref) => {
225
230
  let oPrice = Number(((_a2 = state.service.cacheItem) == null ? void 0 : _a2._extend.origin_total) || 0);
226
231
  let cPrice = Number(useTotal || 0);
227
232
  return cPrice !== oPrice;
228
- }, [useTotal, (_e = (_d = state.service.cacheItem) == null ? void 0 : _d._extend) == null ? void 0 : _e.origin_total]);
233
+ }, [useTotal, (_f = (_e = state.service.cacheItem) == null ? void 0 : _e._extend) == null ? void 0 : _f.origin_total]);
229
234
  const getResources = () => {
230
235
  let res = (0, import_utils4.formatResources)({
231
236
  cacheItem: getCurrentCacheItem(),
@@ -288,18 +293,18 @@ var Info = (_, ref) => {
288
293
  }, [state.service.editModal, state.isBookingCreatePage]);
289
294
  (0, import_react.useEffect)(() => {
290
295
  getDiscount();
291
- }, [useTotal, (_g = (_f = state.service.cacheItem) == null ? void 0 : _f._extend) == null ? void 0 : _g.origin_total]);
296
+ }, [useTotal, (_h = (_g = state.service.cacheItem) == null ? void 0 : _g._extend) == null ? void 0 : _h.origin_total]);
292
297
  const isDiscount = (0, import_react.useMemo)(() => {
293
298
  var _a2, _b2, _c2;
294
299
  if (!((_a2 = state.service) == null ? void 0 : _a2.cacheItem)) {
295
300
  return false;
296
301
  }
297
302
  return useTotal != ((_c2 = (_b2 = state.service) == null ? void 0 : _b2.cacheItem) == null ? void 0 : _c2._extend.origin_total);
298
- }, [useTotal, (_i = (_h = state.service) == null ? void 0 : _h.cacheItem) == null ? void 0 : _i._extend.origin_total]);
303
+ }, [useTotal, (_j = (_i = state.service) == null ? void 0 : _i.cacheItem) == null ? void 0 : _j._extend.origin_total]);
299
304
  const bundles = (0, import_react.useMemo)(() => {
300
305
  var _a2, _b2, _c2, _d2;
301
306
  return ((_d2 = (_c2 = (_b2 = (_a2 = state.service) == null ? void 0 : _a2.cacheItem) == null ? void 0 : _b2._extend) == null ? void 0 : _c2.other) == null ? void 0 : _d2.bundle) || [];
302
- }, [(_m = (_l = (_k = (_j = state.service) == null ? void 0 : _j.cacheItem) == null ? void 0 : _k._extend) == null ? void 0 : _l.other) == null ? void 0 : _m.bundle]);
307
+ }, [(_n = (_m = (_l = (_k = state.service) == null ? void 0 : _k.cacheItem) == null ? void 0 : _l._extend) == null ? void 0 : _m.other) == null ? void 0 : _n.bundle]);
303
308
  const handleEdit = (e) => {
304
309
  var _a2, _b2, _c2, _d2, _e2;
305
310
  const item = state.service.cacheItem;
@@ -319,14 +324,16 @@ var Info = (_, ref) => {
319
324
  id: item.id,
320
325
  date: state.date.value.format("YYYY-MM-DD"),
321
326
  showConfig: {
322
- option: false,
327
+ option: true,
323
328
  session: isSession,
324
- variant: false,
325
- package: true
329
+ variant: true,
330
+ package: true,
331
+ number: (0, import_utils6.isNormalProductByDurationSchedule)(item)
326
332
  },
327
333
  isOS: isSession,
328
334
  customer_id: (_e2 = (_d2 = state.client) == null ? void 0 : _d2.value) == null ? void 0 : _e2.id,
329
335
  value: {
336
+ quantity: item._extend.quantity,
330
337
  ...item._extend.other,
331
338
  ...sessionValue
332
339
  }
@@ -346,6 +353,7 @@ var Info = (_, ref) => {
346
353
  ...item._extend,
347
354
  // 将当前表单的值覆盖进去
348
355
  ...values,
356
+ quantity: (e2 == null ? void 0 : e2.quantity) || (values == null ? void 0 : values.quantity) || 1,
349
357
  // 覆盖选择的规格和套餐
350
358
  other
351
359
  },
@@ -378,7 +386,8 @@ var Info = (_, ref) => {
378
386
  });
379
387
  form.setFieldsValue({
380
388
  total: _total,
381
- capacity: (_a3 = cacheItem._extend) == null ? void 0 : _a3.capacity
389
+ capacity: (_a3 = cacheItem._extend) == null ? void 0 : _a3.capacity,
390
+ quantity: (e2 == null ? void 0 : e2.quantity) || (values == null ? void 0 : values.quantity) || 1
382
391
  });
383
392
  }
384
393
  });
@@ -406,15 +415,20 @@ var Info = (_, ref) => {
406
415
  const handleTotalChange = (number) => {
407
416
  isChangeTotal.current = true;
408
417
  };
409
- console.log("state.service.value", state.service.value);
410
- const SelectTime = (_n = window.BaseMaterials) == null ? void 0 : _n.SelectTime;
418
+ const isShowTimeAndResource = (0, import_react.useMemo)(() => {
419
+ if (state.renderType !== "eventBooking" && !isNormalProduct) {
420
+ return true;
421
+ }
422
+ return false;
423
+ }, [state.renderType, isNormalProduct]);
424
+ const SelectTime = (_o = window.BaseMaterials) == null ? void 0 : _o.SelectTime;
411
425
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
412
426
  import_drawer.default,
413
427
  {
414
428
  titleNoWrap: true,
415
429
  zIndex: state.service.changeService ? 999 : 1e3,
416
430
  forceRender: true,
417
- open: state.service.editModal && !((_o = state.service.cacheItem) == null ? void 0 : _o.autoClose),
431
+ open: state.service.editModal && !((_p = state.service.cacheItem) == null ? void 0 : _p.autoClose),
418
432
  title: import_utils.locales.getText("pisell2.text.edit-service"),
419
433
  onClose: () => {
420
434
  dispatch({
@@ -427,7 +441,7 @@ var Info = (_, ref) => {
427
441
  });
428
442
  }
429
443
  },
430
- /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body-edit" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form, { layout: "vertical", form, onFinish }, /* @__PURE__ */ import_react.default.createElement(import_antd.Row, { style: { width: "100%" }, gutter: [16, 0] }, /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "product_name" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name" }, ((_r = (_q = (_p = state.service) == null ? void 0 : _p.cacheItem) == null ? void 0 : _q._extend) == null ? void 0 : _r.product_name) || "-"), /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: handleEdit }, import_utils.locales.getText("pisell2.text.edit")), !state.isBookingCreatePage && /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: handleChange }, import_utils.locales.getText("pisell2.text.change"))), /* @__PURE__ */ import_react.default.createElement(
444
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body-edit" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form, { layout: "vertical", form, onFinish }, /* @__PURE__ */ import_react.default.createElement(import_antd.Row, { style: { width: "100%" }, gutter: [16, 0] }, /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "product_name" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name" }, ((_s = (_r = (_q = state.service) == null ? void 0 : _q.cacheItem) == null ? void 0 : _r._extend) == null ? void 0 : _s.product_name) || "-"), /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: handleEdit }, import_utils.locales.getText("pisell2.text.edit")), !state.isBookingCreatePage && /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: handleChange }, import_utils.locales.getText("pisell2.text.change"))), /* @__PURE__ */ import_react.default.createElement(
431
445
  import_collapsibleList.default,
432
446
  {
433
447
  style: { marginTop: bundles.length ? "8px" : 0 },
@@ -440,9 +454,9 @@ var Info = (_, ref) => {
440
454
  label: import_utils.locales.getText("pisell2.text.price"),
441
455
  name: "total",
442
456
  rules: [{ required: true }],
443
- extra: useTotal !== ((_t = (_s = state.service.cacheItem) == null ? void 0 : _s._extend) == null ? void 0 : _t.origin_total) && import_utils.locales.getText("page.booking.text.price-extra")(
457
+ extra: useTotal !== ((_u = (_t = state.service.cacheItem) == null ? void 0 : _t._extend) == null ? void 0 : _u.origin_total) && import_utils.locales.getText("page.booking.text.price-extra")(
444
458
  (0, import_utils.formatAmount)(
445
- (_v = (_u = state.service.cacheItem) == null ? void 0 : _u._extend) == null ? void 0 : _v.origin_total,
459
+ (_w = (_v = state.service.cacheItem) == null ? void 0 : _v._extend) == null ? void 0 : _w.origin_total,
446
460
  2,
447
461
  state.amountSymbol
448
462
  ),
@@ -458,8 +472,8 @@ var Info = (_, ref) => {
458
472
  prefix: state.amountSymbol,
459
473
  onChange: handleTotalChange,
460
474
  disabled: state.channelDisabledEdit,
461
- originValue: ((_x = (_w = state.service.cacheItem) == null ? void 0 : _w._extend) == null ? void 0 : _x.origin_total) || 0,
462
- placeholder: ((_z = (_y = state.service.cacheItem) == null ? void 0 : _y._extend) == null ? void 0 : _z.origin_total) || "0"
475
+ originValue: ((_y = (_x = state.service.cacheItem) == null ? void 0 : _x._extend) == null ? void 0 : _y.origin_total) || 0,
476
+ placeholder: ((_A = (_z = state.service.cacheItem) == null ? void 0 : _z._extend) == null ? void 0 : _A.origin_total) || "0"
463
477
  }
464
478
  )
465
479
  )), isReason ? /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(
@@ -469,7 +483,7 @@ var Info = (_, ref) => {
469
483
  name: "discount_reason"
470
484
  },
471
485
  /* @__PURE__ */ import_react.default.createElement(import_antd.Input.TextArea, { size: "large" })
472
- )) : null, state.renderType !== "eventBooking" && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 12 }, /* @__PURE__ */ import_react.default.createElement(
486
+ )) : null, isShowTimeAndResource && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 12 }, /* @__PURE__ */ import_react.default.createElement(
473
487
  import_antd.Form.Item,
474
488
  {
475
489
  label: import_utils.locales.getText("pisell2.text.start_time"),
@@ -479,7 +493,7 @@ var Info = (_, ref) => {
479
493
  SelectTime ? /* @__PURE__ */ import_react.default.createElement(
480
494
  SelectTime,
481
495
  {
482
- slice: (_D = (_C = (_B = (_A = state.bookingConfig) == null ? void 0 : _A.config) == null ? void 0 : _B.basic) == null ? void 0 : _C.service_time) == null ? void 0 : _D.value,
496
+ slice: (_E = (_D = (_C = (_B = state.bookingConfig) == null ? void 0 : _B.config) == null ? void 0 : _C.basic) == null ? void 0 : _D.service_time) == null ? void 0 : _E.value,
483
497
  timePickerProps: {
484
498
  style: { width: "100%" }
485
499
  },
@@ -512,7 +526,29 @@ var Info = (_, ref) => {
512
526
  state,
513
527
  cacheItem: state.service.cacheItem
514
528
  }
515
- )), /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { hidden: true, name: "quantity" }, /* @__PURE__ */ import_react.default.createElement(import_antd.InputNumber, null))))), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body-edit-footer" }, /* @__PURE__ */ import_react.default.createElement(
529
+ )), /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { hidden: true, name: "quantity" }, /* @__PURE__ */ import_react.default.createElement(import_antd.InputNumber, null))), isNormalProduct && /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(
530
+ import_antd.Form.Item,
531
+ {
532
+ label: import_utils.locales.getText("pisell2.text.quantity"),
533
+ name: "quantity",
534
+ rules: [{ required: true }]
535
+ },
536
+ /* @__PURE__ */ import_react.default.createElement(
537
+ import_antd.InputNumber,
538
+ {
539
+ size: "large",
540
+ style: { width: "100%" },
541
+ min: 1,
542
+ max: 999999,
543
+ formatter: (value) => {
544
+ if (value !== void 0) {
545
+ return Math.floor(value);
546
+ }
547
+ return value;
548
+ }
549
+ }
550
+ )
551
+ )))), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body-edit-footer" }, /* @__PURE__ */ import_react.default.createElement(
516
552
  "div",
517
553
  {
518
554
  className: "pisell-lowcode__booking-service-delete-wrap",
@@ -524,7 +560,7 @@ var Info = (_, ref) => {
524
560
  {
525
561
  type: "primary",
526
562
  className: "pisell-lowcode__booking-service-body-edit-footer-apple",
527
- disabled: !((_E = state.service.resourcesOrigin) == null ? void 0 : _E.length),
563
+ disabled: !((_F = state.service.resourcesOrigin) == null ? void 0 : _F.length),
528
564
  onClick: () => {
529
565
  form.submit();
530
566
  }