@pisell/private-materials 6.2.18 → 6.2.20

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 (426) 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 +1 -0
  10. package/es/components/Sales/Checkout/utils.d.ts +1 -0
  11. package/es/components/Sales/Checkout/utils.js +3 -2
  12. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  13. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  14. package/es/components/booking/addons/model.d.ts +1 -10
  15. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  16. package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
  17. package/es/components/booking/components/browserSelect/index.js +1 -1
  18. package/es/components/booking/components/customSelect/index.js +1 -0
  19. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  20. package/es/components/booking/editBookingModal/index.js +29 -58
  21. package/es/components/booking/editBookingModal/serve.d.ts +0 -1
  22. package/es/components/booking/editBookingModal/serve.js +11 -19
  23. package/es/components/booking/forms/model.d.ts +1 -10
  24. package/es/components/booking/forms/model.js +5 -5
  25. package/es/components/booking/forms/table/index.d.ts +1 -0
  26. package/es/components/booking/hooks/useClearCart.js +11 -8
  27. package/es/components/booking/info/client/index.js +3 -2
  28. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  29. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  30. package/es/components/booking/info/hooks/useInfoHolder.js +16 -9
  31. package/es/components/booking/info/model.d.ts +1 -10
  32. package/es/components/booking/info/service/Lists.js +36 -26
  33. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  34. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  35. package/es/components/booking/info/service/editService/constants.d.ts +1 -0
  36. package/es/components/booking/info/service/editService/constants.js +3 -0
  37. package/es/components/booking/info/service/editService/index.js +15 -10
  38. package/es/components/booking/info/service/like/index.d.ts +1 -0
  39. package/es/components/booking/info/service/like/index.js +1 -1
  40. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  41. package/es/components/booking/info/service2/utils.js +20 -21
  42. package/es/components/booking/info/utils.js +1 -1
  43. package/es/components/booking/info2/index.js +1 -0
  44. package/es/components/booking/info2/service/addService/utils.js +7 -4
  45. package/es/components/booking/info2/service/addTimeModal/index.js +3 -0
  46. package/es/components/booking/info2/service/editService/Resources/index.js +5 -0
  47. package/es/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
  48. package/es/components/booking/info2/service/editService/index.js +264 -168
  49. package/es/components/booking/info2/service/index.js +19 -15
  50. package/es/components/booking/materiels/duration/index.js +9 -2
  51. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  52. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  53. package/es/components/booking/materiels/startTime/index.js +1 -1
  54. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  55. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  56. package/es/components/booking/notes/model.d.ts +1 -10
  57. package/es/components/booking/notes/model.js +5 -5
  58. package/es/components/booking/payments/model.d.ts +1 -10
  59. package/es/components/booking/payments/model.js +5 -5
  60. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  61. package/es/components/eftpos/form/index.d.ts +1 -0
  62. package/es/components/eftpos/group/index.d.ts +1 -0
  63. package/es/components/eftpos/hooks.d.ts +1 -0
  64. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  65. package/es/components/eftpos/icon/device.d.ts +1 -0
  66. package/es/components/eftpos/receipt/index.d.ts +1 -0
  67. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  68. package/es/components/eftposPay/app.d.ts +1 -0
  69. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  70. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  71. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  72. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  73. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  74. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  75. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  76. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  77. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  78. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  79. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  80. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  81. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  82. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  83. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  84. package/es/components/listComponent/index.js +5 -5
  85. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  86. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  87. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  88. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  89. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  90. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  91. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  92. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  93. package/es/components/pay/toC/model.d.ts +1 -9
  94. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  95. package/es/components/productExtension/card/index.js +3 -3
  96. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  97. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  98. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  99. package/es/components/productExtension/fields/Forms/index.js +12 -12
  100. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  101. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  102. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  103. package/es/components/productExtension/server.js +2 -2
  104. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  105. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  106. package/es/components/schedules/calendar/index.js +4 -4
  107. package/es/components/schedules/calendar/serve.js +2 -2
  108. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  109. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  110. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  111. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  112. package/es/components/schedules/components/ResourceList/index.js +1 -1
  113. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  114. package/es/components/schedules/components/Search/index.js +5 -5
  115. package/es/components/schedules/model.d.ts +1 -9
  116. package/es/components/schedules/model.js +5 -5
  117. package/es/components/schedules/openHours/index.js +1 -1
  118. package/es/components/schedules/openHours/serve.js +2 -2
  119. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  120. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  121. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  122. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  123. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  124. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  125. package/es/components/schedules/products/index.d.ts +1 -0
  126. package/es/components/schedules/products/serve.js +2 -2
  127. package/es/components/schedules/products/utils.js +5 -5
  128. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  129. package/es/components/schedules/resources/detail/index.js +10 -10
  130. package/es/components/schedules/resources/list/index.js +2 -2
  131. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  132. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  133. package/es/components/schedules/resources/serve.js +2 -2
  134. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  135. package/es/components/schedules/utils.js +4 -4
  136. package/es/components/selectModal/index.js +2 -2
  137. package/es/components/shoppingCart/components/Cart/Product.js +48 -41
  138. package/es/components/shoppingCart/components/Cart/index.js +21 -18
  139. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  140. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  141. package/es/components/ticketBooking/components/addServiceVariant/addService.js +177 -157
  142. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  143. package/es/components/ticketBooking/components/timeBar/index.js +78 -71
  144. package/es/components/wallet/Detail/model.d.ts +1 -13
  145. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  146. package/es/components/wallet/PointCard/model.d.ts +1 -13
  147. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  148. package/es/components/wallet/Voucher/model.d.ts +1 -13
  149. package/es/components/wallet/model.d.ts +1 -9
  150. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  151. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  152. package/es/hooks/useComponents.js +1 -1
  153. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  154. package/lib/components/Sales/Checkout/utils.d.ts +1 -0
  155. package/lib/components/Sales/Checkout/utils.js +3 -2
  156. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  157. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  158. package/lib/components/booking/addons/model.d.ts +1 -10
  159. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  160. package/lib/components/booking/components/customSelect/index.js +1 -0
  161. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  162. package/lib/components/booking/editBookingModal/index.js +21 -56
  163. package/lib/components/booking/editBookingModal/serve.d.ts +0 -1
  164. package/lib/components/booking/editBookingModal/serve.js +6 -12
  165. package/lib/components/booking/forms/model.d.ts +1 -10
  166. package/lib/components/booking/forms/table/index.d.ts +1 -0
  167. package/lib/components/booking/hooks/useClearCart.js +16 -13
  168. package/lib/components/booking/info/client/index.js +5 -4
  169. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  170. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  171. package/lib/components/booking/info/hooks/useInfoHolder.js +10 -9
  172. package/lib/components/booking/info/model.d.ts +1 -10
  173. package/lib/components/booking/info/service/Lists.js +35 -23
  174. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  175. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  176. package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
  177. package/lib/components/booking/info/service/editService/constants.js +31 -0
  178. package/lib/components/booking/info/service/editService/index.js +7 -1
  179. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  180. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  181. package/lib/components/booking/info/service2/utils.js +17 -17
  182. package/lib/components/booking/info/utils.js +2 -1
  183. package/lib/components/booking/info2/service/addService/utils.js +5 -3
  184. package/lib/components/booking/info2/service/addTimeModal/index.js +3 -0
  185. package/lib/components/booking/info2/service/editService/Resources/index.js +2 -0
  186. package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
  187. package/lib/components/booking/info2/service/editService/index.js +137 -72
  188. package/lib/components/booking/info2/service/index.js +13 -9
  189. package/lib/components/booking/materiels/duration/index.js +7 -2
  190. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  191. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  192. package/lib/components/booking/notes/model.d.ts +1 -10
  193. package/lib/components/booking/payments/model.d.ts +1 -10
  194. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  195. package/lib/components/eftpos/form/index.d.ts +1 -0
  196. package/lib/components/eftpos/group/index.d.ts +1 -0
  197. package/lib/components/eftpos/hooks.d.ts +1 -0
  198. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  199. package/lib/components/eftpos/icon/device.d.ts +1 -0
  200. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  201. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  202. package/lib/components/eftposPay/app.d.ts +1 -0
  203. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  204. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  205. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  206. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  207. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  208. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  209. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  210. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  211. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  212. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  213. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  214. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  215. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  216. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  217. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  218. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  219. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  220. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  221. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  222. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  223. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  224. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  225. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  226. package/lib/components/pay/toC/model.d.ts +1 -9
  227. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  228. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  229. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  230. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  231. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  232. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  233. package/lib/components/schedules/model.d.ts +1 -9
  234. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  235. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  236. package/lib/components/schedules/products/index.d.ts +1 -0
  237. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  238. package/lib/components/schedules/utils.js +1 -1
  239. package/lib/components/shoppingCart/components/Cart/Product.js +31 -21
  240. package/lib/components/shoppingCart/components/Cart/index.js +18 -15
  241. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  242. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  243. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +145 -127
  244. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  245. package/lib/components/ticketBooking/components/timeBar/index.js +95 -88
  246. package/lib/components/wallet/Detail/model.d.ts +1 -13
  247. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  248. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  249. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  250. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  251. package/lib/components/wallet/model.d.ts +1 -9
  252. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  253. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  254. package/package.json +3 -3
  255. package/es/components/Sales/Cart/utils.d.ts +0 -63
  256. package/es/components/Sales/Checkout/index.d.ts +0 -37
  257. package/es/components/Sales/Checkout/serve.d.ts +0 -15
  258. package/es/components/Sales/Customer/index.d.ts +0 -25
  259. package/es/components/Sales/Event/Detail.d.ts +0 -30
  260. package/es/components/Sales/Event/serve.d.ts +0 -49
  261. package/es/components/Sales/Summary/index.d.ts +0 -35
  262. package/es/components/Sales/Summary/serve.d.ts +0 -1
  263. package/es/components/Sales/Summary/utils.d.ts +0 -51
  264. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -3
  265. package/es/components/appointmentBooking/components/Cart/utils.d.ts +0 -56
  266. package/es/components/appointmentBooking/components/Content/index.d.ts +0 -3
  267. package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -9
  268. package/es/components/appointmentBooking/components/Form/index.d.ts +0 -4
  269. package/es/components/appointmentBooking/components/Form/utils.d.ts +0 -8
  270. package/es/components/appointmentBooking/components/Header/index.d.ts +0 -3
  271. package/es/components/appointmentBooking/components/Resource/index.d.ts +0 -7
  272. package/es/components/appointmentBooking/components/Services/index.d.ts +0 -4
  273. package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
  274. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
  275. package/es/components/appointmentBooking/deposit/index.d.ts +0 -3
  276. package/es/components/appointmentBooking/hooks.d.ts +0 -106
  277. package/es/components/appointmentBooking/index.d.ts +0 -3
  278. package/es/components/booking/components/customSelect/index.d.ts +0 -38
  279. package/es/components/booking/components/footer/index.d.ts +0 -11
  280. package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -8
  281. package/es/components/booking/components/voucher/index.d.ts +0 -3
  282. package/es/components/booking/hooks/useClearCart.d.ts +0 -2
  283. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  284. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -6
  285. package/es/components/booking/info/client/index.d.ts +0 -4
  286. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
  287. package/es/components/booking/info/index.d.ts +0 -3
  288. package/es/components/booking/info/service/Lists.d.ts +0 -2
  289. package/es/components/booking/info/service/serviceManager/index.d.ts +0 -20
  290. package/es/components/booking/info/service2/utils.d.ts +0 -247
  291. package/es/components/booking/info2/index.d.ts +0 -12
  292. package/es/components/booking/info2/service/addService/index.d.ts +0 -11
  293. package/es/components/booking/info2/service/addService/utils.d.ts +0 -98
  294. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
  295. package/es/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
  296. package/es/components/booking/info2/service/index.d.ts +0 -4
  297. package/es/components/booking/info2/utils.d.ts +0 -4
  298. package/es/components/booking/info2/utilsByBooking.d.ts +0 -35
  299. package/es/components/booking/locales.d.ts +0 -828
  300. package/es/components/booking/materiels/duration/index.d.ts +0 -13
  301. package/es/components/booking/model.d.ts +0 -116
  302. package/es/components/eftposPay/const.d.ts +0 -184
  303. package/es/components/eftposPay/hooks.d.ts +0 -35
  304. package/es/components/eftposPay/index.d.ts +0 -4
  305. package/es/components/eftposPay/linkly/const.d.ts +0 -23
  306. package/es/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  307. package/es/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  308. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  309. package/es/components/eftposPay/linkly/index.d.ts +0 -2
  310. package/es/components/eftposPay/linkly/service.d.ts +0 -32
  311. package/es/components/eftposPay/manufacturer.d.ts +0 -7
  312. package/es/components/eftposPay/pay.d.ts +0 -20
  313. package/es/components/eftposPay/store/index.d.ts +0 -355
  314. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
  315. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -3
  316. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -3
  317. package/es/components/eventBooking/components/bookingDetailModal/index.d.ts +0 -7
  318. package/es/components/eventBooking/index.d.ts +0 -3
  319. package/es/components/eventBooking/locales.d.ts +0 -246
  320. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
  321. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -3
  322. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +0 -61
  323. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
  324. package/es/components/pay/toC/PaymentMethods/index.d.ts +0 -9
  325. package/es/components/pay/toC/index.d.ts +0 -3
  326. package/es/components/pay/toC/locales.d.ts +0 -289
  327. package/es/components/productSelect/components/TabProduct/index.d.ts +0 -2
  328. package/es/components/productSelect/index.d.ts +0 -26
  329. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -3
  330. package/es/components/shoppingCart/components/Cart/index.d.ts +0 -3
  331. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
  332. package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -3
  333. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
  334. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -12
  335. package/es/components/ticketBooking/index.d.ts +0 -7
  336. package/es/components/ticketBooking/locales.d.ts +0 -174
  337. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  338. package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
  339. package/es/components/walletList/index.d.ts +0 -28
  340. package/es/utils/index.d.ts +0 -23
  341. package/lib/components/Sales/Cart/utils.d.ts +0 -63
  342. package/lib/components/Sales/Checkout/index.d.ts +0 -37
  343. package/lib/components/Sales/Checkout/serve.d.ts +0 -15
  344. package/lib/components/Sales/Customer/index.d.ts +0 -25
  345. package/lib/components/Sales/Event/Detail.d.ts +0 -30
  346. package/lib/components/Sales/Event/serve.d.ts +0 -49
  347. package/lib/components/Sales/Summary/index.d.ts +0 -35
  348. package/lib/components/Sales/Summary/serve.d.ts +0 -1
  349. package/lib/components/Sales/Summary/utils.d.ts +0 -51
  350. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -3
  351. package/lib/components/appointmentBooking/components/Cart/utils.d.ts +0 -56
  352. package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -3
  353. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -9
  354. package/lib/components/appointmentBooking/components/Form/index.d.ts +0 -4
  355. package/lib/components/appointmentBooking/components/Form/utils.d.ts +0 -8
  356. package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -3
  357. package/lib/components/appointmentBooking/components/Resource/index.d.ts +0 -7
  358. package/lib/components/appointmentBooking/components/Services/index.d.ts +0 -4
  359. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
  360. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
  361. package/lib/components/appointmentBooking/deposit/index.d.ts +0 -3
  362. package/lib/components/appointmentBooking/hooks.d.ts +0 -106
  363. package/lib/components/appointmentBooking/index.d.ts +0 -3
  364. package/lib/components/booking/components/customSelect/index.d.ts +0 -38
  365. package/lib/components/booking/components/footer/index.d.ts +0 -11
  366. package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -8
  367. package/lib/components/booking/components/voucher/index.d.ts +0 -3
  368. package/lib/components/booking/hooks/useClearCart.d.ts +0 -2
  369. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  370. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -6
  371. package/lib/components/booking/info/client/index.d.ts +0 -4
  372. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
  373. package/lib/components/booking/info/index.d.ts +0 -3
  374. package/lib/components/booking/info/service/Lists.d.ts +0 -2
  375. package/lib/components/booking/info/service/serviceManager/index.d.ts +0 -20
  376. package/lib/components/booking/info/service2/utils.d.ts +0 -247
  377. package/lib/components/booking/info2/index.d.ts +0 -12
  378. package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
  379. package/lib/components/booking/info2/service/addService/utils.d.ts +0 -98
  380. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
  381. package/lib/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
  382. package/lib/components/booking/info2/service/index.d.ts +0 -4
  383. package/lib/components/booking/info2/utils.d.ts +0 -4
  384. package/lib/components/booking/info2/utilsByBooking.d.ts +0 -35
  385. package/lib/components/booking/locales.d.ts +0 -828
  386. package/lib/components/booking/materiels/duration/index.d.ts +0 -13
  387. package/lib/components/booking/model.d.ts +0 -116
  388. package/lib/components/eftposPay/const.d.ts +0 -184
  389. package/lib/components/eftposPay/hooks.d.ts +0 -35
  390. package/lib/components/eftposPay/index.d.ts +0 -4
  391. package/lib/components/eftposPay/linkly/const.d.ts +0 -23
  392. package/lib/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  393. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  394. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  395. package/lib/components/eftposPay/linkly/index.d.ts +0 -2
  396. package/lib/components/eftposPay/linkly/service.d.ts +0 -32
  397. package/lib/components/eftposPay/manufacturer.d.ts +0 -7
  398. package/lib/components/eftposPay/pay.d.ts +0 -20
  399. package/lib/components/eftposPay/store/index.d.ts +0 -355
  400. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
  401. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -3
  402. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -3
  403. package/lib/components/eventBooking/components/bookingDetailModal/index.d.ts +0 -7
  404. package/lib/components/eventBooking/index.d.ts +0 -3
  405. package/lib/components/eventBooking/locales.d.ts +0 -246
  406. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
  407. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -3
  408. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +0 -61
  409. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
  410. package/lib/components/pay/toC/PaymentMethods/index.d.ts +0 -9
  411. package/lib/components/pay/toC/index.d.ts +0 -3
  412. package/lib/components/pay/toC/locales.d.ts +0 -289
  413. package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -2
  414. package/lib/components/productSelect/index.d.ts +0 -26
  415. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -3
  416. package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -3
  417. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
  418. package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -3
  419. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
  420. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -12
  421. package/lib/components/ticketBooking/index.d.ts +0 -7
  422. package/lib/components/ticketBooking/locales.d.ts +0 -174
  423. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  424. package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
  425. package/lib/components/walletList/index.d.ts +0 -28
  426. package/lib/utils/index.d.ts +0 -23
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IWalletListItemProps } from './serve';
3
2
  export interface WalletCardItemProps {
4
3
  id: string;
@@ -27,11 +26,4 @@ export interface WalletListProps {
27
26
  currentSearchListItemCode?: string;
28
27
  [key: string]: any;
29
28
  }
30
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
31
- global_wallet: WalletListProps;
32
- } & {
33
- dispatch: (params: {
34
- type: string;
35
- payload: any;
36
- }) => void;
37
- }>;
29
+ export declare const Provider: any, Context: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Modal as AntModal, ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from 'antd';
2
3
  import './index.less';
