@pisell/private-materials 6.2.20 → 6.2.21

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 (402) 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/preview.js +8 -8
  7. package/build/lowcode/render/default/view.js +2 -2
  8. package/build/lowcode/view.js +8 -8
  9. package/es/businessModel/SalesModel/index.d.ts +0 -1
  10. package/es/components/Sales/Cart/utils.d.ts +63 -0
  11. package/es/components/Sales/Checkout/index.d.ts +37 -0
  12. package/es/components/Sales/Checkout/serve.d.ts +15 -0
  13. package/es/components/Sales/Checkout/utils.d.ts +0 -1
  14. package/es/components/Sales/Checkout/utils.js +2 -3
  15. package/es/components/Sales/Customer/index.d.ts +25 -0
  16. package/es/components/Sales/Event/Detail.d.ts +30 -0
  17. package/es/components/Sales/Event/serve.d.ts +49 -0
  18. package/es/components/Sales/Summary/index.d.ts +35 -0
  19. package/es/components/Sales/Summary/serve.d.ts +1 -0
  20. package/es/components/Sales/Summary/utils.d.ts +51 -0
  21. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
  22. package/es/components/appointmentBooking/components/Cart/utils.d.ts +56 -0
  23. package/es/components/appointmentBooking/components/Content/index.d.ts +3 -0
  24. package/es/components/appointmentBooking/components/Content/index.js +19 -12
  25. package/es/components/appointmentBooking/components/Deposit/index.d.ts +9 -0
  26. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  27. package/es/components/appointmentBooking/components/Form/index.d.ts +4 -0
  28. package/es/components/appointmentBooking/components/Form/utils.d.ts +8 -0
  29. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  30. package/es/components/appointmentBooking/components/Header/index.d.ts +3 -0
  31. package/es/components/appointmentBooking/components/Resource/index.d.ts +7 -0
  32. package/es/components/appointmentBooking/components/Services/index.d.ts +4 -0
  33. package/es/components/appointmentBooking/components/TimeSlicing/index.js +7 -3
  34. package/es/components/appointmentBooking/components/Voucher/index.d.ts +4 -0
  35. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  36. package/es/components/appointmentBooking/deposit/index.d.ts +3 -0
  37. package/es/components/appointmentBooking/hooks.d.ts +106 -0
  38. package/es/components/appointmentBooking/index.d.ts +3 -0
  39. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  40. package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
  41. package/es/components/booking/components/browserSelect/index.js +1 -1
  42. package/es/components/booking/components/customSelect/index.d.ts +38 -0
  43. package/es/components/booking/components/customSelect/index.js +0 -1
  44. package/es/components/booking/components/footer/index.d.ts +11 -0
  45. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  46. package/es/components/booking/components/reloadResourceModal/index.d.ts +8 -0
  47. package/es/components/booking/components/voucher/index.d.ts +3 -0
  48. package/es/components/booking/editBookingModal/index.js +58 -29
  49. package/es/components/booking/editBookingModal/serve.d.ts +1 -0
  50. package/es/components/booking/editBookingModal/serve.js +19 -11
  51. package/es/components/booking/forms/model.js +5 -5
  52. package/es/components/booking/forms/table/index.d.ts +0 -1
  53. package/es/components/booking/hooks/useClearCart.d.ts +2 -0
  54. package/es/components/booking/hooks/useClearCart.js +8 -11
  55. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  56. package/es/components/booking/info/addServiceVariant/index.d.ts +6 -0
  57. package/es/components/booking/info/client/index.d.ts +4 -0
  58. package/es/components/booking/info/client/index.js +2 -3
  59. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  60. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  61. package/es/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
  62. package/es/components/booking/info/hooks/useInfoHolder.js +9 -16
  63. package/es/components/booking/info/index.d.ts +3 -0
  64. package/es/components/booking/info/service/Lists.d.ts +2 -0
  65. package/es/components/booking/info/service/Lists.js +26 -36
  66. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  67. package/es/components/booking/info/service/editService/index.js +10 -15
  68. package/es/components/booking/info/service/like/index.d.ts +0 -1
  69. package/es/components/booking/info/service/like/index.js +1 -1
  70. package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
  71. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  72. package/es/components/booking/info/service2/utils.d.ts +247 -0
  73. package/es/components/booking/info/service2/utils.js +21 -20
  74. package/es/components/booking/info/utils.js +1 -1
  75. package/es/components/booking/info2/index.d.ts +12 -0
  76. package/es/components/booking/info2/index.js +0 -1
  77. package/es/components/booking/info2/service/addService/index.d.ts +11 -0
  78. package/es/components/booking/info2/service/addService/utils.d.ts +98 -0
  79. package/es/components/booking/info2/service/addService/utils.js +4 -7
  80. package/es/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
  81. package/es/components/booking/info2/service/addTimeModal/index.js +0 -3
  82. package/es/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  83. package/es/components/booking/info2/service/editService/Resources/index.js +0 -5
  84. package/es/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
  85. package/es/components/booking/info2/service/editService/index.js +168 -264
  86. package/es/components/booking/info2/service/index.d.ts +4 -0
  87. package/es/components/booking/info2/service/index.js +15 -19
  88. package/es/components/booking/info2/utils.d.ts +4 -0
  89. package/es/components/booking/info2/utilsByBooking.d.ts +35 -0
  90. package/es/components/booking/locales.d.ts +828 -0
  91. package/es/components/booking/materiels/duration/index.d.ts +13 -0
  92. package/es/components/booking/materiels/duration/index.js +2 -9
  93. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  94. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  95. package/es/components/booking/materiels/startTime/index.js +1 -1
  96. package/es/components/booking/model.d.ts +108 -0
  97. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  98. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  99. package/es/components/booking/notes/model.js +5 -5
  100. package/es/components/booking/payments/model.js +5 -5
  101. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  102. package/es/components/eftpos/form/index.d.ts +0 -1
  103. package/es/components/eftpos/group/index.d.ts +0 -1
  104. package/es/components/eftpos/hooks.d.ts +0 -1
  105. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  106. package/es/components/eftpos/icon/device.d.ts +0 -1
  107. package/es/components/eftpos/receipt/index.d.ts +0 -1
  108. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  109. package/es/components/eftposPay/app.d.ts +0 -1
  110. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  111. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  112. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  113. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  114. package/es/components/eftposPay/const.d.ts +184 -0
  115. package/es/components/eftposPay/hooks.d.ts +35 -0
  116. package/es/components/eftposPay/index.d.ts +4 -0
  117. package/es/components/eftposPay/linkly/const.d.ts +23 -0
  118. package/es/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  119. package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  120. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  121. package/es/components/eftposPay/linkly/index.d.ts +2 -0
  122. package/es/components/eftposPay/linkly/service.d.ts +32 -0
  123. package/es/components/eftposPay/manufacturer.d.ts +7 -0
  124. package/es/components/eftposPay/pay.d.ts +20 -0
  125. package/es/components/eftposPay/store/index.d.ts +355 -0
  126. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  127. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  128. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
  129. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +3 -0
  130. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +3 -0
  131. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  132. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  133. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  134. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  135. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  136. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  137. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  138. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  139. package/es/components/eventBooking/components/bookingDetailModal/index.d.ts +7 -0
  140. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  141. package/es/components/eventBooking/index.d.ts +3 -0
  142. package/es/components/eventBooking/locales.d.ts +246 -0
  143. package/es/components/listComponent/index.js +5 -5
  144. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
  145. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +3 -0
  146. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +61 -0
  147. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  148. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  149. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  150. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  151. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  152. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  153. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  154. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
  155. package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  156. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  157. package/es/components/pay/toC/index.d.ts +3 -0
  158. package/es/components/pay/toC/locales.d.ts +289 -0
  159. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  160. package/es/components/productExtension/card/index.js +3 -3
  161. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  162. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  163. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  164. package/es/components/productExtension/fields/Forms/index.js +12 -12
  165. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  166. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  167. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  168. package/es/components/productExtension/server.js +2 -2
  169. package/es/components/productSelect/components/TabProduct/index.d.ts +2 -0
  170. package/es/components/productSelect/index.d.ts +26 -0
  171. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  172. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  173. package/es/components/schedules/calendar/index.js +4 -4
  174. package/es/components/schedules/calendar/serve.js +2 -2
  175. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  176. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  177. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  178. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  179. package/es/components/schedules/components/ResourceList/index.js +1 -1
  180. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  181. package/es/components/schedules/components/Search/index.js +5 -5
  182. package/es/components/schedules/model.js +5 -5
  183. package/es/components/schedules/openHours/index.js +1 -1
  184. package/es/components/schedules/openHours/serve.js +2 -2
  185. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  186. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  187. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  188. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  189. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  190. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  191. package/es/components/schedules/products/index.d.ts +0 -1
  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/list/index.js +2 -2
  197. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  198. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  199. package/es/components/schedules/resources/serve.js +2 -2
  200. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  201. package/es/components/schedules/utils.js +4 -4
  202. package/es/components/selectModal/index.js +2 -2
  203. package/es/components/shoppingCart/components/Cart/Product.d.ts +3 -0
  204. package/es/components/shoppingCart/components/Cart/Product.js +41 -48
  205. package/es/components/shoppingCart/components/Cart/index.d.ts +3 -0
  206. package/es/components/shoppingCart/components/Cart/index.js +18 -21
  207. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  208. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  209. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  210. package/es/components/ticketBooking/components/addServiceVariant/addService.js +157 -177
  211. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  212. package/es/components/ticketBooking/components/menuBar/index.d.ts +3 -0
  213. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
  214. package/es/components/ticketBooking/components/timeBar/index.d.ts +12 -0
  215. package/es/components/ticketBooking/components/timeBar/index.js +71 -78
  216. package/es/components/ticketBooking/index.d.ts +7 -0
  217. package/es/components/ticketBooking/locales.d.ts +174 -0
  218. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
  219. package/es/components/ticketBooking/utils/formatTime.d.ts +31 -0
  220. package/es/components/walletList/index.d.ts +28 -0
  221. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  222. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  223. package/es/hooks/useComponents.js +1 -1
  224. package/es/utils/index.d.ts +23 -0
  225. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  226. package/lib/components/Sales/Cart/utils.d.ts +63 -0
  227. package/lib/components/Sales/Checkout/index.d.ts +37 -0
  228. package/lib/components/Sales/Checkout/serve.d.ts +15 -0
  229. package/lib/components/Sales/Checkout/utils.d.ts +0 -1
  230. package/lib/components/Sales/Checkout/utils.js +2 -3
  231. package/lib/components/Sales/Customer/index.d.ts +25 -0
  232. package/lib/components/Sales/Event/Detail.d.ts +30 -0
  233. package/lib/components/Sales/Event/serve.d.ts +49 -0
  234. package/lib/components/Sales/Summary/index.d.ts +35 -0
  235. package/lib/components/Sales/Summary/serve.d.ts +1 -0
  236. package/lib/components/Sales/Summary/utils.d.ts +51 -0
  237. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
  238. package/lib/components/appointmentBooking/components/Cart/utils.d.ts +56 -0
  239. package/lib/components/appointmentBooking/components/Content/index.d.ts +3 -0
  240. package/lib/components/appointmentBooking/components/Content/index.js +7 -2
  241. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +9 -0
  242. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  243. package/lib/components/appointmentBooking/components/Form/index.d.ts +4 -0
  244. package/lib/components/appointmentBooking/components/Form/utils.d.ts +8 -0
  245. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  246. package/lib/components/appointmentBooking/components/Header/index.d.ts +3 -0
  247. package/lib/components/appointmentBooking/components/Resource/index.d.ts +7 -0
  248. package/lib/components/appointmentBooking/components/Services/index.d.ts +4 -0
  249. package/lib/components/appointmentBooking/components/TimeSlicing/index.js +7 -3
  250. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +4 -0
  251. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  252. package/lib/components/appointmentBooking/deposit/index.d.ts +3 -0
  253. package/lib/components/appointmentBooking/hooks.d.ts +106 -0
  254. package/lib/components/appointmentBooking/index.d.ts +3 -0
  255. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  256. package/lib/components/booking/components/customSelect/index.d.ts +38 -0
  257. package/lib/components/booking/components/customSelect/index.js +0 -1
  258. package/lib/components/booking/components/footer/index.d.ts +11 -0
  259. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  260. package/lib/components/booking/components/reloadResourceModal/index.d.ts +8 -0
  261. package/lib/components/booking/components/voucher/index.d.ts +3 -0
  262. package/lib/components/booking/editBookingModal/index.js +56 -21
  263. package/lib/components/booking/editBookingModal/serve.d.ts +1 -0
  264. package/lib/components/booking/editBookingModal/serve.js +12 -6
  265. package/lib/components/booking/forms/table/index.d.ts +0 -1
  266. package/lib/components/booking/hooks/useClearCart.d.ts +2 -0
  267. package/lib/components/booking/hooks/useClearCart.js +13 -16
  268. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  269. package/lib/components/booking/info/addServiceVariant/index.d.ts +6 -0
  270. package/lib/components/booking/info/client/index.d.ts +4 -0
  271. package/lib/components/booking/info/client/index.js +4 -5
  272. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  273. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  274. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
  275. package/lib/components/booking/info/hooks/useInfoHolder.js +9 -10
  276. package/lib/components/booking/info/index.d.ts +3 -0
  277. package/lib/components/booking/info/service/Lists.d.ts +2 -0
  278. package/lib/components/booking/info/service/Lists.js +23 -35
  279. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  280. package/lib/components/booking/info/service/editService/index.js +1 -7
  281. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  282. package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
  283. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  284. package/lib/components/booking/info/service2/utils.d.ts +247 -0
  285. package/lib/components/booking/info/service2/utils.js +17 -17
  286. package/lib/components/booking/info/utils.js +1 -2
  287. package/lib/components/booking/info2/index.d.ts +12 -0
  288. package/lib/components/booking/info2/service/addService/index.d.ts +11 -0
  289. package/lib/components/booking/info2/service/addService/utils.d.ts +98 -0
  290. package/lib/components/booking/info2/service/addService/utils.js +3 -5
  291. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
  292. package/lib/components/booking/info2/service/addTimeModal/index.js +0 -3
  293. package/lib/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  294. package/lib/components/booking/info2/service/editService/Resources/index.js +0 -2
  295. package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
  296. package/lib/components/booking/info2/service/editService/index.js +72 -137
  297. package/lib/components/booking/info2/service/index.d.ts +4 -0
  298. package/lib/components/booking/info2/service/index.js +9 -13
  299. package/lib/components/booking/info2/utils.d.ts +4 -0
  300. package/lib/components/booking/info2/utilsByBooking.d.ts +35 -0
  301. package/lib/components/booking/locales.d.ts +828 -0
  302. package/lib/components/booking/materiels/duration/index.d.ts +13 -0
  303. package/lib/components/booking/materiels/duration/index.js +2 -7
  304. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  305. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  306. package/lib/components/booking/model.d.ts +108 -0
  307. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  308. package/lib/components/eftpos/form/index.d.ts +0 -1
  309. package/lib/components/eftpos/group/index.d.ts +0 -1
  310. package/lib/components/eftpos/hooks.d.ts +0 -1
  311. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  312. package/lib/components/eftpos/icon/device.d.ts +0 -1
  313. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  314. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  315. package/lib/components/eftposPay/app.d.ts +0 -1
  316. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  317. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  318. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  319. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  320. package/lib/components/eftposPay/const.d.ts +184 -0
  321. package/lib/components/eftposPay/hooks.d.ts +35 -0
  322. package/lib/components/eftposPay/index.d.ts +4 -0
  323. package/lib/components/eftposPay/linkly/const.d.ts +23 -0
  324. package/lib/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  325. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  326. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  327. package/lib/components/eftposPay/linkly/index.d.ts +2 -0
  328. package/lib/components/eftposPay/linkly/service.d.ts +32 -0
  329. package/lib/components/eftposPay/manufacturer.d.ts +7 -0
  330. package/lib/components/eftposPay/pay.d.ts +20 -0
  331. package/lib/components/eftposPay/store/index.d.ts +355 -0
  332. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  333. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  334. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
  335. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +3 -0
  336. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +3 -0
  337. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  338. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  339. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  340. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  341. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  342. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  343. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  344. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  345. package/lib/components/eventBooking/components/bookingDetailModal/index.d.ts +7 -0
  346. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  347. package/lib/components/eventBooking/index.d.ts +3 -0
  348. package/lib/components/eventBooking/locales.d.ts +246 -0
  349. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
  350. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +3 -0
  351. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +61 -0
  352. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  353. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  354. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  355. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  356. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  357. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  358. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  359. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
  360. package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  361. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  362. package/lib/components/pay/toC/index.d.ts +3 -0
  363. package/lib/components/pay/toC/locales.d.ts +289 -0
  364. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  365. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  366. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  367. package/lib/components/productSelect/components/TabProduct/index.d.ts +2 -0
  368. package/lib/components/productSelect/index.d.ts +26 -0
  369. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  370. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  371. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  372. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  373. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  374. package/lib/components/schedules/products/index.d.ts +0 -1
  375. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  376. package/lib/components/schedules/utils.js +1 -1
  377. package/lib/components/shoppingCart/components/Cart/Product.d.ts +3 -0
  378. package/lib/components/shoppingCart/components/Cart/Product.js +21 -31
  379. package/lib/components/shoppingCart/components/Cart/index.d.ts +3 -0
  380. package/lib/components/shoppingCart/components/Cart/index.js +15 -18
  381. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  382. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  383. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  384. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +127 -145
  385. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  386. package/lib/components/ticketBooking/components/menuBar/index.d.ts +3 -0
  387. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
  388. package/lib/components/ticketBooking/components/timeBar/index.d.ts +12 -0
  389. package/lib/components/ticketBooking/components/timeBar/index.js +88 -95
  390. package/lib/components/ticketBooking/index.d.ts +7 -0
  391. package/lib/components/ticketBooking/locales.d.ts +174 -0
  392. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
  393. package/lib/components/ticketBooking/utils/formatTime.d.ts +31 -0
  394. package/lib/components/walletList/index.d.ts +28 -0
  395. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  396. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  397. package/lib/utils/index.d.ts +23 -0
  398. package/package.json +4 -4
  399. package/es/components/booking/info/service/editService/constants.d.ts +0 -1
  400. package/es/components/booking/info/service/editService/constants.js +0 -3
  401. package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
  402. package/lib/components/booking/info/service/editService/constants.js +0 -31
