@pisell/private-materials 3.2.31 → 3.2.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (396) 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 +13 -13
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +5 -5
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +8 -8
  11. package/es/businessModel/SalesModel/index.d.ts +0 -1
  12. package/es/components/Sales/Event/index.js +7 -7
  13. package/es/components/Sales/Summary/utils.d.ts +1 -1
  14. package/es/components/appointmentBooking/components/Cart/ContinueButton/index.js +37 -40
  15. package/es/components/appointmentBooking/components/Cart/Item/index.js +3 -5
  16. package/es/components/appointmentBooking/components/Content/index.less +4 -0
  17. package/es/components/appointmentBooking/components/Date/index.d.ts +0 -1
  18. package/es/components/appointmentBooking/components/Header/index.d.ts +0 -1
  19. package/es/components/appointmentBooking/components/Header/index.js +56 -21
  20. package/es/components/appointmentBooking/components/Services/index.js +11 -3
  21. package/es/components/appointmentBooking/components/Services/index.less +1 -1
  22. package/es/components/appointmentBooking/context.d.ts +2 -2
  23. package/es/components/appointmentBooking/context.js +1 -1
  24. package/es/components/appointmentBooking/hooks.d.ts +13 -1
  25. package/es/components/appointmentBooking/hooks.js +83 -0
  26. package/es/components/booking/addons/model.d.ts +10 -1
  27. package/es/components/booking/addons/model.js +5 -5
  28. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  29. package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  30. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  31. package/es/components/booking/components/TabProduct/selectProductItem/index.js +4 -4
  32. package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
  33. package/es/components/booking/components/browserSelect/index.js +1 -1
  34. package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
  35. package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
  36. package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  37. package/es/components/booking/components/footer/index.js +4 -6
  38. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  39. package/es/components/booking/components/voucher/index.js +15 -13
  40. package/es/components/booking/deposit/index.d.ts +0 -1
  41. package/es/components/booking/forms/model.d.ts +10 -1
  42. package/es/components/booking/forms/model.js +5 -5
  43. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  44. package/es/components/booking/forms/single/index.d.ts +0 -1
  45. package/es/components/booking/forms/table/index.d.ts +0 -1
  46. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  47. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  48. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  49. package/es/components/booking/info/date/index.d.ts +0 -1
  50. package/es/components/booking/info/header/index.d.ts +0 -1
  51. package/es/components/booking/info/index.js +8 -2
  52. package/es/components/booking/info/model.d.ts +10 -1
  53. package/es/components/booking/info/notes/index.d.ts +0 -1
  54. package/es/components/booking/info/service/actions/index.d.ts +0 -1
  55. package/es/components/booking/info/service/addService/index.d.ts +0 -1
  56. package/es/components/booking/info/service/like/index.d.ts +0 -1
  57. package/es/components/booking/info/service/like/index.js +1 -1
  58. package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
  59. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  60. package/es/components/booking/info/service2/utils.d.ts +1 -1
  61. package/es/components/booking/info2/service/actions/index.d.ts +0 -1
  62. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  63. package/es/components/booking/info2/service/addTimeModal/index.js +2 -3
  64. package/es/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.js +2 -4
  65. package/es/components/booking/info2/service/editService/index.js +11 -4
  66. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
  67. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  68. package/es/components/booking/materiels/duration/index.d.ts +0 -1
  69. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  70. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  71. package/es/components/booking/materiels/startTime/index.js +1 -1
  72. package/es/components/booking/model.d.ts +9 -1
  73. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  74. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  75. package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
  76. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  77. package/es/components/booking/notes/addNote/index.d.ts +0 -1
  78. package/es/components/booking/notes/addNote/index.js +1 -1
  79. package/es/components/booking/notes/model.d.ts +10 -1
  80. package/es/components/booking/notes/model.js +5 -5
  81. package/es/components/booking/payments/model.d.ts +10 -1
  82. package/es/components/booking/payments/model.js +5 -5
  83. package/es/components/booking/utils.d.ts +2 -2
  84. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  85. package/es/components/eftpos/form/index.d.ts +0 -1
  86. package/es/components/eftpos/group/index.d.ts +0 -1
  87. package/es/components/eftpos/hooks.d.ts +0 -1
  88. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  89. package/es/components/eftpos/icon/device.d.ts +0 -1
  90. package/es/components/eftpos/index.d.ts +0 -1
  91. package/es/components/eftpos/pos.d.ts +0 -1
  92. package/es/components/eftpos/receipt/index.d.ts +0 -1
  93. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  94. package/es/components/eftposPay/amount.d.ts +1 -2
  95. package/es/components/eftposPay/app.d.ts +0 -1
  96. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  97. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  98. package/es/components/eftposPay/component/fail/index.d.ts +0 -1
  99. package/es/components/eftposPay/component/fail/network.d.ts +0 -1
  100. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
  101. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  102. package/es/components/eftposPay/component/manual/index.d.ts +0 -1
  103. package/es/components/eftposPay/component/signature/index.d.ts +0 -1
  104. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  105. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  106. package/es/components/eftposPay/device.d.ts +1 -2
  107. package/es/components/eftposPay/hooks.d.ts +2 -2
  108. package/es/components/eftposPay/index.d.ts +0 -1
  109. package/es/components/eftposPay/pay.d.ts +0 -1
  110. package/es/components/eftposPay/payo/config.d.ts +0 -1
  111. package/es/components/eftposPay/store/index.d.ts +5 -5
  112. package/es/components/eftposPay/tip.d.ts +0 -1
  113. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  114. package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  115. package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
  116. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  117. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  118. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  119. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  120. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  121. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  122. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  123. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  124. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  125. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  126. package/es/components/eventBooking/index.d.ts +0 -1
  127. package/es/components/listComponent/index.js +5 -5
  128. package/es/components/login/index.d.ts +0 -1
  129. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  130. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  131. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  132. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  133. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  134. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  135. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  136. package/es/components/pay/toC/model.d.ts +9 -1
  137. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  138. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  139. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  140. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  141. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  142. package/es/components/productExtension/card/index.js +3 -3
  143. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  144. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  145. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  146. package/es/components/productExtension/fields/Forms/index.js +12 -12
  147. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  148. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  149. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  150. package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  151. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  152. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  153. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  154. package/es/components/productExtension/index.d.ts +0 -1
  155. package/es/components/productExtension/server.js +2 -2
  156. package/es/components/ruleSetting/index.d.ts +0 -1
  157. package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  158. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  159. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  160. package/es/components/schedules/calendar/index.d.ts +0 -1
  161. package/es/components/schedules/calendar/index.js +4 -4
  162. package/es/components/schedules/calendar/serve.js +2 -2
  163. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  164. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  165. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  166. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  167. package/es/components/schedules/components/ResourceList/index.js +1 -1
  168. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  169. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  170. package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
  171. package/es/components/schedules/components/Search/index.js +5 -5
  172. package/es/components/schedules/model.d.ts +9 -1
  173. package/es/components/schedules/model.js +5 -5
  174. package/es/components/schedules/openHours/index.js +1 -1
  175. package/es/components/schedules/openHours/serve.js +2 -2
  176. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  177. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  178. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  179. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  180. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  181. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  182. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  183. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  184. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  185. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  186. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  187. package/es/components/schedules/products/index.d.ts +0 -1
  188. package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  189. package/es/components/schedules/products/list/index.d.ts +0 -1
  190. package/es/components/schedules/products/serve.js +2 -2
  191. package/es/components/schedules/products/utils.js +5 -5
  192. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  193. package/es/components/schedules/resources/detail/index.js +10 -10
  194. package/es/components/schedules/resources/index.d.ts +0 -1
  195. package/es/components/schedules/resources/list/index.d.ts +0 -1
  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/AllSchedules/index.d.ts +0 -1
  201. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  202. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  203. package/es/components/schedules/schedules/index.d.ts +0 -1
  204. package/es/components/schedules/utils.d.ts +1 -1
  205. package/es/components/schedules/utils.js +4 -4
  206. package/es/components/selectModal/index.js +2 -2
  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/shoppingCart/index.d.ts +0 -1
  210. package/es/components/taxSelect/index.d.ts +0 -1
  211. package/es/components/ticketBooking/data.d.ts +0 -0
  212. package/es/components/ticketBooking/data.js +82 -0
  213. package/es/components/ticketBooking/index.d.ts +2 -0
  214. package/es/components/ticketBooking/index.js +6 -0
  215. package/es/components/wallet/Detail/index.js +1 -1
  216. package/es/components/wallet/Detail/model.d.ts +13 -1
  217. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  218. package/es/components/wallet/PointCard/model.d.ts +13 -1
  219. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  220. package/es/components/wallet/Voucher/model.d.ts +13 -1
  221. package/es/components/wallet/components/WalletCard.js +1 -1
  222. package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
  223. package/es/components/wallet/model.d.ts +9 -1
  224. package/es/hooks/useComponents.js +1 -1
  225. package/es/utils/index.d.ts +1 -1
  226. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  227. package/lib/components/Sales/Event/index.js +1 -5
  228. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  229. package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.js +19 -7
  230. package/lib/components/appointmentBooking/components/Cart/Item/index.js +5 -7
  231. package/lib/components/appointmentBooking/components/Content/index.less +4 -0
  232. package/lib/components/appointmentBooking/components/Date/index.d.ts +0 -1
  233. package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -1
  234. package/lib/components/appointmentBooking/components/Header/index.js +10 -1
  235. package/lib/components/appointmentBooking/components/Services/index.js +10 -1
  236. package/lib/components/appointmentBooking/components/Services/index.less +1 -1
  237. package/lib/components/appointmentBooking/context.d.ts +2 -2
  238. package/lib/components/appointmentBooking/context.js +1 -1
  239. package/lib/components/appointmentBooking/hooks.d.ts +13 -1
  240. package/lib/components/appointmentBooking/hooks.js +38 -0
  241. package/lib/components/booking/addons/model.d.ts +10 -1
  242. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  243. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  244. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  245. package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
  246. package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
  247. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  248. package/lib/components/booking/components/footer/index.js +6 -8
  249. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  250. package/lib/components/booking/components/voucher/index.js +15 -11
  251. package/lib/components/booking/deposit/index.d.ts +0 -1
  252. package/lib/components/booking/forms/model.d.ts +10 -1
  253. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  254. package/lib/components/booking/forms/single/index.d.ts +0 -1
  255. package/lib/components/booking/forms/table/index.d.ts +0 -1
  256. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  257. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  258. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  259. package/lib/components/booking/info/date/index.d.ts +0 -1
  260. package/lib/components/booking/info/header/index.d.ts +0 -1
  261. package/lib/components/booking/info/index.js +6 -4
  262. package/lib/components/booking/info/model.d.ts +10 -1
  263. package/lib/components/booking/info/notes/index.d.ts +0 -1
  264. package/lib/components/booking/info/service/actions/index.d.ts +0 -1
  265. package/lib/components/booking/info/service/addService/index.d.ts +0 -1
  266. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  267. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
  268. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  269. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  270. package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
  271. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  272. package/lib/components/booking/info2/service/addTimeModal/index.js +3 -4
  273. package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.js +1 -2
  274. package/lib/components/booking/info2/service/editService/index.js +11 -4
  275. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
  276. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  277. package/lib/components/booking/materiels/duration/index.d.ts +0 -1
  278. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  279. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  280. package/lib/components/booking/model.d.ts +9 -1
  281. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  282. package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
  283. package/lib/components/booking/notes/addNote/index.d.ts +0 -1
  284. package/lib/components/booking/notes/model.d.ts +10 -1
  285. package/lib/components/booking/payments/model.d.ts +10 -1
  286. package/lib/components/booking/utils.d.ts +2 -2
  287. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  288. package/lib/components/eftpos/form/index.d.ts +0 -1
  289. package/lib/components/eftpos/group/index.d.ts +0 -1
  290. package/lib/components/eftpos/hooks.d.ts +0 -1
  291. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  292. package/lib/components/eftpos/icon/device.d.ts +0 -1
  293. package/lib/components/eftpos/index.d.ts +0 -1
  294. package/lib/components/eftpos/pos.d.ts +0 -1
  295. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  296. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  297. package/lib/components/eftposPay/amount.d.ts +1 -2
  298. package/lib/components/eftposPay/app.d.ts +0 -1
  299. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  300. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  301. package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
  302. package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
  303. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  304. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  305. package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
  306. package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
  307. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  308. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  309. package/lib/components/eftposPay/device.d.ts +1 -2
  310. package/lib/components/eftposPay/hooks.d.ts +2 -2
  311. package/lib/components/eftposPay/index.d.ts +0 -1
  312. package/lib/components/eftposPay/pay.d.ts +0 -1
  313. package/lib/components/eftposPay/payo/config.d.ts +0 -1
  314. package/lib/components/eftposPay/store/index.d.ts +5 -5
  315. package/lib/components/eftposPay/tip.d.ts +0 -1
  316. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  317. package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  318. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
  319. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  320. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  321. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  322. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  323. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  324. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  325. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  326. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  327. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  328. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  329. package/lib/components/eventBooking/index.d.ts +0 -1
  330. package/lib/components/login/index.d.ts +0 -1
  331. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  332. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  333. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  334. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  335. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  336. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  337. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  338. package/lib/components/pay/toC/model.d.ts +9 -1
  339. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  340. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  341. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  342. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  343. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  344. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  345. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  346. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  347. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  348. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  349. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  350. package/lib/components/productExtension/index.d.ts +0 -1
  351. package/lib/components/ruleSetting/index.d.ts +0 -1
  352. package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  353. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  354. package/lib/components/schedules/calendar/index.d.ts +0 -1
  355. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  356. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  357. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  358. package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
  359. package/lib/components/schedules/model.d.ts +9 -1
  360. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  361. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  362. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  363. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  364. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  365. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  366. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  367. package/lib/components/schedules/products/index.d.ts +0 -1
  368. package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  369. package/lib/components/schedules/products/list/index.d.ts +0 -1
  370. package/lib/components/schedules/resources/index.d.ts +0 -1
  371. package/lib/components/schedules/resources/list/index.d.ts +0 -1
  372. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  373. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  374. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  375. package/lib/components/schedules/schedules/index.d.ts +0 -1
  376. package/lib/components/schedules/utils.d.ts +1 -1
  377. package/lib/components/schedules/utils.js +1 -1
  378. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  379. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  380. package/lib/components/shoppingCart/index.d.ts +0 -1
  381. package/lib/components/taxSelect/index.d.ts +0 -1
  382. package/lib/components/ticketBooking/data.d.ts +0 -0
  383. package/lib/components/ticketBooking/data.js +0 -0
  384. package/lib/components/ticketBooking/index.d.ts +2 -0
  385. package/lib/components/ticketBooking/index.js +28 -0
  386. package/lib/components/wallet/Detail/index.js +1 -1
  387. package/lib/components/wallet/Detail/model.d.ts +13 -1
  388. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  389. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  390. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  391. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  392. package/lib/components/wallet/components/WalletCard.js +1 -1
  393. package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
  394. package/lib/components/wallet/model.d.ts +9 -1
  395. package/lib/utils/index.d.ts +1 -1
  396. package/package.json +2 -2