3
4
  interface ModalProps extends AntModalProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './../../index.less';
2
3
  declare const Search: () => JSX.Element;
3
4
  export default Search;
@@ -8,7 +8,7 @@ var useComponents = function useComponents(params) {
8
8
  var _utils$getComponents;
9
9
  var _ref = appHelper || {},
10
10
  utils = _ref.utils;
11
- return (utils === null || utils === void 0 ? void 0 : (_utils$getComponents = utils.getComponents) === null || _utils$getComponents === void 0 ? void 0 : _utils$getComponents.call(utils, components)) || [];
11
+ return (utils === null || utils === void 0 || (_utils$getComponents = utils.getComponents) === null || _utils$getComponents === void 0 ? void 0 : _utils$getComponents.call(utils, components)) || [];
12
12
  }, [components]);
13
13
  return Cpt;
14
14
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const SalesModel: ({ children, hooks, config }: any) => JSX.Element;
2
3
  export * from './Sales';
3
4
  export default SalesModel;
@@ -29,6 +29,7 @@ export declare const formatValues: (params: {
29
29
  platform: 'h5' | 'pc';
30
30
  excludeDisabled?: boolean;
31
31
  extra?: Record<string, any>;
32
+ otherValue?: Record<string, any>;
32
33
  }) => any;
