@pisell/private-materials 3.3.32 → 3.3.33

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 (420) 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.css +1 -1
  7. package/build/lowcode/render/default/view.js +6 -6
  8. package/build/lowcode/view.css +1 -1
  9. package/build/lowcode/view.js +6 -6
  10. package/es/businessModel/SalesModel/index.d.ts +1 -0
  11. package/es/components/appointmentBooking/components/Cart/ContinueButton/index.js +4 -25
  12. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  13. package/es/components/appointmentBooking/components/Cart/Item/index.js +45 -25
  14. package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  15. package/es/components/appointmentBooking/components/Content/index.js +53 -36
  16. package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  17. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  18. package/es/components/appointmentBooking/components/Form/index.js +61 -161
  19. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  20. package/es/components/appointmentBooking/components/Header/index.js +64 -50
  21. package/es/components/appointmentBooking/components/Resource/index.js +119 -102
  22. package/es/components/appointmentBooking/components/TimeSlicing/index.js +5 -12
  23. package/es/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  24. package/es/components/appointmentBooking/context.js +43 -3
  25. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  26. package/es/components/appointmentBooking/deposit/index.d.ts +1 -0
  27. package/es/components/appointmentBooking/hooks.d.ts +2 -3
  28. package/es/components/appointmentBooking/hooks.js +293 -209
  29. package/es/components/appointmentBooking/utils.d.ts +88 -2
  30. package/es/components/appointmentBooking/utils.js +325 -63
  31. package/es/components/booking/addons/model.js +5 -5
  32. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  33. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  34. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  35. package/es/components/booking/components/TabProduct/selectProductItem/index.js +4 -4
  36. package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
  37. package/es/components/booking/components/browserSelect/index.js +1 -1
  38. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  39. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  40. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  41. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  42. package/es/components/booking/components/voucher/index.d.ts +1 -0
  43. package/es/components/booking/forms/model.js +5 -5
  44. package/es/components/booking/forms/sendModal/useSendModal.d.ts +2 -1
  45. package/es/components/booking/forms/single/index.d.ts +1 -0
  46. package/es/components/booking/forms/table/index.d.ts +1 -0
  47. package/es/components/booking/hooks/useClearCart.d.ts +1 -0
  48. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  49. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  50. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  51. package/es/components/booking/info/date/index.d.ts +1 -0
  52. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  53. package/es/components/booking/info/header/index.d.ts +1 -0
  54. package/es/components/booking/info/notes/index.d.ts +1 -0
  55. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  56. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  57. package/es/components/booking/info/service/like/index.d.ts +1 -0
  58. package/es/components/booking/info/service/like/index.js +1 -1
  59. package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
  60. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  61. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  62. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  63. package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  64. package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  65. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  66. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  67. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  68. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  69. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  70. package/es/components/booking/materiels/startTime/index.js +1 -1
  71. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  72. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  73. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  74. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  75. package/es/components/booking/notes/addNote/index.d.ts +1 -0
  76. package/es/components/booking/notes/model.js +5 -5
  77. package/es/components/booking/payments/model.js +5 -5
  78. package/es/components/booking/utils.d.ts +2 -2
  79. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  80. package/es/components/eftpos/form/index.d.ts +1 -0
  81. package/es/components/eftpos/group/index.d.ts +1 -0
  82. package/es/components/eftpos/hooks.d.ts +1 -0
  83. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  84. package/es/components/eftpos/icon/device.d.ts +1 -0
  85. package/es/components/eftpos/index.d.ts +1 -0
  86. package/es/components/eftpos/pos.d.ts +1 -0
  87. package/es/components/eftpos/receipt/index.d.ts +1 -0
  88. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  89. package/es/components/eftposPay/amount.d.ts +2 -1
  90. package/es/components/eftposPay/app.d.ts +2 -1
  91. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  92. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  93. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  94. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  95. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  96. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  97. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  98. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  99. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  100. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  101. package/es/components/eftposPay/device.d.ts +2 -1
  102. package/es/components/eftposPay/hooks.d.ts +1 -1
  103. package/es/components/eftposPay/index.d.ts +1 -0
  104. package/es/components/eftposPay/pay.d.ts +1 -0
  105. package/es/components/eftposPay/payo/config.d.ts +1 -0
  106. package/es/components/eftposPay/store/index.d.ts +2 -2
  107. package/es/components/eftposPay/tip.d.ts +1 -0
  108. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  109. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  110. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  111. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  112. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  113. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  114. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  115. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  116. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  117. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  118. package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  119. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  120. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  121. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  122. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  123. package/es/components/eventBooking/components/Provider/SelectProduct/index.d.ts +4 -0
  124. package/es/components/eventBooking/components/Provider/SelectProduct/index.js +77 -0
  125. package/es/components/eventBooking/components/Provider/SelectProduct/index.less +131 -0
  126. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  127. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  128. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  129. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  130. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  131. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  132. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  133. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  134. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  135. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  136. package/es/components/listComponent/index.js +5 -5
  137. package/es/components/login/index.d.ts +1 -0
  138. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  139. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  140. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  141. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  142. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  143. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  144. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  145. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  146. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  147. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  148. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  149. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  150. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  151. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  152. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  153. package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
  154. package/es/components/productExtension/card/index.js +3 -3
  155. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  156. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  157. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  158. package/es/components/productExtension/fields/Forms/index.js +12 -12
  159. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  160. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  161. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  162. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  163. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  164. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  165. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  166. package/es/components/productExtension/index.d.ts +1 -0
  167. package/es/components/productExtension/server.js +2 -2
  168. package/es/components/productSelect/components/TabProduct/index.d.ts +1 -0
  169. package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
  170. package/es/components/ruleSetting/index.d.ts +1 -0
  171. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  172. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  173. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  174. package/es/components/schedules/calendar/index.d.ts +1 -0
  175. package/es/components/schedules/calendar/index.js +4 -4
  176. package/es/components/schedules/calendar/serve.js +2 -2
  177. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  178. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  179. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  180. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  181. package/es/components/schedules/components/ResourceList/index.js +1 -1
  182. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  183. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  184. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  185. package/es/components/schedules/components/Search/index.js +5 -5
  186. package/es/components/schedules/model.js +5 -5
  187. package/es/components/schedules/openHours/index.js +1 -1
  188. package/es/components/schedules/openHours/serve.js +2 -2
  189. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  190. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  191. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  192. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  193. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  194. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  195. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  196. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  197. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  198. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  199. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  200. package/es/components/schedules/products/index.d.ts +1 -0
  201. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  202. package/es/components/schedules/products/list/index.d.ts +1 -0
  203. package/es/components/schedules/products/serve.js +2 -2
  204. package/es/components/schedules/products/utils.js +5 -5
  205. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  206. package/es/components/schedules/resources/detail/index.js +10 -10
  207. package/es/components/schedules/resources/index.d.ts +1 -0
  208. package/es/components/schedules/resources/list/index.d.ts +1 -0
  209. package/es/components/schedules/resources/list/index.js +2 -2
  210. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  211. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  212. package/es/components/schedules/resources/serve.js +2 -2
  213. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  214. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  215. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  216. package/es/components/schedules/schedules/index.d.ts +1 -0
  217. package/es/components/schedules/utils.d.ts +1 -1
  218. package/es/components/schedules/utils.js +4 -4
  219. package/es/components/selectModal/index.js +2 -2
  220. package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
  221. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  222. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  223. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  224. package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  225. package/es/components/shoppingCart/index.d.ts +1 -0
  226. package/es/components/taxSelect/index.d.ts +1 -0
  227. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  228. package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  229. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  230. package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  231. package/es/components/ticketBooking/index.d.ts +1 -0
  232. package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
  233. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  234. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  235. package/es/hooks/useComponents.js +1 -1
  236. package/es/utils/index.d.ts +1 -1
  237. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  238. package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.js +0 -5
  239. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  240. package/lib/components/appointmentBooking/components/Cart/Item/index.js +33 -9
  241. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  242. package/lib/components/appointmentBooking/components/Content/index.js +35 -21
  243. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  244. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  245. package/lib/components/appointmentBooking/components/Form/index.js +54 -98
  246. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  247. package/lib/components/appointmentBooking/components/Header/index.js +39 -20
  248. package/lib/components/appointmentBooking/components/Resource/index.js +41 -59
  249. package/lib/components/appointmentBooking/components/TimeSlicing/index.js +1 -7
  250. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  251. package/lib/components/appointmentBooking/context.js +48 -4
  252. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  253. package/lib/components/appointmentBooking/deposit/index.d.ts +1 -0
  254. package/lib/components/appointmentBooking/hooks.d.ts +2 -3
  255. package/lib/components/appointmentBooking/hooks.js +143 -57
  256. package/lib/components/appointmentBooking/utils.d.ts +88 -2
  257. package/lib/components/appointmentBooking/utils.js +191 -51
  258. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  259. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  260. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  261. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  262. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  263. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  264. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  265. package/lib/components/booking/components/voucher/index.d.ts +1 -0
  266. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +2 -1
  267. package/lib/components/booking/forms/single/index.d.ts +1 -0
  268. package/lib/components/booking/forms/table/index.d.ts +1 -0
  269. package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
  270. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  271. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  272. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  273. package/lib/components/booking/info/date/index.d.ts +1 -0
  274. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  275. package/lib/components/booking/info/header/index.d.ts +1 -0
  276. package/lib/components/booking/info/notes/index.d.ts +1 -0
  277. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  278. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  279. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  280. package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
  281. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  282. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  283. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  284. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  285. package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  286. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  287. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  288. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  289. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  290. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  291. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  292. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  293. package/lib/components/booking/notes/addNote/index.d.ts +1 -0
  294. package/lib/components/booking/utils.d.ts +2 -2
  295. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  296. package/lib/components/eftpos/form/index.d.ts +1 -0
  297. package/lib/components/eftpos/group/index.d.ts +1 -0
  298. package/lib/components/eftpos/hooks.d.ts +1 -0
  299. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  300. package/lib/components/eftpos/icon/device.d.ts +1 -0
  301. package/lib/components/eftpos/index.d.ts +1 -0
  302. package/lib/components/eftpos/pos.d.ts +1 -0
  303. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  304. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  305. package/lib/components/eftposPay/amount.d.ts +2 -1
  306. package/lib/components/eftposPay/app.d.ts +2 -1
  307. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  308. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  309. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  310. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  311. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  312. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  313. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  314. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  315. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  316. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  317. package/lib/components/eftposPay/device.d.ts +2 -1
  318. package/lib/components/eftposPay/hooks.d.ts +1 -1
  319. package/lib/components/eftposPay/index.d.ts +1 -0
  320. package/lib/components/eftposPay/pay.d.ts +1 -0
  321. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  322. package/lib/components/eftposPay/store/index.d.ts +2 -2
  323. package/lib/components/eftposPay/tip.d.ts +1 -0
  324. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  325. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  326. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  327. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  328. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  329. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  330. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  331. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  332. package/lib/components/eventBooking/components/Provider/Footer/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/Information/index.d.ts +1 -0
  335. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  336. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  337. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  338. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  339. package/lib/components/eventBooking/components/Provider/SelectProduct/index.d.ts +4 -0
  340. package/lib/components/eventBooking/components/Provider/SelectProduct/index.js +69 -0
  341. package/lib/components/eventBooking/components/Provider/SelectProduct/index.less +131 -0
  342. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  343. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  344. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  345. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  346. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  347. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  348. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  349. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  350. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  351. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  352. package/lib/components/login/index.d.ts +1 -0
  353. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  354. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  355. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  356. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  357. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  358. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  359. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  360. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  361. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  362. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  363. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  364. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  365. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  366. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  367. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  368. package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
  369. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  370. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  371. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  372. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  373. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  374. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  375. package/lib/components/productExtension/index.d.ts +1 -0
  376. package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -0
  377. package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
  378. package/lib/components/ruleSetting/index.d.ts +1 -0
  379. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  380. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  381. package/lib/components/schedules/calendar/index.d.ts +1 -0
  382. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  383. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  384. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  385. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  386. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  387. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  388. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  389. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  390. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  391. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  392. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  393. package/lib/components/schedules/products/index.d.ts +1 -0
  394. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  395. package/lib/components/schedules/products/list/index.d.ts +1 -0
  396. package/lib/components/schedules/resources/index.d.ts +1 -0
  397. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  398. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  399. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  400. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  401. package/lib/components/schedules/schedules/index.d.ts +1 -0
  402. package/lib/components/schedules/utils.d.ts +1 -1
  403. package/lib/components/schedules/utils.js +1 -1
  404. package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
  405. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  406. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  407. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  408. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  409. package/lib/components/shoppingCart/index.d.ts +1 -0
  410. package/lib/components/taxSelect/index.d.ts +1 -0
  411. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  412. package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  413. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  414. package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  415. package/lib/components/ticketBooking/index.d.ts +1 -0
  416. package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
  417. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  418. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  419. package/lib/utils/index.d.ts +1 -1
  420. package/package.json +2 -2