@@ -0,0 +1,56 @@
1
+ interface CheckLoginParams {
2
+ isLogin: boolean;
3
+ openLoginModal: (params: {
4
+ callback: (status: string) => void;
5
+ }) => void;
6
+ isFormSubject: boolean;
7
+ utils: any;
8
+ accountLists: any[];
9
+ appointmentBooking: any;
10
+ getHolders: () => void;
11
+ }
12
+ export declare const checkLogin: ({ isLogin, openLoginModal, isFormSubject, utils, accountLists, appointmentBooking, getHolders, }: CheckLoginParams) => Promise<boolean>;
13
+ interface CheckHolderParams {
14
+ isFormSubject: boolean;
15
+ checkAccount: (type: string) => boolean;
16
+ carts: any[];
17
+ }
18
+ export declare const checkHolder: ({ isFormSubject, checkAccount, carts }: CheckHolderParams) => false | any[];
19
+ interface CheckResourceParams {
20
+ carts: any[];
21
+ resources: any[];
22
+ }
23
+ /**
24
+ * @title: 检测资源数据
25
+ * @description:
26
+ * @param {CheckResourceParams} param1
27
+ * @return {*}
28
+ * @Author: WangHan
29
+ * @Date: 2025-04-29 18:02
30
+ */
31
+ export declare const checkResource: ({ carts, resources }: CheckResourceParams) => false | any[];
32
+ interface CheckResourceParams {
33
+ carts: any[];
34
+ }
35
+ export declare type StepKey = 'select-resource' | 'fill-form' | 'select-time' | 'confirm-information' | 'select-service' | 'select-date' | 'select-guest';
36
+ interface AddHolderParams {
37
+ res: any;
38
+ bookingSubject: any;
39
+ accountLists: any[];
40
+ cartItem: any;
41
+ getHolders: () => void;
42
+ appointmentBooking: any;
43
+ }
44
+ /**
45
+ * @title: 添加holder
46
+ * @description:
47
+ * @param {any} res
48
+ * @param {any} bookingSubject
49
+ * @param {any} accountLists
50
+ * @param {any} e
51
+ * @return {*}
52
+ * @Author: WangHan
53
+ * @Date: 2025-05-10 18:25
54
+ */
55
+ export declare const handleAddHolder: ({ res, bookingSubject, accountLists, cartItem, getHolders, appointmentBooking }: AddHolderParams) => Promise<any>;
56
+ export {};
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Layout: () => JSX.Element;
3
+ export default Layout;
@@ -46,11 +46,12 @@ var import_Form = __toESM(require("../Form"));
46
46
  var import_ConfirmInformation = __toESM(require("../ConfirmInformation"));