33
34
  /**
34
35
  * @title: 获取拉开表单弹窗参数
@@ -63,7 +63,7 @@ var formatBookings = (list) => {
63
63
  };
64
64
  var formatValues = (params) => {
65
65
  var _a, _b;
66
- const { state, platform, excludeDisabled, extra } = params;
66
+ const { state, otherValue, platform, excludeDisabled, extra } = params;
67
67
  let values = {
68
68
  type: "event_booking_v2",
69
69
  platform: platform === "pc" ? "PC" : "H5",
@@ -72,7 +72,8 @@ var formatValues = (params) => {
72
72
  bookings: [],
73
73
  shop_note: "",
74
74
  schedule_date: "",
75
- ...extra || {}
75
+ ...extra || {},
76
+ ...otherValue || {}
76
77
  };
77
78
  console.log("values", values);
78
79
  let data = [];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Footer: ({ onNext, isOpen }: any) => JSX.Element;
3
4
  export default Footer;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const GuestOptionsModal: (props: any) => JSX.Element;
3
4
  export default GuestOptionsModal;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface TabProductProps {
3
4
  list: any[];
@@ -78,6 +78,7 @@ var CustomSelect = (props, ref) => {
78
78
  handleOpenModal: propsHandleOpenModal,
79
79
  handleDayChange
80
80
  } = props;
81
+ console.log("custom select");
81
82
  const searchRef = (0, import_react.useRef)();
82
83
  const [_value, set_value] = (0, import_react.useState)([]);
83
84
  const [search, setSearch] = (0, import_react.useState)("");
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const FormItemChildrenWrap: (props: any) => JSX.Element;
2
3
  export default FormItemChildrenWrap;
@@ -66,62 +66,50 @@ 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, _j;
69
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
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 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) {
74
+ const toResourceFormId = (_a = _data.toResource) == null ? void 0 : _a.form_id;
75
+ if (params2.fromResourceId !== params2.toResourceId && toResourceFormId) {
78
76
  const { list, maps } = (0, import_utils3.formatResources)({
79
77
  cacheItem: _data.childrenBooking,
80
78
  resourcesOrigin: _data.resourcesOrigin
81
79
  });
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)) {
80
+ const currentForm = maps[toResourceFormId];
81
+ const relation_id = (_b = _data.toResource) == null ? void 0 : _b.id;
82
+ if (currentForm && relation_id) {
85
83
  let _targetResource = {
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,
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,
88
86
  relation_id,
89
87
  like_status: "common",
90
- children: (_g = (_f = currentForm.renderListMaps) == null ? void 0 : _f[relation_id]) == null ? void 0 : _g.children,
88
+ children: (_f = (_e = currentForm.renderListMaps) == null ? void 0 : _e[relation_id]) == null ? void 0 : _f.children,
91
89
  metadata: {
92
- ...(_i = (_h = currentForm.renderListMaps) == null ? void 0 : _h[relation_id]) == null ? void 0 : _i.metadata,
90
+ ...(_h = (_g = currentForm.renderListMaps) == null ? void 0 : _g[relation_id]) == null ? void 0 : _h.metadata,
93
91
  form_name: currentForm.title,
94
- resource_name: (_j = currentForm.renderListMaps[relation_id]) == null ? void 0 : _j.main_field
92
+ resource_name: (_i = currentForm.renderListMaps[relation_id]) == null ? void 0 : _i.main_field
95
93
  }
96
94
  };
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
- });
95
+ if (Array.isArray(_initResourceVal[toResourceFormId])) {
96
+ const _cloned = [..._initResourceVal[toResourceFormId]];
97
+ const _idx = _cloned.findIndex(
98
+ (rs) => rs.relation_id == params2.fromResourceId
99
+ );
105
100
  if (_idx !== -1) {
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
- }
101
+ _cloned[_idx] = _targetResource;
114
102
  } else {
115
103
  _cloned.push(_targetResource);
116
104
  }
117
105
  _initResourceVal = {
118
106
  ..._initResourceVal,
119
- [_form_id]: _cloned
107
+ [toResourceFormId]: _cloned
120
108
  };
121
109
  } else {
122
110
  _initResourceVal = {
123
111
  ..._initResourceVal,
124
- [_form_id]: [_targetResource]
112
+ [toResourceFormId]: [_targetResource]
125
113
  };
126
114
  }
127
115
  }
@@ -228,30 +216,8 @@ var EditBookingModal = (props, ref) => {
228
216
  const start_time = values.toDate[0].format("HH:mm");
229
217
  const end_date = values.toDate[1].format("YYYY-MM-DD");
230
218
  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;
244
219
  await (0, import_serve.updateChildBooking)(order_id, {
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,
220
+ ..._extend,
255
221
  resources: Object.values(values.resource).reduce(
256
222
  (pre, cur) => {
257
223
  const newList = (0, import_utils4.checkResourcesFormat)(cur, cacheItem);
@@ -266,7 +232,7 @@ var EditBookingModal = (props, ref) => {
266
232
  end_time,
267
233
  duration: values.toDate[1].diff(values.toDate[0], "minutes")
268
234
  });
269
- initState();
235
+ setOpen(false);
270
236
  props == null ? void 0 : props.onOk();
271
237
  } catch (error) {
272
238
  console.error(error);
@@ -386,7 +352,6 @@ var EditBookingModal = (props, ref) => {
386
352
  onClick: onOk,
387
353
  block: true,
388
354
  size: "large",
389
- disabled: !data,
390
355
  loading: updating,
391
356
  style: { borderRadius: 20 }
392
357
  },
@@ -46,7 +46,6 @@ export declare const init: (params: EditBookingModalParams) => Promise<{
46
46
  start_date: any;
47
47
  };
48
48
  resourcesOrigin: any[];
49
- fromResource: any;
50
49
  toResource: any;
51
50
  }>;
52
51
  export declare const createCacheItem: (cacheItem: any, values?: any) => any;
@@ -94,7 +94,6 @@ var updateResourceErrors = (resourceMaps, cacheItem) => {
94
94
  }
95
95
  };
96
96
  var init = async (params) => {
97
- var _a;
98
97
  const { toStartDate, toEndDate, event, fromResourceId, toResourceId } = params;
99
98
  let bookingOrigin = await _getBookingDetail(event.order.id);
100
99
  let booking = (0, import_ticketBooking._formatBookingDetail)(bookingOrigin, {});
@@ -103,18 +102,15 @@ var init = async (params) => {
103
102
  });
104
103
  let childrenBooking = getChildrenBookingById(booking.service.value, event.id);
105
104
  console.log("childrenBooking", childrenBooking);
106
- const fromResource = resources.listMap[fromResourceId];
107
- const toResource = resources.listMap[toResourceId];
108
105
  const extraParams = {
109
106
  extraResources: []
110
107
  };
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
- });
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
118
114
  });
119
115
  }
120
116
  if (toResource) {
@@ -142,8 +138,6 @@ var init = async (params) => {
142
138
  },
143
139
  // 总资源列表
144
140
  resourcesOrigin,
145
- // 源资源
146
- fromResource,
147
141
  // 目标资源
148
142
  toResource
149
143
  };
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Table: ({ value, onChange, field, mode, onAdd }: any) => JSX.Element;
3
4
  export default Table;
@@ -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, _c, _d;
40
+ var _a, _b;
41
41
  const handleClear = () => {
42
42
  dispatch({
43
43
  type: "setService",
@@ -46,17 +46,20 @@ var useClearCart = (state, dispatch) => {
46
46
  }
47
47
  });
48
48
  };
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
- );
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]);
61
64
  };
62
65
  var useClearCart_default = useClearCart;
@@ -48,7 +48,7 @@ var import_utils3 = require("../clientVariant/utils");
48
48
  var import_useGetHolderList = __toESM(require("../hooks/useGetHolderList"));
49
49
  var isLoadClient = false;
50
50
  var Client = () => {
51
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
51
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
52
52
  const modalRef = (0, import_react.useRef)();
53
53
  const [loadLoading, setLoadLoading] = (0, import_react.useState)(false);
54
54
  const [loading, setLoading] = (0, import_react.useState)(false);
@@ -298,6 +298,7 @@ var Client = () => {
298
298
  )) : null;
299
299
  }, [loadLoading, params, state.client.clients.length]);
300
300
  const customSelect = (0, import_react.useMemo)(() => {
301
+ console.log("render customSelect");
301
302
  return /* @__PURE__ */ import_react.default.createElement(
302
303
  import_customSelect.default,
303
304
  {
@@ -340,7 +341,7 @@ var Client = () => {
340
341
  }
341
342
  }
342
343
  );