@@ -7,7 +7,9 @@ export declare const useShopDiscount: () => any;
7
7
  * @Author: WangHan
8
8
  * @Date: 2025-04-15 11:11
9
9
  */
10
- export declare const useAppointmentBookingStep: () => void;
10
+ export declare const useAppointmentBookingStep: () => {
11
+ getStepIndex: (type: string, skipNumber?: number) => any;
12
+ };
11
13
  /**
12
14
  * @title: 获取商品数据
13
15
  * @description:
@@ -62,3 +64,13 @@ export declare const useAppointmentBookingResource: () => {
62
64
  };
63
65
  autoSelectAllProductResources: (index?: number) => Promise<any>;
64
66
  };
67
+ /**
68
+ * @title: 是否跳过资源选择步骤
69
+ * @description:
70
+ * @return {*}
71
+ * @Author: WangHan
72
+ * @Date: 2025-04-21 11:47
73
+ */
74
+ export declare const useIsSkipResourceStep: () => {
75
+ checkSkipResourceStep: () => Promise<boolean>;
76
+ };
@@ -36,6 +36,7 @@ __export(hooks_exports, {
36
36
  useAppointmentBookingProduct: () => useAppointmentBookingProduct,
37
37
  useAppointmentBookingResource: () => useAppointmentBookingResource,
38
38
  useAppointmentBookingStep: () => useAppointmentBookingStep,
39
+ useIsSkipResourceStep: () => useIsSkipResourceStep,
39
40
  useShopDiscount: () => useShopDiscount
40
41
  });