47
47
  var import_context = require("../../context");
48
48
  var import_PolicyModal = __toESM(require("../../deposit/components/PolicyModal"));
49
+ var import_utils2 = require("../Resource/utils");
49
50
  var import_hooks = require("../../hooks");
50
51
  var import_index = require("./index.less");
51
52
  var import_useComponents = __toESM(require("../../../../hooks/useComponents"));
52
53
  var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
53
- var import_utils2 = require("../../utils");
54
+ var import_utils3 = require("../../utils");
54
55
  var Layout = () => {
55
56
  var _a, _b, _c, _d, _e, _f;
56
57
  const stepRef = (0, import_react.useRef)();
@@ -87,7 +88,7 @@ var Layout = () => {
87
88
  var _a2;
88
89
  if (!isFormSubject) {
89
90
  const user = JSON.parse(((_a2 = utils == null ? void 0 : utils.storage) == null ? void 0 : _a2.get("customer")) || "{}");
90
- const currentUser = (0, import_utils2.formatCustomer)(user);
91
+ const currentUser = (0, import_utils3.formatCustomer)(user);
91
92
  const accountLists = await appointmentBooking.getAccounts();
92
93
  const meAccount = accountLists == null ? void 0 : accountLists.find((d) => !(d == null ? void 0 : d.isGuest));
93
94
  appointmentBooking.setLoginAccount(meAccount == null ? void 0 : meAccount.id, currentUser);
@@ -146,6 +147,7 @@ var Layout = () => {
146
147
  }
147
148
  }, [isFormSubject, isLogin, isRetailTemplate]);
148
149
  (0, import_react.useEffect)(() => {
150
+ var _a2;
149
151
  if (!(currentStep == null ? void 0 : currentStep.step)) return;
150
152
  setLoading(false);
151
153
  setResourceOtherParams({
@@ -157,6 +159,9 @@ var Layout = () => {
157
159
  top: 0,
158
160
  behavior: "smooth"
159
161
  });
162
+ if (((_a2 = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _a2.key) === "confirm-information") {
163
+ (0, import_utils2.scrollToFirstErrorCard)(".pisell-lowcode-product-card-error");
164
+ }
160
165
  }, [(_b = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _b.key]);
161
166
  const components = {
162
167
  // 选择服务
@@ -0,0 +1,9 @@
1
+ import './index.less';
2
+ export declare const DepositContent: (props: {
3
+ isAgreeDepositPolicy: boolean;
4
+ setIsAgreeDepositPolicy: (value: boolean) => void;
5
+ deposit: any;
6
+ depositProtocolRequest?: any;
7
+ }) => JSX.Element;
8
+ declare const Deposit: () => JSX.Element;
9
+ export default Deposit;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Footer: ({ onNext, isOpen }: any) => JSX.Element;
4
3
  export default Footer;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare const Form: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
4
+ export default Form;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @title: 更新表单数据
3
+ * @description:
4
+ * @return {*}
5
+ * @Author: WangHan
6
+ * @Date: 2025-05-26 16:58
7
+ */
8
+ export declare const updateRelationForms: (carts: any[], currentCart: any, values: any, currentStepKey?: string) => any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const GuestOptionsModal: (props: any) => JSX.Element;
4
3
  export default GuestOptionsModal;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Header: () => JSX.Element;
3
+ export default Header;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface ResourceProps {
4
+ onChange?: (val: any) => void;
5
+ }
6
+ declare const Resource: React.ForwardRefExoticComponent<ResourceProps & React.RefAttributes<any>>;
7
+ export default Resource;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare const Services: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
4
+ export default Services;
@@ -36,8 +36,9 @@ var import_react = __toESM(require("react"));
36
36
  var import_materials = require("@pisell/materials");
37
37
  var import_utils = require("@pisell/utils");
38
38
  var import_context = require("../../context");
39
+ var import_utils2 = require("../Resource/utils");
39
40
  var import_hooks = require("../../hooks");
40
- var import_utils2 = require("../../utils");
41
+ var import_utils3 = require("../../utils");
41
42
  var import_index = require("./index.less");
42
43
  var TimeSlicing = (0, import_react.forwardRef)((props, ref) => {
43
44
  const [selectedResource, setSelectedResource] = (0, import_react.useState)("");
@@ -54,7 +55,7 @@ var TimeSlicing = (0, import_react.forwardRef)((props, ref) => {
54
55
  next: () => {
55
56
  const isUnSelectedTimes = appointmentBooking.checkCartItems("date");
56
57
  if ((isUnSelectedTimes == null ? void 0 : isUnSelectedTimes.length) > 0) {
57
- (0, import_utils2.Toast)(import_utils.locales.getText("pisell2.appointment.unselect.time"));
58
+ (0, import_utils3.Toast)(import_utils.locales.getText("pisell2.appointment.unselect.time"));
58
59
  return;
59
60
  }
60
61
  nextStep();
@@ -65,11 +66,14 @@ var TimeSlicing = (0, import_react.forwardRef)((props, ref) => {
65
66
  }, []);
66
67
  const getAutoSelect = async (val) => {
67
68
  setSelectedTime(val);
69
+ (0, import_utils2.scrollToFirstErrorCard)(".pisell-lowcode-product-card-error");
68
70
  const result = await appointmentBooking.submitTimeSlot(val);
69
71
  };
70
72
  (0, import_react.useEffect)(() => {
71
73
  var _a, _b, _c;
72
- let appoimentBookingProductCart = carts.filter((item) => !appointmentBooking.isTargetCartIdNormalProduct(item == null ? void 0 : item._id));
74
+ let appoimentBookingProductCart = carts.filter(
75
+ (item) => !appointmentBooking.isTargetCartIdNormalProduct(item == null ? void 0 : item._id)
76
+ );
73
77
  if ((times == null ? void 0 : times.length) > 0 && (appoimentBookingProductCart == null ? void 0 : appoimentBookingProductCart.length) > 0) {
74
78
  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);
75
79
  setSelectedResource(startTime);
@@ -0,0 +1,4 @@
1
+ import '../../../booking/components/voucher/index.less';
2
+ import './index.less';
3
+ declare const VoucherCard: (props: any) => JSX.Element;
4
+ export default VoucherCard;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const DepositModal: (props: any) => JSX.Element;
3
+ export default DepositModal;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Deposit: (props: any) => JSX.Element;
3
+ export default Deposit;
@@ -0,0 +1,106 @@
1
+ export declare const useAppointmentBooking: () => any;
2
+ export declare const useShopDiscount: () => any;
3
+ export declare const contextUtils: () => any;
4
+ /**
5
+ * @title: 监听步骤发生变化
6
+ * @description:
7
+ * @return {*}
8
+ * @Author: WangHan
9
+ * @Date: 2025-04-15 11:11
10
+ */
11
+ export declare const useAppointmentBookingStep: () => {
12
+ getStepIndex: (type: string, skipNumber?: number) => any;
13
+ stepList: any;
14
+ removeStep: (key: string) => any;
15
+ addStep: (props: any, stepKey?: string) => any;
16
+ updateStep: (key: string, step: any) => void;
17
+ nextStep: () => any;
18
+ };
19
+ /**
20
+ * @title: 获取商品数据
21
+ * @description:
22
+ * @return {*}
23
+ * @Author: WangHan
24
+ * @Date: 2025-04-15 11:12
25
+ */
26
+ export declare const useAppointmentBookingProduct: () => {
27
+ checkProductType: (productId: number) => Promise<any>;
28
+ getProducts: () => Promise<any>;
29
+ };
30
+ /**
31
+ * @title: 更新购物车数据
32
+ * @description:
33
+ * @return {*}
34
+ * @Author: WangHan
35
+ * @Date: 2025-04-15 11:12
36
+ */
37
+ export declare const useAppointmentBookingCart: () => void;
38
+ /**
39
+ * @title: 获取登录状态
40
+ * @description:
41
+ * @return {*}
42
+ * @Author: WangHan
43
+ * @Date: 2025-04-15 11:14
44
+ */
45
+ export declare const useAppointmentBookingLogin: () => {
46
+ isLogin: boolean;
47
+ openLoginModal: (params: {
48
+ callback: any;
49
+ }) => void;
50
+ };
51
+ /**
52
+ * @title: 获取账户
53
+ * @description:
54
+ * @return {*}
55
+ * @Author: WangHan
56
+ * @Date: 2025-04-15 11:15
57
+ */
58
+ export declare const useAppointmentBookingAccount: () => {
59
+ accountLists: any;
60
+ getHolders: () => Promise<any>;
61
+ form_id: any;
62
+ addAccount: (val: any, type?: string) => Promise<any>;
63
+ checkAccount: (type: any) => any;
64
+ };
65
+ /**
66
+ * @title: 获取资源数据
67
+ * @description:
68
+ * @return {*}
69
+ * @Author: WangHan
70
+ * @Date: 2025-04-15 11:29
71
+ */
72
+ export declare const useAppointmentBookingResource: () => {
73
+ getResourceTimeSlot: (index?: number) => Promise<void>;
74
+ getResourceList: () => {
75
+ resources: any;
76
+ resourceCodes: any;
77
+ };
78
+ };
79
+ /**
80
+ * @title: 是否跳过资源选择步骤
81
+ * @description:
82
+ * @return {*}
83
+ * @Author: WangHan
84
+ * @Date: 2025-04-21 11:47
85
+ */
86
+ export declare const useIsSkipResourceStep: () => {
87
+ checkSkipResourceStep: () => Promise<boolean>;
88
+ };
89
+ /**
90
+ * @title: 获取预约配置
91
+ * @description:
92
+ * @return {*}
93
+ * @Author: WangHan
94
+ * @Date: 2025-04-24 18:15
95
+ */
96
+ export declare const useAppointmentBookingSetting: () => {
97
+ isDateSelectedFirst: boolean;
98
+ isFormSubject: boolean;
99
+ isRetailTemplate: any;
100
+ customPageId: any;
101
+ channel: any;
102
+ bookingSubject: any;
103
+ setOtherData: (key: string, val: any) => any;
104
+ getOtherData: (key: string) => any;
105
+ formName: any;
106
+ };
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const AppointmentBooking: () => JSX.Element;
3
+ export default AppointmentBooking;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface TabProductProps {
4
3
  list: any[];
@@ -0,0 +1,38 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface CustomSelectProps {
4
+ options: any[];
5
+ onValueChange: (value: any[]) => void;
6
+ value: any[];
7
+ rowKey: string;
8
+ previewItemRender?: (item: any) => React.ReactNode;
9
+ previewItemTitleRender?: (item: any, index: number, values: any[]) => React.ReactNode;
10
+ addButtonRender?: () => React.ReactNode;
11
+ optionRender: (item: any) => React.ReactNode;
12
+ addButtonProps?: any;
13
+ drawerProps?: any;
14
+ createItemText?: string;
15
+ loading?: boolean;
16
+ previewItemClassName?: string;
17
+ optionClassName?: string;
18
+ mode?: 'single' | 'multiple' | 'form';
19
+ filterItem?: (item: any, search: string) => boolean;
20
+ isPreview?: boolean;
21
+ name?: string;
22
+ handleCreateItem?: () => void;
23
+ handleViewItem?: (item: any) => void;
24
+ searchChange?: (e: string) => void;
25
+ loadMore?: any;
26
+ virtualListHeight?: number;
27
+ disabled?: boolean;
28
+ searchValue?: string;
29
+ onVirtualListScroll?: any;
30
+ modalOpen?: boolean;
31
+ closeCallback?: () => any;
32
+ autoFocus?: boolean;
33
+ showDropDown?: boolean;
34
+ handleOpenModal?: () => void;
35
+ handleDayChange?: (value: any) => void;
36
+ }
37
+ declare const _default: React.ForwardRefExoticComponent<CustomSelectProps & React.RefAttributes<unknown>>;
38
+ export default _default;
@@ -78,7 +78,6 @@ var CustomSelect = (props, ref) => {
78
78
  handleOpenModal: propsHandleOpenModal,
79
79
  handleDayChange
80
80
  } = props;
81
- console.log("custom select");
82
81
  const searchRef = (0, import_react.useRef)();
83
82
  const [_value, set_value] = (0, import_react.useState)([]);
84
83
  const [search, setSearch] = (0, import_react.useState)("");
@@ -0,0 +1,11 @@
1
+ import './index.less';
2
+ /**
3
+ * @title: 底部
4
+ * @description:
5
+ * @param {any} props
6
+ * @return {*}
7
+ * @Author: zhiwei.Wang
8
+ * @Date: 2024-01-30 16:51
9
+ */
10
+ declare const Footer: (props: any) => JSX.Element;
11
+ export default Footer;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const FormItemChildrenWrap: (props: any) => JSX.Element;
3
2
  export default FormItemChildrenWrap;
@@ -0,0 +1,8 @@
1
+ import './index.less';
2
+ interface IProps {
3
+ modal: any;
4
+ onReload: () => Promise<any>;
5
+ onCancel: () => void;
6
+ }
7
+ declare const ReloadResourceModal: ({ modal, onReload, onCancel }: IProps) => JSX.Element;
8
+ export default ReloadResourceModal;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const VoucherCard: (props: any) => JSX.Element | null;
3
+ export default VoucherCard;
@@ -66,50 +66,62 @@ var EditBookingModal = (props, ref) => {
66
66
  };
67
67
  });
68
68
  const getInitData = async (params2) => {
69
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
69
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
70
70
  let mockProps = params2;
71
71
  const _data = await (0, import_serve2.init)(mockProps);
72
72
  setData(_data);
73
73
  let _initResourceVal = _data.childrenBooking._extend.resource;
74
- const toResourceFormId = (_a = _data.toResource) == null ? void 0 : _a.form_id;
75
- if (params2.fromResourceId !== params2.toResourceId && toResourceFormId) {
74
+ const fromResourceFormId = (_a = _data.fromResource) == null ? void 0 : _a.form_id;
75
+ const toResourceFormId = (_b = _data.toResource) == null ? void 0 : _b.form_id;
76
+ const _form_id = toResourceFormId || fromResourceFormId;
77
+ if (params2.fromResourceId !== params2.toResourceId && !!_form_id) {
76
78
  const { list, maps } = (0, import_utils3.formatResources)({
77
79
  cacheItem: _data.childrenBooking,
78
80
  resourcesOrigin: _data.resourcesOrigin
79
81
  });
80
- const currentForm = maps[toResourceFormId];
81
- const relation_id = (_b = _data.toResource) == null ? void 0 : _b.id;
82
- if (currentForm && relation_id) {
82
+ const currentForm = maps[_form_id];
83
+ const relation_id = (_c = _data.toResource) == null ? void 0 : _c.id;
84
+ if (currentForm && (relation_id || relation_id === 0)) {
83
85
  let _targetResource = {
84
- relation_type: ((_d = (_c = currentForm.renderListMaps[relation_id]) == null ? void 0 : _c.usable) == null ? void 0 : _d.relation_type) || "form",
85
- form_id: toResourceFormId,
86
+ relation_type: ((_e = (_d = currentForm.renderListMaps[relation_id]) == null ? void 0 : _d.usable) == null ? void 0 : _e.relation_type) || "form",
87
+ form_id: _form_id,
86
88
  relation_id,
87
89
  like_status: "common",
88
- children: (_f = (_e = currentForm.renderListMaps) == null ? void 0 : _e[relation_id]) == null ? void 0 : _f.children,
90
+ children: (_g = (_f = currentForm.renderListMaps) == null ? void 0 : _f[relation_id]) == null ? void 0 : _g.children,
89
91
  metadata: {
90
- ...(_h = (_g = currentForm.renderListMaps) == null ? void 0 : _g[relation_id]) == null ? void 0 : _h.metadata,
92
+ ...(_i = (_h = currentForm.renderListMaps) == null ? void 0 : _h[relation_id]) == null ? void 0 : _i.metadata,
91
93
  form_name: currentForm.title,
92
- resource_name: (_i = currentForm.renderListMaps[relation_id]) == null ? void 0 : _i.main_field
94
+ resource_name: (_j = currentForm.renderListMaps[relation_id]) == null ? void 0 : _j.main_field
93
95
  }
94
96
  };
95
- if (Array.isArray(_initResourceVal[toResourceFormId])) {
96
- const _cloned = [..._initResourceVal[toResourceFormId]];
97
- const _idx = _cloned.findIndex(
98
- (rs) => rs.relation_id == params2.fromResourceId
99
- );
97
+ if (Array.isArray(_initResourceVal[_form_id])) {
98
+ const _cloned = [..._initResourceVal[_form_id]];
99
+ const _idx = _cloned.findIndex((rs) => {
100
+ var _a2;
101
+ return rs.relation_id == params2.fromResourceId || ((_a2 = rs.children) == null ? void 0 : _a2.find(
102
+ (child) => child.relation_id == params2.fromResourceId
103
+ ));
104
+ });
100
105
  if (_idx !== -1) {
101
- _cloned[_idx] = _targetResource;
106
+ const _sameResource = _cloned.find(
107
+ (_clonedItem) => _clonedItem.relation_id === (_targetResource == null ? void 0 : _targetResource.relation_id)
108
+ );
109
+ if (_sameResource) {
110
+ _cloned.splice(_idx, 1);
111
+ } else {
112
+ _cloned[_idx] = _targetResource;
113
+ }
102
114
  } else {
103
115
  _cloned.push(_targetResource);
104
116
  }
105
117
  _initResourceVal = {
106
118
  ..._initResourceVal,
107
- [toResourceFormId]: _cloned
119
+ [_form_id]: _cloned
108
120
  };
109
121
  } else {
110
122
  _initResourceVal = {
111
123
  ..._initResourceVal,
112
- [toResourceFormId]: [_targetResource]
124
+ [_form_id]: [_targetResource]
113
125
  };
114
126
  }
115
127
  }
@@ -216,8 +228,30 @@ var EditBookingModal = (props, ref) => {
216
228
  const start_time = values.toDate[0].format("HH:mm");
217
229
  const end_date = values.toDate[1].format("YYYY-MM-DD");
218
230
  const end_time = values.toDate[1].format("HH:mm");
231
+ console.log("extend data", _extend);
232
+ const {
233
+ id,
234
+ relation_id,
235
+ like_status,
236
+ relation_type,
237
+ is_all,
238
+ schedule_id,
239
+ sub_type,
240
+ select_date,
241
+ number,
242
+ metadata
243
+ } = _extend;
219
244
  await (0, import_serve.updateChildBooking)(order_id, {
220
- ..._extend,
245
+ id,
246
+ relation_id,
247
+ like_status,
248
+ relation_type,
249
+ is_all,
250
+ schedule_id,
251
+ sub_type,
252
+ select_date,
253
+ number,
254
+ metadata,
221
255
  resources: Object.values(values.resource).reduce(
222
256
  (pre, cur) => {
223
257
  const newList = (0, import_utils4.checkResourcesFormat)(cur, cacheItem);
@@ -232,7 +266,7 @@ var EditBookingModal = (props, ref) => {
232
266
  end_time,
233
267
  duration: values.toDate[1].diff(values.toDate[0], "minutes")
234
268
  });
235
- setOpen(false);
269
+ initState();
236
270
  props == null ? void 0 : props.onOk();
237
271
  } catch (error) {
238
272
  console.error(error);
@@ -352,6 +386,7 @@ var EditBookingModal = (props, ref) => {
352
386
  onClick: onOk,
353
387
  block: true,
354
388
  size: "large",
389
+ disabled: !data,
355
390
  loading: updating,
356
391
  style: { borderRadius: 20 }
357
392
  },
@@ -46,6 +46,7 @@ export declare const init: (params: EditBookingModalParams) => Promise<{
46
46
  start_date: any;
47
47
  };
48
48
  resourcesOrigin: any[];
49
+ fromResource: any;
49
50
  toResource: any;
50
51
  }>;
51
52
  export declare const createCacheItem: (cacheItem: any, values?: any) => any;
@@ -94,6 +94,7 @@ var updateResourceErrors = (resourceMaps, cacheItem) => {
94
94
  }
95
95
  };
96
96
  var init = async (params) => {
97
+ var _a;
97
98
  const { toStartDate, toEndDate, event, fromResourceId, toResourceId } = params;
98
99
  let bookingOrigin = await _getBookingDetail(event.order.id);
99
100
  let booking = (0, import_ticketBooking._formatBookingDetail)(bookingOrigin, {});
@@ -102,15 +103,18 @@ var init = async (params) => {
102
103
  });
103
104
  let childrenBooking = getChildrenBookingById(booking.service.value, event.id);
104
105
  console.log("childrenBooking", childrenBooking);
106
+ const fromResource = resources.listMap[fromResourceId];
107
+ const toResource = resources.listMap[toResourceId];
105
108
  const extraParams = {
106
109
  extraResources: []
107
110
  };
108
- const fromResource = resources.listMap[fromResourceId];
109
- const toResource = resources.listMap[toResourceId];
110
- if (fromResource) {
111
- extraParams.extraResources.push({
112
- form_id: fromResource.form_id,
113
- id: fromResource.id
111
+ const _eventResources = (_a = childrenBooking._extend) == null ? void 0 : _a.event_resources;
112
+ if (Array.isArray(_eventResources)) {
113
+ _eventResources.forEach((item) => {
114
+ extraParams.extraResources.push({
115
+ id: item.relation_id,
116
+ form_id: item.form_id
117
+ });
114
118
  });
115
119
  }
116
120
  if (toResource) {
@@ -138,6 +142,8 @@ var init = async (params) => {
138
142
  },
139
143
  // 总资源列表
140
144
  resourcesOrigin,
145
+ // 源资源
146
+ fromResource,
141
147
  // 目标资源
142
148
  toResource
143
149
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Table: ({ value, onChange, field, mode, onAdd }: any) => JSX.Element;
4
3
  export default Table;
@@ -0,0 +1,2 @@
1
+ declare const useClearCart: (state: any, dispatch: any) => false | JSX.Element;
2
+ export default useClearCart;
@@ -37,7 +37,7 @@ var import_classnames = __toESM(require("classnames"));
37
37
  var import_materials = require("@pisell/materials");
38
38
  var import_utils = require("@pisell/utils");
39
39
  var useClearCart = (state, dispatch) => {
40
- var _a, _b;
40
+ var _a, _b, _c, _d;
41
41
  const handleClear = () => {
42
42
  dispatch({
43
43
  type: "setService",
@@ -46,20 +46,17 @@ var useClearCart = (state, dispatch) => {
46
46
  }
47
47
  });
48
48
  };
49
- return (0, import_react.useMemo)(() => {
50
- var _a2, _b2, _c, _d;
51
- return !!((_b2 = (_a2 = state.service) == null ? void 0 : _a2.value) == null ? void 0 : _b2.length) && !state.channelDisabledEdit && /* @__PURE__ */ import_react.default.createElement(
52
- "span",
53
- {
54
- className: (0, import_classnames.default)("pisell-lowcode__booking-service-clear-btn", {
55
- ["pisell-lowcode__booking-service-clear-btn-disabled"]: !((_d = (_c = state.service) == null ? void 0 : _c.value) == null ? void 0 : _d.length)
56
- }),
57
- onClick: handleClear
58
- },
59
- /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-trash-01" }),
60
- " ",
61
- /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.booking.info.text.clear-cart"))
62
- );
63
- }, [(_b = (_a = state.service) == null ? void 0 : _a.value) == null ? void 0 : _b.length, state.channelDisabledEdit]);
49
+ return !!((_b = (_a = state.service) == null ? void 0 : _a.value) == null ? void 0 : _b.length) && !state.channelDisabledEdit && /* @__PURE__ */ import_react.default.createElement(
50
+ "span",
51
+ {
52
+ className: (0, import_classnames.default)("pisell-lowcode__booking-service-clear-btn", {
53
+ ["pisell-lowcode__booking-service-clear-btn-disabled"]: !((_d = (_c = state.service) == null ? void 0 : _c.value) == null ? void 0 : _d.length)
54
+ }),
55
+ onClick: handleClear
56
+ },
57
+ /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-trash-01" }),
58
+ " ",
59
+ /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.booking.info.text.clear-cart"))
60
+ );
64
61
  };
65
62
  var useClearCart_default = useClearCart;
@@ -0,0 +1 @@
1
+ export declare const useIsBooking4Shop: (state: any) => any;