@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
@@ -1,29 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- selectedGiftOptionId: string | null;
4
- cardList: Array<{
5
- id: string;
6
- name: string;
7
- price: number;
8
- }>;
9
- selectedItem: {
10
- id?: string;
11
- gift_price?: number;
12
- price?: number;
13
- name?: string;
14
- variant_id?: string;
15
- };
16
- productId?: string;
17
- detailId?: string;
18
- total: string | number;
19
- rechargeModalOpen: boolean;
20
- }
21
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
22
- state: RechargeState;
23
- } & {
24
- dispatch: (params: {
25
- type: string;
26
- payload: any;
27
- }) => void;
28
- }>;
29
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: 0;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- state: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IWalletListItemProps } from '../serve';
2
3
  /**
3
4
  * 钱包卡片Hook的参数
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IWalletListItemProps } from './serve';
3
2
  export interface WalletCardItemProps {
4
3
  id: string;
@@ -27,11 +26,4 @@ export interface WalletListProps {
27
26
  currentSearchListItemCode?: string;
28
27
  [key: string]: any;
29
28
  }
30
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
31
- global_wallet: WalletListProps;
32
- } & {
33
- dispatch: (params: {
34
- type: string;
35
- payload: any;
36
- }) => void;
37
- }>;
29
+ export declare const Provider: any, Context: any;
@@ -8,7 +8,7 @@ var useComponents = function useComponents(params) {
8
8
  var _utils$getComponents;
9
9
  var _ref = appHelper || {},
10
10
  utils = _ref.utils;
11
- return (utils === null || utils === void 0 ? void 0 : (_utils$getComponents = utils.getComponents) === null || _utils$getComponents === void 0 ? void 0 : _utils$getComponents.call(utils, components)) || [];
11
+ return (utils === null || utils === void 0 || (_utils$getComponents = utils.getComponents) === null || _utils$getComponents === void 0 ? void 0 : _utils$getComponents.call(utils, components)) || [];
12
12
  }, [components]);
13
13
  return Cpt;
14
14
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const SalesModel: ({ children, hooks, config }: any) => JSX.Element;
2
3
  export * from './Sales';
3
4
  export default SalesModel;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const CartItem: ({ onNext }: any) => JSX.Element;
3
4
  export default CartItem;
@@ -149,6 +149,9 @@ var CartItem = ({ onNext }) => {
149
149
  };
150
150
  const products = (0, import_react.useMemo)(() => {
151
151
  if (!(carts == null ? void 0 : carts.length)) return [];
152
+ carts.forEach((item) => {
153
+ item.isShowChangeHolder = !appointmentBooking.isTargetCartIdNormalProduct(item == null ? void 0 : item._id);
154
+ });
152
155
  if ((currentSelectedResources == null ? void 0 : currentSelectedResources.length) > 0) {
153
156
  const newCarts = carts.map((item) => {
154
157
  const currentResourceData = currentSelectedResources.find(
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Layout: () => JSX.Element;
3
4
  export default Layout;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Header: () => JSX.Element;
3
4
  export default Header;
@@ -104,7 +104,8 @@ var Resource = (0, import_react.forwardRef)((props, ref) => {
104
104
  );
105
105
  }, [currentStepParams.key, resources]);
106
106
  const renderLists = (0, import_react.useMemo)(() => {
107
- if (carts.length > 1 || !(carts == null ? void 0 : carts.length)) {
107
+ const appointmentCarts = carts.filter((n) => !(appointmentBooking == null ? void 0 : appointmentBooking.isTargetCartIdNormalProduct(n._id)));
108
+ if (appointmentCarts.length > 1 || !(appointmentCarts == null ? void 0 : appointmentCarts.length)) {
108
109
  return [];
109
110
  }
110
111
  return (0, import_utils.currentRenderLists)(resources, appointmentBoard == null ? void 0 : appointmentBoard.form_code);
@@ -141,15 +142,17 @@ var Resource = (0, import_react.forwardRef)((props, ref) => {
141
142
  var _a;
142
143
  setSelectedResource(e.id);
143
144
  if (e.id) {
145
+ const index = carts.findIndex((n) => !(appointmentBooking == null ? void 0 : appointmentBooking.isTargetCartIdNormalProduct(n._id)));
144
146
  return appointmentBooking.updateCart({
145
- _id: (_a = carts == null ? void 0 : carts[0]) == null ? void 0 : _a._id,
146
- resources: (0, import_utils.updateCartResources)(carts == null ? void 0 : carts[0], e)
147
+ _id: (_a = carts == null ? void 0 : carts[index]) == null ? void 0 : _a._id,
148
+ resources: (0, import_utils.updateCartResources)(carts == null ? void 0 : carts[index], e)
147
149
  });
148
150
  }
149
151
  };
150
152
  (0, import_react.useEffect)(() => {
151
153
  var _a, _b, _c;
152
- const selectedResource2 = (_c = (_b = (_a = carts == null ? void 0 : carts[0]) == null ? void 0 : _a._origin) == null ? void 0 : _b.resources) == null ? void 0 : _c.find(
154
+ const index = carts.findIndex((n) => !(appointmentBooking == null ? void 0 : appointmentBooking.isTargetCartIdNormalProduct(n._id)));
155
+ const selectedResource2 = (_c = (_b = (_a = carts == null ? void 0 : carts[index]) == null ? void 0 : _a._origin) == null ? void 0 : _b.resources) == null ? void 0 : _c.find(
153
156
  (item) => (item == null ? void 0 : item.form_id) === (appointmentBoard == null ? void 0 : appointmentBoard.form_id)
154
157
  );
155
158
  setSelectedResource((selectedResource2 == null ? void 0 : selectedResource2.id) || 0);
@@ -122,7 +122,7 @@ var Services = (0, import_react.forwardRef)((props, ref) => {
122
122
  } else {
123
123
  const resources = ((_b = (_a = data == null ? void 0 : data.origin) == null ? void 0 : _a.product_resource) == null ? void 0 : _b.resources) || [];
124
124
  const activeStatus = resources.find((item2) => item2.status === 1);
125
- if (!activeStatus) {
125
+ if (!activeStatus && !appointmentBooking.isTargetNormalProduct(data == null ? void 0 : data.origin)) {
126
126
  return (0, import_utils2.Toast)(
127
127
  import_utils.locales.getText("pisell2.appointment.no.available.service")
128
128
  );
@@ -69,10 +69,11 @@ var TimeSlicing = (0, import_react.forwardRef)((props, ref) => {
69
69
  };
70
70
  (0, import_react.useEffect)(() => {
71
71
  var _a, _b, _c;
72
- if ((times == null ? void 0 : times.length) > 0 && (carts == null ? void 0 : carts.length) > 0) {
73
- const startTime = ((_a = carts == null ? void 0 : carts[0]) == null ? void 0 : _a.start_time) || ((_b = times == null ? void 0 : times[0]) == null ? void 0 : _b.start_time);
72
+ let appoimentBookingProductCart = carts.filter((item) => !appointmentBooking.isTargetCartIdNormalProduct(item == null ? void 0 : item._id));
73
+ if ((times == null ? void 0 : times.length) > 0 && (appoimentBookingProductCart == null ? void 0 : appoimentBookingProductCart.length) > 0) {
74
+ const startTime = ((_a = appoimentBookingProductCart == null ? void 0 : appoimentBookingProductCart[0]) == null ? void 0 : _a.start_time) || ((_b = times == null ? void 0 : times[0]) == null ? void 0 : _b.start_time);
74
75
  setSelectedResource(startTime);
75
- if ((_c = carts == null ? void 0 : carts[0]) == null ? void 0 : _c.start_time) return;
76
+ if ((_c = appoimentBookingProductCart == null ? void 0 : appoimentBookingProductCart[0]) == null ? void 0 : _c.start_time) return;
76
77
  getAutoSelect(times == null ? void 0 : times[0]);
77
78
  }
78
79
  }, [times, carts]);
@@ -95,6 +95,7 @@ var VoucherCard = (props) => {
95
95
  var _a3, _b2;
96
96
  return {
97
97
  _id: item._id,
98
+ quantity: item.num,
98
99
  bundle: item._bundleOrigin,
99
100
  options: item._optionsOrigin,
100
101
  product: {
@@ -105,15 +105,19 @@ var AppointmentBookingProvider = ({
105
105
  if (!(carts == null ? void 0 : carts.length) || !(resources == null ? void 0 : resources.length)) {
106
106
  return setCurrentSelectedResources(null);
107
107
  }
108
- const currentSelectedResources2 = carts.map((item) => {
109
- return {
108
+ const currentSelectedResources2 = [];
109
+ carts.forEach((item) => {
110
+ if (appointmentBooking.isTargetCartIdNormalProduct(item == null ? void 0 : item._id)) {
111
+ return;
112
+ }
113
+ currentSelectedResources2.push({
110
114
  _id: item == null ? void 0 : item._id,
111
115
  currentSelectedResource: (0, import_utils.getCartCurrentResourceData)(
112
116
  item,
113
117
  currentStepParams == null ? void 0 : currentStepParams.key,
114
118
  resources
115
119
  )
116
- };
120
+ });
117
121
  });
118
122
  setCurrentSelectedResources(currentSelectedResources2);
119
123
  appointmentBooking.setOtherData(
@@ -119,20 +119,78 @@ var useAppointmentBookingStep = () => {
119
119
  });
120
120
  };
121
121
  const nextStep = () => {
122
- var _a2, _b2, _c2, _d, _e;
122
+ var _a2, _b2, _c2, _d, _e, _f, _g;
123
123
  let stepList2 = appointmentBooking.getStepList() || [];
124
124
  const currentKey = currentStepParams == null ? void 0 : currentStepParams.key;
125
- let nextStep2 = stepList2[(currentStepParams == null ? void 0 : currentStepParams.index) + 1];
126
125
  const currentSelectedResources = appointmentBooking.getOtherData(
127
126
  "current_selected_resources"
128
127
  );
129
- if ((nextStep2 == null ? void 0 : nextStep2.key) === "select-resource") {
128
+ if (!isRetailTemplate && currentKey === "select-service") {
129
+ const { bookingProcess } = ((_a2 = appointmentBooking == null ? void 0 : appointmentBooking.otherParams) == null ? void 0 : _a2.productModuleParams) || {};
130
+ const isDateSelectedFirst = bookingProcess === "date_first";
131
+ const hasResourceStep = stepList2 == null ? void 0 : stepList2.find(
132
+ (item) => (item == null ? void 0 : item.key) === "select-resource"
133
+ );
134
+ const hasSelectGuestStep = (_b2 = stepList2 == null ? void 0 : stepList2.find(
135
+ (item) => (item == null ? void 0 : item.key) === "select-guest"
136
+ )) == null ? void 0 : _b2.key;
137
+ const isAllNormalProduct = appointmentBooking == null ? void 0 : appointmentBooking.isCartAllNormalProducts();
138
+ if (isAllNormalProduct) {
139
+ removeStep("select-resource");
140
+ removeStep("select-time");
141
+ removeStep("fill-form");
142
+ if (!isDateSelectedFirst) {
143
+ removeStep("select-date");
144
+ }
145
+ } else if (!hasResourceStep) {
146
+ let targetKey = hasSelectGuestStep ? hasSelectGuestStep : "select-service";
147
+ const isHasDurationProduct = appointmentBooking == null ? void 0 : appointmentBooking.isCartHasDurationProduct();
148
+ if (isHasDurationProduct) {
149
+ if (!isDateSelectedFirst) {
150
+ appointmentBooking.addStep(
151
+ {
152
+ key: "select-date",
153
+ description: import_utils.locales.getText("pisell2.appointment.select.date")
154
+ },
155
+ targetKey
156
+ );
157
+ targetKey = "select-date";
158
+ }
159
+ appointmentBooking.addStep(
160
+ {
161
+ key: "select-resource",
162
+ description: import_utils.locales.getText("pisell2.appointment.select.resource")
163
+ },
164
+ targetKey
165
+ );
166
+ targetKey = "select-resource";
167
+ appointmentBooking.addStep(
168
+ {
169
+ key: "select-time",
170
+ description: import_utils.locales.getText("pisell2.appointment.select.time")
171
+ },
172
+ targetKey
173
+ );
174
+ } else {
175
+ appointmentBooking.addStep(
176
+ {
177
+ key: "select-resource",
178
+ description: import_utils.locales.getText("pisell2.appointment.select.resource")
179
+ },
180
+ targetKey
181
+ );
182
+ }
183
+ }
184
+ stepList2 = (appointmentBooking == null ? void 0 : appointmentBooking.getStepList()) || [];
185
+ }
186
+ let nextStep2 = stepList2[(currentStepParams == null ? void 0 : currentStepParams.index) + 1];
187
+ if (!isRetailTemplate && (nextStep2 == null ? void 0 : nextStep2.key) === "select-resource") {
130
188
  const result = appointmentBooking.checkResourceListForDate();
131
189
  if (!result) {
132
190
  return (0, import_utils2.Toast)(import_utils.locales.getText("pisell2.appointment.unuse.date"));
133
191
  }
134
192
  }
135
- if (currentKey == null ? void 0 : currentKey.startsWith("select-resource")) {
193
+ if (!isRetailTemplate && (currentKey == null ? void 0 : currentKey.startsWith("select-resource"))) {
136
194
  const { hasError, updatedCartList } = (0, import_utils2.checkAndMarkCartRenderError)(currentSelectedResources, appointmentBooking, utils);
137
195
  if (hasError) {
138
196
  setCurrentSelectedResources(updatedCartList);
@@ -155,9 +213,9 @@ var useAppointmentBookingStep = () => {
155
213
  }
156
214
  });
157
215
  stepList2 = appointmentBooking.getStepList();
158
- const selectedResource = (_a2 = currentSelectedResources == null ? void 0 : currentSelectedResources[0]) == null ? void 0 : _a2.currentSelectedResource;
216
+ const selectedResource = (_c2 = currentSelectedResources == null ? void 0 : currentSelectedResources[0]) == null ? void 0 : _c2.currentSelectedResource;
159
217
  if (selectedResource) {
160
- const originRenderLists = ((_b2 = selectedResource == null ? void 0 : selectedResource.resourceItem) == null ? void 0 : _b2.originRenderLists) || [];
218
+ const originRenderLists = ((_d = selectedResource == null ? void 0 : selectedResource.resourceItem) == null ? void 0 : _d.originRenderLists) || [];
161
219
  const currentResourceIndex = originRenderLists == null ? void 0 : originRenderLists.findIndex((item) => {
162
220
  var _a3;
163
221
  return item.id === ((_a3 = selectedResource == null ? void 0 : selectedResource.renderItem) == null ? void 0 : _a3.form_id);
@@ -165,7 +223,7 @@ var useAppointmentBookingStep = () => {
165
223
  const nextResource = originRenderLists == null ? void 0 : originRenderLists[currentResourceIndex + 1];
166
224
  const resourceKey = `select-resource_@${nextResource == null ? void 0 : nextResource.form_id}-${nextResource == null ? void 0 : nextResource.code}`;
167
225
  if (nextResource) {
168
- const beforeKey = (_c2 = stepList2[stepList2.length - 2]) == null ? void 0 : _c2.key;
226
+ const beforeKey = (_e = stepList2[stepList2.length - 2]) == null ? void 0 : _e.key;
169
227
  appointmentBooking.addStep({ key: resourceKey, description: "" }, beforeKey);
170
228
  } else {
171
229
  appointmentBooking.removeStep(resourceKey);
@@ -174,15 +232,16 @@ var useAppointmentBookingStep = () => {
174
232
  }
175
233
  stepList2 = appointmentBooking.getStepList();
176
234
  nextStep2 = stepList2[(currentStepParams == null ? void 0 : currentStepParams.index) + 1];
177
- if (((_d = nextStep2 == null ? void 0 : nextStep2.key) == null ? void 0 : _d.startsWith("select-resource_")) || (nextStep2 == null ? void 0 : nextStep2.key) === "confirm-information") {
178
- const selectedResource = ((_e = currentSelectedResources == null ? void 0 : currentSelectedResources[0]) == null ? void 0 : _e.currentSelectedResource) || {};
235
+ if (((_f = nextStep2 == null ? void 0 : nextStep2.key) == null ? void 0 : _f.startsWith("select-resource_")) || (nextStep2 == null ? void 0 : nextStep2.key) === "confirm-information") {
236
+ const selectedResource = ((_g = currentSelectedResources == null ? void 0 : currentSelectedResources[0]) == null ? void 0 : _g.currentSelectedResource) || {};
179
237
  const renderItem = (selectedResource == null ? void 0 : selectedResource.renderItem) || {};
180
238
  const checkHolder = () => {
181
239
  setLoading(false);
182
- if (isRetailTemplate) {
240
+ if (isRetailTemplate || (appointmentBooking == null ? void 0 : appointmentBooking.isCartAllNormalProducts())) {
183
241
  return appointmentBooking.next();
184
242
  }
185
- const { hasError } = (0, import_utils2.checkAndGoNext)(isFormSubject, checkAccount, carts);
243
+ const appoimentCarts = carts.filter((n) => !(appointmentBooking == null ? void 0 : appointmentBooking.isTargetCartIdNormalProduct(n._id)));
244
+ const { hasError } = (0, import_utils2.checkAndGoNext)(isFormSubject, checkAccount, appoimentCarts);
186
245
  setIsErrorHolder(hasError);
187
246
  if (hasError) {
188
247
  return;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const AppointmentBooking: () => JSX.Element;
3
4
  export default AppointmentBooking;
@@ -370,6 +370,7 @@ var getResourceTitle = (appointmentBooking, code, utils, originResource) => {
370
370
  var checkAndMarkCartRenderError = (carts, appointmentBooking, utils) => {
371
371
  try {
372
372
  let hasError = false;
373
+ carts = carts.filter((n) => !appointmentBooking.isTargetCartIdNormalProduct(n._id));
373
374
  const updatedCartList = carts == null ? void 0 : carts.map((cart) => {
374
375
  const currentResource = cart == null ? void 0 : cart.currentSelectedResource;
375
376
  if (!(currentResource == null ? void 0 : currentResource.renderItem)) {
@@ -394,6 +395,7 @@ var checkAndMarkCartRenderError = (carts, appointmentBooking, utils) => {
394
395
  updatedCartList
395
396
  };
396
397
  } catch (error) {
398
+ console.error(error);
397
399
  return {};
398
400
  }
399
401
  };
@@ -51,12 +51,13 @@ var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext")
51
51
  var formatProducts = (values) => {
52
52
  let arr = [];
53
53
  arr = values.map((item) => {
54
- var _a, _b, _c;
54
+ var _a, _b, _c, _d, _e, _f, _g;
55
55
  return {
56
56
  order_detail_id: item.order_detail_id || 0,
57
57
  num: item._extend.quantity,
58
- price: item._extend.price,
58
+ price: (0, import_utils.formatProductPrice)(item),
59
59
  product_id: item.id,
60
+ discount_list: (item == null ? void 0 : item.discount_list) || [],
60
61
  discount_amount: 0,
61
62
  product_discount_reason: "",
62
63
  is_charge_tax: item.is_charge_tax,
@@ -64,7 +65,9 @@ var formatProducts = (values) => {
64
65
  discountway: "num",
65
66
  discount_type: "discount",
66
67
  bundle_edit: (_a = item._extend) == null ? void 0 : _a.bundle_edit,
67
- product_bundle: (0, import_utils.formatProductBundle)((_c = (_b = item._extend) == null ? void 0 : _b.other) == null ? void 0 : _c.bundle)
68
+ product_bundle: (0, import_utils.formatProductBundle)((_c = (_b = item._extend) == null ? void 0 : _b.other) == null ? void 0 : _c.bundle),
69
+ "product_option_item": (0, import_utils.formatProductOption)((_e = (_d = item._extend) == null ? void 0 : _d.other) == null ? void 0 : _e.option),
70
+ "product_variant_id": ((_g = (_f = item._extend) == null ? void 0 : _f.other) == null ? void 0 : _g.product_variant_id) || 0
68
71
  };
69
72
  });
70
73
  return arr;
@@ -93,7 +96,7 @@ var restoreProductOtherData = (data) => {
93
96
  })
94
97
  };
95
98
  }),
96
- product_variant_id: 0,
99
+ product_variant_id: detail.product_variant_id || 0,
97
100
  quantity: Number(detail.product_quantity)
98
101
  };
99
102
  };
@@ -210,23 +213,23 @@ var Addons = (0, import_model.Provider)((props) => {
210
213
  const handleAddProduct = (item, type) => {
211
214
  let _list = [...state.addons.value];
212
215
  const isSession = (0, import_utils2.isSessionProduct)(item);
213
- const isEject = type === "detail" || item.bundle_group_count > 0 || isSession;
216
+ const isEject = (0, import_utils2.getIsEject)(item, type);
214
217
  state.action({
215
218
  type: "pisell1.handleOpenProductModal",
216
219
  data: {
217
220
  id: item.id,
218
221
  date: state.date.value.format("YYYY-MM-DD"),
219
222
  showConfig: {
220
- option: false,
223
+ option: true,
221
224
  session: isSession,
222
- variant: false,
223
- package: true
225
+ variant: true,
226
+ package: true,
227
+ number: true
224
228
  },
225
229
  is_eject: isEject ? 1 : 0,
226
230
  isOS: isSession
227
231
  },
228
232
  callback: (e, extension_type, detail) => {
229
- console.log("e", e);
230
233
  const _detail = detail || item;
231
234
  let product = {
232
235
  ..._detail,
@@ -235,15 +238,15 @@ var Addons = (0, import_model.Provider)((props) => {
235
238
  _extend: {
236
239
  price: _detail.price,
237
240
  other: e,
238
- quantity: 1
241
+ quantity: (e == null ? void 0 : e.quantity) || 1
239
242
  },
240
- quantity: 1
243
+ quantity: (e == null ? void 0 : e.quantity) || 1
241
244
  };
242
245
  let _total = (0, import_utils2.getProductTotalPrice)(product);
243
246
  product._extend.total = _total;
244
- let _item = _list.find((d) => d._extend.other.key === e.key);
247
+ let _item = _list.find((d) => d._extend.other.rowKey === e.rowKey);
245
248
  if (_item) {
246
- _item._extend.quantity = _item.quantity + 1;
249
+ _item._extend.quantity = _item._extend.quantity + product.quantity;
247
250
  } else {
248
251
  _list.push(product);
249
252
  }
@@ -264,7 +267,7 @@ var Addons = (0, import_model.Provider)((props) => {
264
267
  let quantity = e.target.value;
265
268
  let _list = [...state.addons.value];
266
269
  if (quantity == 0) {
267
- _list = _list.filter((d) => d.id !== item.id);
270
+ _list = _list.filter((d) => d._id !== item._id);
268
271
  } else {
269
272
  let _item = {
270
273
  ...item,
@@ -273,12 +276,10 @@ var Addons = (0, import_model.Provider)((props) => {
273
276
  quantity: Number(e.target.value)
274
277
  }
275
278
  };
276
- let _total = (0, import_utils2.getProductTotalPrice)(_item);
277
- _item._extend.total = _total;
278
279
  if (((_a2 = _item._extend) == null ? void 0 : _a2.bundle_edit) !== void 0) {
279
280
  _item._extend.bundle_edit = 1;
280
281
  }
281
- _list = _list.map((d) => d.id === item.id ? _item : d);
282
+ _list = _list.map((d) => d._id === item._id ? _item : d);
282
283
  }
283
284
  dispatch({
284
285
  type: "setAddons",
@@ -374,10 +375,11 @@ var Addons = (0, import_model.Provider)((props) => {
374
375
  id: item.id,
375
376
  date: state.date.value.format("YYYY-MM-DD"),
376
377
  showConfig: {
377
- option: false,
378
+ option: true,
378
379
  session: isSession,
379
- variant: false,
380
- package: true
380
+ variant: true,
381
+ package: true,
382
+ number: true
381
383
  },
382
384
  value: item._extend.other,
383
385
  isOS: isSession
@@ -386,10 +388,14 @@ var Addons = (0, import_model.Provider)((props) => {
386
388
  var _a2;
387
389
  const _detail = detail || item;
388
390
  let product = {
391
+ ...item,
389
392
  ..._detail,
393
+ // 编辑商品时清除折扣信息
394
+ discount_list: [],
390
395
  _extend: {
391
396
  ...item._extend,
392
- other: e
397
+ other: e,
398
+ quantity: (e == null ? void 0 : e.quantity) || 1
393
399
  }
394
400
  };
395
401
  if (((_a2 = product._extend) == null ? void 0 : _a2.bundle_edit) !== void 0) {
@@ -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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface TabProductProps {
3
4
  list: any[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
3
4
  export default ProductItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const SelectProductItem: ({ item, onClick, onChangeQuantity, amountSymbol, style, className, disabled, }: any) => JSX.Element;
3
4
  export default SelectProductItem;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const renderBundles: (item: any, amountSymbol: string) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 空状态
3
4
  * @description:
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const FooterMenus: ({ state, menuChange, items }: any) => JSX.Element | null;
3
4
  export default FooterMenus;
@@ -44,7 +44,7 @@ var getProductAmount = (state, isEdit) => {
44
44
  if (isEdit) {
45
45
  if ((state == null ? void 0 : state.service) || (state == null ? void 0 : state.addons)) {
46
46
  for (let item of state == null ? void 0 : state.service.value) {
47
- if (isDay) {
47
+ if (isDay || (0, import_utils3.isNormalProductByDurationSchedule)(item)) {
48
48
  const quantity = item._extend.quantity || 1;
49
49
  price += Number(item._extend.total) * Number(quantity);
50
50
  const _duration = (0, import_utils3.isDayBookingProduct)(item, state) ? item._extend.duration : 0;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  /**
3
4
  * @title: 底部
@@ -27,5 +27,14 @@ export interface ResourceItem {
27
27
  * @Author: jinglin.tan
28
28
  */
29
29
  export declare const checkSubResourcesCapacity: (resource: ResourceItem) => void;
30
+ /**
31
+ * @title: 格式化商品单价
32
+ * @description:
33
+ * @param {any} item
34
+ * @return {*}
35
+ * @Author: WangHan
36
+ * @Date: 2024-12-23 12:05
37
+ */
38
+ export declare const formatProductPrice: (item: any) => number;
30
39
  export declare const formatValues: (state: any) => any;
31
40
  export declare const checkHolderIsError: (state: any) => any;