@@ -101,7 +101,7 @@ export declare function updateLists<T extends Record<string, any>>(list: T[], ke
101
101
  * @Author: WangHan
102
102
  * @Date: 2025-04-27 17:27
103
103
  */
104
- export declare const updateBookingFormStorage: (bookingForm: any, id: number, newData: any) => any;
104
+ export declare const updateBookingFormStorage: (bookingForm: any, id: number | string, newData: any) => any;
105
105
  export declare const Toast: (text: string) => void;
106
106
  /**
107
107
  * @title: 添加或移除表单步骤
@@ -111,4 +111,90 @@ export declare const Toast: (text: string) => void;
111
111
  * @Author: WangHan
112
112
  * @Date: 2025-05-06 21:51
113
113
  */
114
- export declare const checkHasFormStep: ({ nextStep, isSkip, checkHolder, checkAccount, carts, setCarts, hasResourceFormId, currentStep, stepList, appointmentBooking, locales, isLogin, openLoginModal, isFormSubject, utils, accountLists, getHolders }: any) => true | undefined;
114
+ export declare const checkHasFormStep: ({ nextStep, isSkip, checkHolder, checkAccount, carts, setCarts, hasResourceFormId, currentStep, stepList, appointmentBooking, locales, isLogin, openLoginModal, isFormSubject, utils, accountLists, getHolders }: any) => void;
115
+ export declare const getCartCurrentResourceData: (cart: any, currentKey: any, resources: any[]) => any;
116
+ /**
117
+ * @title: 获取购物车资源列表
118
+ * @description:
119
+ * @return {*}
120
+ * @Author: WangHan
121
+ * @Date: 2025-05-25 13:56
122
+ */
123
+ export declare const getMultiResources: (cart: any, resourceItem: any, currentKey: string) => any[];
124
+ export declare const getCurrentBoard: (appointmentBooking: any, code: string) => any;
125
+ /**
126
+ * @title:
127
+ * @description: 根据资源code获取资源标题
128
+ * @param {any} appointmentBooking
129
+ * @param {string} code
130
+ * @return {*}
131
+ * @Author: WangHan
132
+ * @Date: 2025-05-24 18:51
133
+ */
134
+ export declare const getResourceTitle: (appointmentBooking: any, code: string, utils: any, originResource: any) => string;
135
+ /**
136
+ * @title: 监测购物车中是否有没有选择资源的
137
+ * @description:
138
+ * @param {any} carts
139
+ * @return {*}
140
+ * @Author: WangHan
141
+ * @Date: 2025-05-24 18:47
142
+ */
143
+ export declare const checkAndMarkCartRenderError: (carts: any, appointmentBooking?: any, utils?: any) => {
144
+ hasError: boolean;
145
+ updatedCartList: any;
146
+ };
147
+ /**
148
+ * @title: 查表表单步骤插入到哪个步骤的后面的key
149
+ * @description:
150
+ * @param {string} currentKey
151
+ * @param {any} stepList
152
+ * @return {*}
153
+ * @Author: WangHan
154
+ * @Date: 2025-05-24 19:05
155
+ */
156
+ export declare const getFormInsertBeforeKey: (currentKey: string, stepList: any[]) => any;
157
+ /**
158
+ * @title: 监测holder数据
159
+ * @description:
160
+ * @param {any} isFormSubject
161
+ * @param {any} checkAccount
162
+ * @param {any} carts
163
+ * @return {*}
164
+ * @Author: WangHan
165
+ * @Date: 2025-05-24 22:46
166
+ */
167
+ export declare const checkAndGoNext: (isFormSubject: any, checkAccount: any, carts: any[]) => {
168
+ hasError: boolean;
169
+ updatedCartList: any[];
170
+ };
171
+ export declare const currentAppointmentBoard: (currentKey: string, resources: any[], appointmentBooking: any) => {
172
+ isRequired: boolean;
173
+ isSystem: boolean;
174
+ isSkip: boolean;
175
+ form_id: number;
176
+ form_code: any;
177
+ cart_id: string;
178
+ resource_form_id: string;
179
+ policy_id: string;
180
+ } | {
181
+ isRequired?: undefined;
182
+ isSystem?: undefined;
183
+ isSkip?: undefined;
184
+ form_id?: undefined;
185
+ form_code?: undefined;
186
+ cart_id?: undefined;
187
+ resource_form_id?: undefined;
188
+ policy_id?: undefined;
189
+ };
190
+ export declare const currentRenderLists: (resources: any[], code: any) => any;
191
+ /**
192
+ * @title: 更新购物车
193
+ * @description:
194
+ * @param {any} carts
195
+ * @param {any} value
196
+ * @return {*}
197
+ * @Author: WangHan
198
+ * @Date: 2025-05-25 23:17
199
+ */
200
+ export declare const updateCartResources: (item: any, value: any) => any;
@@ -20,7 +20,11 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  var utils_exports = {};
21
21
  __export(utils_exports, {
22
22
  Toast: () => Toast,
23
+ checkAndGoNext: () => checkAndGoNext,
24
+ checkAndMarkCartRenderError: () => checkAndMarkCartRenderError,
23
25
  checkHasFormStep: () => checkHasFormStep,
26
+ currentAppointmentBoard: () => currentAppointmentBoard,
27
+ currentRenderLists: () => currentRenderLists,
24
28
  formatCarts: () => formatCarts,
25
29
  formatCartsResources: () => formatCartsResources,
26
30
  formatCurrentUser: () => formatCurrentUser,
@@ -28,13 +32,19 @@ __export(utils_exports, {
28
32
  formatForms: () => formatForms,
29
33
  formatGuest: () => formatGuest,
30
34
  formatHolder: () => formatHolder,
35
+ getCartCurrentResourceData: () => getCartCurrentResourceData,
36
+ getCurrentBoard: () => getCurrentBoard,
31
37
  getCustomer: () => getCustomer,
38
+ getFormInsertBeforeKey: () => getFormInsertBeforeKey,
32
39
  getMeAccount: () => getMeAccount,
40
+ getMultiResources: () => getMultiResources,
33
41
  getPunctuationMark: () => getPunctuationMark,
42
+ getResourceTitle: () => getResourceTitle,
34
43
  hasResourceFormId: () => hasResourceFormId,
35
44
  openForm: () => openForm,
36
45
  sortResources: () => sortResources,
37
46
  updateBookingFormStorage: () => updateBookingFormStorage,
47
+ updateCartResources: () => updateCartResources,
38
48
  updateLists: () => updateLists
39
49
  });
40
50
  module.exports = __toCommonJS(utils_exports);
@@ -276,68 +286,192 @@ var Toast = (text) => {
276
286
  var checkHasFormStep = ({ nextStep, isSkip, checkHolder, checkAccount, carts, setCarts, hasResourceFormId: hasResourceFormId2, currentStep, stepList, appointmentBooking, locales: locales2, isLogin, openLoginModal, isFormSubject, utils, accountLists, getHolders }) => {
277
287
  var _a, _b, _c;
278
288
  let isNext = false;
279
- if (hasResourceFormId2) {
280
- const index = (currentStep == null ? void 0 : currentStep.index) + 1;
281
- const description = locales2.getText("pisell2.appointment.fill-form");
282
- const isExist = stepList == null ? void 0 : stepList.some((item) => (item == null ? void 0 : item.key) === "select-time");
283
- appointmentBooking.addStep({ index, key: "fill-form", description }, isExist ? "select-time" : void 0);
289
+ const stepLists = (_c = (_b = (_a = appointmentBooking == null ? void 0 : appointmentBooking.store) == null ? void 0 : _a.step) == null ? void 0 : _b.store) == null ? void 0 : _c.stepList;
290
+ };
291
+ var getCartCurrentResourceData = (cart, currentKey, resources) => {
292
+ var _a, _b, _c, _d, _e, _f, _g;
293
+ try {
294
+ const currentFormId = (_b = (_a = currentKey == null ? void 0 : currentKey.split("_@")) == null ? void 0 : _a[1]) == null ? void 0 : _b.split("-");
295
+ const form_id = Number((currentFormId == null ? void 0 : currentFormId[0]) || ((_e = (_d = (_c = resources == null ? void 0 : resources[0]) == null ? void 0 : _c.resources) == null ? void 0 : _d[0]) == null ? void 0 : _e.id));
296
+ if (!form_id || !resources.length) return;
297
+ const cartId = cart._id;
298
+ const cartOriginResources = ((_f = cart._origin) == null ? void 0 : _f.resources) || [];
299
+ const resourceData = resources.find((r) => String(r._id) === String(cartId));
300
+ if (!resourceData) return;
301
+ let resourceItem = (resourceData.resources || []).find((r) => Number(r.id) === form_id);
302
+ if (!resourceItem) return;
303
+ resourceItem = {
304
+ ...resourceItem,
305
+ renderList: ((_g = resourceItem == null ? void 0 : resourceItem.renderList) == null ? void 0 : _g.map((r) => {
306
+ return {
307
+ ...r,
308
+ label: (r == null ? void 0 : r.main_field) || (r == null ? void 0 : r.id)
309
+ };
310
+ })) || []
311
+ };
312
+ const cartResource = cartOriginResources.find((r) => Number(r.form_id) === form_id);
313
+ const renderId = (cartResource == null ? void 0 : cartResource.id) || 0;
314
+ const renderItem = ((resourceItem == null ? void 0 : resourceItem.renderList) || []).find((r) => Number(r == null ? void 0 : r.id) === Number(renderId));
315
+ return {
316
+ cartItem: cart,
317
+ resourceItem: {
318
+ ...resourceItem,
319
+ originRenderLists: resourceData.resources
320
+ },
321
+ renderItem
322
+ };
323
+ } catch (error) {
324
+ return cart;
325
+ }
326
+ };
327
+ var getMultiResources = (cart, resourceItem, currentKey) => {
328
+ var _a;
329
+ if (!resourceItem || !cart) return [];
330
+ const isCurrentResourceStep = currentKey.startsWith("select-resource");
331
+ let resources = ((_a = cart == null ? void 0 : cart._origin) == null ? void 0 : _a.resources) || [];
332
+ let selectedResources = isCurrentResourceStep ? resources.filter((r) => (r == null ? void 0 : r.form_id) !== (resourceItem == null ? void 0 : resourceItem.form_id)) : resources;
333
+ selectedResources = selectedResources.map((r) => {
334
+ return {
335
+ ...r,
336
+ name: (r == null ? void 0 : r.main_field) || (r == null ? void 0 : r.id),
337
+ isShowChangeResource: false,
338
+ is_hide_like: true
339
+ };
340
+ });
341
+ let currentResources = resources.find((r) => (r == null ? void 0 : r.form_id) === (resourceItem == null ? void 0 : resourceItem.form_id));
342
+ let currentResource = isCurrentResourceStep ? {
343
+ allowClearResource: true,
344
+ lists: (resourceItem == null ? void 0 : resourceItem.renderList) || [],
345
+ is_hide_like: true,
346
+ id: currentResources == null ? void 0 : currentResources.id
347
+ } : {};
348
+ return [...selectedResources, currentResource];
349
+ };
350
+ var getCurrentBoard = (appointmentBooking, code) => {
351
+ var _a;
352
+ const { appointmentBoard } = (appointmentBooking == null ? void 0 : appointmentBooking.otherParams) || {};
353
+ const resourceConfig = (_a = appointmentBoard == null ? void 0 : appointmentBoard.resource_tab) == null ? void 0 : _a[code];
354
+ return resourceConfig;
355
+ };
356
+ var getResourceTitle = (appointmentBooking, code, utils, originResource) => {
357
+ const resourceConfig = getCurrentBoard(appointmentBooking, code);
358
+ let name = "";
359
+ if (resourceConfig == null ? void 0 : resourceConfig.resource_type_title) {
360
+ name = utils.translation(resourceConfig == null ? void 0 : resourceConfig.resource_type_title);
284
361
  } else {
285
- appointmentBooking.removeStep("fill-form");
362
+ name = (originResource == null ? void 0 : originResource.title) || "";
286
363
  }
287
- const stepLists = (_c = (_b = (_a = appointmentBooking == null ? void 0 : appointmentBooking.store) == null ? void 0 : _a.step) == null ? void 0 : _b.store) == null ? void 0 : _c.stepList;
288
- if ((currentStep == null ? void 0 : currentStep.index) + 2 === (stepLists == null ? void 0 : stepLists.length)) {
289
- const _checkHolder = () => {
290
- const result = checkHolder({
291
- isFormSubject,
292
- checkAccount,
293
- carts
294
- });
295
- if (result) {
296
- setCarts(result);
364
+ return name;
365
+ };
366
+ var checkAndMarkCartRenderError = (carts, appointmentBooking, utils) => {
367
+ let hasError = false;
368
+ const updatedCartList = carts == null ? void 0 : carts.map((cart) => {
369
+ const currentResource = cart == null ? void 0 : cart.currentSelectedResource;
370
+ if (!(currentResource == null ? void 0 : currentResource.renderItem)) {
371
+ hasError = true;
372
+ const resourceItem = (currentResource == null ? void 0 : currentResource.resourceItem) || {};
373
+ const name = getResourceTitle(appointmentBooking, resourceItem == null ? void 0 : resourceItem.code, utils, resourceItem);
374
+ return {
375
+ ...cart,
376
+ isErrorResource: true,
377
+ resourceErrorText: name
378
+ };
379
+ }
380
+ return cart;
381
+ });
382
+ return {
383
+ hasError,
384
+ updatedCartList
385
+ };
386
+ };
387
+ var getFormInsertBeforeKey = (currentKey, stepList) => {
388
+ const isFirstResource = currentKey === "select-resource";
389
+ const timeStep = stepList.find((item) => item.key.startsWith("select-time"));
390
+ if (isFirstResource && timeStep) {
391
+ return timeStep.key;
392
+ } else {
393
+ return currentKey;
394
+ }
395
+ };
396
+ var checkAndGoNext = (isFormSubject, checkAccount, carts) => {
397
+ let hasError = false;
398
+ let updatedCartList = [...carts];
399
+ if (isFormSubject && !checkAccount("holder")) {
400
+ updatedCartList = carts == null ? void 0 : carts.map((item) => {
401
+ if (!(item == null ? void 0 : item.holder_id)) {
402
+ hasError = true;
403
+ return {
404
+ ...item,
405
+ isErrorHolder: true
406
+ };
297
407
  }
298
- if (!!result) return true;
408
+ return item;
409
+ });
410
+ }
411
+ return {
412
+ hasError,
413
+ updatedCartList
414
+ };
415
+ };
416
+ var currentAppointmentBoard = (currentKey, resources, appointmentBooking) => {
417
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
418
+ try {
419
+ const currentStepKey = (_b = (_a = currentKey == null ? void 0 : currentKey.split("_@")) == null ? void 0 : _a[1]) == null ? void 0 : _b.split("-");
420
+ const form_id = Number((currentStepKey == null ? void 0 : currentStepKey[0]) || ((_e = (_d = (_c = resources == null ? void 0 : resources[0]) == null ? void 0 : _c.resources) == null ? void 0 : _d[0]) == null ? void 0 : _e.id));
421
+ const form_code = (currentStepKey == null ? void 0 : currentStepKey[1]) || ((_h = (_g = (_f = resources == null ? void 0 : resources[0]) == null ? void 0 : _f.resources) == null ? void 0 : _g[0]) == null ? void 0 : _h.code);
422
+ const cart_id = currentStepKey == null ? void 0 : currentStepKey[2];
423
+ const resource_form_id = currentStepKey == null ? void 0 : currentStepKey[3];
424
+ const policy_id = currentStepKey == null ? void 0 : currentStepKey[4];
425
+ const resource_tab = (_j = (_i = appointmentBooking == null ? void 0 : appointmentBooking.otherParams) == null ? void 0 : _i.appointmentBoard) == null ? void 0 : _j.resource_tab;
426
+ const config = resource_tab == null ? void 0 : resource_tab[form_code];
427
+ const isRequired = (config == null ? void 0 : config.customer_resource) === "customer_resource_required";
428
+ const isSystem = (config == null ? void 0 : config.customer_resource) === "customer_resource_system";
429
+ const isSkip = (config == null ? void 0 : config.hasOwnProperty("resource_skip_select")) ? !!(config == null ? void 0 : config.resource_skip_select) : true;
430
+ return {
431
+ isRequired,
432
+ isSystem,
433
+ isSkip,
434
+ form_id,
435
+ form_code,
436
+ cart_id,
437
+ resource_form_id,
438
+ policy_id
299
439
  };
300
- if (!isLogin) {
301
- utils.action({
302
- type: "pisell1.login",
303
- data: {
304
- type: "plugin"
305
- },
306
- callback: (status) => {
307
- var _a2;
308
- if (status === "success") {
309
- if (!isFormSubject) {
310
- const user = JSON.parse(((_a2 = utils == null ? void 0 : utils.storage) == null ? void 0 : _a2.get("customer")) || "{}");
311
- const currentUser = formatCustomer(user);
312
- const meAccount = accountLists == null ? void 0 : accountLists.find((d) => !(d == null ? void 0 : d.isGuest));
313
- appointmentBooking.setLoginAccount(meAccount == null ? void 0 : meAccount.id, currentUser);
314
- } else {
315
- getHolders();
316
- }
317
- if (isSkip) {
318
- isNext = true;
319
- }
320
- }
321
- }
322
- });
323
- } else {
324
- isNext = true;
325
- }
326
- if (isNext && !_checkHolder()) {
327
- nextStep();
328
- } else {
329
- return true;
330
- }
440
+ } catch (error) {
441
+ return {};
442
+ }
443
+ };
444
+ var currentRenderLists = (resources, code) => {
445
+ var _a;
446
+ if (!(resources == null ? void 0 : resources.length) || !code) return [];
447
+ const _resources = ((_a = resources == null ? void 0 : resources[0]) == null ? void 0 : _a.resources) || [];
448
+ const currentResource = _resources == null ? void 0 : _resources.find((item) => item.code === code);
449
+ return (currentResource == null ? void 0 : currentResource.renderList) || [];
450
+ };
451
+ var updateCartResources = (item, value) => {
452
+ var _a;
453
+ let newResource = [];
454
+ let resources = ((_a = item == null ? void 0 : item._origin) == null ? void 0 : _a.resources) || [];
455
+ const currentResourceIndex = resources.findIndex(
456
+ (item2) => item2.form_id === value.form_id
457
+ );
458
+ if (currentResourceIndex > -1) {
459
+ newResource = resources.map(
460
+ (item2) => item2.form_id === value.form_id ? value : item2
461
+ );
331
462
  } else {
332
- if (isSkip) {
333
- nextStep();
334
- }
463
+ newResource = [...resources, value];
335
464
  }
465
+ return newResource || [];
336
466
  };
337
467
  // Annotate the CommonJS export names for ESM import in node:
338
468
  0 && (module.exports = {
339
469
  Toast,
470
+ checkAndGoNext,
471
+ checkAndMarkCartRenderError,
340
472
  checkHasFormStep,
473
+ currentAppointmentBoard,
474
+ currentRenderLists,
341
475
  formatCarts,
342
476
  formatCartsResources,
343
477
  formatCurrentUser,
@@ -345,12 +479,18 @@ var checkHasFormStep = ({ nextStep, isSkip, checkHolder, checkAccount, carts, se
345
479
  formatForms,
346
480
  formatGuest,
347
481
  formatHolder,
482
+ getCartCurrentResourceData,
483
+ getCurrentBoard,
348
484
  getCustomer,
485
+ getFormInsertBeforeKey,
349
486
  getMeAccount,
487
+ getMultiResources,
350
488
  getPunctuationMark,
489
+ getResourceTitle,
351
490
  hasResourceFormId,
352
491
  openForm,
353
492
  sortResources,
354
493
  updateBookingFormStorage,
494
+ updateCartResources,
355
495
  updateLists
356
496
  });
@@ -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;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const FormItemChildrenWrap: (props: any) => JSX.Element;
2
3
  export default FormItemChildrenWrap;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const VoucherCard: (props: any) => JSX.Element | null;
3
4
  export default VoucherCard;
@@ -1,9 +1,10 @@
1
+ /// <reference types="react" />
1
2
  import { SendModalValues } from './index';
2
3
  declare const useSendModal: (bookingId?: number) => {
3
4
  open: boolean;
4
5
  setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
5
6
  handleOpen: () => void;
6
7
  handleValuesChange: (val: any) => void;
7
- handleOk: (values: SendModalValues) => Promise<any>;
8
+ handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
8
9
  };
9
10
  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,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const useClearCart: (state: any, dispatch: any) => false | JSX.Element;
2
3
  export default useClearCart;
@@ -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
  export declare const disabledDate: (current: any, position: any, currentDate: any) => any;
3
4
  declare const DateRange: ({ state, dispatch, key }: any) => 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,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Notes: () => JSX.Element | null;
2
3
  export default Notes;
@@ -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
  declare const BookingList: ({ items }: {
2
3
  items: any[];
3
4
  }) => JSX.Element;
@@ -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 ServiceItem: ({ d, handleEditService, state, handleLike, resourceItem, errorMessage, handleDeleteService, }: any) => JSX.Element;
3
4
  export default ServiceItem;
@@ -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;
@@ -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 '../../../info/service/addTimeModal/index.less';
2
3
  declare const AddTimeModal: () => JSX.Element;
3
4
  export default AddTimeModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceItem: ({ d, handleEditService, state, handleLike, errorMessage, handleDeleteService, }: any) => JSX.Element;
3
4
  export default ServiceItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceList: ({ onEdit }: {
3
4
  onEdit: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type ContactType = {
3
4
  country_calling_code: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from 'antd';
2
3
  interface DurationProps extends SelectProps {
3
4
  locale?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from 'antd';
2
3
  interface HolderProps extends SelectProps {
3
4
  selectProps?: SelectProps;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from "antd";
2
3
  interface StartTimeProps extends SelectProps {
3
4
  locale?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  export interface InfoProps {
3
4
  isEdit: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  export interface InfoProps {
3
4
  title?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const AddNote: ({ value, onChange, wait, title, placeholder }: any) => JSX.Element;
3
4
  export default AddNote;
@@ -163,10 +163,10 @@ export declare const getProductTotalPrice: (item: any) => number;
163
163
  export declare const getDuration: (duration: number | {
164
164
  type: string;
165
165
  value: number;
166
- }) => number | "flexible" | {
166
+ }) => number | {
167
167
  type: string;
168
168
  value: number;
169
- };
169
+ } | "flexible";
170
170
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
171
171
  export declare const getIsEdit: (state: any) => boolean;
172
172
  export {};
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ input, ...formItemProps }: any) => JSX.Element;
2
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 递归循环表单数据
3
4
  * @Author: hongbing.wang