41
42
  module.exports = __toCommonJS(hooks_exports);
@@ -73,6 +74,19 @@ var useAppointmentBookingStep = () => {
73
74
  }
74
75
  );
75
76
  }, []);
77
+ const getStepIndex = (type, skipNumber = 0) => {
78
+ const currentStep = appointmentBooking.getCurrentStep();
79
+ const index = (currentStep == null ? void 0 : currentStep.index) || 1;
80
+ if (type === "next") {
81
+ const nextIndex = index + skipNumber;
82
+ return nextIndex + 1 > stepList.length ? stepList.length - 1 : nextIndex;
83
+ }
84
+ if (type === "prev") {
85
+ const prevIndex = index - skipNumber;
86
+ return prevIndex < 1 ? 1 : prevIndex;
87
+ }
88
+ };
89
+ return { getStepIndex };
76
90
  };
77
91
  var useAppointmentBookingProduct = () => {
78
92
  const { appointmentBooking, setProducts } = (0, import_context.useAppointmentBookingContext)();
@@ -180,6 +194,29 @@ var useAppointmentBookingResource = () => {
180
194
  };
181
195
  return { getResourceTimeSlot, getResourceList, autoSelectAllProductResources };
182
196
  };
197
+ var useIsSkipResourceStep = () => {
198
+ const { accountLists } = useAppointmentBookingAccount();
199
+ const { getResourceList, autoSelectAllProductResources } = useAppointmentBookingResource();
200
+ const checkSkipResourceStep = async () => {
201
+ var _a, _b, _c, _d, _e;
202
+ try {
203
+ if ((accountLists == null ? void 0 : accountLists.length) === 1) {
204
+ const res = await autoSelectAllProductResources();
205
+ const { resources } = getResourceList();
206
+ if (!((_a = res == null ? void 0 : res.errorList) == null ? void 0 : _a.length) && ((_e = (_d = (_c = (_b = resources == null ? void 0 : resources[0]) == null ? void 0 : _b.resources) == null ? void 0 : _c[0]) == null ? void 0 : _d.renderList) == null ? void 0 : _e.length) === 1) {
207
+ return true;
208
+ } else {
209
+ return false;
210
+ }
211
+ } else {
212
+ return false;
213
+ }
214
+ } catch (error) {
215
+ return false;
216
+ }
217
+ };
218
+ return { checkSkipResourceStep };
219
+ };
183
220
  // Annotate the CommonJS export names for ESM import in node:
184
221
  0 && (module.exports = {
185
222
  useAppointmentBooking,
@@ -189,5 +226,6 @@ var useAppointmentBookingResource = () => {
189
226
  useAppointmentBookingProduct,
190
227
  useAppointmentBookingResource,
191
228
  useAppointmentBookingStep,
229
+ useIsSkipResourceStep,
192
230
  useShopDiscount
193
231
  });
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface TabProductProps {
4
3
  list: any[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
4
3
  export default ProductItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const SelectProductItem: ({ item, onClick, onChangeQuantity, amountSymbol, style, className, disabled, }: any) => JSX.Element;
4
3
  export default SelectProductItem;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const renderBundles: (item: any, amountSymbol: string) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 空状态
4
3
  * @description:
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const FooterMenus: ({ state, menuChange, items }: any) => JSX.Element | null;
4
3
  export default FooterMenus;
@@ -51,7 +51,7 @@ var import_serve2 = require("./serve");
51
51
  var import_utils4 = require("./utils");
52
52
  var import_voucher = __toESM(require("../voucher"));
53
53
  var Footer = (props) => {
54
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
54
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
55
55
  const { state, buttons, dispatch, source } = props;
56
56
  const [showDetail, setShowDetail] = (0, import_react.useState)(false);
57
57
  const [loading, setLoading] = (0, import_react.useState)(false);
@@ -189,10 +189,8 @@ var Footer = (props) => {
189
189
  }
190
190
  return false;
191
191
  }, [state, params]);
192
- const hasGoodPassApp = (0, import_react.useMemo)(() => {
193
- var _a2;
194
- return !!((_a2 = businessUtils == null ? void 0 : businessUtils.getAppByModal) == null ? void 0 : _a2.call(businessUtils, "goodpass"));
195
- }, []);
192
+ const hasGoodPassApp = !!((_h = businessUtils == null ? void 0 : businessUtils.getAppByModal) == null ? void 0 : _h.call(businessUtils, "goodpass"));
193
+ console.log("has goodpass app:", hasGoodPassApp);
196
194
  const goCheckout = async (order_id) => {
197
195
  var _a2, _b2;
198
196
  if (isTerminal == null ? void 0 : isTerminal()) {
@@ -753,7 +751,7 @@ var Footer = (props) => {
753
751
  }, [
754
752
  state.bookingId,
755
753
  state.bookingDetail,
756
- (_h = state.addons) == null ? void 0 : _h.load,
754
+ (_i = state.addons) == null ? void 0 : _i.load,
757
755
  state.renderType
758
756
  ]);
759
757
  const menuChange = (e) => {
@@ -787,7 +785,7 @@ var Footer = (props) => {
787
785
  break;
788
786
  }
789
787
  };
790
- return /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { title: false, round: true, loading: showFooter, active: true }, hasGoodPassApp ? /* @__PURE__ */ import_react.default.createElement(import_voucher.default, { state, dispatch }) : null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-footer-total" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left-total" }, totalText), /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left-arrears" }, arrearsText)), /* @__PURE__ */ import_react.default.createElement(
788
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { title: false, round: true, loading: showFooter, active: true }, hasGoodPassApp && source === "info" ? /* @__PURE__ */ import_react.default.createElement(import_voucher.default, { state, dispatch }) : null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-footer-total" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left-total" }, totalText), /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left-arrears" }, arrearsText)), /* @__PURE__ */ import_react.default.createElement(
791
789
  "span",