343
- }, [state, renderList, loading, franchiseeLoading, params.search, loadMore]);
344
+ }, [state.isTerminal, state.modalOpen, (_b = state.client) == null ? void 0 : _b.value, state.drawerMask, renderList, loading, franchiseeLoading, params.search, loadMore]);
344
345
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
345
346
  "div",
346
347
  {
@@ -357,11 +358,11 @@ var Client = () => {
357
358
  import_antd.Avatar,
358
359
  {
359
360
  className: "pisell-lowcode__booking-client-list-item-avatar",
360
- src: import_utils.image.ali((_b = state.client.value) == null ? void 0 : _b.cover, 100),
361
+ src: import_utils.image.ali((_c = state.client.value) == null ? void 0 : _c.cover, 100),
361
362
  icon: /* @__PURE__ */ import_react.default.createElement(import_User01.default, { className: "pisell-lowcode__booking-client-list-item-avatar-icon" })
362
363
  }
363
364
  ),
364
- /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-left" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-name" }, getNickname(state.client.value)), isWalkIn ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-desc" }, import_utils.locales.getText("pisell2.text.leave-empty-for-walk-in")) : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, ((_c = state.client.value) == null ? void 0 : _c.email) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-email" }, (_d = state.client.value) == null ? void 0 : _d.email) : null, ((_e = state.client.value) == null ? void 0 : _e.phone) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-phone" }, (_f = state.client.value) == null ? void 0 : _f.phone) : null, !!((_h = (_g = state.client.value) == null ? void 0 : _g.waiver_form) == null ? void 0 : _h.length) && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-waiver", title: (0, import_utils3.getWaiverTitle)((_i = state.client.value) == null ? void 0 : _i.waiver_form) }, (_l = (_k = (_j = state.client.value) == null ? void 0 : _j.waiver_form) == null ? void 0 : _k.map) == null ? void 0 : _l.call(_k, (item) => {
365
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-left" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-name" }, getNickname(state.client.value)), isWalkIn ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-desc" }, import_utils.locales.getText("pisell2.text.leave-empty-for-walk-in")) : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, ((_d = state.client.value) == null ? void 0 : _d.email) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-email" }, (_e = state.client.value) == null ? void 0 : _e.email) : null, ((_f = state.client.value) == null ? void 0 : _f.phone) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-phone" }, (_g = state.client.value) == null ? void 0 : _g.phone) : null, !!((_i = (_h = state.client.value) == null ? void 0 : _h.waiver_form) == null ? void 0 : _i.length) && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-waiver", title: (0, import_utils3.getWaiverTitle)((_j = state.client.value) == null ? void 0 : _j.waiver_form) }, (_m = (_l = (_k = state.client.value) == null ? void 0 : _k.waiver_form) == null ? void 0 : _l.map) == null ? void 0 : _m.call(_l, (item) => {
365
366
  return /* @__PURE__ */ import_react.default.createElement("span", null, item.form_title, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-client-waiver-colon" }, ":"), item.is_filled ? /* @__PURE__ */ import_react.default.createElement(
366
367
  "span",
367
368
  {
@@ -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 disabledDate: (current: any, position: any, currentDate: any) => any;
3
4
  declare const DateRange: ({ state, dispatch, key }: any) => JSX.Element;
@@ -32,6 +32,7 @@ __export(useInfoHolder_exports, {
32
32
  default: () => useInfoHolder_default
33
33
  });
34
34
  module.exports = __toCommonJS(useInfoHolder_exports);
35
+ var import_ahooks = require("ahooks");
35
36
  var import_react = require("react");
36
37
  var import_useHolderConfig = __toESM(require("./useHolderConfig"));
37
38
  var import_utils = require("../utils");
@@ -54,21 +55,21 @@ var useInfoHolder = (state, dispatch) => {
54
55
  };
55
56
  }, [(_d = (_c = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _c.config) == null ? void 0 : _d.information_tab]);
56
57
  const showAddTimeModal = (0, import_react.useMemo)(() => {
57
- return (0, import_utils.isOpenAddTime)(state);
58
+ return (0, import_utils.isOpenAddTime)(state) && !state.isBookingTicket2;
58
59
  }, [state, appointment_card.quick_time]);
59
- const handleEdit = (cacheItem, type) => {
60
- setTimeout(() => {
61
- var _a2, _b2;
62
- (_b2 = (_a2 = detailRef.current) == null ? void 0 : _a2.init) == null ? void 0 : _b2.call(_a2, cacheItem, false, type === "edit_product");
63
- }, 100);
64
- };
60
+ const handleEdit = (0, import_ahooks.useMemoizedFn)((cacheItem, type) => {
61
+ var _a2, _b2;
62
+ console.time("handleEdit");
63
+ console.log(performance.now() - window.pp1, "打开商品4");
64
+ (_b2 = (_a2 = detailRef.current) == null ? void 0 : _a2.init) == null ? void 0 : _b2.call(_a2, cacheItem, false, type === "edit_product");
65
+ });
65
66
  const dispatchService = (type, payload) => {
66
67
  dispatch({
67
68
  type,
68
69
  payload: { ...payload }
69
70
  });
70
71
  };
71
- const handleAction = (dataSource) => {
72
+ const handleAction = (0, import_ahooks.useMemoizedFn)((dataSource) => {
72
73
  const cacheItem = (0, import_utils2.getProductExtend)({
73
74
  cacheItem: { ...dataSource._origin, new: 0 },
74
75
  state
@@ -80,7 +81,7 @@ var useInfoHolder = (state, dispatch) => {
80
81
  cacheItem
81
82
  }
82
83
  });
83
- };
84
+ });
84
85
  return {
85
86
  detailRef,
86
87
  handleEdit,
@@ -1,14 +1,5 @@
1
- /// <reference types="react" />
2
- import { FormState } from '../model';
3
1
  export declare const walkInData: {
4
2
  id: number;
5
3
  nickname: string;
6
4
  };
7
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
- state: FormState;
9
- } & {
10
- dispatch: (params: {
11
- type: string;
12
- payload: any;
13
- }) => void;
14
- }>;
5
+ export declare const Provider: any, Context: any;
@@ -48,10 +48,12 @@ var Lists = ({ onEdit, onChange, onAction, isParallelResource }) => {
48
48
  const { handleAddHolder } = (0, import_useAddHolder.default)(state, dispatch);
49
49
  const handleChange = (0, import_ahooks.useMemoizedFn)(
50
50
  (currentItem, type, other) => {
51
+ console.time("handleChange");
52
+ console.log(window.pp1 = performance.now(), "打开商品");
51
53
  if (state.disabledEdit || state.disableEventBookingEdit) {
52
54
  return;
53
55
  }
54
- let products = (0, import_utils.updateServices)(state, currentItem, type, other, {
56
+ let products2 = (0, import_utils.updateServices)(state, currentItem, type, other, {
55
57
  handleAddHolder
56
58
  });
57
59
  if (type === "view" || type === "edit_product") {
@@ -64,11 +66,11 @@ var Lists = ({ onEdit, onChange, onAction, isParallelResource }) => {
64
66
  });
65
67
  }
66
68
  onChange({ editModal: true, cacheItem });
67
- return onEdit == null ? void 0 : onEdit({ ...product, new: 0 }, type);
69
+ return onEdit == null ? void 0 : onEdit(cacheItem, type);
68
70
  }
69
71
  const params = {
70
72
  editModal: false,
71
- value: products,
73
+ value: products2,
72
74
  edit: true,
73
75
  cacheItem: null
74
76
  };
@@ -95,26 +97,36 @@ var Lists = ({ onEdit, onChange, onAction, isParallelResource }) => {
95
97
  isShowChangeHolder,
96
98
  state.isBookingCreatePage
97
99
  ]);
98
- return /* @__PURE__ */ import_react.default.createElement(import_Provider.CartContext.Provider, { value: { state } }, /* @__PURE__ */ import_react.default.createElement(
99
- import_shoppingCart.default,
100
- {
101
- isParallelResource,
102
- onAction,
103
- onChange: handleChange,
104
- isOpenGroup: false,
105
- isHideClearCart: true,
106
- onAddProduct: () => onChange({ addModal: true }),
107
- productParams: {
108
- ...productParams,
109
- products: (0, import_utils.formatProducts)(
110
- ((_a = state == null ? void 0 : state.service) == null ? void 0 : _a.value) || [],
111
- state,
112
- false,
113
- true,
114
- isParallelResource
115
- )
100
+ const products = (0, import_react.useMemo)(() => {
101
+ var _a2;
102
+ console.time("products");
103
+ const p = (0, import_utils.formatProducts)(
104
+ ((_a2 = state == null ? void 0 : state.service) == null ? void 0 : _a2.value) || [],
105
+ state,
106
+ false,
107
+ true,
108
+ isParallelResource
109
+ );
110
+ console.timeEnd("products");
111
+ return p;
112
+ }, [(_a = state == null ? void 0 : state.service) == null ? void 0 : _a.value, state]);
113
+ return (0, import_react.useMemo)(() => {
114
+ console.log("render List");
115
+ return /* @__PURE__ */ import_react.default.createElement(import_Provider.CartContext.Provider, { value: { state } }, /* @__PURE__ */ import_react.default.createElement(
116
+ import_shoppingCart.default,
117
+ {
118
+ isParallelResource,
119
+ onAction,
120
+ onChange: handleChange,
121
+ isOpenGroup: false,
122
+ isHideClearCart: true,
123
+ onAddProduct: () => onChange({ addModal: true }),
124
+ productParams: {
125
+ ...productParams,
126
+ products
127
+ }
116
128
  }
117
- }
118
- ));
129
+ ));
130
+ }, [products, state, productParams]);
119
131
  };
120
132
  var Lists_default = Lists;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: string;
9
+ locale: any;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const BookingList: ({ items }: {
2
3
  items: any[];
3
4
  }) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const getIsPartyRoomResourceShop: (id: number) => boolean;
@@ -0,0 +1,31 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/booking/info/service/editService/constants.ts
20
+ var constants_exports = {};
21
+ __export(constants_exports, {
22
+ getIsPartyRoomResourceShop: () => getIsPartyRoomResourceShop
23
+ });
24
+ module.exports = __toCommonJS(constants_exports);
25
+ var getIsPartyRoomResourceShop = (id) => {
26
+ return [2155].includes(id);
27
+ };
28
+ // Annotate the CommonJS export names for ESM import in node:
29
+ 0 && (module.exports = {
30
+ getIsPartyRoomResourceShop
31
+ });