792
790
  {
793
791
  className: "pisell-lowcode__booking-footer-right",
@@ -814,7 +812,7 @@ var Footer = (props) => {
814
812
  },
815
813
  /* @__PURE__ */ import_react.default.createElement("div", { className: "order-total-item-border" }),
816
814
  /* @__PURE__ */ import_react.default.createElement("div", { className: "order-total-item" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "order-total-item-label" }, import_utils.locales.getText("pisell1.text.subtotal")), /* @__PURE__ */ import_react.default.createElement("span", { className: "order-total-item-value" }, (0, import_utils.formatAmount)(total.productAmount, 2, (state == null ? void 0 : state.amountSymbol) || "$"))),
817
- (((_i = state.bookingDetail) == null ? void 0 : _i.surcharge) || []).map((d) => {
815
+ (((_j = state.bookingDetail) == null ? void 0 : _j.surcharge) || []).map((d) => {
818
816
  return /* @__PURE__ */ import_react.default.createElement("div", { className: "order-total-item", key: d.id }, /* @__PURE__ */ import_react.default.createElement("span", { className: "order-total-item-label" }, d.name[state.locale]), /* @__PURE__ */ import_react.default.createElement("span", { className: "order-total-item-value" }, (0, import_utils.formatAmount)(d.amount, 2, (state == null ? void 0 : state.amountSymbol) || "$")));
819
817
  }),
820
818
  state.bookingId ? /* @__PURE__ */ import_react.default.createElement("div", { className: "order-total-item" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "order-total-item-label" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, import_utils.locales.getText("pisell1.text.tax")), /* @__PURE__ */ import_react.default.createElement("div", { className: "", style: { fontSize: 14 } }, taxText)), /* @__PURE__ */ import_react.default.createElement("span", { className: "order-total-item-value" }, (0, import_utils.formatAmount)(total.tax, 2, (state == null ? void 0 : state.amountSymbol) || "$"))) : null,
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const FormItemChildrenWrap: (props: any) => JSX.Element;
3
2
  export default FormItemChildrenWrap;
@@ -41,6 +41,7 @@ var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContex
41
41
  var import_materials = require("@pisell/materials");
42
42
  var import_useIsBooking4Shop = require("../../hooks/useIsBooking4Shop");
43
43
  var import_index = require("./index.less");
44
+ var import_ahooks = require("ahooks");
44
45
  var ShopDiscountHooks = {
45
46
  onInited: "shopDiscount:onInited",
46
47
  onDestroy: "shopDiscount:onDestroy",
@@ -50,6 +51,7 @@ var ShopDiscountHooks = {
50
51
  onRulesListChange: "shopDiscount:onRulesListChange",
51
52
  onLoadPrepareCalcResult: "shopDiscount:onLoadPrepareCalcResult"
52
53
  };
54
+ var services = {};
53
55
  var VoucherCard = (props) => {
54
56
  var _a, _b;
55
57
  const context = (0, import_useEngineContext.default)();
@@ -61,6 +63,7 @@ var VoucherCard = (props) => {
61
63
  const productRef = (0, import_react.useRef)(state.service.value);
62
64
  const isBooking4Shop = (0, import_useIsBooking4Shop.useIsBooking4Shop)(state);
63
65
  const shopDiscount = pisellos.getModule("shopDiscount");
66
+ services = state.service;
64
67
  const availableData = (0, import_react.useMemo)(() => {
65
68
  if (!isBooking4Shop) return [];
66
69
  const shopDiscount2 = pisellos.getModule("shopDiscount");
@@ -93,15 +96,24 @@ var VoucherCard = (props) => {
93
96
  dispatch({
94
97
  type: "setService",
95
98
  payload: {
99
+ ...services,
96
100
  value: val.productList
97
101
  }
98
102
  });
99
103
  }
100
104
  }, [state.service.value, isBooking4Shop]);
105
+ const fn = (0, import_ahooks.useMemoizedFn)((result) => {
106
+ dispatch({
107
+ type: "setService",
108
+ payload: {
109
+ ...services,
110
+ value: result.productList
111
+ }
112
+ });
113
+ });
101
114
  (0, import_react.useEffect)(() => {
102
115
  if (!isBooking4Shop) return;
103
116
  pisellos.effects.on(ShopDiscountHooks.onCustomerChange, (customer) => {
104
- console.log(customer, "customerChange");
105
117
  dispatch({
106
118
  type: "setClient",
107
119
  payload: {
@@ -111,19 +123,11 @@ var VoucherCard = (props) => {
111
123
  });
112
124
  pisellos.effects.on(
113
125
  ShopDiscountHooks.onLoadPrepareCalcResult,
114
- (result) => {
115
- dispatch({
116
- type: "setService",
117
- payload: {
118
- value: result.productList
119
- }
120
- });
121
- }
126
+ fn
122
127
  );
123
128
  pisellos.effects.on(
124
129
  ShopDiscountHooks.onDiscountListChange,
125
130
  (discount) => {
126
- console.log(discount, "discountChange");
127
131
  setDisCountList(discount);
128
132
  }
129
133
  );
@@ -133,7 +137,7 @@ var VoucherCard = (props) => {
133
137
  pisellos.effects.off(ShopDiscountHooks.onLoadPrepareCalcResult);
134
138
  pisellos.effects.off(ShopDiscountHooks.onDiscountListChange);
135
139
  };
136
- }, [state.bookingId, isBooking4Shop]);
140
+ }, [state.bookingId, isBooking4Shop, fn]);
137
141
  const onScanCode = async () => {
138
142
  const val = await shopDiscount.scanCode(code);
139
143
  console.log(val);
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Deposit: (props: any) => JSX.Element;
3
2
  export default Deposit;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
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
+ }>;
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
4
4
  setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
5
5
  handleOpen: () => void;
6
6
  handleValuesChange: (val: any) => void;
7
- handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
7
+ handleOk: (values: SendModalValues) => Promise<any>;
8
8
  };
9
9
  export default useSendModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  /**
4
3
  * @title: 表单选择器
@@ -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;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface AddServiceVariantProps {
3
2
  globalState: any;
4
3
  setGlobalState: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FormState } from '../../../model';
3
2
  interface useClientFnParams {
4
3
  state: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useIsLowSpeedNetwork: () => import("react").MutableRefObject<boolean>;
3
2
  export default useIsLowSpeedNetwork;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export declare const updateServiceDate: (services: any[], date: any, isTime: boolean) => any[];
4
3
  declare const DateCom: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const header: ({ state, dispatch }: any) => JSX.Element;
4
3
  export default header;
@@ -38,12 +38,14 @@ var import_main = __toESM(require("./main"));
38
38
  var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext"));
39
39
  var import_utils = require("./utils");
40
40
  var APP = (props) => {
41
- var _a, _b, _c, _d, _e, _f;
41
+ var _a, _b, _c, _d, _e;
42
42
  const context = (0, import_useEngineContext.default)();
43
- if ((0, import_utils.isBooking4Shop)(
43
+ const { globalState } = props;
44
+ const isBooking4 = (0, import_utils.isBooking4Shop)(
44
45
  (_e = (_d = (_c = (_b = (_a = context.appHelper.utils.store) == null ? void 0 : _a.getState) == null ? void 0 : _b.call(_a)) == null ? void 0 : _c.global) == null ? void 0 : _d.globalConfig) == null ? void 0 : _e.id,
45
- (_f = props == null ? void 0 : props.globalState) == null ? void 0 : _f.renderType
46
- )) {
46
+ globalState == null ? void 0 : globalState.renderType
47
+ );
48
+ if (isBooking4 && (!(globalState == null ? void 0 : globalState.bookingId) || (globalState == null ? void 0 : globalState.isParallelResourcesBooking))) {
47
49
  return /* @__PURE__ */ import_react.default.createElement(import_info2.default, { ...props });
48
50
  }
49
51
  return /* @__PURE__ */ import_react.default.createElement(import_main.default, { ...props });
@@ -1,5 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { FormState } from '../model';
1
3
  export declare const walkInData: {
2
4
  id: number;
3
5
  nickname: string;
4
6
  };
5
- export declare const Provider: any, Context: any;
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
+ }>;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Notes: () => JSX.Element | null;
3
2
  export default Notes;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Actions: ({ currentService }: {
4
3
  currentService: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellDrawerProps } from '../../../components/drawer';
3
2
  import './index.less';
4
3
  interface AddServiceProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Like: ({ status, onChange, className, style, }: {
4
3
  style?: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ServiceList: ({ onEdit }: {
4
3
  onEdit: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Lists: ({ onEdit, onChange }: any) => JSX.Element;
3
2
  export default Lists;
@@ -237,4 +237,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
237
237
  * @Author: WangHan
238
238
  * @Date: 2024-12-24 11:32
239
239
  */
240
- export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
240
+ export declare const updateServicePrice: (state: any) => Promise<any> | never[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '../../../info/service/actions/index.less';
3
2
  declare const Actions: ({ currentService }: {
4
3
  currentService: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellDrawerProps } from '../../../components/drawer';
3
2
  import '../../../info/service/addService/index.less';
4
3
  interface AddServiceProps {
@@ -118,14 +118,13 @@ var AddTimeModal = () => {
118
118
  arr = [
119
119
  ...arr,
120
120
  ...resource[form_id].map((d) => {
121
- var _a3;
122
- return (_a3 = state.service.cacheItem) == null ? void 0 : _a3._data.resourceMaps[form_id].renderListMaps[d.relation_id];
121
+ var _a3, _b3, _c2, _d2;
122
+ return (_d2 = (_c2 = (_b3 = (_a3 = state.service.cacheItem) == null ? void 0 : _a3._data.resourceMaps) == null ? void 0 : _b3[form_id]) == null ? void 0 : _c2.renderListMaps) == null ? void 0 : _d2[d.relation_id];
123
123
  })
124
124
  ];
125
125
  }
126
- return arr;
126
+ return arr.filter(Boolean);
127
127
  }, [(_f = (_e = (_d = state.service) == null ? void 0 : _d.cacheItem) == null ? void 0 : _e._extend) == null ? void 0 : _f.resource]);
128
- console.log("currentResource", currentResource);
129
128
  const getTimeUsableStatus = (time) => {
130
129
  var _a2, _b2;
131
130
  if (!((_a2 = state.service.cacheItem) == null ? void 0 : _a2._extend) || !currentResource.length) {
@@ -45,8 +45,7 @@ var MaxLengthSelect = (props, ref) => {
45
45
  {
46
46
  ...props,
47
47
  onChange: handleChange,
48
- popupMatchSelectWidth: false,
49
- getPopupContainer: () => document.querySelector("#main") || document.body
48
+ popupMatchSelectWidth: false
50
49
  },
51
50
  props.children
52
51
  );
@@ -309,15 +309,14 @@ var Info = (_, ref) => {
309
309
  value: item._extend.other
310
310
  },
311
311
  callback: (e2, extension_type, detail) => {
312
+ var _a2;
312
313
  const _detail = detail || item;
313
314
  let cacheItem = {
315
+ ...item,
314
316
  ..._detail,
315
317
  product_id: item.id,
316
318
  _id: item == null ? void 0 : item._id,
317
319
  _key: e2.key,
318
- _data: {
319
- ...item._data
320
- },
321
320
  _extend: {
322
321
  ...item._extend,
323
322
  // 将当前表单的值覆盖进去
@@ -329,6 +328,13 @@ var Info = (_, ref) => {
329
328
  };
330
329
  let _total = (0, import_utils3.getProductTotalPrice)(cacheItem);
331
330
  cacheItem._extend.total = _total;
331
+ try {
332
+ cacheItem._extend.capacity = (0, import_utils4.setDefaultCapacitys)({
333
+ capacitys: cacheItem._data.capacitys,
334
+ cacheItem
335
+ });
336
+ } catch (err) {
337
+ }
332
338
  cacheItem._extend.origin_total = _total;
333
339
  dispatch({
334
340
  type: "setService",
@@ -337,7 +343,8 @@ var Info = (_, ref) => {
337
343
  }
338
344
  });
339
345
  form.setFieldsValue({
340
- total: _total
346
+ total: _total,
347
+ capacity: (_a2 = cacheItem._extend) == null ? void 0 : _a2.capacity
341
348
  });
342
349
  }
343
350
  });
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ServiceList: ({ onEdit }: {
4
3
  onEdit: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare type ContactType = {
4
3
  country_calling_code: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  interface DurationProps extends SelectProps {
4
3
  locale?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  interface HolderProps extends SelectProps {
4
3
  selectProps?: SelectProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from "antd";
3
2
  interface StartTimeProps extends SelectProps {
4
3
  locale?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  amountSymbol: string;
3
4
  apis: {
@@ -104,4 +105,11 @@ export declare const walkInData: {
104
105
  id: number;
105
106
  nickname: string;
106
107
  };
107
- export declare const Provider: any, Context: any;
108
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
109
+ state: FormState;
110
+ } & {
111
+ dispatch: (params: {
112
+ type: string;
113
+ payload: any;
114
+ }) => void;
115
+ }>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export interface InfoProps {
4
3
  isEdit: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export interface InfoProps {
4
3
  title?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const AddNote: ({ value, onChange, wait, title, placeholder }: any) => JSX.Element;
4
3
  export default AddNote;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
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 +1,10 @@
1
- export declare const Provider: any, Context: any;
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
+ }>;
@@ -162,10 +162,10 @@ export declare const getProductTotalPrice: (item: any) => number;
162
162
  export declare const getDuration: (duration: number | {
163
163
  type: string;
164
164
  value: number;
165
- }) => number | {
165
+ }) => number | "flexible" | {
166
166
  type: string;
167
167
  value: number;
168
- } | "flexible";
168
+ };
169
169
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
170
170
  export declare const getIsEdit: (state: any) => boolean;
171
171
  export {};
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ input, ...formItemProps }: any) => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 递归循环表单数据
4
3
  * @Author: hongbing.wang
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RadioGroupProps } from 'antd';
3
2
  export declare const CheckboxGroup: ({ direction, options, ...props }: any) => JSX.Element;
4
3
  export declare const RadioGroup: ({ direction, options, ...props }: RadioGroupProps & {